/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | RecentsOrientedState.java | 147 public void onOrientationChanged(int degrees) { in RecentsOrientedState() 148 int newRotation = getRotationForUserDegreesRotated(degrees, mPreviousRotation); in RecentsOrientedState() 436 public void transformEvent(float degrees, MotionEvent ev, boolean inverse) { in transformEvent() argument 437 mTmpMatrix.setRotate(inverse ? -degrees : degrees); in transformEvent() 450 public static int getRotationForUserDegreesRotated(float degrees, int currentRotation) { in getRotationForUserDegreesRotated() argument 451 if (degrees == ORIENTATION_UNKNOWN) { in getRotationForUserDegreesRotated() 458 if (degrees > 180 && degrees < (360 - threshold)) { in getRotationForUserDegreesRotated() 461 if (degrees < 180 && degrees > threshold) { in getRotationForUserDegreesRotated() 466 if (degrees < (90 - threshold) || in getRotationForUserDegreesRotated() 467 (degrees > (270 + threshold) && degrees < 360)) { in getRotationForUserDegreesRotated() [all …]
|
/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/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/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 …]
|
/packages/services/Car/cpp/evs/apps/default/res/ |
D | config.json.readme | 9 // Units for angles are in degrees. 39 "yaw" : 180, // Optical axis degrees to the left of straight ahead 40 "pitch" : -30, // Optical axis degrees above the horizon 41 "roll" : 0, // Rotation degrees around the optical axis 42 "hfov" : 125, // Horizontal field of view in degrees 43 "vfov" :103, // Vertical field of view in degrees
|
/packages/services/Car/car-lib/src/android/car/navigation/ |
D | navigation_state.proto | 122 // No turn, from 0 (included) to 10 (excluded) degrees. Used when we just 127 // No turn, from 0 (included) to 10 (excluded) degrees. Used when we just 134 // degrees. 137 // degrees. 141 // (excluded) degrees. 144 // (excluded) degrees. 148 // degrees. 151 // (excluded) degrees. 155 // (included) to 180 (included) degrees. 158 // (included) to 180 (included) degrees. [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | MetadataUtils.java | 98 double degrees = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat() local 109 double result = degrees + (minutes / 60.0) + (seconds / 3600.0); in convertRationalLatLonToFloat()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | Paper.java | 81 float degrees = in getTransform() local 85 Matrix.rotateM(mMatrix, 0, degrees, 0, 1, 0); in getTransform()
|
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()
|
/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/Gallery2/src/com/android/gallery3d/app/ |
D | VideoUtils.java | 183 int degrees = Integer.parseInt(degreesString); in genVideoUsingMuxer() local 184 if (degrees >= 0) { in genVideoUsingMuxer() 185 muxer.setOrientationHint(degrees); in genVideoUsingMuxer()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraManager.java | 671 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/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/Gallery2/src/com/android/gallery3d/data/ |
D | LocalMergeAlbum.java | 207 public void rotate(int degrees) { in rotate() argument 209 set.rotate(degrees); in rotate()
|
/packages/services/Telephony/utils/satellite/ |
D | README.md | 66 - Run the tool: `$satellite_location_lookup --input-file <...> --lat-degrees <...> 67 --lng-degrees <...>`
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | IndicatorControlWheel.java | 405 double degrees = CLOSE_ICON_DEFAULT_DEGREES; in presetSecondLevelChildRadians() local 410 mChildRadians[startIndex + i] = Math.toRadians(degrees); in presetSecondLevelChildRadians() 411 degrees += sectorDegrees; in presetSecondLevelChildRadians()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/ |
D | OtherActivityInputConsumer.java | 299 double degrees = Math.toDegrees(Math.atan(upDist / horizontalDist)); in onMotionEvent() local 304 boolean swipeWithinQuickSwitchRange = degrees <= OVERVIEW_MIN_DEGREES in onMotionEvent() 305 && (!mGestureState.isTrackpadGesture() || degrees >= -OVERVIEW_MIN_DEGREES); in onMotionEvent()
|
/packages/apps/Gallery/tests/src/com/android/camera/gallery/ |
D | MockImage.java | 97 public boolean rotateImageBy(int degrees) { in rotateImageBy() argument
|
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | OneCameraZslImpl.java | 614 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/Launcher3/quickstep/src/com/android/quickstep/ |
D | RotationTouchHelper.java | 165 public void onOrientationChanged(int degrees) { in init() 166 int newRotation = RecentsOrientedState.getRotationForUserDegreesRotated(degrees, in init()
|