Home
last modified time | relevance | path

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

/foundation/window/window_manager/window_scene/screen_session_manager/src/
H A Dscreen_sensor_connector.cpp111 DeviceRotation motionRotation = DeviceRotation::INVALID; in OnMotionChanged() local
114 motionRotation = DeviceRotation::ROTATION_PORTRAIT; in OnMotionChanged()
118 motionRotation = DeviceRotation::ROTATION_LANDSCAPE_INVERTED; in OnMotionChanged()
122 motionRotation = DeviceRotation::ROTATION_PORTRAIT_INVERTED; in OnMotionChanged()
126 motionRotation = DeviceRotation::ROTATION_LANDSCAPE; in OnMotionChanged()
133 ScreenRotationProperty::HandleSensorEventInput(motionRotation); in OnMotionChanged()
/foundation/window/window_manager/dmserver/src/
H A Dsensor_connector.cpp226 DeviceRotation motionRotation = DeviceRotation::INVALID; in OnMotionChanged() local
229 motionRotation = DeviceRotation::ROTATION_PORTRAIT; in OnMotionChanged()
233 motionRotation = ScreenRotationController::IsDefaultDisplayRotationPortrait() ? in OnMotionChanged()
238 motionRotation = DeviceRotation::ROTATION_PORTRAIT_INVERTED; in OnMotionChanged()
242 motionRotation = ScreenRotationController::IsDefaultDisplayRotationPortrait() ? in OnMotionChanged()
250 ScreenRotationController::HandleSensorEventInput(motionRotation); in OnMotionChanged()
/foundation/window/window_manager/dmserver/test/unittest/
H A Dscreen_rotation_controller_test.cpp665 DeviceRotation motionRotation = DeviceRotation::INVALID; in HWTEST_F() local
670 motionRotation = DeviceRotation::ROTATION_PORTRAIT; in HWTEST_F()
672 ASSERT_EQ(motionRotation, ScreenRotationController::lastSensorRotationConverted_); in HWTEST_F()
676 motionRotation = ScreenRotationController::IsDefaultDisplayRotationPortrait() ? in HWTEST_F()
678 ASSERT_EQ(motionRotation, ScreenRotationController::lastSensorRotationConverted_); in HWTEST_F()
682 motionRotation = DeviceRotation::ROTATION_PORTRAIT_INVERTED; in HWTEST_F()
683 ASSERT_EQ(motionRotation, ScreenRotationController::lastSensorRotationConverted_); in HWTEST_F()
687 motionRotation = ScreenRotationController::IsDefaultDisplayRotationPortrait() ? in HWTEST_F()
689 ASSERT_EQ(motionRotation, ScreenRotationController::lastSensorRotationConverted_); in HWTEST_F()

Completed in 3 milliseconds