/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | Image.java | 59 protected void setDegreesRotated(int degrees) { in setDegreesRotated() argument 60 if (mRotation == degrees) return; in setDegreesRotated() 61 mRotation = degrees; in setDegreesRotated() 105 private void setExifRotation(int degrees) { in setExifRotation() argument 107 degrees %= 360; in setExifRotation() 108 if (degrees < 0) degrees += 360; in setExifRotation() 111 switch (degrees) { in setExifRotation() 139 public boolean rotateImageBy(int degrees) { in rotateImageBy() argument 140 int newDegrees = (getDegreesRotated() + degrees) % 360; in rotateImageBy()
|
D | IImage.java | 78 public abstract boolean rotateImageBy(int degrees); in rotateImageBy() argument
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | JpegUtilNative.java | 189 int degrees) { in compressJpegFromYUV420Image() argument 191 img.getHeight()), degrees); in compressJpegFromYUV420Image() 211 Rect crop, int degrees) { in compressJpegFromYUV420Image() argument 212 Preconditions.checkState((degrees % 90) == 0, "Rotation must be a multiple of 90 degrees," + in compressJpegFromYUV420Image() 213 " was " + degrees); in compressJpegFromYUV420Image() 215 degrees = ((degrees % 360) + (360 * 2)) % 360; in compressJpegFromYUV420Image() 259 degrees = degrees % 360; in compressJpegFromYUV420Image() 261 int rot90 = (360 - degrees) / 90; in compressJpegFromYUV420Image()
|
D | CameraUtil.java | 141 public static Bitmap rotate(Bitmap b, int degrees) { in rotate() argument 142 return rotateAndMirror(b, degrees, false); in rotate() 149 public static Bitmap rotateAndMirror(Bitmap b, int degrees, boolean mirror) { in rotateAndMirror() argument 150 if ((degrees != 0 || mirror) && b != null) { in rotateAndMirror() 156 degrees = (degrees + 360) % 360; in rotateAndMirror() 157 if (degrees == 0 || degrees == 180) { in rotateAndMirror() 159 } else if (degrees == 90 || degrees == 270) { in rotateAndMirror() 162 throw new IllegalArgumentException("Invalid degrees=" + degrees); in rotateAndMirror() 165 if (degrees != 0) { in rotateAndMirror() 167 m.postRotate(degrees, in rotateAndMirror()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Util.java | 114 public static Bitmap rotate(Bitmap b, int degrees) { in rotate() argument 115 return rotateAndMirror(b, degrees, false); in rotate() 120 public static Bitmap rotateAndMirror(Bitmap b, int degrees, boolean mirror) { in rotateAndMirror() argument 121 if ((degrees != 0 || mirror) && b != null) { in rotateAndMirror() 127 degrees = (degrees + 360) % 360; in rotateAndMirror() 128 if (degrees == 0 || degrees == 180) { in rotateAndMirror() 130 } else if (degrees == 90 || degrees == 270) { in rotateAndMirror() 133 throw new IllegalArgumentException("Invalid degrees=" + degrees); in rotateAndMirror() 136 if (degrees != 0) { in rotateAndMirror() 138 m.postRotate(degrees, in rotateAndMirror() [all …]
|
D | EffectsRecorder.java | 342 public void setOrientationHint(int degrees) { in setOrientationHint() argument 350 if (mLogVerbose) Log.v(TAG, "Setting orientation hint to: " + degrees); in setOrientationHint() 351 mOrientationHint = degrees; in setOrientationHint()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | OrientationManager.java | 27 private DeviceOrientation(int degrees) { in DeviceOrientation() argument 28 mDegrees = degrees; in DeviceOrientation() 44 public static DeviceOrientation from(int degrees) { in from() argument 45 switch (degrees) { in from() 58 int normalizedDegrees = (Math.abs(degrees / 360) * 360 + 360 + degrees) % 360; in from()
|
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/ |
D | VideoChatTestActivity.java | 118 int degrees = 0; in getDisplayOrientation() local 121 degrees = 0; in getDisplayOrientation() 124 degrees = 90; in getDisplayOrientation() 127 degrees = 180; in getDisplayOrientation() 130 degrees = 270; in getDisplayOrientation() 133 return degrees; in getDisplayOrientation() 142 int degrees = getDisplayOrientation(); 143 new CameraTestRunner().execute(new Integer[] { degrees });
|
/packages/services/Car/evs/app/ |
D | config.json.readme | 9 // Units for angles are in degrees. 36 "yaw" : 180, // Optical axis degrees to the left of straight ahead 37 "pitch" : -30, // Optical axis degrees above the horizon 38 "hfov" : 125, // Horizontal field of view in degrees 39 "vfov" :103 // Vertical field of view in degrees
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
D | ExifInterface.java | 1860 public static short getOrientationValueForRotation(int degrees) { in getOrientationValueForRotation() argument 1861 degrees %= 360; in getOrientationValueForRotation() 1862 if (degrees < 0) { in getOrientationValueForRotation() 1863 degrees += 360; in getOrientationValueForRotation() 1865 if (degrees < 90) { in getOrientationValueForRotation() 1867 } else if (degrees < 180) { in getOrientationValueForRotation() 1869 } else if (degrees < 270) { in getOrientationValueForRotation() 1911 double degrees = coordinate[0].toDouble(); in convertLatOrLongToDouble() local 1914 double result = degrees + minutes / 60.0 + seconds / 3600.0; in convertLatOrLongToDouble() 2033 int degrees = (int) value; in toExifLatLong() local [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/exif/ |
D | ExifInterface.java | 1860 public static short getOrientationValueForRotation(int degrees) { in getOrientationValueForRotation() argument 1861 degrees %= 360; in getOrientationValueForRotation() 1862 if (degrees < 0) { in getOrientationValueForRotation() 1863 degrees += 360; in getOrientationValueForRotation() 1865 if (degrees < 90) { in getOrientationValueForRotation() 1867 } else if (degrees < 180) { in getOrientationValueForRotation() 1869 } else if (degrees < 270) { in getOrientationValueForRotation() 1952 double degrees = coordinate[0].toDouble(); in convertLatOrLongToDouble() local 1955 double result = degrees + minutes / 60.0 + seconds / 3600.0; in convertLatOrLongToDouble() 2074 int degrees = (int) value; in toExifLatLong() local [all …]
|
/packages/apps/Camera2/src/com/android/camera/exif/ |
D | ExifInterface.java | 1839 public static short getOrientationValueForRotation(int degrees) { in getOrientationValueForRotation() argument 1840 degrees %= 360; in getOrientationValueForRotation() 1841 if (degrees < 0) { in getOrientationValueForRotation() 1842 degrees += 360; in getOrientationValueForRotation() 1844 if (degrees < 90) { in getOrientationValueForRotation() 1846 } else if (degrees < 180) { in getOrientationValueForRotation() 1848 } else if (degrees < 270) { in getOrientationValueForRotation() 1890 double degrees = coordinate[0].toDouble(); in convertLatOrLongToDouble() local 1893 double result = degrees + minutes / 60.0 + seconds / 3600.0; in convertLatOrLongToDouble() 2012 int degrees = (int) value; in toExifLatLong() local [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraManager.java | 670 int degrees = 0; in updateCameraOrientation() local 672 case Surface.ROTATION_0: degrees = 0; break; in updateCameraOrientation() 673 case Surface.ROTATION_90: degrees = 90; break; in updateCameraOrientation() 674 case Surface.ROTATION_180: degrees = 180; break; in updateCameraOrientation() 675 case Surface.ROTATION_270: degrees = 270; break; in updateCameraOrientation() 685 orientation = (mCameraInfo.orientation + degrees) % 360; in updateCameraOrientation() 690 orientation = (mCameraInfo.orientation - degrees + 360) % 360; in updateCameraOrientation()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GLRootView.java | 444 private void rotateCanvas(int degrees) { in rotateCanvas() argument 445 if (degrees == 0) return; in rotateCanvas() 451 mCanvas.rotate(degrees, 0, 0, 1); in rotateCanvas() 452 if (degrees % 180 != 0) { in rotateCanvas()
|
D | Paper.java | 81 float degrees = in getTransform() local 85 Matrix.rotateM(mMatrix, 0, degrees, 0, 1, 0); in getTransform()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | VideoUtils.java | 178 int degrees = Integer.parseInt(degreesString); in genVideoUsingMuxer() local 179 if (degrees >= 0) { in genVideoUsingMuxer() 180 muxer.setOrientationHint(degrees); in genVideoUsingMuxer()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | Util.java | 64 public static Bitmap rotate(Bitmap b, int degrees) { in rotate() argument 65 if (degrees != 0 && b != null) { in rotate() 67 m.setRotate(degrees, in rotate()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | OneCameraZslImpl.java | 613 int degrees = CameraUtil.getJpegRotation(captureParams.orientation, mCharacteristics); in savePicture() local 619 degrees); in savePicture() 640 acquireJpegBytes(image, degrees), in savePicture() 1013 private byte[] acquireJpegBytes(Image img, int degrees) { in acquireJpegBytes() argument 1032 degrees); in acquireJpegBytes()
|
/packages/apps/Nfc/src/com/android/nfc/beam/ |
D | SendUi.java | 607 float degrees = getDegreesForRotation(mDisplay.getRotation()); in createScreenshot() local 620 boolean requiresRotation = (degrees > 0); in createScreenshot() 624 mDisplayMatrix.preRotate(-degrees); in createScreenshot() 642 c.rotate(360f - degrees); in createScreenshot()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | IndicatorControlWheel.java | 398 double degrees = CLOSE_ICON_DEFAULT_DEGREES; in presetSecondLevelChildRadians() local 403 mChildRadians[startIndex + i] = Math.toRadians(degrees); in presetSecondLevelChildRadians() 404 degrees += sectorDegrees; in presetSecondLevelChildRadians()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocalMergeAlbum.java | 207 public void rotate(int degrees) { in rotate() argument 209 set.rotate(degrees); in rotate()
|
D | DataManager.java | 256 public void rotate(Path path, int degrees) { in rotate() argument 257 getMediaObject(path).rotate(degrees); in rotate()
|
D | LocalImage.java | 276 public void rotate(int degrees) { in rotate() argument 280 int rotation = (this.rotation + degrees) % 360; in rotate()
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | TaskCompressImageToJpeg.java | 86 Rect crop, int degrees) { in compressJpegFromYUV420Image() argument 87 return JpegUtilNative.compressJpegFromYUV420Image(img, outBuf, quality, crop, degrees); in compressJpegFromYUV420Image()
|
/packages/apps/Gallery/tests/src/com/android/camera/gallery/ |
D | MockImage.java | 97 public boolean rotateImageBy(int degrees) { in rotateImageBy() argument
|