/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 | 101 protected void copyFrameDataTo(FrameImage2D outputVideoFrame, int rotation) { argument 105 if (needSwapDimension(rotation)) { 116 if (rotation == MediaDecoder.ROTATE_NONE) { 122 // TODO: This could be optimized by including the rotation in the color conversion. 124 copyRotate(mUnrotatedBytes, outBytes, rotation); 130 * Copy the input data to the output data applying the specified rotation. 134 * @param rotation The rotation to apply 136 private void copyRotate(ByteBuffer input, ByteBuffer output, int rotation) { argument 140 switch (rotation) { [all...] |
H A D | GpuVideoTrackDecoder.java | 138 protected void copyFrameDataTo(FrameImage2D outputVideoFrame, int rotation) { argument 148 if (rotation != 0) { 149 float[] targetCoords = getRotationCoords(rotation); 151 if (needSwapDimension(rotation)) { 190 * Get the quad coords for rotation. 191 * @param rotation applied to the frame, value is one of 193 * @return coords the calculated quad coords for the given rotation 195 private static float[] getRotationCoords(int rotation) { argument 196 switch(rotation) { 206 throw new IllegalArgumentException("Unsupported rotation angl [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/testing/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/app/ |
H A D | UiAutomationConnection.java | 109 public boolean setRotation(int rotation) { argument 117 if (rotation == UiAutomation.ROTATION_UNFREEZE) { 120 mWindowManager.freezeRotation(rotation);
|
H A D | UiAutomation.java | 78 /** Rotation constant: Unfreeze rotation (rotating the device changes its rotation state). */ 81 /** Rotation constant: Freeze rotation to its current state. */ 84 /** Rotation constant: Freeze rotation to 0 degrees (natural orientation) */ 87 /** Rotation constant: Freeze rotation to 90 degrees . */ 90 /** Rotation constant: Freeze rotation to 180 degrees . */ 93 /** Rotation constant: Freeze rotation to 270 degrees . */ 390 * Sets the device rotation. A client can freeze the rotation in 391 * desired state or freeze the rotation t 405 setRotation(int rotation) argument [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 179 public static Bitmap rotateBitmap(Bitmap source, int rotation, boolean recycle) { argument 180 if (rotation == 0) return source; 184 m.postRotate(rotation);
|
/frameworks/base/services/java/com/android/server/display/ |
H A D | DisplayDeviceInfo.java | 37 * rotation of its associated logical display. 103 * This value is not affected by display rotation. 109 * This value is not affected by display rotation. 149 * The additional rotation to apply to all content presented on the display device 157 public int rotation = Surface.ROTATION_0; field in class:DisplayDeviceInfo 211 && rotation == other.rotation 233 rotation = other.rotation; 250 sb.append(", rotation ") [all...] |
/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 | DisplayInfo.java | 138 * The rotation of the display relative to its natural orientation. 147 public int rotation; field in class:DisplayInfo 246 && rotation == other.rotation 278 rotation = other.rotation; 305 rotation = source.readInt(); 333 dest.writeInt(rotation); 366 return rotation == Surface.ROTATION_0 || rotation [all...] |
H A D | DisplayList.java | 430 * Sets the rotation value for the display list around the Z axis 432 * @param rotation The rotation value of the display list, in degrees 437 public abstract void setRotation(float rotation); argument 440 * Returns the rotation value for this display list around the Z axis, in degrees. 447 * Sets the rotation value for the display list around the X axis 449 * @param rotationX The rotation value of the display list, in degrees 457 * Returns the rotation value for this display list around the X axis, in degrees. 464 * Sets the rotation value for the display list around the Y axis 466 * @param rotationY The rotation valu 528 setTransformationInfo(float alpha, float translationX, float translationY, float rotation, float rotationX, float rotationY, float scaleX, float scaleY) argument [all...] |
H A D | Surface.java | 84 * Rotation constant: 0 degree rotation (natural orientation) 89 * Rotation constant: 90 degree rotation. 94 * Rotation constant: 180 degree rotation. 99 * Rotation constant: 270 degree rotation. 426 * Returns a human readable representation of a rotation. 428 * @param rotation The rotation. 429 * @return The rotation symbolic name. 433 public static String rotationToString(int rotation) { argument 434 switch (rotation) { [all...] |
H A D | ViewPropertyAnimator.java | 472 * This method will cause the View's <code>rotation</code> property to be animated to the 479 public ViewPropertyAnimator rotation(float value) { method in class:ViewPropertyAnimator 485 * This method will cause the View's <code>rotation</code> property to be animated by the
|
H A D | GLES20DisplayList.java | 234 public void setRotation(float rotation) { argument 236 nSetRotation(mFinalizer.mNativeDisplayList, rotation); 310 float rotation, float rotationX, float rotationY, float scaleX, float scaleY) { 313 rotation, rotationX, rotationY, scaleX, scaleY); 462 private static native void nSetRotation(int displayList, float rotation); argument 468 float translationX, float translationY, float rotation, float rotationX, 309 setTransformationInfo(float alpha, float translationX, float translationY, float rotation, float rotationX, float rotationY, float scaleX, float scaleY) argument 467 nSetTransformationInfo(int displayList, float alpha, float translationX, float translationY, float rotation, float rotationX, float rotationY, float scaleX, float scaleY) argument
|
/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...] |
H A D | TiledImageRenderer.java | 191 public void setModel(TileSource model, int rotation) { argument 196 if (mRotation != rotation) { 197 mRotation = rotation; 296 // If rotation is transient, don't update the tile. 349 private void getRange(Rect out, int cX, int cY, int level, int rotation) { argument 350 getRange(out, cX, cY, level, 1f / (1 << (level + 1)), rotation); 360 int cX, int cY, int level, float scale, int rotation) { 362 double radians = Math.toRadians(-rotation); 421 int rotation = mRotation; 423 if (rotation ! 359 getRange(Rect out, int cX, int cY, int level, float scale, int rotation) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_GLES20DisplayList.cpp | 113 jobject clazz, DisplayList* displayList, float rotation) { 114 displayList->setRotation(rotation); 139 float translationX, float translationY, float rotation, float rotationX, float rotationY, 144 displayList->setRotation(rotation); 112 android_view_GLES20DisplayList_setRotation(JNIEnv* env, jobject clazz, DisplayList* displayList, float rotation) argument 137 android_view_GLES20DisplayList_setTransformationInfo(JNIEnv* env, jobject clazz, DisplayList* displayList, float alpha, float translationX, float translationY, float rotation, float rotationX, float rotationY, float scaleX, float scaleY) argument
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
H A D | WallpaperCropActivity.java | 283 int rotation = getRotationFromExif(filePath); 285 this, filePath, null, rotation, 0, 0, true, false, null); 305 int rotation = getRotationFromExif(res, resId); 323 crop, rotation, outSize.x, outSize.y, true, false, onEndCrop); 447 RectF cropBounds, int rotation, int outWidth, int outHeight, 451 init(cropBounds, rotation, 456 RectF cropBounds, int rotation, int outWidth, int outHeight, 459 init(cropBounds, rotation, 464 RectF cropBounds, int rotation, int outWidth, int outHeight, 468 init(cropBounds, rotation, 446 BitmapCropTask(Context c, String filePath, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument 455 BitmapCropTask(byte[] imageBytes, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument 463 BitmapCropTask(Context c, Uri inUri, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument 472 BitmapCropTask(Context c, Resources res, int inResId, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument 482 init(RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | WindowOrientationListener.java | 136 * Sets the current rotation. 138 * @param rotation The current rotation. 140 public void setCurrentRotation(int rotation) { argument 142 mCurrentRotation = rotation; 147 * Gets the proposed rotation. 149 * This method only returns a rotation if the orientation listener is certain 150 * of its proposal. If the rotation is indeterminate, returns -1. 152 * @return The proposed rotation, or -1 if unknown. 173 * Called when the rotation vie 182 onProposedRotationChanged(int rotation) argument 570 isTiltAngleAcceptableLocked(int rotation, int tiltAngle) argument 581 isOrientationAngleAcceptableLocked(int rotation, int orientationAngle) argument 674 updatePredictedRotationLocked(long now, int rotation) argument [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
H A D | ScreenRotationAnimation.java | 67 // animation applies a transformation while the rotation is in progress. 78 // It starts running once the new rotation UI elements are ready to be 98 // to switch to a new rotation before finishing the previous one. 207 // Screenshot does NOT include rotation! 321 public static void createRotationMatrix(int rotation, int width, int height, argument 323 switch (rotation) { 343 private void setRotationInTransaction(int rotation) { argument 344 mCurRotation = rotation; 348 // with the current screen rotation. 349 int delta = deltaRotation(rotation, Surfac 357 setRotationInTransaction(int rotation, SurfaceSession session, long maxAnimationDuration, float animationScale, int finalWidth, int finalHeight) argument [all...] |
H A D | DisplayMagnifier.java | 131 public void onRotationChangedLocked(DisplayContent displayContent, int rotation) { argument 133 Slog.i(LOG_TAG, "Rotaton: " + Surface.rotationToString(rotation) 286 // If this message is pending we are in a rotation animation and do not want 424 // the user does not see strange artifacts during rotation. The screenshot 425 // used for rotation has already the border. After the rotation is complete 738 final int rotation = message.arg1; 740 mCallbacks.onRotationChanged(rotation);
|
/frameworks/native/include/ui/ |
H A D | mat4.h | 296 tmat44<T> rotation; local 297 T* r = const_cast<T*>(rotation.asArray());
|
/frameworks/base/libs/hwui/ |
H A D | DisplayList.h | 220 void setRotation(float rotation) { argument 221 if (rotation != mRotation) { 222 mRotation = rotation;
|