Lines Matching refs:orientation
91 Orientation orientation = GetPreferredOrientation();
94 if (!IsSensorRelatedOrientation(orientation)) {
95 WLOGFD("If the current preferred orientation is locked or sensor-independent, return.");
103 Rotation targetDisplayRotation = CalcTargetDisplayRotation(orientation, deviceRotation);
218 bool ScreenRotationController::IsSensorRelatedOrientation(Orientation orientation)
220 if ((orientation >= Orientation::UNSPECIFIED && orientation <= Orientation::REVERSE_HORIZONTAL) ||
221 orientation == Orientation::LOCKED) {
228 Orientation orientation, DeviceRotation sensorRotationConverted)
230 lastOrientationType_ = orientation;
231 switch (orientation) {
429 void ScreenRotationController::ProcessSwitchToSensorUnrelatedOrientation(Orientation orientation, bool withAnimation)
431 if (lastOrientationType_ == orientation) {
434 lastOrientationType_ = orientation;
435 switch (orientation) {
464 void ScreenRotationController::ProcessOrientationSwitch(Orientation orientation, bool withAnimation)
466 if (!IsSensorRelatedOrientation(orientation)) {
467 ProcessSwitchToSensorUnrelatedOrientation(orientation, withAnimation);
469 ProcessSwitchToSensorRelatedOrientation(orientation, lastSensorRotationConverted_);