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

123

/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/Camera2/src/com/android/camera/ui/
H A DCameraControls.java63 int rotation = getUnifiedRotation();
79 switch (rotation) {
92 center(mShutter, l, t, r, b, orientation, rotation, shutter);
93 center(mBackgroundView, l, t, r, b, orientation, rotation, new Rect());
94 toLeft(mSwitcher, shutter, rotation);
95 toRight(mMenu, shutter, rotation);
96 toRight(mIndicators, shutter, rotation);
99 center(retake, shutter, rotation);
101 toLeft(cancel, shutter, rotation);
103 toRight(done, shutter, rotation);
107 center(View v, int l, int t, int r, int b, int orientation, int rotation, Rect result) argument
144 center(View v, Rect other, int rotation) argument
156 toLeft(View v, Rect other, int rotation) argument
196 toRight(View v, Rect other, int rotation) argument
[all...]
H A DRotatableLayout.java35 * is a clockwise rotation.
68 // Before the first time this view is attached to window, device rotation
71 // call will track all the subsequent device rotation.
80 // = 0 or 90), we load the layout resource without any rotation.
85 // check if there is any rotation before the view is attached to window
94 int rotation = CameraUtil.getDisplayRotation((Activity) getContext());
95 int diff = (rotation - mPrevRotation + 360) % 360;
97 // No rotation
100 // 180-degree rotation
101 mPrevRotation = rotation;
[all...]
H A DCameraRootView.java119 int rotation = CameraUtil.getDisplayRotation((Activity) getContext());
121 // adjust rotation for landscape
123 int camOrientation = (rotation % 180 == 0) ? Configuration.ORIENTATION_PORTRAIT
126 rotation = (rotation + 90) % 360;
133 switch (rotation) {
174 // so that they stay in place during rotation
H A DZoomView.java58 // Calculate the rotation matrix to apply orientation on the original image
64 // Set the translation of the matrix so that after rotation, the top left
83 // rotation to find out the region in the original image
133 Matrix rotation = new Matrix();
134 rotation.setRotate(mOrientation);
135 return Bitmap.createBitmap(b, 0, 0, b.getWidth(), b.getHeight(), rotation, false);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DGeometryMathUtils.java49 public Rotation rotation = FilterRotateRepresentation.getNil(); field in class:GeometryMathUtils.GeometryHolder
55 rotation = h.rotation;
62 rotation = FilterRotateRepresentation.getNil();
69 return rotation == FilterRotateRepresentation.getNil() &&
84 return rotation == h.rotation && straighten == h.straighten &&
91 return getClass().getSimpleName() + "[" + "rotation:" + rotation.value()
220 if (holder.rotation
418 needsDimensionSwap(Rotation rotation) argument
[all...]
/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/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/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...]
/packages/apps/Launcher3/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...]
/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/Launcher3/src/com/android/photos/
H A DBitmapRegionTileSource.java71 public BitmapRegionTileSource(Context context, String path, int previewSize, int rotation) { argument
72 this(null, context, path, null, 0, previewSize, rotation);
75 public BitmapRegionTileSource(Context context, Uri uri, int previewSize, int rotation) { argument
76 this(null, context, null, uri, 0, previewSize, rotation);
80 Context context, int resId, int previewSize, int rotation) {
81 this(res, context, null, null, resId, previewSize, rotation);
85 Context context, String path, Uri uri, int resId, int previewSize, int rotation) {
87 mRotation = rotation;
79 BitmapRegionTileSource(Resources res, Context context, int resId, int previewSize, int rotation) argument
84 BitmapRegionTileSource(Resources res, Context context, String path, Uri uri, int resId, int previewSize, int rotation) argument
/packages/apps/Camera2/src/com/android/camera/crop/
H A DBoundedRect.java34 public BoundedRect(float rotation, Rect outerRect, Rect innerRect) { argument
35 rot = rotation;
44 public BoundedRect(float rotation, RectF outerRect, RectF innerRect) { argument
45 rot = rotation;
54 public void resetTo(float rotation, RectF outerRect, RectF innerRect) { argument
55 rot = rotation;
78 * Sets rotation, and re-constrains inner to fit within the rotated bounding rect.
80 public void setRotation(float rotation) { argument
81 if (rotation == rot)
83 rot = rotation;
[all...]
H A DCropView.java112 public void initialize(Bitmap image, RectF newCropBounds, RectF newPhotoBounds, int rotation) { argument
118 || mRotation != rotation) {
119 mRotation = rotation;
124 mRotation = rotation;
273 private int decode(int movingEdges, float rotation) { argument
274 int rot = CropMath.constrainedRotation(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 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/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 DTileImageView.java206 private void layoutTiles(int centerX, int centerY, float scale, int rotation) { argument
224 getRange(range, centerX, centerY, mLevel, scale, rotation);
240 getRange(range[i - fromLevel], centerX, centerY, i, rotation);
243 // If rotation is transient, don't update the tile.
244 if (rotation % 90 != 0) return;
292 private void getRange(Rect out, int cX, int cY, int level, int rotation) { argument
293 getRange(out, cX, cY, level, 1f / (1 << (level + 1)), rotation);
303 int cX, int cY, int level, float scale, int rotation) {
305 double radians = Math.toRadians(-rotation);
355 public boolean setPosition(int centerX, int centerY, float scale, int rotation) { argument
302 getRange(Rect out, int cX, int cY, int level, float scale, int rotation) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/app/
H A DOrientationManager.java73 * rotates. No effect if the system setting of auto-rotation is off.
87 * rotates. No effect if the system setting of auto-rotation is off.
98 // Display rotation >= 180 means we need to use the REVERSE landscape/portrait
109 // clockwise rotation from landscape, so we need
110 // to flip which portrait we pick as display rotation is counter clockwise
159 int rotation = activity.getWindowManager().getDefaultDisplay()
161 switch (rotation) {
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DOrientationManager.java93 // Display rotation >= 180 means we need to use the REVERSE landscape/portrait
104 // clockwise rotation from landscape, so we need
105 // to flip which portrait we pick as display rotation is counter clockwise
156 int rotation = activity.getWindowManager().getDefaultDisplay()
158 switch (rotation) {
/packages/apps/Launcher3/src/com/android/launcher3/
H A DWallpaperCropActivity.java99 int rotation = getRotationFromExif(this, imageUri);
100 mCropView.setTileSource(new BitmapRegionTileSource(this, imageUri, 1024, rotation), null);
218 int rotation = getRotationFromExif(filePath);
220 this, filePath, null, rotation, 0, 0, true, false, null);
240 int rotation = getRotationFromExif(res, resId);
258 crop, rotation, outSize.x, outSize.y, true, false, onEndCrop);
389 RectF cropBounds, int rotation, int outWidth, int outHeight,
393 init(cropBounds, rotation,
398 RectF cropBounds, int rotation, int outWidth, int outHeight,
401 init(cropBounds, rotation,
388 BitmapCropTask(Context c, String filePath, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument
397 BitmapCropTask(byte[] imageBytes, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument
405 BitmapCropTask(Context c, Uri inUri, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument
414 BitmapCropTask(Context c, Resources res, int inResId, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument
424 init(RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument
[all...]
H A DWallpaperPickerActivity.java135 int rotation = WallpaperCropActivity.getRotationFromExif(a, mUri);
136 v.setTileSource(new BitmapRegionTileSource(a, mUri, 1024, rotation), null);
145 // rotation is set to 0 since imageBytes has already been correctly rotated
175 int rotation = WallpaperCropActivity.getRotationFromExif(mResources, mResId);
177 mResources, a, mResId, 1024, rotation);
588 Resources res, int resId, int rotation, boolean leftAligned) {
595 context, uri, null, rotation, width, height, false, true, null);
598 imageBytes, null, rotation, width, height, false, true, null);
601 context, res, resId, null, rotation, width, height, false, true, null);
609 rotateMatrix.setRotate(rotation);
587 createThumbnail(Point size, Context context, Uri uri, byte[] imageBytes, Resources res, int resId, int rotation, boolean leftAligned) argument
[all...]
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/
H A DVideoChatTestActivity.java117 int rotation = getWindowManager().getDefaultDisplay().getRotation();
119 switch (rotation) {
401 int rotation = setDisplayOrentationAngles.get(i);
402 if (rotation == -1) {
403 rotation = getAutoDisplayOrientation(mDisplayOrientation,
406 publishProgress("setDisplayOrientation to " + rotation);
408 camera.setDisplayOrientation(rotation);
/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

Completed in 299 milliseconds

123