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

12

/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/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
H A DImageViewTouchBase.java124 private void setImageBitmap(Bitmap bitmap, int rotation) { argument
133 mBitmapDisplayed.setRotation(rotation);
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
H A DTestManagedVideoProvider.java90 public void onSetDeviceOrientation(int rotation) { argument
91 mRemoteVideoProvider.setDeviceOrientation(rotation);
H A DTestVideoProvider.java131 public void onSetDeviceOrientation(int rotation) { argument
132 log("Set device orientation " + 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/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);
H A DCropView.java113 public void initialize(Bitmap image, RectF newCropBounds, RectF newPhotoBounds, int rotation) { argument
119 || mRotation != rotation) {
120 mRotation = rotation;
125 mRotation = rotation;
274 private int decode(int movingEdges, float rotation) { argument
275 int rot = CropMath.constrainedRotation(rotation);
/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) {
H A DAlbumSlidingWindow.java51 public int rotation; field in class:AlbumSlidingWindow.AlbumEntry
271 entry.rotation = (item == null) ? 0 : item.getRotation();
/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/DeskClock/src/com/android/deskclock/widget/sgv/
H A DSgvAnimationHelper.java164 * rotation value.
167 int xTranslation, int yTranslation, float rotation, int animationDelay) {
171 view.setRotation(rotation);
166 addTranslationRotationAnimators(List<Animator> animators, final View view, int xTranslation, int yTranslation, float rotation, int animationDelay) argument
/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...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DImageCrop.java186 if (GeometryMathUtils.needsDimensionSwap(mGeometry.rotation)) {
216 private int decode(int movingEdges, float rotation) { argument
217 int rot = CropMath.constrainedRotation(rotation);
321 decode(mCropObj.getSelectState(), mGeometry.rotation.value()));
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/
H A DBitmapCropTask.java68 RectF cropBounds, int rotation, int outWidth, int outHeight,
72 init(cropBounds, rotation,
77 RectF cropBounds, int rotation, int outWidth, int outHeight,
80 init(cropBounds, rotation,
85 RectF cropBounds, int rotation, int outWidth, int outHeight,
89 init(cropBounds, rotation,
94 RectF cropBounds, int rotation, int outWidth, int outHeight,
99 init(cropBounds, rotation,
103 private void init(RectF cropBounds, int rotation, int outWidth, int outHeight, argument
106 mRotation = rotation;
67 BitmapCropTask(Context c, String filePath, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument
76 BitmapCropTask(byte[] imageBytes, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument
84 BitmapCropTask(Context c, Uri inUri, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument
93 BitmapCropTask(Context c, Resources res, int inResId, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument
[all...]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/
H A DTiledImageView.java55 public int rotation; field in class:TiledImageView.ImageRendererWrapper
122 mRenderer.rotation = source != null ? source.getRotation() : 0;
176 final int rotation = mRenderer.source.getRotation();
177 final boolean swap = !(rotation % 180 == 0);
190 if (rotation == 90 || rotation == 180) {
195 if (rotation == 180 || rotation == 270) {
215 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation);
230 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation);
[all...]
/packages/services/Telecomm/src/com/android/server/telecom/
H A DVideoProviderProxy.java289 * @param rotation The device orientation, in degrees.
292 public void onSetDeviceOrientation(int rotation) { argument
294 logFromInCall("setDeviceOrientation: " + rotation);
296 mConectionServiceVideoProvider.setDeviceOrientation(rotation);
/packages/apps/Gallery2/src/com/android/photos/views/
H A DTiledImageView.java66 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...]

Completed in 256 milliseconds

12