/frameworks/base/core/java/android/view/ |
H A D | IRotationWatcher.aidl | 24 void onRotationChanged(int rotation);
|
H A D | DisplayInfo.java | 145 * The rotation of the display relative to its natural orientation. 155 public int rotation; field in class:DisplayInfo 297 && rotation == other.rotation 338 rotation = other.rotation; 375 rotation = source.readInt(); 421 dest.writeInt(rotation); 526 return rotation == Surface.ROTATION_0 || rotation [all...] |
/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 | 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...] |
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...] |
/frameworks/av/include/media/stagefright/ |
H A D | SurfaceUtils.h | 28 * Configures |nativeWindow| for given |width|x|height|, pixel |format|, |rotation| and |usage|. 34 int width, int height, int format, int rotation, int usage, bool reconnect);
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
H A D | SurfaceUtils.h | 28 * Configures |nativeWindow| for given |width|x|height|, pixel |format|, |rotation| and |usage|. 34 int width, int height, int format, int rotation, int usage, bool reconnect);
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
H A D | Screenshooter.java | 38 /** Rotation constant: Freeze rotation to 0 degrees (natural orientation) */ 41 /** Rotation constant: Freeze rotation to 90 degrees . */ 44 /** Rotation constant: Freeze rotation to 180 degrees . */ 47 /** Rotation constant: Freeze rotation to 270 degrees . */ 66 final int rotation = display.getRotation(); 67 switch (rotation) { 85 throw new IllegalArgumentException("Invalid rotation: " 86 + rotation); 101 if (rotation != ROTATION_FREEZE_0) { 107 canvas.rotate(getDegreesForRotation(rotation)); [all...] |
/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | RotationHelper.java | 28 * Class to handle device rotation events for AudioService, and forward device rotation 31 * The role of this class is to monitor device orientation changes, and upon rotation, 36 * query the display rotation so audio stays in sync with video/dialogs. This is 78 * Query current display rotation and publish the change if any. 82 // use display rotation so audio stays in sync with video/dialogs 93 private static void publishRotation(int rotation) { argument 94 Log.v(TAG, "publishing device rotation =" + rotation + " (x90deg)"); 95 switch (rotation) { [all...] |
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
H A D | pose.h | 9 // Encapsulates a 3D pose (rotation and position). 11 // @tparam T Data type for storing the position coordinate and rotation 21 // Initializes a pose with given rotation and position. 23 // rotation Initial rotation. 25 Pose(Eigen::Quaternion<T> rotation, Eigen::Vector3<T> position) argument 26 : rotation_(rotation), position_(position) {} 68 // Gets the rotation of the 3D pose. 74 // Sets the rotation of the 3D pose. 75 void SetRotation(Eigen::Quaternion<T> rotation) { rotation argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
H A D | ScreenPinningRequest.java | 130 public FrameLayout.LayoutParams getRequestLayoutParams(int rotation) { argument 134 rotation == ROTATION_SEASCAPE ? (Gravity.CENTER_VERTICAL | Gravity.LEFT) : 135 rotation == ROTATION_LANDSCAPE ? (Gravity.CENTER_VERTICAL | Gravity.RIGHT) 160 int rotation = RotationUtils.getRotation(mContext); 162 inflateView(rotation); 167 if (rotation == ROTATION_SEASCAPE) { 169 } else if (rotation == ROTATION_LANDSCAPE) { 202 private void inflateView(int rotation) { argument 207 rotation == ROTATION_SEASCAPE ? R.layout.screen_pinning_request_sea_phone : 208 rotation [all...] |
/frameworks/base/telecomm/java/com/android/internal/telecom/ |
H A D | IVideoProvider.aidl | 39 void setDeviceOrientation(int rotation);
|
/frameworks/base/telephony/java/com/android/ims/internal/ |
H A D | IImsVideoCallProvider.aidl | 52 void setDeviceOrientation(int rotation);
|
/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/packages/WallpaperCropper/src/com/android/photos/views/ |
H A D | TiledImageView.java | 66 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/policy/ |
H A D | WindowOrientationListener.java | 119 * @param clearCurrentRotation True if the current proposed sensor rotation should be cleared as 184 * Sets the current rotation. 186 * @param rotation The current rotation. 188 public void setCurrentRotation(int rotation) { argument 190 mCurrentRotation = rotation; 195 * Gets the proposed rotation. 197 * This method only returns a rotation if the orientation listener is certain 198 * of its proposal. If the rotation is indeterminate, returns -1. 200 * @return The proposed rotation, o 232 onProposedRotationChanged(int rotation) argument 817 isTiltAngleAcceptableLocked(int rotation, int tiltAngle) argument 828 isOrientationAngleAcceptableLocked(int rotation, int orientationAngle) argument 917 updatePredictedRotationLocked(long now, int rotation) argument [all...] |
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3OutputStream.h | 84 android_dataspace dataSpace, camera3_stream_rotation_t rotation, 95 android_dataspace dataSpace, camera3_stream_rotation_t rotation, 105 camera3_stream_rotation_t rotation, nsecs_t timestampOffset, 183 android_dataspace dataSpace, camera3_stream_rotation_t rotation,
|
/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/av/media/libheif/include/ |
H A D | HeifDecoderAPI.h | 50 void set(uint32_t width, uint32_t height, int32_t rotation, uint32_t bpp, argument 54 mRotationAngle = rotation;
|
/frameworks/base/cmds/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/ |
H A D | DumpCommand.java | 96 int rotation = display.getRotation(); 99 AccessibilityNodeInfoDumper.dumpWindowToFile(info, dumpFile, rotation, size.x, size.y);
|
/frameworks/base/core/java/android/app/ |
H A D | IUiAutomationConnection.aidl | 39 boolean setRotation(int rotation);
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | OutputConfiguration.java | 51 * Rotation constant: 0 degree rotation (no rotation) 59 * Rotation constant: 90 degree counterclockwise rotation. 67 * Rotation constant: 180 degree counterclockwise rotation. 75 * Rotation constant: 270 degree counterclockwise rotation. 166 * <p>This constructor takes an argument for desired camera rotation</p> 170 * @param rotation 171 * The desired rotation to be applied on camera output. Value must be one of 172 * ROTATION_[0, 90, 180, 270]. Note that when the rotation is 90 or 270 degrees, 174 * transposed relative to the width and height without rotation 182 OutputConfiguration(@onNull Surface surface, int rotation) argument 208 OutputConfiguration(int surfaceGroupId, @NonNull Surface surface, int rotation) argument [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayDeviceInfo.java | 40 * rotation of its associated logical display. 156 * This value is not affected by display rotation. 162 * This value is not affected by display rotation. 237 * The additional rotation to apply to all content presented on the display device 245 public int rotation = Surface.ROTATION_0; field in class:DisplayDeviceInfo 325 || rotation != other.rotation 358 rotation = other.rotation; 384 sb.append(", rotation ") [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DockedStackDividerController.java | 160 for (int rotation = 0; rotation < 4; rotation++) { 162 mDisplayContent.rotateBounds(di.rotation, rotation, mTmpRect); 163 final boolean rotated = (rotation == ROTATION_90 || rotation == ROTATION_270); 176 final int snappedPosition = mSnapAlgorithmForRotation[rotation] 180 mService.mPolicy.getStableInsetsLw(rotation, mTmpRect2.width(), mTmpRect2.height(), 190 mService.mPolicy.getStableInsetsLw(di.rotation, d [all...] |
/frameworks/av/camera/camera2/ |
H A D | OutputConfiguration.cpp | 85 int rotation = 0; local 89 if ((err = parcel->readInt32(&rotation)) != OK) { 90 ALOGE("%s: Failed to read rotation from parcel", __FUNCTION__); 142 mRotation = rotation; 156 ALOGV("%s: OutputConfiguration: rotation = %d, setId = %d, surfaceType = %d", 162 OutputConfiguration::OutputConfiguration(sp<IGraphicBufferProducer>& gbp, int rotation, argument 165 mRotation = rotation;
|