OSDN Git Service
(root)
/
android-x86
/
hardware-interfaces.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "Skip direct report test if sensor is not available" into oc-dev
[android-x86/hardware-interfaces.git]
/
sensors
/
1.0
/
vts
/
functional
/
VtsHalSensorsV1_0TargetTest.cpp
diff --git
a/sensors/1.0/vts/functional/VtsHalSensorsV1_0TargetTest.cpp
b/sensors/1.0/vts/functional/VtsHalSensorsV1_0TargetTest.cpp
index
3006508
..
357270f
100644
(file)
--- a/
sensors/1.0/vts/functional/VtsHalSensorsV1_0TargetTest.cpp
+++ b/
sensors/1.0/vts/functional/VtsHalSensorsV1_0TargetTest.cpp
@@
-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;
}