Searched refs:IsSensorRelatedOrientation (Results 1 - 3 of 3) sorted by relevance
/foundation/window/window_manager/dmserver/test/unittest/ |
H A D | screen_rotation_controller_test.cpp | 228 * @tc.name: IsSensorRelatedOrientation 232 HWTEST_F(ScreenRotationControllerTest, IsSensorRelatedOrientation, Function | SmallTest | Level3) in HWTEST_F() 234 ASSERT_EQ(false, ScreenRotationController::IsSensorRelatedOrientation(Orientation::LOCKED)); in HWTEST_F() 235 ASSERT_EQ(false, ScreenRotationController::IsSensorRelatedOrientation(Orientation::UNSPECIFIED)); in HWTEST_F() 236 ASSERT_EQ(false, ScreenRotationController::IsSensorRelatedOrientation(Orientation::VERTICAL)); in HWTEST_F() 237 ASSERT_EQ(false, ScreenRotationController::IsSensorRelatedOrientation(Orientation::HORIZONTAL)); in HWTEST_F() 238 ASSERT_EQ(false, ScreenRotationController::IsSensorRelatedOrientation(Orientation::REVERSE_VERTICAL)); in HWTEST_F() 239 ASSERT_EQ(false, ScreenRotationController::IsSensorRelatedOrientation(Orientation::REVERSE_HORIZONTAL)); in HWTEST_F() 240 ASSERT_EQ(true, ScreenRotationController::IsSensorRelatedOrientation(Orientation::SENSOR)); in HWTEST_F() 241 ASSERT_EQ(true, ScreenRotationController::IsSensorRelatedOrientation(Orientatio in HWTEST_F() [all...] |
/foundation/window/window_manager/dmserver/src/ |
H A D | screen_rotation_controller.cpp | 70 if (IsSensorRelatedOrientation(currentOrientation)) { in SetScreenRotationLocked() 94 if (!IsSensorRelatedOrientation(orientation)) { in HandleSensorEventInput() 218 bool ScreenRotationController::IsSensorRelatedOrientation(Orientation orientation) in IsSensorRelatedOrientation() function in OHOS::Rosen::ScreenRotationController 466 if (!IsSensorRelatedOrientation(orientation)) { in ProcessOrientationSwitch()
|
/foundation/window/window_manager/dmserver/include/ |
H A D | screen_rotation_controller.h | 72 static bool IsSensorRelatedOrientation(Orientation orientation);
|
Completed in 3 milliseconds