Fix sensor support assertion for (game) rotation vector
CTS test was incorrectly checking for presence of ROTATION_VECTOR when
hifi_sensors is enabled, which is already implied given the requirements
on accel, gyro, and mag. Instead, the CDD mandates GAME_ROTATION_VECTOR,
which is otherwise a SR.
Bug: 124314823
Test: atest SensorSupportTest
Change-Id: Ibf10ed651e96ca2e755dabbc0c3ef72047131d8d
diff --git a/tests/sensor/src/android/hardware/cts/SensorSupportTest.java b/tests/sensor/src/android/hardware/cts/SensorSupportTest.java
index 35d48df..25b8cb5 100644
--- a/tests/sensor/src/android/hardware/cts/SensorSupportTest.java
+++ b/tests/sensor/src/android/hardware/cts/SensorSupportTest.java
@@ -90,8 +90,8 @@
checkSupportsSensor(Sensor.TYPE_PRESSURE);
}
- public void testSupportsRotationVector() {
- checkSupportsSensor(Sensor.TYPE_ROTATION_VECTOR);
+ public void testSupportsGameRotationVector() {
+ checkSupportsSensor(Sensor.TYPE_GAME_ROTATION_VECTOR);
}
public void testSupportsSignificantMotion() {