/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
|
D | VideoObject.java | 100 public boolean rotateImageBy(int degrees) { in rotateImageBy() argument
|
D | UriImage.java | 171 public boolean rotateImageBy(int degrees) { in rotateImageBy() argument
|
/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/Camera/src/com/android/camera/ |
D | Util.java | 155 public static Bitmap rotate(Bitmap b, int degrees) { in rotate() argument 156 return rotateAndMirror(b, degrees, false); in rotate() 161 public static Bitmap rotateAndMirror(Bitmap b, int degrees, boolean mirror) { in rotateAndMirror() argument 162 if ((degrees != 0 || mirror) && b != null) { in rotateAndMirror() 168 degrees = (degrees + 360) % 360; in rotateAndMirror() 169 if (degrees == 0 || degrees == 180) { in rotateAndMirror() 171 } else if (degrees == 90 || degrees == 270) { in rotateAndMirror() 174 throw new IllegalArgumentException("Invalid degrees=" + degrees); in rotateAndMirror() 177 if (degrees != 0) { in rotateAndMirror() 179 m.postRotate(degrees, in rotateAndMirror() [all …]
|
D | CameraManager.java | 419 public void setDisplayOrientation(int degrees) { in setDisplayOrientation() argument 421 mCameraHandler.obtainMessage(SET_DISPLAY_ORIENTATION, degrees, 0) in setDisplayOrientation()
|
D | EffectsRecorder.java | 519 public void setOrientationHint(int degrees) { in setOrientationHint() argument 527 if (mLogVerbose) Log.v(TAG, "Setting orientation hint to: " + degrees); in setOrientationHint() 528 mOrientationHint = degrees; in setOrientationHint()
|
/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/apps/VideoEditor/src/com/android/videoeditor/util/ |
D | ImageUtils.java | 139 int degrees = 0; in transformJpeg() local 142 degrees = 90; in transformJpeg() 147 degrees = 180; in transformJpeg() 152 degrees = 270; in transformJpeg() 156 rotateAndScaleImage(inputFilename, degrees, outputFile); in transformJpeg() 157 return degrees != 0; in transformJpeg()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
D | ExifData.java | 173 int degrees = (int) value; in toExifLatLong() local 174 value = (value - degrees) * 60; in toExifLatLong() 179 new Rational(degrees, 1), new Rational(minutes, 1), new Rational(seconds, 100)}; in toExifLatLong()
|
/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 | 434 private void rotateCanvas(int degrees) { in rotateCanvas() argument 435 if (degrees == 0) return; in rotateCanvas() 441 mCanvas.rotate(degrees, 0, 0, 1); in rotateCanvas() 442 if (degrees % 180 != 0) { in rotateCanvas()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | CircleTimerView.java | 213 Canvas canvas, float degrees, int xCenter, int yCenter, float radius) { in drawRedDiamond() argument 217 diamondPercent = 270 - degrees * 360; in drawRedDiamond() 219 diamondPercent = 270 + degrees * 360; in drawRedDiamond()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | SendUi.java | 441 float degrees = getDegreesForRotation(mDisplay.getRotation()); in createScreenshot() local 454 boolean requiresRotation = (degrees > 0); in createScreenshot() 458 mDisplayMatrix.preRotate(-degrees); in createScreenshot() 476 c.rotate(360f - degrees); in createScreenshot()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocalMergeAlbum.java | 210 public void rotate(int degrees) { in rotate() argument 212 set.rotate(degrees); in rotate()
|
D | MediaObject.java | 103 public void rotate(int degrees) { in rotate() argument
|
D | DataManager.java | 258 public void rotate(Path path, int degrees) { in rotate() argument 259 getMediaObject(path).rotate(degrees); in rotate()
|
D | LocalImage.java | 289 public void rotate(int degrees) { in rotate() argument 293 int rotation = (this.rotation + degrees) % 360; in rotate()
|
D | LocalVideo.java | 195 public void rotate(int degrees) { in rotate() argument
|
/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/Gallery/tests/src/com/android/camera/gallery/ |
D | MockImage.java | 97 public boolean rotateImageBy(int degrees) { in rotateImageBy() argument
|
/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/wallpapers/Basic/src/com/android/wallpaper/fall/ |
D | fall.rs | 112 leaf->spin = degrees(rsRand(-0.02f, 0.02f)) * 0.25f; 280 leaf->spin = degrees(rsRand(-0.02f, 0.02f)) * 0.35f;
|