Lines Matching defs:rotation

301     /** Amount of time (in milliseconds) to delay before declaring a seamless rotation timeout. */
311 * management of the screen during rotation.
615 // perform a rotation animation when turning off shows the lock screen which
3800 // already true, we used seamless rotation, and we don't need
3873 // changed the real orientation our applied our screen rotation animation.
3874 // For example, because a previous screen rotation was in progress.
3876 int rotation = mPolicy.rotationForOrientationLw(mLastOrientation, mRotation);
3878 mLastOrientation, rotation);
3879 if (mRotation == rotation && mAltOrientation == altOrientation) {
6603 // The screenshot API does not apply the current screen rotation.
6677 * Freeze rotation changes. (Enable "rotation lock".)
6679 * @param rotation The desired rotation to freeze to, or -1 to use the
6680 * current rotation.
6683 public void freezeRotation(int rotation) {
6688 if (rotation < -1 || rotation > Surface.ROTATION_270) {
6690 + "rotation constant.");
6698 rotation == -1 ? mRotation : rotation);
6707 * Thaw rotation changes. (Disable "rotation lock".)
6731 * Recalculate the current rotation.
6734 * such that the current rotation might need to be updated, such as when the
6743 * Temporarily pauses rotation changes until resumed.
6745 * This can be used to prevent rotation changes from occurring while the user is
6756 * Resumes normal rotation changes after being paused.
6794 * Updates the current rotation.
6796 * Returns true if the rotation has been changed. In this case YOU
6803 if (DEBUG_ORIENTATION) Slog.v(TAG_WM, "Deferring rotation, rotation is paused.");
6810 // Rotation updates cannot be performed while the previous rotation change
6813 if (DEBUG_ORIENTATION) Slog.v(TAG_WM, "Deferring rotation, animation in progress.");
6817 // Even if the screen rotation animation has finished (e.g. isAnimating
6819 // the display. We also need to abort rotation here.
6820 if (DEBUG_ORIENTATION) Slog.v(TAG_WM, "Deferring rotation, still finishing previous rotation");
6825 // No point choosing a rotation if the display is not enabled.
6826 if (DEBUG_ORIENTATION) Slog.v(TAG_WM, "Deferring rotation, display is not enabled.");
6834 int rotation = mPolicy.rotationForOrientationLw(mLastOrientation, mRotation);
6835 boolean rotateSeamlessly = mPolicy.shouldRotateSeamlessly(oldRotation, rotation);
6840 // We can't rotate (seamlessly or not) while waiting for the last seamless rotation
6853 // rotate windows without it. This limits seamless rotation in N to camera framework
6863 // TODO: Implement forced rotation changes.
6869 mLastOrientation, rotation);
6873 + mLastOrientation + ", got rotation " + rotation
6878 if (mRotation == rotation && mAltOrientation == altOrientation) {
6885 "Rotation changed to " + rotation + (altOrientation ? " (alt)" : "")
6890 mRotation = rotation;
6912 // The screen rotation animation uses a screenshot to freeze the screen
6919 // finished seamless rotation.
6923 // We need to update our screen size information to match the new rotation. If the rotation
6938 // NOTE: We disable the rotation in the emulator because
6943 rotation, mFxSession,
6987 mRotationWatchers.get(i).watcher.onRotationChanged(rotation);
6993 // Announce rotation only if we will not animate as we already have the
6994 // windows in final state. Otherwise, we make this call at the rotation end.
6998 rotation);
7085 final int rotation = getRotation();
7091 switch (rotation) {
7105 switch (rotation) {
7505 private void adjustDisplaySizeRanges(DisplayInfo displayInfo, int rotation, int uiMode,
7508 final int width = mPolicy.getConfigDisplayWidth(dw, dh, rotation, uiMode);
7515 final int height = mPolicy.getConfigDisplayHeight(dw, dh, rotation, uiMode);
7524 private int reduceConfigLayout(int curLayout, int rotation, float density,
7527 // Get the app screen size at this rotation.
7528 int w = mPolicy.getNonDecorDisplayWidth(dw, dh, rotation, uiMode);
7529 int h = mPolicy.getNonDecorDisplayHeight(dw, dh, rotation, uiMode);
7531 // Compute the screen layout size class for this rotation.
7577 private int reduceCompatConfigWidthSize(int curSize, int rotation, int uiMode,
7580 dm.noncompatWidthPixels = mPolicy.getNonDecorDisplayWidth(dw, dh, rotation, uiMode);
7581 dm.noncompatHeightPixels = mPolicy.getNonDecorDisplayHeight(dw, dh, rotation, uiMode);
7614 // Use the effective "visual" dimensions based on current rotation
7644 displayInfo.rotation = mRotation;
10103 // TODO(multidisplay): rotation on main screen only.
10155 if (DEBUG_ORIENTATION) Slog.i(TAG_WM, "**** Dismissing screen rotation animation");
10156 // TODO(multidisplay): rotation on main screen only.
10158 // Get rotation animation again, with new top window
10201 if (DEBUG_ORIENTATION) Slog.d(TAG_WM, "Performing post-rotate rotation");
11367 mPolicy.getStableInsetsLw(di.rotation, di.logicalWidth, di.logicalHeight, outInsets);
11372 mPolicy.getNonDecorInsetsLw(di.rotation, di.logicalWidth, di.logicalHeight, outInsets);
11535 Slog.i(TAG, "Performing post-rotate rotation after seamless rotation");