Searched refs:rotation (Results 1 - 21 of 21) sorted by relevance

/frameworks/base/core/java/android/view/
H A DIRotationWatcher.aidl24 void onRotationChanged(int rotation);
H A DWindowManagerPolicy.java423 /** When not otherwise specified by the activity's screenOrientation, rotation should be
426 /** When not otherwise specified by the activity's screenOrientation, rotation is set by
521 public int getNonDecorDisplayWidth(int fullWidth, int fullHeight, int rotation); argument
528 public int getNonDecorDisplayHeight(int fullWidth, int fullHeight, int rotation); argument
536 public int getConfigDisplayWidth(int fullWidth, int fullHeight, int rotation); argument
544 public int getConfigDisplayHeight(int fullWidth, int fullHeight, int rotation); argument
716 * @param displayRotation The current rotation being applied to the base
906 * Given an orientation constant, returns the appropriate surface rotation,
907 * taking into account sensors, docking mode, rotation lock, and other factors.
911 * @param lastRotation The most recently used rotation
929 rotationHasCompatibleMetricsLw(int orientation, int rotation) argument
936 setRotationLw(int rotation) argument
1010 setUserRotationMode(int mode, int rotation) argument
[all...]
H A DWindowOrientationListener.java121 * Sets the current rotation.
123 * @param rotation The current rotation.
125 public void setCurrentRotation(int rotation) { argument
126 mCurrentRotation = rotation;
130 * Gets the proposed rotation.
132 * This method only returns a rotation if the orientation listener is certain
133 * of its proposal. If the rotation is indeterminate, returns -1.
135 * @return The proposed rotation, or -1 if unknown.
152 * Called when the rotation vie
161 onProposedRotationChanged(int rotation) argument
562 updateProposal(int rotation, long timestampMS, float magnitude, int tiltAngle, int orientationAngle) argument
[all...]
H A DIWindowManager.aidl167 * Update the current screen rotation based on the current state of
182 * Watch the rotation of the screen. Returns the current rotation,
195 * Lock the device orientation to the specified rotation, or to the
196 * current rotation if -1. Sensor input will be ignored until
200 void freezeRotation(int rotation);
H A DViewPropertyAnimator.java409 * This method will cause the View's <code>rotation</code> property to be animated to the
416 public ViewPropertyAnimator rotation(float value) { method in class:ViewPropertyAnimator
422 * This method will cause the View's <code>rotation</code> property to be animated by the
H A DView.java540 * rotation, translation and alpha of a view over time. If the animation is
2051 * based on the rotation, scaleX, and scaleY properties. The identity matrix
2054 * to get the correct matrix based on the latest rotation and scale properties.
2060 * based on the rotation, scaleX, and scaleY properties. The identity matrix
2063 * to get the correct matrix based on the latest rotation and scale properties.
2069 * transform matrix, based on whether the rotation or scaleX/Y properties
2076 * transform matrix, based on whether the rotation or scaleX/Y properties
2083 * transform matrix, based on whether the rotation or scaleX/Y properties
2102 * pivot point is only used in matrix operations (when rotation, scale, or translation are
2109 * The degrees rotation aroun
7238 setRotation(float rotation) argument
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DScreenRotationAnimation.java67 // Screenshot does NOT include rotation!
148 public static void createRotationMatrix(int rotation, int width, int height, argument
150 switch (rotation) {
170 public void setRotation(int rotation) { argument
171 mCurRotation = rotation;
175 // with the current screen rotation.
176 int delta = deltaRotation(rotation, mSnapshotRotation);
193 // Figure out how the screen has moved from the original rotation.
H A DInputManager.java70 private static native void nativeSetDisplayOrientation(int displayId, int rotation); argument
170 public void setDisplayOrientation(int displayId, int rotation) { argument
171 if (rotation < Surface.ROTATION_0 || rotation > Surface.ROTATION_270) {
172 throw new IllegalArgumentException("Invalid rotation.");
176 Slog.d(TAG, "Setting display #" + displayId + " orientation to " + rotation);
178 nativeSetDisplayOrientation(displayId, rotation);
H A DWindowManagerService.java205 * Layer at which to put the rotation freeze snapshot.
231 * management of the screen during rotation.
478 // perform a rotation animation when turning off shows the lock screen which
5134 // The screenshot API does not apply the current screen rotation.
5198 * Freeze rotation changes. (Enable "rotation lock".)
5200 * @param rotation The desired rotation to freeze to, or -1 to use the
5201 * current rotation.
5203 public void freezeRotation(int rotation) { argument
5864 reduceConfigWidthSize(int curSize, int rotation, float density, int dw, int dh) argument
5872 reduceConfigLayout(int curLayout, int rotation, float density, int dw, int dh) argument
5979 reduceCompatConfigWidthSize(int curSize, int rotation, DisplayMetrics dm, int dw, int dh) argument
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTextureViewActivity.java125 int rotation = getWindowManager().getDefaultDisplay().getRotation();
128 switch (rotation) {
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeWindowManager.java56 public BridgeWindowManager(Configuration config, DisplayMetrics metrics, int rotation) { argument
59 mRotation = rotation;
/frameworks/media/libvideoeditor/lvpp/
H A DVideoEditorTools.h152 M4OSA_UInt32 width, M4OSA_UInt32 height, M4OSA_UInt32 rotation);
H A DVideoEditorTools.cpp1989 M4OSA_Bool m_bRevertXY; /**< Depend on output orientation, used during processing to revert X and Y processing order (+-90° rotation) */
2400 /**< No +-90° rotation */
2446 /**< Here we have a +-90° rotation */
2483 /**No +-90° rotation */
2560 /** +-90° rotation */
2647 /**No +-90° rotation */
2729 /** +-90° rotation */
3686 /**< As we have a -90° rotation, first needed pixel is the upper-right one */
3723 /**< As we have a +90° rotation, first needed pixel is the left-down one */
3832 M4OSA_UInt32 height, M4OSA_UInt32 rotation) {
3831 applyVideoRotation(M4OSA_Void* pBuffer, M4OSA_UInt32 width, M4OSA_UInt32 height, M4OSA_UInt32 rotation) argument
[all...]
/frameworks/base/core/java/android/hardware/
H A DCamera.java983 * Set the clockwise rotation of preview display in degrees. This affects
986 * front-facing cameras is flipped horizontally before the rotation, that
1002 * int rotation = activity.getWindowManager().getDefaultDisplay()
1005 * switch (rotation) {
1171 * the sensor sees. The direction is not affected by the rotation or
1469 private static final String KEY_ROTATION = "rotation";
2358 * Sets the rotation angle in degrees relative to the orientation of
2372 * of the two is the rotation angle for back-facing camera. The
2373 * difference of the two is the rotation angle for front-facing camera.
2382 * orientation is 90. The rotation shoul
2410 setRotation(int rotation) argument
[all...]
H A DSensorManager.java644 public void onRotationChanged(int rotation) {
645 SensorManager.this.onRotationChanged(rotation);
1192 * Computes the inclination matrix <b>I</b> as well as the rotation matrix
1227 * <b>I</b> is a rotation matrix transforming the geomagnetic vector into
1229 * <b>I</b> is a simple rotation around the X axis. The inclination angle in
1252 * rotation matrix, its transpose is also its inverse, conveniently, it is
1253 * often the inverse of the rotation that is needed for rendering; it can
1286 * is an array of 9 floats holding the rotation matrix <b>R</b> when
1291 * is an array of 9 floats holding the rotation matrix <b>I</b> when
1410 * Rotates the supplied rotation matri
1664 onRotationChanged(int rotation) argument
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DPhoneWindowManager.java436 int mLandscapeRotation = 0; // default landscape rotation
437 int mSeascapeRotation = 0; // "other" landscape rotation, 180 degrees from mLandscapeRotation
438 int mPortraitRotation = 0; // default portrait rotation
439 int mUpsideDownRotation = 0; // "other" portrait rotation
506 public void onProposedRotationChanged(int rotation) { argument
507 if (localLOGV) Log.v(TAG, "onProposedRotationChanged, rotation=" + rotation);
515 * the user has explicitly disabled sensor based rotation or when the
831 // Controls rotation and the like.
923 // set up rotation loc
1217 getNonDecorDisplayWidth(int fullWidth, int fullHeight, int rotation) argument
1225 getNonDecorDisplayHeight(int fullWidth, int fullHeight, int rotation) argument
1232 getConfigDisplayWidth(int fullWidth, int fullHeight, int rotation) argument
1236 getConfigDisplayHeight(int fullWidth, int fullHeight, int rotation) argument
3287 rotationHasCompatibleMetricsLw(int orientation, int rotation) argument
3305 setRotationLw(int rotation) argument
3309 isLandscapeOrSeascape(int rotation) argument
3313 isAnyPortrait(int rotation) argument
[all...]
H A DPhoneWindow.java3424 public void onRotationChanged(int rotation) throws RemoteException { argument
3436 Log.e(TAG, "Couldn't start watching for device rotation", ex);
/frameworks/base/libs/hwui/
H A DDisplayListRenderer.cpp275 float rotation = getFloat(); local
276 LOGD("%s%s %.2f", (char*) indent, OP_NAMES[op], rotation);
607 float rotation = getFloat(); local
608 DISPLAY_LIST_LOGD("%s%s %.2f", (char*) indent, OP_NAMES[op], rotation);
609 renderer.rotate(rotation);
/frameworks/base/opengl/libagl/
H A Dmatrix.cpp333 matrixf_t rotation; local
334 GLfloat* r = rotation.m;
377 multiply(rotation);
/frameworks/base/core/java/android/widget/
H A DStackView.java1371 float rotation = v.getRotation();
1380 v.setRotation(rotation);
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A Dcarousel.rs186 float cardRotation; // rotation of card in XY plane relative to Z=1
188 float swaySensitivity; // how much to rotate cards in relation to the rotation velocity
226 static float bias; // rotation bias, in radians. Used for animation and dragging.
423 // convert from carousel rotation angle (in card slot units) to radians.
429 // convert from radians to carousel rotation angle (in card slot units).
677 float rotation = cardRotation + swayAngle + tiltAngle;
679 rotation -= theta;
681 rsMatrixRotate(matrix, degrees(rotation), 0, 1, 0);

Completed in 549 milliseconds