Lines Matching defs:rotationAfter
321 Rotation rotationAfter = absScreen->CalcRotation(absScreen->screenRequestedOrientation_);
322 WLOGFD("set default rotation to %{public}d for buildin screen", rotationAfter);
329 if (!IsVertical(rotationAfter)) {
335 absScreen->rsDisplayNode_->SetRotation(-90.0f * static_cast<uint32_t>(rotationAfter));
342 absScreen->rotation_ = rotationAfter;
762 Rotation rotationAfter = screen->CalcRotation(newOrientation);
763 SetRotation(screenId, rotationAfter, false);
764 screen->rotation_ = rotationAfter;
834 sptr<AbstractScreen>& screen, ScreenId screenId, Rotation rotationAfter, bool withAnimation)
842 if (!IsVertical(rotationAfter)) {
851 if (rotationAfter == Rotation::ROTATION_0 && screen->rotation_ == Rotation::ROTATION_270) {
855 } else if (rotationAfter == Rotation::ROTATION_270 && screen->rotation_ == Rotation::ROTATION_0) {
861 WLOGFD("[FixOrientation] display rotate with animation %{public}u", rotationAfter);
871 RSNode::Animate(timingProtocol, curve, [weakNode, srect, rotationAfter, this]() {
877 SetDisplayNode(rotationAfter, displayNode, srect);
885 WLOGFD("[FixOrientation] display rotate without animation %{public}u", rotationAfter);
886 SetDisplayNode(rotationAfter, displayNode, srect);
890 void AbstractScreenController::SetDisplayNode(Rotation rotationAfter,
893 displayNode->SetRotation(-90.f * static_cast<uint32_t>(rotationAfter)); // 90.f is base degree
920 bool AbstractScreenController::SetRotation(ScreenId screenId, Rotation rotationAfter,
924 "animation: %{public}u", screenId, rotationAfter, isFromWindow, withAnimation);
930 if (rotationAfter == screen->rotation_) {
931 WLOGFD("rotation not changed. screen %{public}" PRIu64" rotation %{public}u", screenId, rotationAfter);
934 WLOGFD("set orientation. rotation %{public}u", rotationAfter);
936 SetScreenRotateAnimation(screen, screenId, rotationAfter, withAnimation);
937 screen->rotation_ = rotationAfter;