/external/skia/include/effects/ |
SkColorMatrix.h | 39 void setRotate(Axis, SkScalar degrees); 41 void preRotate(Axis, SkScalar degrees); 42 void postRotate(Axis, SkScalar degrees);
|
/packages/apps/Camera/src/com/android/camera/ui/ |
RotateRecordingTime.java | 46 // degrees in counter-clockwise 47 public void setOrientation(int degrees) { 48 if (degrees % 90 == 0) { 49 mOrientation = degrees % 360; 52 Log.e(TAG, "Invalid orientation=" + degrees);
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
Image.java | 59 protected void setDegreesRotated(int degrees) { 60 if (mRotation == degrees) return; 61 mRotation = degrees; 105 private void setExifRotation(int degrees) { 107 degrees %= 360; 108 if (degrees < 0) degrees += 360; 111 switch (degrees) { 137 * @param degrees 139 public boolean rotateImageBy(int degrees) { [all...] |
IImage.java | 78 public abstract boolean rotateImageBy(int degrees);
|
VideoObject.java | 100 public boolean rotateImageBy(int degrees) {
|
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/location/ |
CoordinateControls.java | 209 double degrees = mDecimalFormat.parse(mSexagesimalDegreeText.getText()).doubleValue(); local 213 boolean isPositive = (degrees >= 0.); 214 degrees = Math.abs(degrees); 216 double value = degrees + minutes / 60. + seconds / 3600.; 232 double degrees = Math.floor(value); local 235 double minutes = Math.floor((value - degrees) * 60.); 238 double seconds = (value - degrees) * 3600. - minutes * 60.; 242 Integer.toString(isPositive ? (int)degrees : (int)- degrees)); [all...] |
/frameworks/base/core/jni/android/graphics/ |
Camera.cpp | 33 static void Camera_rotateX(JNIEnv* env, jobject obj, float degrees) { 35 v->rotateX(SkFloatToScalar(degrees)); 38 static void Camera_rotateY(JNIEnv* env, jobject obj, float degrees) { 40 v->rotateY(SkFloatToScalar(degrees)); 43 static void Camera_rotateZ(JNIEnv* env, jobject obj, float degrees) { 45 v->rotateZ(SkFloatToScalar(degrees));
|
Matrix.cpp | 84 static void setRotate__FFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees, jfloat px, jfloat py) { 85 SkScalar degrees_ = SkFloatToScalar(degrees); 91 static void setRotate__F(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees) { 92 SkScalar degrees_ = SkFloatToScalar(degrees); 148 static jboolean preRotate__FFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees, jfloat px, jfloat py) { 149 SkScalar degrees_ = SkFloatToScalar(degrees); 155 static jboolean preRotate__F(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees) { 156 SkScalar degrees_ = SkFloatToScalar(degrees); 198 static jboolean postRotate__FFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees, jfloat px, jfloat py) { 199 SkScalar degrees_ = SkFloatToScalar(degrees); [all...] |
/packages/apps/Camera/src/com/android/camera/ |
Util.java | 54 public static Bitmap rotate(Bitmap b, int degrees) { 55 return rotateAndMirror(b, degrees, false); 60 public static Bitmap rotateAndMirror(Bitmap b, int degrees, boolean mirror) { 61 if (degrees != 0 && b != null) { 63 m.setRotate(degrees, 67 degrees = (degrees + 360) % 360; 68 if (degrees == 0 || degrees == 180) { 70 } else if (degrees == 90 || degrees == 270) 320 int degrees = getDisplayRotation(activity); local [all...] |
/frameworks/base/graphics/java/android/graphics/ |
Matrix.java | 68 * degrees. 119 * Set the matrix to rotate by the specified number of degrees, with a pivot 123 public void setRotate(float degrees, float px, float py) { 124 native_setRotate(native_instance, degrees, px, py); 128 * Set the matrix to rotate about (0,0) by the specified number of degrees. 130 public void setRotate(float degrees) { 131 native_setRotate(native_instance, degrees); 198 * M' = M * R(degrees, px, py) 200 public boolean preRotate(float degrees, float px, float py) { 201 return native_preRotate(native_instance, degrees, px, py) [all...] |
ColorMatrix.java | 119 public void setRotate(int axis, float degrees) { 121 float radians = degrees * (float)Math.PI / 180;
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
Rotate3dAnimation.java | 39 * start angle and its end angle. Both angles are in degrees. The rotation 71 float degrees = fromDegrees + ((mToDegrees - fromDegrees) * interpolatedTime); local 85 camera.rotateY(degrees);
|
/external/skia/src/animator/ |
SkDrawMatrix.h | 53 void rotate(SkScalar degrees, SkPoint& center) { 54 fMatrix.preRotate(degrees, center.fX, center.fY);
|
SkMatrixParts.h | 51 SkScalar degrees; member in class:SkRotate
|
/frameworks/base/media/java/android/media/ |
MediaRecorder.java | 297 * @param degrees the angle to be rotated clockwise in degrees. 298 * The supported angles are 0, 90, 180, and 270 degrees. 302 public void setOrientationHint(int degrees) { 303 if (degrees != 0 && 304 degrees != 90 && 305 degrees != 180 && 306 degrees != 270) { 307 throw new IllegalArgumentException("Unsupported angle: " + degrees); 309 setParameter(String.format("video-param-rotation-angle-degrees=%d", degrees)) [all...] |
/frameworks/base/core/java/android/view/animation/ |
RotateAnimation.java | 150 float degrees = mFromDegrees + ((mToDegrees - mFromDegrees) * interpolatedTime); local 153 t.getMatrix().setRotate(degrees); 155 t.getMatrix().setRotate(degrees, mPivotX, mPivotY);
|
/external/webkit/WebKit/android/plugins/ |
ANPMatrixInterface.cpp | 100 static void anp_preRotate(ANPMatrix* matrix, float degrees) { 101 matrix->preRotate(SkFloatToScalar(degrees)); 104 static void anp_postRotate(ANPMatrix* matrix, float degrees) { 105 matrix->postRotate(SkFloatToScalar(degrees));
|
/external/skia/src/utils/ |
SkColorMatrix.cpp | 26 void SkColorMatrix::setRotate(Axis axis, SkScalar degrees) 30 S = SkScalarSinCos(SkDegreesToRadians(degrees), &C); 53 void SkColorMatrix::preRotate(Axis axis, SkScalar degrees) 56 tmp.setRotate(axis, degrees); 60 void SkColorMatrix::postRotate(Axis axis, SkScalar degrees) 63 tmp.setRotate(axis, degrees);
|
/frameworks/base/core/java/android/util/ |
MathUtils.java | 115 public static float radians(float degrees) { 116 return degrees * DEG_TO_RAD; 119 public static float degrees(float radians) { method in class:MathUtils
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Matrix.java | 119 * degrees. 226 * Set the matrix to rotate by the specified number of degrees, with a pivot 231 public void setRotate(float degrees, float px, float py) { 246 double rad = Math.toRadians(degrees); 255 * Set the matrix to rotate about (0,0) by the specified number of degrees. 258 public void setRotate(float degrees) { 259 double rad = Math.toRadians(degrees); 422 * M' = M * R(degrees, px, py) 425 public boolean preRotate(float degrees, float px, float py) { 427 m.setRotate(degrees, px, py) [all...] |
/external/skia/include/core/ |
SkMatrix.h | 65 90 degrees. 141 /** Set the matrix to rotate by the specified number of degrees, with a 145 void setRotate(SkScalar degrees, SkScalar px, SkScalar py); 146 /** Set the matrix to rotate about (0,0) by the specified number of degrees. 148 void setRotate(SkScalar degrees); 185 M' = M * R(degrees, px, py) 187 bool preRotate(SkScalar degrees, SkScalar px, SkScalar py); 189 M' = M * R(degrees) 191 bool preRotate(SkScalar degrees); 222 M' = R(degrees, px, py) * [all...] |
SkScalar.h | 156 #define SkDegreesToRadians(degrees) ((degrees) * (SK_ScalarPI / 180)) 219 #define SkDegreesToRadians(degrees) SkFractMul(degrees, SK_FractPIOver180)
|
/packages/apps/Camera/tests/src/com/android/camera/gallery/ |
MockImage.java | 97 public boolean rotateImageBy(int degrees) {
|
/packages/apps/Gallery/tests/src/com/android/camera/gallery/ |
MockImage.java | 97 public boolean rotateImageBy(int degrees) {
|
/frameworks/base/location/java/android/location/ |
Location.java | 41 * in the form "[+-]DDD.DDDDD where D indicates degrees. 47 * in the form "[+-]DDD:MM.MMMMM" where D indicates degrees and 54 * in the form "DDD:MM:SS.SSSSS" where D indicates degrees, M 184 int degrees = (int) Math.floor(coordinate); local 185 sb.append(degrees); 187 coordinate -= degrees; 228 String degrees = st.nextToken(); local 231 val = Double.parseDouble(degrees); 236 int deg = Integer.parseInt(degrees); 251 // deg must be in [0, 179] except for the case of -180 degrees [all...] |