/packages/apps/Camera2/src/com/android/camera/data/ |
H A D | VideoRotationMetadataLoader.java | 17 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 D | RotateBitmap.java | 32 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 D | CaptureModuleUtil.java | 38 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 D | CaptureLayoutHelper.java | 224 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 D | GeometryMathUtils.java | 49 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 D | WidgetUtils.java | 57 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 D | FilterRotateRepresentation.java | 64 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 D | TiledImageView.java | 66 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 D | TiledImageView.java | 66 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 D | LocalImage.java | 103 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 D | BoundedRect.java | 36 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 D | CropView.java | 113 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 D | AbstractSlotRenderer.java | 47 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 D | SlideshowView.java | 52 public void next(Bitmap bitmap, int rotation) { argument 65 mCurrentRotation = rotation; 67 if (((rotation / 90) & 0x01) == 0) {
|
H A D | TileImageView.java | 206 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 D | OrientationManager.java | 93 // 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 D | TestManagedVideoProvider.java | 89 public void onSetDeviceOrientation(int rotation) { argument 90 mRemoteVideoProvider.setDeviceOrientation(rotation);
|
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/ |
H A D | VideoChatTestActivity.java | 117 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 D | WallpaperCropActivity.java | 312 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 D | OrientationManagerImpl.java | 163 // 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 D | Image.java | 48 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 D | ZoomView.java | 65 // 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 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);
|
/packages/apps/Launcher3/WallpaperPicker/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);
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | PhotoTouchListener.java | 185 float rotation = target.getRotation(); 188 rotation = mInitialTargetA + a - mInitialTouchA; 193 rotation);
|