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

1234

/frameworks/base/core/java/android/view/
H A DIRotationWatcher.aidl24 void onRotationChanged(int rotation);
H A DWindowManagerPolicy.java468 /** When not otherwise specified by the activity's screenOrientation, rotation should be
471 /** When not otherwise specified by the activity's screenOrientation, rotation is set by
593 public int getNonDecorDisplayWidth(int fullWidth, int fullHeight, int rotation); argument
600 public int getNonDecorDisplayHeight(int fullWidth, int fullHeight, int rotation); argument
608 public int getConfigDisplayWidth(int fullWidth, int fullHeight, int rotation); argument
616 public int getConfigDisplayHeight(int fullWidth, int fullHeight, int rotation); argument
727 * Determine the animation to run for a rotation transition based on the
743 * @param forceDefault For rotation animations only, if true ignore the
831 * @param displayRotation The current rotation being applied to the base
1066 * Given an orientation constant, returns the appropriate surface rotation,
1090 rotationHasCompatibleMetricsLw(@ctivityInfo.ScreenOrientation int orientation, int rotation) argument
1098 setRotationLw(int rotation) argument
1178 setUserRotationMode(@serRotationMode int mode, @Surface.Rotation int rotation) argument
[all...]
H A DDisplayInfo.java145 * The rotation of the display relative to its natural orientation.
155 public int rotation; field in class:DisplayInfo
278 && rotation == other.rotation
314 rotation = other.rotation;
346 rotation = source.readInt();
379 dest.writeInt(rotation);
417 return rotation == Surface.ROTATION_0 || rotation
[all...]
H A DWindowManagerInternal.java74 * Notifies that the rotation changed.
76 * @param rotation The current rotation.
78 public void onRotationChanged(int rotation); argument
96 * rotation, and other window transformations related to display magnification
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DVideoTrackDecoder.java43 public void grabFrame(FrameImage2D outputVideoFrame, int rotation) { argument
51 copyFrameDataTo(outputVideoFrame, rotation);
87 protected static boolean needSwapDimension(int rotation) { argument
88 switch(rotation) {
96 throw new IllegalArgumentException("Unsupported rotation angle.");
104 * @param rotation The desired rotation of the frame
106 protected abstract void copyFrameDataTo(FrameImage2D outputVideoFrame, int rotation); argument
H A DGpuVideoTrackDecoder.java146 protected void copyFrameDataTo(FrameImage2D outputVideoFrame, int rotation) { argument
156 if (rotation != 0) {
157 float[] targetCoords = getRotationCoords(rotation);
159 if (needSwapDimension(rotation)) {
198 * Get the quad coords for rotation.
199 * @param rotation applied to the frame, value is one of
201 * @return coords the calculated quad coords for the given rotation
203 private static float[] getRotationCoords(int rotation) { argument
204 switch(rotation) {
214 throw new IllegalArgumentException("Unsupported rotation angl
[all...]
H A DCpuVideoTrackDecoder.java102 protected void copyFrameDataTo(FrameImage2D outputVideoFrame, int rotation) { argument
106 if (needSwapDimension(rotation)) {
117 if (rotation == MediaDecoder.ROTATE_NONE) {
123 // TODO: This could be optimized by including the rotation in the color conversion.
125 copyRotate(mUnrotatedBytes, outBytes, rotation);
131 * Copy the input data to the output data applying the specified rotation.
135 * @param rotation The rotation to apply
137 private void copyRotate(ByteBuffer input, ByteBuffer output, int rotation) { argument
141 switch (rotation) {
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DWindowOrientationListener.java139 * Sets the current rotation.
141 * @param rotation The current rotation.
143 public void setCurrentRotation(int rotation) { argument
145 mCurrentRotation = rotation;
150 * Gets the proposed rotation.
152 * This method only returns a rotation if the orientation listener is certain
153 * of its proposal. If the rotation is indeterminate, returns -1.
155 * @return The proposed rotation, or -1 if unknown.
176 * Called when the rotation vie
185 onProposedRotationChanged(int rotation) argument
630 isTiltAngleAcceptableLocked(int rotation, int tiltAngle) argument
641 isOrientationAngleAcceptableLocked(int rotation, int orientationAngle) argument
738 updatePredictedRotationLocked(long now, int rotation) argument
[all...]
/frameworks/base/core/java/android/hardware/input/
H A DIInputManager.aidl44 TouchCalibration getTouchCalibrationForInputDevice(String inputDeviceDescriptor, int rotation);
45 void setTouchCalibrationForInputDevice(String inputDeviceDescriptor, int rotation,
/frameworks/base/core/java/android/app/
H A DIUiAutomationConnection.aidl39 boolean setRotation(int rotation);
H A DUiAutomation.java86 /** Rotation constant: Unfreeze rotation (rotating the device changes its rotation state). */
89 /** Rotation constant: Freeze rotation to its current state. */
92 /** Rotation constant: Freeze rotation to 0 degrees (natural orientation) */
95 /** Rotation constant: Freeze rotation to 90 degrees . */
98 /** Rotation constant: Freeze rotation to 180 degrees . */
101 /** Rotation constant: Freeze rotation to 270 degrees . */
447 * Sets the device rotation. A client can freeze the rotation in
448 * desired state or freeze the rotation t
462 setRotation(int rotation) argument
[all...]
/frameworks/base/telecomm/java/com/android/internal/telecom/
H A DIVideoProvider.aidl36 void setDeviceOrientation(int rotation);
/frameworks/base/telephony/java/com/android/ims/internal/
H A DIImsVideoCallProvider.aidl51 void setDeviceOrientation(int rotation);
/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/packages/WallpaperCropper/src/com/android/photos/views/
H A DTiledImageView.java66 public int rotation; field in class:TiledImageView.ImageRendererWrapper
161 mRenderer.rotation = source != null ? source.getRotation() : 0;
250 final int rotation = mRenderer.source.getRotation();
251 final boolean swap = !(rotation % 180 == 0);
264 if (rotation == 90 || rotation == 180) {
269 if (rotation == 180 || rotation == 270) {
289 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation);
304 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation);
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DEmulatorDisplayOverlay.java116 void positionSurface(int dw, int dh, int rotation) { argument
117 if (mLastDW == dw && mLastDH == dh && mRotation == rotation) {
123 mRotation = rotation;
H A DCircularDisplayMask.java144 void positionSurface(int dw, int dh, int rotation) { argument
145 if (mLastDW == dw && mLastDH == dh && mRotation == rotation) {
151 mRotation = rotation;
/frameworks/base/core/java/com/android/internal/view/
H A DRotationPolicy.java39 * Provides helper functions for configuring the display rotation policy.
50 * Gets whether the device supports rotation. In general such a
55 * @return Whether the device supports rotation.
90 * Returns true if the rotation-lock toggle should be shown in system UI.
100 * Returns true if rotation lock is enabled.
108 * Enables or disables rotation lock from the system UI toggle.
115 final int rotation = areAllRotationsAllowed(context) ? CURRENT_ROTATION : NATURAL_ROTATION;
116 setRotationLock(enabled, rotation);
120 * Enables or disables natural rotation lock from Accessibility settings.
122 * If rotation i
136 setRotationLock(final boolean enabled, final int rotation) argument
[all...]
/frameworks/base/cmds/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/
H A DDumpCommand.java96 int rotation = display.getRotation();
99 AccessibilityNodeInfoDumper.dumpWindowToFile(info, dumpFile, rotation, size.x, size.y);
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayDeviceInfo.java41 * rotation of its associated logical display.
119 * This value is not affected by display rotation.
125 * This value is not affected by display rotation.
184 * The additional rotation to apply to all content presented on the display device
192 public int rotation = Surface.ROTATION_0; field in class:DisplayDeviceInfo
255 && rotation == other.rotation
282 rotation = other.rotation;
304 sb.append(", rotation ")
[all...]
/frameworks/opt/net/ims/src/java/com/android/ims/internal/
H A DImsVideoCallProvider.java111 public void setDeviceOrientation(int rotation) { argument
112 mProviderHandler.obtainMessage(MSG_SET_DEVICE_ORIENTATION, rotation).sendToTarget();
163 public abstract void onSetDeviceOrientation(int rotation); argument
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DDrawerArrowDrawable.java60 // the amount that overlaps w/ bar size when rotation is max
119 // The rotation of the top and bottom bars (that make the arrow head)
120 final float rotation = lerp(0, ARROW_HEAD_ANGLE, mProgress);
124 final float arrowWidth = Math.round(arrowSize * Math.cos(rotation));
125 final float arrowHeight = Math.round(arrowSize * Math.sin(rotation));
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiAutomatorBridge.java73 public boolean setRotation(int rotation) { argument
74 return mUiAutomation.setRotation(rotation);
H A DAccessibilityNodeInfoDumper.java48 * @param rotation The rotaion of current display
52 public static void dumpWindowToFile(AccessibilityNodeInfo root, int rotation, argument
63 rotation, width, height);
71 * @param rotation The rotaion of current display
75 public static void dumpWindowToFile(AccessibilityNodeInfo root, File dumpFile, int rotation, argument
88 serializer.attribute("", "rotation", Integer.toString(rotation));
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardFaceUnlockView.java57 public void onRotationChanged(int rotation) {
58 if (DEBUG) Log.d(TAG, "onRotationChanged(): " + mLastRotation + "->" + rotation);
60 // If the difference between the new rotation value and the previous rotation value is
61 // equal to 2, the rotation change was 180 degrees. This stops the biometric unlock
63 // since a 90 degree rotation is a configuration change, which takes care of this for
65 if (Math.abs(rotation - mLastRotation) == 2) {
71 mLastRotation = rotation;
126 Log.e(TAG, "Remote exception when removing rotation watcher");
143 Log.e(TAG, "Remote exception when removing rotation watche
[all...]

Completed in 1060 milliseconds

1234