Lines Matching refs:rotation

452     int mLandscapeRotation = 0;  // default landscape rotation
453 int mSeascapeRotation = 0; // "other" landscape rotation, 180 degrees from mLandscapeRotation
454 int mPortraitRotation = 0; // default portrait rotation
455 int mUpsideDownRotation = 0; // "other" portrait rotation
561 public void onProposedRotationChanged(int rotation) {
562 if (localLOGV) Log.v(TAG, "onProposedRotationChanged, rotation=" + rotation);
580 * the user has explicitly disabled sensor based rotation or when the
939 // Controls rotation and the like.
1051 // For demo purposes, allow the rotation of the HDMI display to be controlled.
1052 // By default, HDMI locks rotation to landscape.
1074 // Configure rotation lock.
1171 int rotation = mContext.getResources().getInteger(resID);
1172 switch (rotation) {
1450 public int getNonDecorDisplayWidth(int fullWidth, int fullHeight, int rotation) {
1455 return fullWidth - mNavigationBarWidthForRotation[rotation];
1461 public int getNonDecorDisplayHeight(int fullWidth, int fullHeight, int rotation) {
1464 return fullHeight - mNavigationBarHeightForRotation[rotation];
1470 return fullHeight - mNavigationBarHeightForRotation[rotation];
1476 public int getConfigDisplayWidth(int fullWidth, int fullHeight, int rotation) {
1477 return getNonDecorDisplayWidth(fullWidth, fullHeight, rotation);
1480 public int getConfigDisplayHeight(int fullWidth, int fullHeight, int rotation) {
1487 return getNonDecorDisplayHeight(fullWidth, fullHeight, rotation) - mStatusBarHeight;
1489 return getNonDecorDisplayHeight(fullWidth, fullHeight, rotation);
3953 // Ignore sensor when lid switch is open and rotation is forced.
3959 // enable 180 degree rotation while docked.
3968 // enable 180 degree rotation while docked.
4000 // Apply rotation lock. Does not apply to NOSENSOR.
4001 // The idea is that the user rotation expresses a weak preference for the direction
4003 // NOSENSOR be affected by rotation lock (although it will be affected by docks).
4041 // Return either landscape rotation.
4051 // Return either portrait rotation.
4072 public boolean rotationHasCompatibleMetricsLw(int orientation, int rotation) {
4077 return isAnyPortrait(rotation);
4082 return isLandscapeOrSeascape(rotation);
4090 public void setRotationLw(int rotation) {
4091 mOrientationListener.setCurrentRotation(rotation);
4094 private boolean isLandscapeOrSeascape(int rotation) {
4095 return rotation == mLandscapeRotation || rotation == mSeascapeRotation;
4098 private boolean isAnyPortrait(int rotation) {
4099 return rotation == mPortraitRotation || rotation == mUpsideDownRotation;
4103 // User rotation: to be used when all else fails in assigning an orientation to the device