Searched defs:rotation (Results 1 - 25 of 58) sorted by relevance

123

/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 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...]
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...]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
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));
H A DUiAutomatorBridge.java73 public boolean setRotation(int rotation) { argument
74 return mUiAutomation.setRotation(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/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/services/core/java/com/android/server/wm/
H A DCircularDisplayMask.java144 void positionSurface(int dw, int dh, int rotation) { argument
145 if (mLastDW == dw && mLastDH == dh && mRotation == rotation) {
151 mRotation = rotation;
H A DEmulatorDisplayOverlay.java116 void positionSurface(int dw, int dh, int rotation) { argument
117 if (mLastDW == dw && mLastDH == dh && mRotation == rotation) {
123 mRotation = rotation;
/frameworks/base/core/java/android/app/
H A DUiAutomationConnection.java122 public boolean setRotation(int rotation) { argument
130 if (rotation == UiAutomation.ROTATION_UNFREEZE) {
133 mWindowManager.freezeRotation(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/core/java/android/view/
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
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...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DBitmapUtils.java179 public static Bitmap rotateBitmap(Bitmap source, int rotation, boolean recycle) { argument
180 if (rotation == 0) return source;
184 m.postRotate(rotation);
/frameworks/support/v4/ics/android/support/v4/view/
H A DViewPropertyAnimatorCompatICS.java61 public static void rotation(View view, float value) { method in class:ViewPropertyAnimatorCompatICS
62 view.animate().rotation(value);
/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
/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/base/telecomm/java/android/telecom/
H A DVideoCallImpl.java193 public void setDeviceOrientation(int rotation) { argument
195 mVideoProvider.setDeviceOrientation(rotation);
/frameworks/native/libs/gui/
H A DISurfaceComposer.cpp111 ISurfaceComposer::Rotation rotation)
123 data.writeInt32(static_cast<int32_t>(rotation));
361 uint32_t rotation = data.readInt32(); local
366 static_cast<ISurfaceComposer::Rotation>(rotation));
106 captureScreen(const sp<IBinder>& display, const sp<IGraphicBufferProducer>& producer, Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight, uint32_t minLayerZ, uint32_t maxLayerZ, bool useIdentityTransform, ISurfaceComposer::Rotation rotation) argument
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DGLES11RenderEngine.cpp79 Transform::orientation_flags rotation) {
97 switch (rotation) {
77 setViewportAndProjection( size_t vpw, size_t vph, Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) argument
H A DGLES20RenderEngine.cpp86 Transform::orientation_flags rotation) {
102 // Apply custom rotation to the projection.
104 switch (rotation) {
84 setViewportAndProjection( size_t vpw, size_t vph, Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) argument
/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
H A DImsVideoCallProviderWrapper.java191 public void onSetDeviceOrientation(int rotation) { argument
193 mVideoCallProvider.setDeviceOrientation(rotation);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DQSTileHost.java93 RotationLockController rotation, NetworkController network,
102 mRotation = rotation;
259 else if (tileSpec.equals("rotation")) return new RotationLockTile(this);
91 QSTileHost(Context context, PhoneStatusBar statusBar, BluetoothController bluetooth, LocationController location, RotationLockController rotation, NetworkController network, ZenModeController zen, HotspotController hotspot, CastController cast, FlashlightController flashlight, UserSwitcherController userSwitcher, KeyguardMonitor keyguard, SecurityController security) argument
/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...]

Completed in 512 milliseconds

123