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

Commit b5425cb9 authored by Dezhi Huang's avatar Dezhi Huang Committed by hi HONOR
Browse files

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
parent a6fc69d3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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<int>(type)
                   << " in android defined range is not checked, "