Home
last modified time | relevance | path

Searched refs:degrees (Results 1 – 25 of 26) 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()
DIImage.java78 public abstract boolean rotateImageBy(int degrees); in rotateImageBy() argument
DVideoObject.java100 public boolean rotateImageBy(int degrees) { in rotateImageBy() argument
DUriImage.java171 public boolean rotateImageBy(int degrees) { in rotateImageBy() argument
/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/Camera/src/com/android/camera/
DUtil.java155 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 …]
DCameraManager.java419 public void setDisplayOrientation(int degrees) { in setDisplayOrientation() argument
421 mCameraHandler.obtainMessage(SET_DISPLAY_ORIENTATION, degrees, 0) in setDisplayOrientation()
DEffectsRecorder.java519 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/
DVideoChatTestActivity.java118 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/
DImageUtils.java139 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/
DExifData.java173 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/
DPaper.java81 float degrees = in getTransform() local
85 Matrix.rotateM(mMatrix, 0, degrees, 0, 1, 0); in getTransform()
DGLRootView.java434 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/
DCircleTimerView.java213 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/
DSendUi.java441 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/
DLocalMergeAlbum.java210 public void rotate(int degrees) { in rotate() argument
212 set.rotate(degrees); in rotate()
DMediaObject.java103 public void rotate(int degrees) { in rotate() argument
DDataManager.java258 public void rotate(Path path, int degrees) { in rotate() argument
259 getMediaObject(path).rotate(degrees); in rotate()
DLocalImage.java289 public void rotate(int degrees) { in rotate() argument
293 int rotation = (this.rotation + degrees) % 360; in rotate()
DLocalVideo.java195 public void rotate(int degrees) { in rotate() argument
/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/Gallery/tests/src/com/android/camera/gallery/
DMockImage.java97 public boolean rotateImageBy(int degrees) { in rotateImageBy() argument
/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/wallpapers/Basic/src/com/android/wallpaper/fall/
Dfall.rs112 leaf->spin = degrees(rsRand(-0.02f, 0.02f)) * 0.25f;
280 leaf->spin = degrees(rsRand(-0.02f, 0.02f)) * 0.35f;

12