Lines Matching refs:rotation
85 /** Rotation constant: Unfreeze rotation (rotating the device changes its rotation state). */
88 /** Rotation constant: Freeze rotation to its current state. */
91 /** Rotation constant: Freeze rotation to 0 degrees (natural orientation) */
94 /** Rotation constant: Freeze rotation to 90 degrees . */
97 /** Rotation constant: Freeze rotation to 180 degrees . */
100 /** Rotation constant: Freeze rotation to 270 degrees . */
446 * Sets the device rotation. A client can freeze the rotation in
447 * desired state or freeze the rotation to its current state or
448 * unfreeze the rotation (rotating the device changes its rotation
451 * @param rotation The desired rotation.
452 * @return Whether the rotation was set successfully.
461 public boolean setRotation(int rotation) {
465 switch (rotation) {
474 mUiAutomationConnection.setRotation(rotation);
477 Log.e(LOG_TAG, "Error while setting rotation!", re);
481 throw new IllegalArgumentException("Invalid rotation.");
627 final int rotation = display.getRotation();
628 switch (rotation) {
646 throw new IllegalArgumentException("Invalid rotation: "
647 + rotation);
666 if (rotation != ROTATION_FREEZE_0) {
672 canvas.rotate(getDegreesForRotation(rotation));