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

Commit 1b8250bb 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: I6d1c235fd51f50485a761a09d15fcfa3d03d50b9
parents 8f80b6fd 63524f9f
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -1235,6 +1235,11 @@ void SensorsHidlTest::testDirectReportOperation(


  SensorInfo sensor = defaultSensorByType(type);
  SensorInfo sensor = defaultSensorByType(type);


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

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