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

Commit 0d4252fa 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: I99d4eb05d1348e24910c5ebe2e87b6b334138b31
parents 0f2946eb 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;
  }