Home
last modified time | relevance | path

Searched refs:newOrientation (Results 1 - 4 of 4) sorted by relevance

/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dwindow_utils.cpp23 DeviceOrientation newOrientation = in GetDeviceOrientation() local
28 return newOrientation; in GetDeviceOrientation()
H A Dsystem_properties.cpp594 auto newOrientation = static_cast<int32_t>(WindowUtils::GetDeviceOrientation(orientation)); in SetDeviceOrientation() local
595 if (newOrientation == ORIENTATION_PORTRAIT && orientation_ != DeviceOrientation::PORTRAIT) { in SetDeviceOrientation()
598 } else if (newOrientation == ORIENTATION_LANDSCAPE && orientation_ != DeviceOrientation::LANDSCAPE) { in SetDeviceOrientation()
/foundation/window/window_manager/dmserver/src/
H A Dabstract_screen_controller.cpp734 DMError AbstractScreenController::SetOrientation(ScreenId screenId, Orientation newOrientation, in SetOrientation() argument
737 WLOGD("set orientation. screen %{public}" PRIu64" orientation %{public}u", screenId, newOrientation); in SetOrientation()
748 if (newOrientation == Orientation::UNSPECIFIED) { in SetOrientation()
749 newOrientation = screen->screenRequestedOrientation_; in SetOrientation()
753 screen->screenRequestedOrientation_ = newOrientation; in SetOrientation()
755 if (screen->orientation_ == newOrientation) { in SetOrientation()
756 WLOGFD("skip setting orientation. screen %{public}" PRIu64" orientation %{public}u", screenId, newOrientation); in SetOrientation()
760 ScreenRotationController::ProcessOrientationSwitch(newOrientation, withAnimation); in SetOrientation()
762 Rotation rotationAfter = screen->CalcRotation(newOrientation); in SetOrientation()
766 if (!screen->SetOrientation(newOrientation)) { in SetOrientation()
[all...]
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dace_container.cpp3358 DeviceOrientation newOrientation = WindowUtils::GetDeviceOrientation(orientation); in UpdateResourceOrientation() local
3360 resConfig.SetOrientation(newOrientation); in UpdateResourceOrientation()

Completed in 10 milliseconds