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

am: 7bea962c9c

Change-Id: Ied99dc8ec61a8a242378a300c6902c1caa19ae9c
This commit is contained in:
Peng Xu
2017-08-09 17:16:34 +00:00
committed by android-build-merger

View File

@@ -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;
}