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

123

/frameworks/av/camera/camera2/
H A DOutputConfiguration.cpp50 int rotation = 0; local
51 if ((err = parcel.readInt32(&rotation)) != OK) {
52 ALOGE("%s: Failed to read rotation from parcel", __FUNCTION__);
62 mRotation = rotation;
68 OutputConfiguration::OutputConfiguration(sp<IGraphicBufferProducer>& gbp, int rotation) { argument
70 mRotation = rotation;
/frameworks/av/media/libstagefright/
H A DSurfaceUtils.cpp29 int width, int height, int format, int rotation, int usage) {
43 if ((rotation % 90) == 0) {
44 switch ((rotation / 90) & 3) {
98 ALOGD("set up nativeWindow %p for %dx%d, color %#x, rotation %d, usage %#x",
99 nativeWindow, width, height, format, rotation, finalUsage);
27 setNativeWindowSizeFormatAndUsage( ANativeWindow *nativeWindow , int width, int height, int format, int rotation, int usage) 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/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/android/hardware/camera2/params/
H A DOutputConfiguration.java40 * Rotation constant: 0 degree rotation (no rotation)
45 * Rotation constant: 90 degree counterclockwise rotation.
50 * Rotation constant: 180 degree counterclockwise rotation.
55 * Rotation constant: 270 degree counterclockwise rotation.
77 * <p>This constructor takes an argument for desired camera rotation</p>
81 * @param rotation
82 * The desired rotation to be applied on camera output. Value must be one of
83 * ROTATION_[0, 90, 180, 270]. Note that when the rotation is 90 or 270 degree,
85 * transposed corresponding to the width and height without rotation
92 OutputConfiguration(Surface surface, int rotation) argument
[all...]
/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.java117 void positionSurface(int dw, int dh, int rotation) { argument
118 if (mLastDW == dw && mLastDH == dh && mRotation == rotation) {
124 mRotation = rotation;
H A DCircularDisplayMask.java146 void positionSurface(int dw, int dh, int rotation) { argument
147 if (mLastDW == dw && mLastDH == dh && mRotation == rotation) {
153 mRotation = rotation;
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3IOStreamBase.cpp34 android_dataspace dataSpace, camera3_stream_rotation_t rotation) :
36 width, height, maxSize, format, dataSpace, rotation),
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) argument
H A DCamera3OutputStream.cpp37 android_dataspace dataSpace, camera3_stream_rotation_t rotation) :
39 /*maxSize*/0, format, dataSpace, rotation),
53 android_dataspace dataSpace, camera3_stream_rotation_t rotation) :
55 format, dataSpace, rotation),
76 camera3_stream_rotation_t rotation) :
79 format, dataSpace, rotation),
34 Camera3OutputStream(int id, sp<Surface> consumer, uint32_t width, uint32_t height, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation) argument
50 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) argument
72 Camera3OutputStream(int id, camera3_stream_type_t type, uint32_t width, uint32_t height, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation) argument
/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/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/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/base/core/java/android/app/
H A DUiAutomationConnection.java126 public boolean setRotation(int rotation) { argument
134 if (rotation == UiAutomation.ROTATION_UNFREEZE) {
137 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/view/
H A DWindowManagerInternal.java74 * Notifies that the rotation changed.
76 * @param rotation The current rotation.
78 public void onRotationChanged(int rotation); argument
131 * rotation, and other window transformations related to display magnification
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayDeviceInfo.java40 * rotation of its associated logical display.
133 * This value is not affected by display rotation.
139 * This value is not affected by display rotation.
203 * The additional rotation to apply to all content presented on the display device
211 public int rotation = Surface.ROTATION_0; field in class:DisplayDeviceInfo
286 || rotation != other.rotation
316 rotation = other.rotation;
339 sb.append(", rotation ")
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DVideoCallImpl.java244 public void setDeviceOrientation(int rotation) { argument
246 mVideoProvider.setDeviceOrientation(rotation);
/frameworks/native/libs/gui/
H A DISurfaceComposer.cpp106 ISurfaceComposer::Rotation rotation)
118 data.writeInt32(static_cast<int32_t>(rotation));
363 int32_t rotation = data.readInt32(); local
368 static_cast<ISurfaceComposer::Rotation>(rotation));
101 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.cpp73 Transform::orientation_flags rotation) {
91 switch (rotation) {
71 setViewportAndProjection( size_t vpw, size_t vph, Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) argument
H A DGLES20RenderEngine.cpp80 Transform::orientation_flags rotation) {
96 // Apply custom rotation to the projection.
98 switch (rotation) {
78 setViewportAndProjection( size_t vpw, size_t vph, Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) argument

Completed in 685 milliseconds

123