Home
last modified time | relevance | path

Searched refs:IsDeviceRotationHorizontal (Results 1 - 3 of 3) sorted by relevance

/foundation/window/window_manager/dmserver/include/
H A Dscreen_rotation_controller.h69 static bool IsDeviceRotationHorizontal(DeviceRotation deviceRotation);
/foundation/window/window_manager/dmserver/src/
H A Dscreen_rotation_controller.cpp169 if (IsDeviceRotationHorizontal(sensorRotationConverted)) { in ProcessAutoRotationPortraitOrientation()
289 if (IsDeviceRotationHorizontal(rotation)) { in ProcessSwitchToAutoRotationLandscape()
396 bool ScreenRotationController::IsDeviceRotationHorizontal(DeviceRotation deviceRotation) in IsDeviceRotationHorizontal() function in OHOS::Rosen::ScreenRotationController
/foundation/window/window_manager/dmserver/test/unittest/
H A Dscreen_rotation_controller_test.cpp382 ASSERT_EQ(true, ScreenRotationController::IsDeviceRotationHorizontal(DeviceRotation::ROTATION_LANDSCAPE)); in HWTEST_F()
383 ASSERT_EQ(true, ScreenRotationController::IsDeviceRotationHorizontal(DeviceRotation::ROTATION_LANDSCAPE_INVERTED)); in HWTEST_F()
384 ASSERT_EQ(false, ScreenRotationController::IsDeviceRotationHorizontal(DeviceRotation::ROTATION_PORTRAIT)); in HWTEST_F()

Completed in 3 milliseconds