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

Commit 7bea962c 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

Change-Id: Iffe683356ed925142ef877ecb5289463d8d4ac1e
parents 0d1bb974 63524f9f
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;
  }