Home
last modified time | relevance | path

Searched refs:rotation (Results 1 – 25 of 193) sorted by relevance

12345678

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DVideoTrackDecoder.java43 public void grabFrame(FrameImage2D outputVideoFrame, int rotation) { in grabFrame() argument
51 copyFrameDataTo(outputVideoFrame, rotation); in grabFrame()
87 protected static boolean needSwapDimension(int rotation) { in needSwapDimension() argument
88 switch(rotation) { in needSwapDimension()
106 protected abstract void copyFrameDataTo(FrameImage2D outputVideoFrame, int rotation); in copyFrameDataTo() argument
DGpuVideoTrackDecoder.java146 protected void copyFrameDataTo(FrameImage2D outputVideoFrame, int rotation) { in copyFrameDataTo() argument
156 if (rotation != 0) { in copyFrameDataTo()
157 float[] targetCoords = getRotationCoords(rotation); in copyFrameDataTo()
159 if (needSwapDimension(rotation)) { in copyFrameDataTo()
203 private static float[] getRotationCoords(int rotation) { in getRotationCoords() argument
204 switch(rotation) { in getRotationCoords()
DCpuVideoTrackDecoder.java102 protected void copyFrameDataTo(FrameImage2D outputVideoFrame, int rotation) { in copyFrameDataTo() argument
106 if (needSwapDimension(rotation)) { in copyFrameDataTo()
117 if (rotation == MediaDecoder.ROTATE_NONE) { in copyFrameDataTo()
125 copyRotate(mUnrotatedBytes, outBytes, rotation); in copyFrameDataTo()
137 private void copyRotate(ByteBuffer input, ByteBuffer output, int rotation) { in copyRotate() argument
141 switch (rotation) { in copyRotate()
163 throw new IllegalArgumentException("Unsupported rotation " + rotation + "!"); in copyRotate()
/frameworks/base/core/java/android/hardware/camera2/params/
DOutputConfiguration.java151 public OutputConfiguration(@NonNull Surface surface, int rotation) { in OutputConfiguration() argument
152 this(SURFACE_GROUP_ID_NONE, surface, rotation); in OutputConfiguration()
178 public OutputConfiguration(int surfaceGroupId, @NonNull Surface surface, int rotation) { in OutputConfiguration() argument
180 checkArgumentInRange(rotation, ROTATION_0, ROTATION_270, "Rotation constant"); in OutputConfiguration()
183 mRotation = rotation; in OutputConfiguration()
216 int rotation = source.readInt(); in OutputConfiguration() local
220 checkArgumentInRange(rotation, ROTATION_0, ROTATION_270, "Rotation constant"); in OutputConfiguration()
223 mRotation = rotation; in OutputConfiguration()
/frameworks/base/services/core/java/com/android/server/policy/
DWindowOrientationListener.java169 public void setCurrentRotation(int rotation) { in setCurrentRotation() argument
171 mCurrentRotation = rotation; in setCurrentRotation()
213 public abstract void onProposedRotationChanged(int rotation); in onProposedRotationChanged() argument
793 private boolean isTiltAngleAcceptableLocked(int rotation, int tiltAngle) { in isTiltAngleAcceptableLocked() argument
794 return tiltAngle >= mTiltToleranceConfig[rotation][0] in isTiltAngleAcceptableLocked()
795 && tiltAngle <= mTiltToleranceConfig[rotation][1]; in isTiltAngleAcceptableLocked()
804 private boolean isOrientationAngleAcceptableLocked(int rotation, int orientationAngle) { in isOrientationAngleAcceptableLocked() argument
814 if (rotation == currentRotation in isOrientationAngleAcceptableLocked()
815 || rotation == (currentRotation + 1) % 4) { in isOrientationAngleAcceptableLocked()
816 int lowerBound = rotation * 90 - 45 in isOrientationAngleAcceptableLocked()
[all …]
/frameworks/av/camera/camera2/
DOutputConfiguration.cpp58 int rotation = 0; in readFromParcel() local
62 if ((err = parcel->readInt32(&rotation)) != OK) { in readFromParcel()
80 mRotation = rotation; in readFromParcel()
89 OutputConfiguration::OutputConfiguration(sp<IGraphicBufferProducer>& gbp, int rotation, in OutputConfiguration() argument
92 mRotation = rotation; in OutputConfiguration()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageView.java66 public int rotation; field in TiledImageView.ImageRendererWrapper
161 mRenderer.rotation = source != null ? source.getRotation() : 0; in setTileSource()
250 final int rotation = mRenderer.source.getRotation(); in positionFromMatrix() local
251 final boolean swap = !(rotation % 180 == 0); in positionFromMatrix()
264 if (rotation == 90 || rotation == 180) { in positionFromMatrix()
269 if (rotation == 180 || rotation == 270) { in positionFromMatrix()
289 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation); in onSurfaceCreated()
304 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation); in onDrawFrame()
DTiledImageRenderer.java191 public void setModel(TileSource model, int rotation) { in setModel() argument
196 if (mRotation != rotation) { in setModel()
197 mRotation = rotation; in setModel()
349 private void getRange(Rect out, int cX, int cY, int level, int rotation) { in getRange() argument
350 getRange(out, cX, cY, level, 1f / (1 << (level + 1)), rotation); in getRange()
360 int cX, int cY, int level, float scale, int rotation) { in getRange() argument
362 double radians = Math.toRadians(-rotation); in getRange()
421 int rotation = mRotation; in draw() local
423 if (rotation != 0) { in draw()
429 if (rotation != 0) { in draw()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDockedStackDividerController.java163 for (int rotation = 0; rotation < 4; rotation++) { in getSmallestWidthDpForBounds()
165 mDisplayContent.rotateBounds(di.rotation, rotation, mTmpRect); in getSmallestWidthDpForBounds()
166 final boolean rotated = (rotation == ROTATION_90 || rotation == ROTATION_270); in getSmallestWidthDpForBounds()
179 final int snappedPosition = mSnapAlgorithmForRotation[rotation] in getSmallestWidthDpForBounds()
183 mService.mPolicy.getStableInsetsLw(rotation, mTmpRect2.width(), mTmpRect2.height(), in getSmallestWidthDpForBounds()
196 for (int rotation = 0; rotation < 4; rotation++) { in initSnapAlgorithmForRotations()
197 final boolean rotated = (rotation == ROTATION_90 || rotation == ROTATION_270); in initSnapAlgorithmForRotations()
204 mService.mPolicy.getStableInsetsLw(rotation, dw, dh, mTmpRect); in initSnapAlgorithmForRotations()
208 (mService.mPolicy.getConfigDisplayWidth(dw, dh, rotation, baseConfig.uiMode) / in initSnapAlgorithmForRotations()
211 (mService.mPolicy.getConfigDisplayHeight(dw, dh, rotation, baseConfig.uiMode) / in initSnapAlgorithmForRotations()
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
DRectangle.java45 public static Rectangle fromRotatedRect(Point center, Point size, float rotation) { in fromRotatedRect() argument
50 return new Rectangle(p0.rotatedAround(center, rotation), in fromRotatedRect()
51 p1.rotatedAround(center, rotation), in fromRotatedRect()
52 p2.rotatedAround(center, rotation), in fromRotatedRect()
53 p3.rotatedAround(center, rotation)); in fromRotatedRect()
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_motion.jd2 page.tags=sensorevent,accelerometer,gyroscope,gravity,rotation,stepcounter
51 rotation vector sensors). For example, on some devices the software-based sensors derive their data
57 <p>Motion sensors are useful for monitoring device movement, such as tilt, shake, rotation, or
71 acceleration force data for the three coordinate axes, and the gyroscope returns rate of rotation
116 <td>Rate of rotation around the x axis.</td>
121 <td>Rate of rotation around the y axis.</td>
125 <td>Rate of rotation around the z axis.</td>
130 <td>Rate of rotation (without drift compensation) around the x axis.</td>
135 <td>Rate of rotation (without drift compensation) around the y axis.</td>
139 <td>Rate of rotation (without drift compensation) around the z axis.</td>
[all …]
/frameworks/base/services/core/java/com/android/server/audio/
DRotationHelper.java110 private static void publishRotation(int rotation) { in publishRotation() argument
111 Log.v(TAG, "publishing device rotation =" + rotation + " (x90deg)"); in publishRotation()
112 switch (rotation) { in publishRotation()
154 public void onProposedRotationChanged(int rotation) { in onProposedRotationChanged() argument
/frameworks/base/docs/html/training/graphics/opengl/
Dtouch.jd50 an angle of rotation for a shape.</p>
72 // reverse direction of rotation above the mid-line
77 // reverse direction of rotation to left of the mid-line
94 <p>Notice that after calculating the rotation angle, this method calls {@link
97 because the frame does not need to be redrawn unless there is a change in the rotation. However, it
112 <p>The example code above requires that you expose the rotation angle through your renderer by
136 <p>To apply the rotation generated by touch input, comment out the code that generates an angle and
144 // Create a rotation for the triangle
149 // Combine the rotation matrix with the projection and camera view
/frameworks/base/core/java/android/view/
DDisplayInfo.java155 public int rotation; field in DisplayInfo
291 && rotation == other.rotation in equals()
331 rotation = other.rotation; in copyFrom()
368 rotation = source.readInt(); in readFromParcel()
414 dest.writeInt(rotation); in writeToParcel()
537 return rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180 ? in getNaturalWidth()
542 return rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180 ? in getNaturalHeight()
627 sb.append(rotation); in toString()
DWindowManagerPolicy.java658 public int getNonDecorDisplayWidth(int fullWidth, int fullHeight, int rotation, in getNonDecorDisplayWidth() argument
666 public int getNonDecorDisplayHeight(int fullWidth, int fullHeight, int rotation, in getNonDecorDisplayHeight() argument
675 public int getConfigDisplayWidth(int fullWidth, int fullHeight, int rotation, in getConfigDisplayWidth() argument
684 public int getConfigDisplayHeight(int fullWidth, int fullHeight, int rotation, in getConfigDisplayHeight() argument
1197 int rotation); in rotationHasCompatibleMetricsLw() argument
1204 public void setRotationLw(int rotation); in setRotationLw() argument
1284 public void setUserRotationMode(@UserRotationMode int mode, @Surface.Rotation int rotation); in setUserRotationMode() argument
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java225 public int rotation = Surface.ROTATION_0; field in DisplayDeviceInfo
304 || rotation != other.rotation in diff()
338 rotation = other.rotation; in copyFrom()
365 sb.append(", rotation ").append(rotation); in toString()
/frameworks/support/v4/java/android/support/v4/widget/
DMaterialProgressDrawable.java192 public void setProgressRotation(float rotation) { in setProgressRotation() argument
193 mRing.setRotation(rotation); in setProgressRotation()
249 void setRotation(float rotation) { in setRotation() argument
250 mRotation = rotation; in setRotation()
357 final float rotation = ring.getStartingRotation() in applyFinishTranslation() local
359 ring.setRotation(rotation); in applyFinishTranslation()
407 final float rotation = startingRotation + (0.25f * interpolatedTime); in setupAnimators()
408 ring.setRotation(rotation); in setupAnimators()
701 public void setRotation(float rotation) { in setRotation() argument
702 mRotation = rotation; in setRotation()
/frameworks/base/docs/html/guide/topics/resources/
Dcomplex-xml-resources.jd20 android:animation="@anim/rotation" /&gt;
38 android:rotation="45.0" &gt;
47 <dt><code>res/anim/rotation.xml</code></dt>
53 android:propertyName="rotation"
88 android:rotation="45.0" &gt;
101 android:propertyName="rotation"
/frameworks/base/core/java/com/android/internal/view/
DRotationPolicy.java115 final int rotation = areAllRotationsAllowed(context) ? CURRENT_ROTATION : NATURAL_ROTATION; in setRotationLock() local
116 setRotationLock(enabled, rotation); in setRotationLock()
136 private static void setRotationLock(final boolean enabled, final int rotation) { in setRotationLock() argument
143 wm.freezeRotation(rotation); in setRotationLock()
/frameworks/rs/api/
Drs_quaternion.spec71 summary: Get a rotation matrix from a quaternion
73 Computes a rotation matrix from the normalized quaternion.
107 summary: Quaternion that represents a rotation about an arbitrary unit vector
109 Loads a quaternion that represents a rotation about an arbitrary unit vector.
165 summary: Create a rotation quaternion
167 Loads a quaternion that represents a rotation about an arbitrary vector
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java311 int rotation = getRotationFromExif(filePath); in setWallpaper() local
313 this, filePath, null, rotation, 0, 0, true, false, null); in setWallpaper()
332 int rotation = getRotationFromExif(res, resId); in cropImageAndSetWallpaper() local
347 crop, rotation, outSize.x, outSize.y, true, false, onEndCrop); in cropImageAndSetWallpaper()
470 RectF cropBounds, int rotation, int outWidth, int outHeight,
474 init(cropBounds, rotation,
479 RectF cropBounds, int rotation, int outWidth, int outHeight,
482 init(cropBounds, rotation,
487 RectF cropBounds, int rotation, int outWidth, int outHeight,
491 init(cropBounds, rotation,
[all …]
/frameworks/av/media/libstagefright/
DSurfaceUtils.cpp29 int width, int height, int format, int rotation, int usage, bool reconnect) { in setNativeWindowSizeFormatAndUsage() argument
60 if ((rotation % 90) == 0) { in setNativeWindowSizeFormatAndUsage()
61 switch ((rotation / 90) & 3) { in setNativeWindowSizeFormatAndUsage()
117 nativeWindow, width, height, format, rotation, finalUsage); in setNativeWindowSizeFormatAndUsage()
/frameworks/base/core/java/android/app/
DUiAutomation.java524 public boolean setRotation(int rotation) { in setRotation() argument
528 switch (rotation) { in setRotation()
537 mUiAutomationConnection.setRotation(rotation); in setRotation()
690 final int rotation = display.getRotation(); in takeScreenshot() local
691 switch (rotation) { in takeScreenshot()
710 + rotation); in takeScreenshot()
729 if (rotation != ROTATION_FREEZE_0) { in takeScreenshot()
735 canvas.rotate(getDegreesForRotation(rotation)); in takeScreenshot()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DRenderNode_Delegate.java146 /*package*/ static boolean nSetRotation(long renderNode, float rotation) { in nSetRotation() argument
148 if (delegate != null && delegate.mRotation != rotation) { in nSetRotation()
149 delegate.mRotation = rotation; in nSetRotation()
168 float rotation = renderNode.getRotation(); in getMatrix() local
177 outMatrix.preRotate(rotation, pivotX, pivotY); in getMatrix()
/frameworks/support/design/ics/android/support/design/widget/
DFloatingActionButtonIcs.java140 private void updateFromViewRotation(float rotation) { in updateFromViewRotation() argument
143 mShadowDrawable.setRotation(-rotation); in updateFromViewRotation()
146 mBorderDrawable.setRotation(-rotation); in updateFromViewRotation()

12345678