/frameworks/av/camera/camera2/ |
H A D | OutputConfiguration.cpp | 50 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 D | SurfaceUtils.cpp | 29 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 D | VideoTrackDecoder.java | 43 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 D | CpuVideoTrackDecoder.java | 102 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 D | GpuVideoTrackDecoder.java | 146 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 D | AccessibilityNodeInfoDumper.java | 48 * @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 D | UiAutomatorBridge.java | 73 public boolean setRotation(int rotation) { argument 74 return mUiAutomation.setRotation(rotation);
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | OutputConfiguration.java | 40 * 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 D | RotationPolicy.java | 39 * 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 D | Rectangle.java | 45 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 D | EmulatorDisplayOverlay.java | 117 void positionSurface(int dw, int dh, int rotation) { argument 118 if (mLastDW == dw && mLastDH == dh && mRotation == rotation) { 124 mRotation = rotation;
|
H A D | CircularDisplayMask.java | 146 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 D | Camera3IOStreamBase.cpp | 34 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 D | Camera3OutputStream.cpp | 37 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 D | BitmapUtils.java | 178 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 D | ViewPropertyAnimatorCompatICS.java | 61 public static void rotation(View view, float value) { method in class:ViewPropertyAnimatorCompatICS 62 view.animate().rotation(value);
|
/frameworks/av/media/libstagefright/colorconversion/ |
H A D | SoftwareRenderer.cpp | 42 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 D | UiAutomationConnection.java | 126 public boolean setRotation(int rotation) { argument 134 if (rotation == UiAutomation.ROTATION_UNFREEZE) { 137 mWindowManager.freezeRotation(rotation);
|
/frameworks/base/core/java/android/hardware/ |
H A D | LegacySensorManager.java | 57 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 D | WindowManagerInternal.java | 74 * 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 D | DisplayDeviceInfo.java | 40 * 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 D | VideoCallImpl.java | 244 public void setDeviceOrientation(int rotation) { argument 246 mVideoProvider.setDeviceOrientation(rotation);
|
/frameworks/native/libs/gui/ |
H A D | ISurfaceComposer.cpp | 106 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 D | GLES11RenderEngine.cpp | 73 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 D | GLES20RenderEngine.cpp | 80 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
|