Searched refs:rotation (Results 1 - 25 of 134) sorted by relevance

123456

/frameworks/base/core/java/android/view/
H A DIRotationWatcher.aidl24 void onRotationChanged(int rotation);
H A DDisplayInfo.java145 * 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 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 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...]
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...]
/frameworks/av/include/media/stagefright/
H A DSurfaceUtils.h28 * 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/foundation/include/
H A DSurfaceUtils.h28 * 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/
H A DSurfaceUtils.h28 * 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 DScreenshooter.java38 /** 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 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/native/libs/vr/libdvrcommon/include/private/dvr/
H A Dpose.h9 // 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 DScreenPinningRequest.java133 public FrameLayout.LayoutParams getRequestLayoutParams(int rotation) { argument
137 rotation == ROTATION_SEASCAPE ? (Gravity.CENTER_VERTICAL | Gravity.LEFT) :
138 rotation == ROTATION_LANDSCAPE ? (Gravity.CENTER_VERTICAL | Gravity.RIGHT)
163 int rotation = getRotation(mContext);
165 inflateView(rotation);
170 if (rotation == ROTATION_SEASCAPE) {
172 } else if (rotation == ROTATION_LANDSCAPE) {
218 private void inflateView(int rotation) { argument
223 rotation == ROTATION_SEASCAPE ? R.layout.screen_pinning_request_sea_phone :
224 rotation
[all...]
/frameworks/base/telecomm/java/com/android/internal/telecom/
H A DIVideoProvider.aidl39 void setDeviceOrientation(int rotation);
/frameworks/base/telephony/java/com/android/ims/internal/
H A DIImsVideoCallProvider.aidl52 void setDeviceOrientation(int rotation);
/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/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...]
/frameworks/base/services/core/java/com/android/server/policy/
H A DWindowOrientationListener.java119 * @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 DCamera3OutputStream.h84 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,
178 android_dataspace dataSpace, camera3_stream_rotation_t 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/cmds/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/
H A DDumpCommand.java96 int rotation = display.getRotation();
99 AccessibilityNodeInfoDumper.dumpWindowToFile(info, dumpFile, rotation, size.x, size.y);
/frameworks/base/core/java/android/app/
H A DIUiAutomationConnection.aidl39 boolean setRotation(int rotation);
/frameworks/base/core/java/android/hardware/camera2/params/
H A DOutputConfiguration.java51 * 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 DDisplayDeviceInfo.java40 * rotation of its associated logical display.
150 * This value is not affected by display rotation.
156 * This value is not affected by display rotation.
231 * The additional rotation to apply to all content presented on the display device
239 public int rotation = Surface.ROTATION_0; field in class:DisplayDeviceInfo
319 || rotation != other.rotation
352 rotation = other.rotation;
378 sb.append(", rotation ")
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DDockedStackDividerController.java160 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 DOutputConfiguration.cpp85 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;

Completed in 4667 milliseconds

123456