Home
last modified time | relevance | path

Searched refs:degrees (Results 1 – 25 of 38) sorted by relevance

12

/packages/apps/Gallery/src/com/android/camera/gallery/
DImage.java59 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()
/packages/apps/Camera2/src/com/android/camera/util/
DJpegUtilNative.java189 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()
DCameraUtil.java141 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/
DUtil.java114 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 …]
DEffectsRecorder.java342 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/
DOrientationManager.java27 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/services/Car/car-lib/src/android/car/navigation/
Dnavigation_state.proto121 // No turn, from 0 (included) to 10 (excluded) degrees. Used when we just
129 // degrees.
134 // degrees.
139 // degrees
144 // 180 (included) degrees.
270 // Slight left turn, from 10 (included) to 45 (excluded) degrees.
273 // Slight right turn, from 10 (included) to 45 (excluded) degrees.
276 // Regular left turn, from 45 (included) to 135 (excluded) degrees.
279 // Regular right turn, from 45 (included) to 135 (excluded) degrees.
282 // Sharp left turn, from 135 (included) to 175 (excluded) degrees.
[all …]
/packages/services/Car/evs/app/
Dconfig.json.readme9 // 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/
DQrCamera.java194 int degrees = 0; in startPreview() local
197 degrees = 0; in startPreview()
200 degrees = 90; in startPreview()
203 degrees = 180; in startPreview()
206 degrees = 270; in startPreview()
209 final int rotateDegrees = (mCameraOrientation - degrees + 360) % 360; in startPreview()
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrCamera.java204 int degrees = 0; in startPreview() local
207 degrees = 0; in startPreview()
210 degrees = 90; in startPreview()
213 degrees = 180; in startPreview()
216 degrees = 270; in startPreview()
219 final int rotateDegrees = (mCameraOrientation - degrees + 360) % 360; in startPreview()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifInterface.java1860 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/
DExifInterface.java1860 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/
DExifInterface.java1839 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/
DCameraManager.java671 int degrees = 0; in updateCameraOrientation() local
673 case Surface.ROTATION_0: degrees = 0; break; in updateCameraOrientation()
674 case Surface.ROTATION_90: degrees = 90; break; in updateCameraOrientation()
675 case Surface.ROTATION_180: degrees = 180; break; in updateCameraOrientation()
676 case Surface.ROTATION_270: degrees = 270; break; in updateCameraOrientation()
686 orientation = (mCameraInfo.orientation + degrees) % 360; in updateCameraOrientation()
691 orientation = (mCameraInfo.orientation - degrees + 360) % 360; in updateCameraOrientation()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLRootView.java444 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()
DPaper.java81 float degrees = in getTransform() local
85 Matrix.rotateM(mMatrix, 0, degrees, 0, 1, 0); in getTransform()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DVideoUtils.java178 int degrees = Integer.parseInt(degreesString); in genVideoUsingMuxer() local
179 if (degrees >= 0) { in genVideoUsingMuxer()
180 muxer.setOrientationHint(degrees); in genVideoUsingMuxer()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DMetadataUtils.java98 double degrees = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat() local
109 double result = degrees + (minutes / 60.0) + (seconds / 3600.0); in convertRationalLatLonToFloat()
/packages/apps/Gallery/src/com/android/camera/
DUtil.java64 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/
DOneCameraZslImpl.java614 int degrees = CameraUtil.getJpegRotation(captureParams.orientation, mCharacteristics); in savePicture() local
620 degrees); in savePicture()
641 acquireJpegBytes(image, degrees), in savePicture()
1014 private byte[] acquireJpegBytes(Image img, int degrees) { in acquireJpegBytes() argument
1033 degrees); in acquireJpegBytes()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlWheel.java398 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/
DLocalMergeAlbum.java207 public void rotate(int degrees) { in rotate() argument
209 set.rotate(degrees); in rotate()
DDataManager.java256 public void rotate(Path path, int degrees) { in rotate() argument
257 getMediaObject(path).rotate(degrees); in rotate()
DLocalImage.java276 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/
DTaskCompressImageToJpeg.java87 Rect crop, int degrees) { in compressJpegFromYUV420Image() argument
88 return JpegUtilNative.compressJpegFromYUV420Image(img, outBuf, quality, crop, degrees); in compressJpegFromYUV420Image()

12