/packages/apps/Dialer/java/com/android/incallui/ |
H A D | InCallOrientationEventListener.java | 60 * 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); 172 * Converts sensor rotation i 179 toScreenOrientation(int rotation) argument [all...] |
/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/processing/imagebackend/ |
H A D | ImageToProcess.java | 32 public final OrientationManager.DeviceOrientation rotation; field in class:ImageToProcess 42 * be performed *before* any rotation, and a crop rectangle of 48 this.rotation = imageRotation;
|
H A D | TaskChainedCompressImageToJpeg.java | 55 final TaskImage inputImage = new TaskImage(mImage.rotation, img.proxy.getWidth(), 57 final TaskImage resultImage = new TaskImage(mImage.rotation, img.proxy.getWidth(),
|
/packages/apps/Camera2/src/com/android/camera/data/ |
H A D | VideoRotationMetadataLoader.java | 30 final String rotation = filmstripItem.getMetadata().getVideoOrientation(); 31 return ROTATE_90.equals(rotation) || ROTATE_270.equals(rotation);
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | CaptureModuleUtil.java | 38 int rotation = CameraUtil.getDisplayRotation(); 40 if (((rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) && 42 ((rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270) &&
|
/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/Dialer/java/com/android/dialer/callcomposer/ |
H A D | CopyAndResizeImageWorker.java | 59 int rotation = 0; 61 rotation = 70 bitmap = BitmapResizer.resizeForEnrichedCalling(bitmap, exifToDegrees(rotation));
|
/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/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/ |
H A D | WallpaperTileInfo.java | 47 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/apps/Dialer/java/com/android/dialer/callcomposer/util/ |
H A D | BitmapResizer.java | 34 * @param rotation degrees to rotate the image clockwise 37 public static Bitmap resizeForEnrichedCalling(Bitmap image, int rotation) { argument 44 matrix.postRotate(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/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/WallpaperPicker/src/com/android/photos/views/ |
H A D | TiledImageView.java | 47 public int rotation; field in class:TiledImageView.ImageRendererWrapper 113 mRenderer.rotation = source != null ? source.getRotation() : 0; 172 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation); 187 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation);
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/ |
H A D | ExifInterface.java | 268 * <li>BOTTOM_LEFT is a 180 degree rotation. 271 * <li>RIGHT_TOP is a 90 degree clockwise rotation. 273 * <li>RIGHT_BOTTOM is a 270 degree clockwise rotation. 289 public int rotation = 0; field in class:ExifInterface.OrientationParams 305 params.rotation = 180; 308 params.rotation = 270; 312 params.rotation = 90; 316 params.rotation = 90; 321 params.rotation = 270;
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
H A D | CameraManager.java | 136 /** The rotation of the screen relative to the camera's natural orientation */ 137 private int rotation; field in class:CameraManager 461 if (rotation == 90 || rotation == 270) { 533 * @param screenRotation rotation of the physical device 536 * @return rotation that images returned from {@link 548 int rotation = screenRotationToDegress(screenRotation); 549 boolean portrait = rotation == 0 || rotation == 180; 552 rotation [all...] |
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/ |
H A D | InputStreamProvider.java | 66 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 D | CropAndSetWallpaperTask.java | 55 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/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...] |
/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) {
|
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
H A D | SimulatorVideoProvider.java | 88 public void onSetDeviceOrientation(int rotation) { argument 89 LogUtil.i("SimulatorVideoProvider.onSetDeviceOrientation", "rotation: " + rotation);
|
/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/apps/Messaging/src/com/android/messaging/ui/ |
H A D | OrientedBitmapDrawable.java | 89 matrix.setRotate(mOrientationParams.rotation, mCenterX, mCenterY); 100 canvas.rotate(mOrientationParams.rotation, mCenterX, mCenterY);
|