From b5425cb909825fdf2fbd3baae7206257921b0b59 Mon Sep 17 00:00:00 2001 From: Dezhi Huang Date: Mon, 13 Mar 2023 16:38:46 +0800 Subject: Sensor:Add sensor type HINGE_ANGLE to function assertTypeMatchStringType Function assertTypeMatchStringType does not match the sensor type HINGE_ANGLE that only exists on folding screen phones. When testing the VtsAidlHalSensorsTargetTest on a folding screen mobile phone, it will fail. So we need add CHECK_TYPE_STRING_FOR_SENSOR_TYPE(HINGE_ANGLE) to the function assertTypeMatchStringType. Bug: 270831199 Change-Id: Ib82a1168ff90d851eee6ce025464b11bcda7d5ca --- sensors/aidl/vts/VtsAidlHalSensorsTargetTest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'sensors/aidl/vts/VtsAidlHalSensorsTargetTest.cpp') diff --git a/sensors/aidl/vts/VtsAidlHalSensorsTargetTest.cpp b/sensors/aidl/vts/VtsAidlHalSensorsTargetTest.cpp index d536e290b2..35220a2d31 100644 --- a/sensors/aidl/vts/VtsAidlHalSensorsTargetTest.cpp +++ b/sensors/aidl/vts/VtsAidlHalSensorsTargetTest.cpp @@ -98,6 +98,7 @@ static void assertTypeMatchStringType(SensorType type, const std::string& string CHECK_TYPE_STRING_FOR_SENSOR_TYPE(TILT_DETECTOR); CHECK_TYPE_STRING_FOR_SENSOR_TYPE(WAKE_GESTURE); CHECK_TYPE_STRING_FOR_SENSOR_TYPE(WRIST_TILT_GESTURE); + CHECK_TYPE_STRING_FOR_SENSOR_TYPE(HINGE_ANGLE); default: FAIL() << "Type " << static_cast(type) << " in android defined range is not checked, " -- cgit v1.2.3