Searched refs:degrees (Results 1 - 25 of 32) sorted by relevance

12

/frameworks/base/graphics/java/android/graphics/
H A DMatrix.java72 public void setRotate(float degrees, float px, float py) {
77 public void setRotate(float degrees) {
126 public boolean preRotate(float degrees, float px, float py) {
132 public boolean preRotate(float degrees) {
174 public boolean postRotate(float degrees, float px, float py) {
180 public boolean postRotate(float degrees) {
253 * degrees.
304 * Set the matrix to rotate by the specified number of degrees, with a pivot
308 public void setRotate(float degrees, float px, float py) { argument
309 native_setRotate(native_instance, degrees, p
315 setRotate(float degrees) argument
385 preRotate(float degrees, float px, float py) argument
393 preRotate(float degrees) argument
449 postRotate(float degrees, float px, float py) argument
457 postRotate(float degrees) argument
805 native_setRotate(int native_object, float degrees, float px, float py) argument
807 native_setRotate(int native_object, float degrees) argument
825 native_preRotate(int native_object, float degrees, float px, float py) argument
827 native_preRotate(int native_object, float degrees) argument
841 native_postRotate(int native_object, float degrees, float px, float py) argument
843 native_postRotate(int native_object, float degrees) argument
[all...]
H A DColorMatrix.java119 public void setRotate(int axis, float degrees) { argument
121 float radians = degrees * (float)Math.PI / 180;
H A DCanvas.java455 * @param degrees The amount to rotate, in degrees
457 public native void rotate(float degrees); argument
462 * @param degrees The amount to rotate, in degrees
466 public final void rotate(float degrees, float px, float py) { argument
468 rotate(degrees);
976 * <p>The arc is drawn clockwise. An angle of 0 degrees correspond to the
977 * geometric angle of 0 degrees (3 o'clock on a watch.)</p>
981 * @param startAngle Starting angle (in degrees) wher
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTextureViewActivity.java126 int degrees = 0;
130 degrees = 0;
133 degrees = 90;
136 degrees = 180;
139 degrees = 270;
143 return (info.orientation - degrees + 360) % 360;
/frameworks/base/media/java/android/media/
H A DMediaRecorder.java372 * @param degrees the angle to be rotated clockwise in degrees.
373 * The supported angles are 0, 90, 180, and 270 degrees.
377 public void setOrientationHint(int degrees) { argument
378 if (degrees != 0 &&
379 degrees != 90 &&
380 degrees != 180 &&
381 degrees != 270) {
382 throw new IllegalArgumentException("Unsupported angle: " + degrees);
384 setParameter("video-param-rotation-angle-degrees
[all...]
H A DExifInterface.java380 double degrees = Double.parseDouble(pair[0].trim())
391 double result = degrees + (minutes / 60.0) + (seconds / 3600.0);
/frameworks/base/core/java/android/view/animation/
H A DRotateAnimation.java167 float degrees = mFromDegrees + ((mToDegrees - mFromDegrees) * interpolatedTime);
171 t.getMatrix().setRotate(degrees);
173 t.getMatrix().setRotate(degrees, mPivotX * scale, mPivotY * scale);
/frameworks/base/core/jni/android/graphics/
H A DCamera.cpp33 static void Camera_rotateX(JNIEnv* env, jobject obj, float degrees) { argument
35 v->rotateX(SkFloatToScalar(degrees));
38 static void Camera_rotateY(JNIEnv* env, jobject obj, float degrees) { argument
40 v->rotateY(SkFloatToScalar(degrees));
43 static void Camera_rotateZ(JNIEnv* env, jobject obj, float degrees) { argument
45 v->rotateZ(SkFloatToScalar(degrees));
H A DMatrix.cpp83 static void setRotate__FFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees, jfloat px, jfloat py) { argument
84 SkScalar degrees_ = SkFloatToScalar(degrees);
90 static void setRotate__F(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees) { argument
91 SkScalar degrees_ = SkFloatToScalar(degrees);
147 static jboolean preRotate__FFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees, jfloat px, jfloat py) { argument
148 SkScalar degrees_ = SkFloatToScalar(degrees);
154 static jboolean preRotate__F(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees) { argument
155 SkScalar degrees_ = SkFloatToScalar(degrees);
197 static jboolean postRotate__FFF(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees, jfloat px, jfloat py) { argument
198 SkScalar degrees_ = SkFloatToScalar(degrees);
204 postRotate__F(JNIEnv* env, jobject clazz, SkMatrix* obj, jfloat degrees) argument
[all...]
H A DCanvas.cpp194 static void rotate__F(JNIEnv* env, jobject jcanvas, jfloat degrees) { argument
196 SkScalar degrees_ = SkFloatToScalar(degrees);
/frameworks/base/core/java/android/util/
H A DMathUtils.java119 public static float radians(float degrees) { argument
120 return degrees * DEG_TO_RAD;
123 public static float degrees(float radians) { method in class:MathUtils
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DMatrix_Delegate.java280 /*package*/ static void native_setRotate(int native_object, float degrees, float px, float py) { argument
286 d.mValues = getRotate(degrees, px, py);
290 /*package*/ static void native_setRotate(int native_object, float degrees) { argument
296 setRotate(d.mValues, degrees);
420 /*package*/ static boolean native_preRotate(int native_object, float degrees, argument
427 d.preTransform(getRotate(degrees, px, py));
432 /*package*/ static boolean native_preRotate(int native_object, float degrees) { argument
438 double rad = Math.toRadians(degrees);
520 /*package*/ static boolean native_postRotate(int native_object, float degrees, argument
527 d.postTransform(getRotate(degrees, p
532 native_postRotate(int native_object, float degrees) argument
1055 getRotate(float degrees) argument
1067 setRotate(float[] dest, float degrees) argument
1088 getRotate(float degrees, float px, float py) argument
[all...]
/frameworks/base/location/java/android/location/
H A DLocation.java41 * 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);
185 sb.append(degrees);
187 coordinate -= degrees;
228 String degrees = st.nextToken();
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...]
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.cpp1256 int CameraService::Client::getOrientation(int degrees, bool mirror) { argument
1258 if (degrees == 0) return 0;
1259 else if (degrees == 90) return HAL_TRANSFORM_ROT_90;
1260 else if (degrees == 180) return HAL_TRANSFORM_ROT_180;
1261 else if (degrees == 270) return HAL_TRANSFORM_ROT_270;
1263 if (degrees == 0) { // FLIP_H and ROT_0
1265 } else if (degrees == 90) { // FLIP_H and ROT_90
1267 } else if (degrees == 180) { // FLIP_H and ROT_180
1269 } else if (degrees == 270) { // FLIP_H and ROT_270
1273 ALOGE("Invalid setDisplayOrientation degrees
[all...]
/frameworks/av/libvideoeditor/vss/common/inc/
H A DM4Common_types.h161 M4OSA_Float degrees; member in struct:__anon113
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp371 status_t StagefrightRecorder::setParamVideoRotation(int32_t degrees) { argument
372 ALOGV("setParamVideoRotation: %d", degrees);
373 if (degrees < 0 || degrees % 90 != 0) {
374 ALOGE("Unsupported video rotation angle: %d", degrees);
377 mRotationDegrees = degrees % 360;
645 } else if (key == "video-param-rotation-angle-degrees") {
646 int32_t degrees; local
647 if (safe_strtoi32(value.string(), &degrees)) {
648 return setParamVideoRotation(degrees);
[all...]
H A DStagefrightRecorder.h169 status_t setParamVideoRotation(int32_t degrees);
/frameworks/av/include/media/stagefright/
H A DMPEG4Writer.h177 void writeCompositionMatrix(int32_t degrees);
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DGlobalScreenshot.java363 * @return the current display rotation in degrees
385 float degrees = getDegreesForRotation(mDisplay.getRotation());
386 boolean requiresRotation = (degrees > 0);
390 mDisplayMatrix.preRotate(-degrees);
410 c.rotate(degrees);
/frameworks/rs/scriptc/
H A Drs_cl.rsh738 * Convert from radians to degrees.
742 _RS_RUNTIME float __attribute__((overloadable)) degrees(float radians);
743 FN_FUNC_FN(degrees)
759 * Convert from degrees to radians.
763 _RS_RUNTIME float __attribute__((overloadable)) radians(float degrees);
/frameworks/rs/driver/
H A DrsdRuntimeMath.cpp129 static float SC_radians(float degrees) { argument
130 return degrees * (M_PI / 180.f);
/frameworks/base/libs/hwui/
H A DOpenGLRenderer.h98 virtual void rotate(float degrees);
/frameworks/compile/libbcc/lib/ScriptCRT/
H A Drs_cl.c751 extern float __attribute__((overloadable)) degrees(float radians) { function
754 FN_FUNC_FN(degrees)
778 extern float __attribute__((overloadable)) radians(float degrees) { argument
779 return degrees * (M_PI / 180.f);
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A Dcarousel.rs674 rsMatrixRotate(matrix, degrees(theta), 0, 1, 0);
681 rsMatrixRotate(matrix, degrees(rotation), 0, 1, 0);
1080 if (debugSelection) rsDebug("Plane Angle = ", degrees(*angle));
1087 if (debugSelection) rsDebug("Cylinder Angle = ", degrees(*angle));
/frameworks/base/core/java/android/view/
H A DGLES20Canvas.java544 public void rotate(float degrees) { argument
545 nRotate(mRenderer, degrees);
548 private static native void nRotate(int renderer, float degrees); argument

Completed in 664 milliseconds

12