Home
last modified time | relevance | path

Searched refs:ConvertDeviceToDisplayRotation (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/foundation/window/window_manager/dmserver/src/
H A Dscreen_rotation_controller.cpp99 if (currentDisplayRotation_ == ConvertDeviceToDisplayRotation(deviceRotation)) { in HandleSensorEventInput()
113 ConvertDeviceToDisplayRotation(DeviceRotation::ROTATION_LANDSCAPE); in GetCurrentDisplayRotation()
172 lastSensorDecidedRotation_ = ConvertDeviceToDisplayRotation(sensorRotationConverted); in ProcessAutoRotationPortraitOrientation()
181 lastSensorDecidedRotation_ = ConvertDeviceToDisplayRotation(sensorRotationConverted); in ProcessAutoRotationLandscapeOrientation()
274 SetScreenRotation(ConvertDeviceToDisplayRotation(rotation)); in ProcessSwitchToAutoRotation()
281 SetScreenRotation(ConvertDeviceToDisplayRotation(rotation)); in ProcessSwitchToAutoRotationPortrait()
284 SetScreenRotation(ConvertDeviceToDisplayRotation(DeviceRotation::ROTATION_PORTRAIT)); in ProcessSwitchToAutoRotationPortrait()
290 SetScreenRotation(ConvertDeviceToDisplayRotation(rotation)); in ProcessSwitchToAutoRotationLandscape()
293 SetScreenRotation(ConvertDeviceToDisplayRotation(DeviceRotation::ROTATION_LANDSCAPE)); in ProcessSwitchToAutoRotationLandscape()
305 SetScreenRotation(ConvertDeviceToDisplayRotation(DeviceRotation::ROTATION_PORTRAIT)); in ProcessSwitchToAutoRotationPortraitRestricted()
[all …]
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/
H A Dscreen_cutout_controller.cpp297 return (rotation == ConvertDeviceToDisplayRotation(DeviceRotationValue::ROTATION_LANDSCAPE)) || in IsDisplayRotationHorizontal()
298 … (rotation == ConvertDeviceToDisplayRotation(DeviceRotationValue::ROTATION_LANDSCAPE_INVERTED)); in IsDisplayRotationHorizontal()
301 Rotation ScreenCutoutController::ConvertDeviceToDisplayRotation(DeviceRotationValue deviceRotation) in ConvertDeviceToDisplayRotation() function in OHOS::Rosen::ScreenCutoutController
317 …return defaultDeviceRotation_ == 0 ? ConvertDeviceToDisplayRotation(DeviceRotationValue::ROTATION_… in GetCurrentDisplayRotation()
318 ConvertDeviceToDisplayRotation(DeviceRotationValue::ROTATION_LANDSCAPE); in GetCurrentDisplayRotation()
/ohos5.0/foundation/window/window_manager/dmserver/test/unittest/
H A Dscreen_rotation_controller_test.cpp328 …auto displayRotationTarget = ScreenRotationController::ConvertDeviceToDisplayRotation(deviceRotati…
338 … displayRotationTarget = ScreenRotationController::ConvertDeviceToDisplayRotation(deviceRotation);
363 …ASSERT_EQ(Rotation::ROTATION_0, ScreenRotationController::ConvertDeviceToDisplayRotation(deviceRot…
367 …ASSERT_EQ(Rotation::ROTATION_0, ScreenRotationController::ConvertDeviceToDisplayRotation(deviceRot…
368 …ASSERT_EQ(Rotation::ROTATION_0, ScreenRotationController::ConvertDeviceToDisplayRotation(deviceRot…
499 … ScreenRotationController::ConvertDeviceToDisplayRotation(DeviceRotation::ROTATION_LANDSCAPE);
/ohos5.0/foundation/window/window_manager/window_scene/test/dms_unittest/
H A Dscreen_cutout_controller_test.cpp201 …ASSERT_EQ(Rotation::ROTATION_0, controller->ConvertDeviceToDisplayRotation(DeviceRotationValue::IN…
204 Rotation result01 = controller->ConvertDeviceToDisplayRotation(deviceRotation);
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/include/
H A Dscreen_cutout_controller.h54 Rotation ConvertDeviceToDisplayRotation(DeviceRotationValue deviceRotation);
/ohos5.0/foundation/window/window_manager/dmserver/include/
H A Dscreen_rotation_controller.h66 static Rotation ConvertDeviceToDisplayRotation(DeviceRotation sensorRotationConverted);