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

123

/packages/apps/Camera2/src/com/android/camera/data/
H A DVideoRotationMetadataLoader.java17 final String rotation = localData.getMetadata().getString(ROTATION_KEY);
18 return ROTATE_90.equals(rotation) || ROTATE_270.equals(rotation);
35 String rotation = retriever.extractMetadata(
37 data.getMetadata().putString(ROTATION_KEY, 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
/packages/apps/Camera2/src/com/android/camera/
H A DCaptureModuleUtil.java38 int rotation = CameraUtil.getDisplayRotation(context);
40 if (((rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) &&
42 ((rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270) &&
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/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/WallpaperPicker/src/com/android/photos/views/
H A DTiledImageView.java66 public int rotation; field in class:TiledImageView.ImageRendererWrapper
173 mRenderer.rotation = source != null ? source.getRotation() : 0;
262 final int rotation = mRenderer.source.getRotation();
263 final boolean swap = !(rotation % 180 == 0);
276 if (rotation == 90 || rotation == 180) {
281 if (rotation == 180 || rotation == 270) {
301 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation);
316 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/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/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/services/Telecomm/tests/src/com/android/server/telecom/testapps/
H A DTestManagedVideoProvider.java89 public void onSetDeviceOrientation(int rotation) { argument
90 mRemoteVideoProvider.setDeviceOrientation(rotation);
/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/Launcher3/WallpaperPicker/src/com/android/launcher3/
H A DWallpaperCropActivity.java312 int rotation = getRotationFromExif(this, uri);
314 this, uri, null, rotation, 0, 0, true, false, null);
334 int rotation = getRotationFromExif(res, resId);
352 crop, rotation, outSize.x, outSize.y, true, false, onEndCrop);
478 RectF cropBounds, int rotation, int outWidth, int outHeight,
482 init(cropBounds, rotation,
487 RectF cropBounds, int rotation, int outWidth, int outHeight,
490 init(cropBounds, rotation,
495 RectF cropBounds, int rotation, int outWidth, int outHeight,
499 init(cropBounds, rotation,
477 BitmapCropTask(Context c, String filePath, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument
486 BitmapCropTask(byte[] imageBytes, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument
494 BitmapCropTask(Context c, Uri inUri, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument
503 BitmapCropTask(Context c, Resources res, int inResId, RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument
513 init(RectF cropBounds, int rotation, int outWidth, int outHeight, boolean setWallpaper, boolean saveCroppedBitmap, Runnable onEndRunnable) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/app/
H A DOrientationManagerImpl.java163 // Display rotation >= 180 means we need to use the REVERSE landscape/portrait
174 // clockwise rotation from landscape, so we need
175 // to flip which portrait we pick as display rotation is counter clockwise
229 int rotation = activity.getWindowManager().getDefaultDisplay()
231 switch (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
/packages/apps/Camera2/src/com/android/camera/ui/
H A DZoomView.java65 // Calculate the rotation matrix to apply orientation on the original image
86 // Set the translation of the matrix so that after rotation, the top left
105 // rotation to find out the region in the original image
158 Matrix rotation = new Matrix();
159 rotation.setRotate(mOrientation);
160 return Bitmap.createBitmap(b, 0, 0, b.getWidth(), b.getHeight(), rotation, false);
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DBitmapUtils.java179 public static Bitmap rotateBitmap(Bitmap source, int rotation, boolean recycle) { argument
180 if (rotation == 0) return source;
184 m.postRotate(rotation);
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/
H A DBitmapUtils.java179 public static Bitmap rotateBitmap(Bitmap source, int rotation, boolean recycle) { argument
180 if (rotation == 0) return source;
184 m.postRotate(rotation);
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoTouchListener.java185 float rotation = target.getRotation();
188 rotation = mInitialTargetA + a - mInitialTouchA;
193 rotation);

Completed in 476 milliseconds

123