Searched defs:rotation (Results 1 - 25 of 49) sorted by relevance

12

/packages/apps/Dialer/java/com/android/dialer/callcomposer/util/
H A DBitmapResizer.java34 * @param rotation degrees to rotate the image clockwise
37 public static Bitmap resizeForEnrichedCalling(Bitmap image, int rotation) { argument
44 matrix.postRotate(rotation);
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
H A DImageToProcess.java32 public final OrientationManager.DeviceOrientation rotation; field in class:ImageToProcess
42 * be performed *before* any rotation, and a crop rectangle of
48 this.rotation = imageRotation;
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DWidgetUtils.java57 public static Bitmap createWidgetBitmap(Bitmap bitmap, int rotation) { argument
62 if (((rotation / 90) & 1) == 0) {
74 canvas.rotate(rotation);
/packages/apps/Settings/tests/app/src/com/android/settings/bluetooth/
H A DBluetoothDeviceDetailsRotationTest.java83 public void rotation() { method in class:BluetoothDeviceDetailsRotationTest
/packages/apps/Gallery/src/com/android/camera/
H A DRotateBitmap.java32 public RotateBitmap(Bitmap bitmap, int rotation) { argument
34 mRotation = rotation % 360;
37 public void setRotation(int rotation) { argument
38 mRotation = rotation;
57 // We want to do the rotation at origin, but since the bounding
58 // rectangle will be changed after rotation, so the delta values
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/
H A DInputStreamProvider.java66 public Bitmap readCroppedBitmap(RectF cropBounds, int outWidth, int outHeight, int rotation) { argument
76 if (rotation > 0) {
77 rotateMatrix.setRotate(rotation);
80 inverseRotateMatrix.setRotate(-rotation);
176 if (outWidth > 0 && outHeight > 0 || rotation > 0) {
191 if (rotation == 0) {
197 m2.setRotate(rotation);
H A DCropAndSetWallpaperTask.java55 RectF cropBounds, int rotation, int outWidth, int outHeight,
61 mRotation = rotation;
54 CropAndSetWallpaperTask(InputStreamProvider streamProvider, Context context, RectF cropBounds, int rotation, int outWidth, int outHeight, OnEndCropHandler onEndCropHandler) argument
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
H A DWallpaperTileInfo.java47 int rotation, boolean leftAligned) {
57 rotateMatrix.setRotate(rotation);
65 return streamProvider.readCroppedBitmap(cropRect, width, height, rotation);
46 createThumbnail(InputStreamProvider streamProvider, Context context, int rotation, boolean leftAligned) argument
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
H A DTestManagedVideoProvider.java90 public void onSetDeviceOrientation(int rotation) { argument
91 mRemoteVideoProvider.setDeviceOrientation(rotation);
/packages/apps/Camera2/src/com/android/camera/
H A DCaptureLayoutHelper.java224 public void onNonDecorWindowSizeChanged(int width, int height, int rotation) { argument
227 mRotation = rotation;
240 * @param rotation rotation from the natural orientation
245 float previewAspectRatio, int rotation) {
349 if (rotation >= 180) {
244 getPositionConfiguration(int width, int height, float previewAspectRatio, int rotation) argument
/packages/apps/Dialer/java/com/android/incallui/
H A DInCallOrientationEventListener.java60 * our threshold is x degrees. We will only notify UI when our current rotation is within x
66 // Rotation threshold is 10 degrees. So if the rotation angle is within 10 degrees of any of
70 /** Cache the current rotation of the device. */
103 * <p>Note that this API receives sensor rotation in degrees as a param and we convert that to one
107 * @param rotation The new device sensor rotation in degrees
110 public void onOrientationChanged(int rotation) { argument
111 if (rotation == OrientationEventListener.ORIENTATION_UNKNOWN) {
115 final int orientation = toScreenOrientation(rotation);
171 * Converts sensor rotation i
178 toScreenOrientation(int rotation) argument
[all...]
/packages/apps/Dialer/java/com/android/incallui/videotech/
H A DVideoTech.java70 void setDeviceOrientation(int rotation); argument
/packages/apps/Dialer/java/com/android/incallui/videotech/empty/
H A DEmptyVideoTech.java100 public void setDeviceOrientation(int rotation) {} argument
/packages/apps/Dialer/java/com/android/incallui/videotech/lightbringer/
H A DLightbringerTech.java150 public void setDeviceOrientation(int rotation) { argument
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DImage.java48 int rotation) {
51 mRotation = rotation;
45 Image(BaseImageList container, ContentResolver cr, long id, int index, Uri uri, String dataPath, String mimeType, long dateTaken, String title, int rotation) argument
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DBitmapUtils.java178 public static Bitmap rotateBitmap(Bitmap source, int rotation, boolean recycle) { argument
179 if (rotation == 0) return source;
183 m.postRotate(rotation);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
H A DBoundedRect.java36 public BoundedRect(float rotation, Rect outerRect, Rect innerRect) { argument
37 rot = rotation;
46 public BoundedRect(float rotation, RectF outerRect, RectF innerRect) { argument
47 rot = rotation;
56 public void resetTo(float rotation, RectF outerRect, RectF innerRect) { argument
57 rot = rotation;
80 * Sets rotation, and re-constrains inner to fit within the rotated bounding rect.
82 public void setRotation(float rotation) { argument
83 if (rotation == rot)
85 rot = rotation;
[all...]
H A DCropDrawingUtils.java174 RectF screen, int rotation) {
176 dst.setRotate(rotation, image.centerX(), image.centerY());
182 boolean rot = dst.preRotate(rotation, image.centerX(), image.centerY());
173 setImageToScreenMatrix(Matrix dst, RectF image, RectF screen, int rotation) argument
H A DCropMath.java137 * @param rot angle of rotation about rectangle center
238 * Constrains rotation to be in [0, 90, 180, 270] rounding down.
239 * @param rotation any rotation value, in degrees
240 * @return integer rotation in [0, 90, 180, 270]
242 public static int constrainedRotation(float rotation) { argument
243 int r = (int) ((rotation % 360) / 90);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DFilterRotateRepresentation.java64 public FilterRotateRepresentation(Rotation rotation) { argument
73 setRotation(rotation);
110 public void setRotation(Rotation rotation) { argument
111 if (rotation == null) {
114 mRotation = rotation;
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DAbstractSlotRenderer.java47 Texture content, int width, int height, int rotation) {
53 if (rotation != 0) {
55 canvas.rotate(rotation, 0, 0, 1);
46 drawContent(GLCanvas canvas, Texture content, int width, int height, int rotation) argument
H A DSlideshowView.java52 public void next(Bitmap bitmap, int rotation) { argument
65 mCurrentRotation = rotation;
67 if (((rotation / 90) & 0x01) == 0) {
/packages/apps/Gallery2/src/com/android/photos/
H A DBitmapRegionTileSource.java67 public BitmapRegionTileSource(Context context, String path, int previewSize, int rotation) { argument
69 mRotation = rotation;
/packages/apps/Dialer/java/com/android/incallui/videotech/ims/
H A DImsVideoTech.java284 public void setDeviceOrientation(int rotation) { argument
285 call.getVideoCall().setDeviceOrientation(rotation);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DLocalImage.java103 public int rotation; field in class:LocalImage
143 rotation = cursor.getInt(INDEX_ORIENTATION);
165 rotation = uh.update(rotation, cursor.getInt(INDEX_ORIENTATION));
280 int rotation = (this.rotation + degrees) % 360;
281 if (rotation < 0) rotation += 360;
286 ExifInterface.getOrientationValueForRotation(rotation));
303 values.put(Images.Media.ORIENTATION, rotation);
[all...]

Completed in 432 milliseconds

12