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

12

/frameworks/base/core/java/android/view/
H A DIRotationWatcher.aidl24 void onRotationChanged(int rotation);
H A DWindowOrientationListener.java124 * Sets the current rotation.
126 * @param rotation The current rotation.
128 public void setCurrentRotation(int rotation) { argument
129 mCurrentRotation = rotation;
133 * Gets the proposed rotation.
135 * This method only returns a rotation if the orientation listener is certain
136 * of its proposal. If the rotation is indeterminate, returns -1.
138 * @return The proposed rotation, or -1 if unknown.
155 * Called when the rotation vie
164 onProposedRotationChanged(int rotation) argument
551 isTiltAngleAcceptable(int rotation, int tiltAngle) argument
562 isOrientationAngleAcceptable(int rotation, int orientationAngle) argument
655 updatePredictedRotation(long now, int rotation) argument
[all...]
H A DIDisplayContentChangeListener.aidl32 void onRotationChanged(int rotation);
H A DDisplayInfo.java112 * The rotation of the display relative to its natural orientation.
121 public int rotation; field in class:DisplayInfo
199 && rotation == other.rotation
225 rotation = other.rotation;
246 rotation = source.readInt();
268 dest.writeInt(rotation);
316 + ", rotation " + rotation
[all...]
H A DDisplayList.java190 * Sets the rotation value for the DisplayList
192 * @param rotation The rotation value of the DisplayList
195 public abstract void setRotation(float rotation); argument
235 * @param rotation The rotation value of the DisplayList
242 float rotation, float rotationX, float rotationY, float scaleX, float scaleY);
241 setTransformationInfo(float alpha, float translationX, float translationY, float rotation, float rotationX, float rotationY, float scaleX, float scaleY) argument
H A DWindowManagerPolicy.java471 /** When not otherwise specified by the activity's screenOrientation, rotation should be
474 /** When not otherwise specified by the activity's screenOrientation, rotation is set by
589 public int getNonDecorDisplayWidth(int fullWidth, int fullHeight, int rotation); argument
596 public int getNonDecorDisplayHeight(int fullWidth, int fullHeight, int rotation); argument
604 public int getConfigDisplayWidth(int fullWidth, int fullHeight, int rotation); argument
612 public int getConfigDisplayHeight(int fullWidth, int fullHeight, int rotation); argument
785 * @param displayRotation The current rotation being applied to the base
988 * Given an orientation constant, returns the appropriate surface rotation,
989 * taking into account sensors, docking mode, rotation lock, and other factors.
993 * @param lastRotation The most recently used rotation
1011 rotationHasCompatibleMetricsLw(int orientation, int rotation) argument
1018 setRotationLw(int rotation) argument
1087 setUserRotationMode(int mode, int rotation) argument
[all...]
H A DGLES20DisplayList.java184 public void setRotation(float rotation) { argument
186 nSetRotation(mFinalizer.mNativeDisplayList, rotation);
220 float rotation, float rotationX, float rotationY, float scaleX, float scaleY) {
223 rotation, rotationX, rotationY, scaleX, scaleY);
324 private static native void nSetRotation(int displayList, float rotation); argument
330 float translationX, float translationY, float rotation, float rotationX,
219 setTransformationInfo(float alpha, float translationX, float translationY, float rotation, float rotationX, float rotationY, float scaleX, float scaleY) argument
329 nSetTransformationInfo(int displayList, float alpha, float translationX, float translationY, float rotation, float rotationX, float rotationY, float scaleX, float scaleY) argument
H A DDisplay.java331 * The size is adjusted based on the current rotation of the display.
370 * each rotation. For example, the status bar is always at the top of the
376 * stable UI through rotation. The sizes here take into account all standard
440 * Returns the rotation of the screen from its "natural" orientation.
442 * (no rotation), {@link Surface#ROTATION_90 Surface.ROTATION_90},
449 * the direction it was turned. The angle is the rotation of the drawn
451 * rotation of the device. For example, if the device is rotated 90
459 return mDisplayInfo.rotation;
497 * The size is adjusted based on the current rotation of the display.
519 * The size is adjusted based on the current rotation o
[all...]
H A DIWindowManager.aidl149 * Update the current screen rotation based on the current state of
155 * of its windows even if the rotation hasn't changed.
166 * Watch the rotation of the screen. Returns the current rotation,
179 * Lock the device orientation to the specified rotation, or to the
180 * current rotation if -1. Sensor input will be ignored until
184 void freezeRotation(int rotation);
/frameworks/base/services/java/com/android/server/display/
H A DDisplayDeviceInfo.java37 * rotation of its associated logical display.
86 * This value is not affected by display rotation.
92 * This value is not affected by display rotation.
132 * The additional rotation to apply to all content presented on the display device
140 public int rotation = Surface.ROTATION_0; field in class:DisplayDeviceInfo
177 && rotation == other.rotation
197 rotation = other.rotation;
209 + ", rotation "
[all...]
H A DLogicalDisplay.java126 * This method can be used to adjust application insets, rotation, and other
199 mBaseDisplayInfo.rotation = Surface.ROTATION_0;
250 orientation = displayInfo.rotation;
253 // Apply the physical rotation of the display device itself.
254 orientation = (orientation + displayDeviceInfo.rotation) % 4;
H A DLocalDisplayAdapter.java155 // For demonstration purposes, allow rotation of the external display.
158 mInfo.rotation = Surface.ROTATION_270;
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
H A DRectangle.java45 public static Rectangle fromRotatedRect(Point center, Point size, float rotation) { argument
50 return new Rectangle(p0.rotatedAround(center, rotation),
51 p1.rotatedAround(center, rotation),
52 p2.rotatedAround(center, rotation),
53 p3.rotatedAround(center, rotation));
/frameworks/base/core/jni/
H A Dandroid_view_GLES20DisplayList.cpp89 jobject clazz, DisplayList* displayList, float rotation) {
90 displayList->setRotation(rotation);
115 float translationX, float translationY, float rotation, float rotationX, float rotationY,
120 displayList->setRotation(rotation);
88 android_view_GLES20DisplayList_setRotation(JNIEnv* env, jobject clazz, DisplayList* displayList, float rotation) argument
113 android_view_GLES20DisplayList_setTransformationInfo(JNIEnv* env, jobject clazz, DisplayList* displayList, float alpha, float translationX, float translationY, float rotation, float rotationX, float rotationY, float scaleX, float scaleY) argument
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTextureViewActivity.java125 int rotation = getWindowManager().getDefaultDisplay().getRotation();
128 switch (rotation) {
/frameworks/base/core/java/android/hardware/
H A DLegacySensorManager.java57 public void onRotationChanged(int rotation) {
58 LegacySensorManager.onRotationChanged(rotation);
193 static void onRotationChanged(int rotation) { argument
195 sRotation = rotation;
315 // handles 90 and 270 rotation
335 // handles 180 (flip) and 270 (flip + 90) rotation
H A DCamera.java1132 * Set the clockwise rotation of preview display in degrees. This affects
1135 * front-facing cameras is flipped horizontally before the rotation, that
1151 * int rotation = activity.getWindowManager().getDefaultDisplay()
1154 * switch (rotation) {
1360 * the sensor sees. The direction is not affected by the rotation or
1676 private static final String KEY_ROTATION = "rotation";
2607 * Sets the clockwise rotation angle in degrees relative to the
2621 * of the two is the rotation angle for back-facing camera. The
2622 * difference of the two is the rotation angle for front-facing camera.
2631 * orientation is 90. The rotation shoul
2659 setRotation(int rotation) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DIWindowManagerImpl.java55 public IWindowManagerImpl(Configuration config, DisplayMetrics metrics, int rotation, argument
59 mRotation = rotation;
/frameworks/base/services/java/com/android/server/wm/
H A DScreenRotationAnimation.java63 // animation applies a transformation while the rotation is in progress.
74 // It starts running once the new rotation UI elements are ready to be
94 // to switch to a new rotation before finishing the previous one.
199 // Screenshot does NOT include rotation!
288 public static void createRotationMatrix(int rotation, int width, int height, argument
290 switch (rotation) {
310 private void setRotationInTransaction(int rotation) { argument
311 mCurRotation = rotation;
315 // with the current screen rotation.
316 int delta = deltaRotation(rotation, Surfac
324 setRotationInTransaction(int rotation, SurfaceSession session, long maxAnimationDuration, float animationScale, int finalWidth, int finalHeight) argument
[all...]
H A DWindowManagerService.java244 * Layer at which to put the rotation freeze snapshot.
273 * management of the screen during rotation.
482 // perform a rotation animation when turning off shows the lock screen which
5832 // The screenshot API does not apply the current screen rotation.
5897 * Freeze rotation changes. (Enable "rotation lock".)
5899 * @param rotation The desired rotation to freeze to, or -1 to use the
5900 * current rotation.
5902 public void freezeRotation(int rotation) { argument
6581 scheduleNotifyRotationChangedIfNeededLocked(DisplayContent displayContent, int rotation) argument
6590 handleNotifyRotationChanged(int displayId, int rotation) argument
6739 adjustDisplaySizeRanges(DisplayInfo displayInfo, int rotation, int dw, int dh) argument
6757 reduceConfigLayout(int curLayout, int rotation, float density, int dw, int dh) argument
6810 reduceCompatConfigWidthSize(int curSize, int rotation, DisplayMetrics dm, int dw, int dh) argument
[all...]
/frameworks/av/libvideoeditor/lvpp/
H A DVideoEditorTools.h152 M4OSA_UInt32 width, M4OSA_UInt32 height, M4OSA_UInt32 rotation);
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DPhoneWindowManager.java452 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) { argument
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 o
1450 getNonDecorDisplayWidth(int fullWidth, int fullHeight, int rotation) argument
1461 getNonDecorDisplayHeight(int fullWidth, int fullHeight, int rotation) argument
1476 getConfigDisplayWidth(int fullWidth, int fullHeight, int rotation) argument
1480 getConfigDisplayHeight(int fullWidth, int fullHeight, int rotation) argument
4072 rotationHasCompatibleMetricsLw(int orientation, int rotation) argument
4090 setRotationLw(int rotation) argument
4094 isLandscapeOrSeascape(int rotation) argument
4098 isAnyPortrait(int rotation) argument
[all...]
/frameworks/base/services/java/com/android/server/accessibility/
H A DScreenMagnifier.java942 public void onRotationChanged(int rotation) throws RemoteException {
943 mHandler.obtainMessage(MESSAGE_ON_ROTATION_CHANGED, rotation, 0)
972 private void handleOnRotationChanged(int rotation) { argument
974 Slog.i(LOG_TAG, "Rotation: " + rotationToString(rotation));
1182 private String rotationToString(int rotation) { argument
1183 switch (rotation) {
1197 throw new IllegalArgumentException("Invalid rotation: "
1198 + rotation);
1227 final int rotation = message.arg1;
1228 handleOnRotationChanged(rotation);
[all...]
/frameworks/base/libs/hwui/
H A DDisplayListRenderer.h210 void setRotation(float rotation) { argument
211 if (rotation != mRotation) {
212 mRotation = rotation;
/frameworks/ex/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java140 // To support rotation
143 /** The current rotation amount, in degrees */
774 // re-apply any rotation
899 * @param animate if {@code true}, animate during the rotation. Otherwise, snap rotate.
1213 * Runnable that animates an image rotation operation.
1236 public void start(float rotation) { argument
1241 mTargetRotation = rotation;
1251 * Stops the animation in place. It does not snap the image to its final rotation.

Completed in 328 milliseconds

12