Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bad1b38 authored by Peng Xu's avatar Peng Xu Committed by android-build-merger
Browse files

Merge "Skip direct report test if sensor is not available" into oc-dev am: 63524f9f

am: 7bea962c

Change-Id: Ied99dc8ec61a8a242378a300c6902c1caa19ae9c
parents c2fe6448 7bea962c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1235,6 +1235,11 @@ void SensorsHidlTest::testDirectReportOperation(

  SensorInfo sensor = defaultSensorByType(type);

  if (!isValidType(sensor.type)) {
    // no default sensor of this type
    return;
  }

  if (!isDirectReportRateSupported(sensor, rate)) {
    return;
  }