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

1234

/frameworks/av/media/libstagefright/
H A DSurfaceUtils.cpp29 int width, int height, int format, int rotation, int usage, bool reconnect) {
60 if ((rotation % 90) == 0) {
61 switch ((rotation / 90) & 3) {
116 ALOGD("set up nativeWindow %p for %dx%d, color %#x, rotation %d, usage %#x",
117 nativeWindow, width, height, format, rotation, finalUsage);
27 setNativeWindowSizeFormatAndUsage( ANativeWindow *nativeWindow , int width, int height, int format, int rotation, int usage, bool reconnect) argument
/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/av/camera/camera2/
H A DOutputConfiguration.cpp73 int rotation = 0; local
77 if ((err = parcel->readInt32(&rotation)) != OK) {
78 ALOGE("%s: Failed to read rotation from parcel", __FUNCTION__);
121 mRotation = rotation;
127 ALOGV("%s: OutputConfiguration: bp = %p, name = %s, rotation = %d, setId = %d,"
134 OutputConfiguration::OutputConfiguration(sp<IGraphicBufferProducer>& gbp, int rotation, argument
137 mRotation = rotation;
/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 DEmulatorDisplayOverlay.java121 void positionSurface(int dw, int dh, int rotation) { argument
122 if (mLastDW == dw && mLastDH == dh && mRotation == rotation) {
128 mRotation = rotation;
H A DCircularDisplayMask.java149 void positionSurface(int dw, int dh, int rotation) { argument
150 if (mLastDW == dw && mLastDH == dh && mRotation == rotation) {
156 mRotation = rotation;
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DBitmapUtils.java178 public static Bitmap rotateBitmap(Bitmap source, int rotation, boolean recycle) { argument
179 if (rotation == 0) return source;
183 m.postRotate(rotation);
/frameworks/base/services/core/java/com/android/server/audio/
H A DRotationHelper.java30 * Class to handle device rotation events for AudioService, and forward device rotation
33 * The role of this class is to monitor device orientation changes, and upon rotation,
38 * query the display rotation so audio stays in sync with video/dialogs. This is
95 * Query current display rotation and publish the change if any.
99 // use display rotation so audio stays in sync with video/dialogs
110 private static void publishRotation(int rotation) { argument
111 Log.v(TAG, "publishing device rotation =" + rotation + " (x90deg)");
112 switch (rotation) {
154 onProposedRotationChanged(int rotation) argument
[all...]
/frameworks/support/compat/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/av/media/libstagefright/colorconversion/
H A DSoftwareRenderer.cpp42 const sp<ANativeWindow> &nativeWindow, int32_t rotation)
55 mRotationDegrees(rotation) {
185 if (!format->findInt32("rotation-degrees", &rotationDegrees)) {
41 SoftwareRenderer( const sp<ANativeWindow> &nativeWindow, int32_t rotation) argument
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3IOStreamBase.cpp34 android_dataspace dataSpace, camera3_stream_rotation_t rotation, int setId) :
36 width, height, maxSize, format, dataSpace, rotation, setId),
32 Camera3IOStreamBase(int id, camera3_stream_type_t type, uint32_t width, uint32_t height, size_t maxSize, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, int setId) argument
H A DCamera3OutputStream.cpp37 android_dataspace dataSpace, camera3_stream_rotation_t rotation,
40 /*maxSize*/0, format, dataSpace, rotation, setId),
61 android_dataspace dataSpace, camera3_stream_rotation_t rotation,
64 format, dataSpace, rotation, setId),
92 camera3_stream_rotation_t rotation, nsecs_t timestampOffset, int setId) :
94 /*maxSize*/0, format, dataSpace, rotation, setId),
126 camera3_stream_rotation_t rotation,
130 format, dataSpace, rotation, setId),
34 Camera3OutputStream(int id, sp<Surface> consumer, uint32_t width, uint32_t height, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, nsecs_t timestampOffset, int setId) argument
58 Camera3OutputStream(int id, sp<Surface> consumer, uint32_t width, uint32_t height, size_t maxSize, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, nsecs_t timestampOffset, int setId) argument
89 Camera3OutputStream(int id, uint32_t width, uint32_t height, int format, uint32_t consumerUsage, android_dataspace dataSpace, camera3_stream_rotation_t rotation, nsecs_t timestampOffset, int setId) argument
122 Camera3OutputStream(int id, camera3_stream_type_t type, uint32_t width, uint32_t height, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, int setId) argument
/frameworks/base/core/java/android/app/
H A DUiAutomationConnection.java129 public boolean setRotation(int rotation) { argument
137 if (rotation == UiAutomation.ROTATION_UNFREEZE) {
140 mWindowManager.freezeRotation(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
/frameworks/base/core/java/android/hardware/camera2/params/
H A DOutputConfiguration.java46 * Rotation constant: 0 degree rotation (no rotation)
54 * Rotation constant: 90 degree counterclockwise rotation.
62 * Rotation constant: 180 degree counterclockwise rotation.
70 * Rotation constant: 270 degree counterclockwise rotation.
152 * <p>This constructor takes an argument for desired camera rotation</p>
156 * @param rotation
157 * The desired rotation to be applied on camera output. Value must be one of
158 * ROTATION_[0, 90, 180, 270]. Note that when the rotation is 90 or 270 degrees,
160 * transposed relative to the width and height without rotation
168 OutputConfiguration(@onNull Surface surface, int rotation) argument
195 OutputConfiguration(int surfaceGroupId, @NonNull Surface surface, int rotation) argument
[all...]
/frameworks/base/core/java/android/view/
H A DWindowManagerInternal.java76 * Notifies that the rotation changed.
78 * @param rotation The current rotation.
80 public void onRotationChanged(int rotation); argument
140 * rotation, and other window transformations related to display magnification
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSystemUIFactory.java107 RotationLockController rotation, NetworkController network,
114 return new QSTileHost(context, statusBar, bluetooth, location, rotation, network, zen,
105 createQSTileHost(Context context, PhoneStatusBar statusBar, BluetoothController bluetooth, LocationController location, RotationLockController rotation, NetworkController network, ZenModeController zen, HotspotController hotspot, CastController cast, FlashlightController flashlight, UserSwitcherController userSwitcher, UserInfoController userInfo, KeyguardMonitor keyguard, SecurityController security, BatteryController battery, StatusBarIconController iconController, NextAlarmController nextAlarmController) argument
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayDeviceInfo.java40 * rotation of its associated logical display.
138 * This value is not affected by display rotation.
144 * This value is not affected by display rotation.
219 * The additional rotation to apply to all content presented on the display device
227 public int rotation = Surface.ROTATION_0; field in class:DisplayDeviceInfo
307 || rotation != other.rotation
340 rotation = other.rotation;
366 sb.append(", rotation ")
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DVideoCallImpl.java265 public void setDeviceOrientation(int rotation) { argument
267 mVideoProvider.setDeviceOrientation(rotation);
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DRenderNode_Delegate.java146 /*package*/ static boolean nSetRotation(long renderNode, float rotation) { argument
148 if (delegate != null && delegate.mRotation != rotation) {
149 delegate.mRotation = rotation;
168 float rotation = renderNode.getRotation();
177 outMatrix.preRotate(rotation, pivotX, pivotY);

Completed in 2452 milliseconds

1234