/frameworks/base/graphics/java/android/graphics/ |
H A D | ColorMatrix.java | 119 public void setRotate(int axis, float degrees) { argument 121 float radians = degrees * (float)Math.PI / 180;
|
H A D | Matrix.java | 72 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 D | Canvas.java | 455 * @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/core/jni/android/graphics/ |
H A D | Camera.cpp | 33 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 D | Matrix.cpp | 83 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 D | Canvas.cpp | 195 static void rotate__F(JNIEnv* env, jobject jcanvas, jfloat degrees) { argument 197 SkScalar degrees_ = SkFloatToScalar(degrees);
|
/frameworks/base/core/java/android/util/ |
H A D | MathUtils.java | 119 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/compile/libbcc/lib/Renderscript/runtime/ |
H A D | rs_cl.c | 711 extern float __attribute__((overloadable)) degrees(float radians) { function 714 extern float2 __attribute__((overloadable)) degrees(float2 radians) { function 717 extern float3 __attribute__((overloadable)) degrees(float3 radians) { function 720 extern float4 __attribute__((overloadable)) degrees(float4 radians) { function 746 extern float __attribute__((overloadable)) radians(float degrees) { argument 747 return degrees * (M_PI / 180.f); 749 extern float2 __attribute__((overloadable)) radians(float2 degrees) { argument 750 return degrees * (M_PI / 180.f); 752 extern float3 __attribute__((overloadable)) radians(float3 degrees) { argument 753 return degrees * (M_P 755 radians(float4 degrees) argument [all...] |
/frameworks/av/libvideoeditor/vss/common/inc/ |
H A D | M4Common_types.h | 161 M4OSA_Float degrees; member in struct:__anon118
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraClient.cpp | 938 int CameraClient::getOrientation(int degrees, bool mirror) { argument 940 if (degrees == 0) return 0; 941 else if (degrees == 90) return HAL_TRANSFORM_ROT_90; 942 else if (degrees == 180) return HAL_TRANSFORM_ROT_180; 943 else if (degrees == 270) return HAL_TRANSFORM_ROT_270; 945 if (degrees == 0) { // FLIP_H and ROT_0 947 } else if (degrees == 90) { // FLIP_H and ROT_90 949 } else if (degrees == 180) { // FLIP_H and ROT_180 951 } else if (degrees == 270) { // FLIP_H and ROT_270 955 ALOGE("Invalid setDisplayOrientation degrees [all...] |
H A D | Camera2Client.cpp | 1200 status_t Camera2Client::commandSetDisplayOrientationL(int degrees) { argument 1201 int transform = Parameters::degToTransform(degrees, 1205 __FUNCTION__, mCameraId, degrees);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Matrix_Delegate.java | 280 /*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...] |
H A D | Canvas_Delegate.java | 149 /*package*/ static void rotate(Canvas thisCanvas, float degrees) { argument 156 canvasDelegate.getSnapshot().rotate(Math.toRadians(degrees));
|
/frameworks/base/media/java/android/media/ |
H A D | MediaRecorder.java | 382 * @param degrees the angle to be rotated clockwise in degrees. 383 * The supported angles are 0, 90, 180, and 270 degrees. 387 public void setOrientationHint(int degrees) { argument 388 if (degrees != 0 && 389 degrees != 90 && 390 degrees != 180 && 391 degrees != 270) { 392 throw new IllegalArgumentException("Unsupported angle: " + degrees); 394 setParameter("video-param-rotation-angle-degrees [all...] |
/frameworks/ex/photoviewer/src/com/android/ex/photo/views/ |
H A D | PhotoView.java | 143 /** The current rotation amount, in degrees */ 528 * Rotates the image 90 degrees, clockwise. 535 * Rotates the image 90 degrees, counter clockwise. 898 * @param degrees how many degrees to rotate the image, positive rotates clockwise 901 private void rotate(float degrees, boolean animate) { argument 903 mRotateRunnable.start(degrees); 905 mRotation += degrees; 906 mMatrix.postRotate(degrees, getWidth() / 2, getHeight() / 2);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 371 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(), °rees)) { 648 return setParamVideoRotation(degrees); [all...] |
/frameworks/av/services/camera/libcameraservice/camera2/ |
H A D | Parameters.cpp | 2172 int Parameters::degToTransform(int degrees, bool mirror) { argument 2174 if (degrees == 0) return 0; 2175 else if (degrees == 90) return HAL_TRANSFORM_ROT_90; 2176 else if (degrees == 180) return HAL_TRANSFORM_ROT_180; 2177 else if (degrees == 270) return HAL_TRANSFORM_ROT_270; 2179 if (degrees == 0) { // FLIP_H and ROT_0 2181 } else if (degrees == 90) { // FLIP_H and ROT_90 2183 } else if (degrees == 180) { // FLIP_H and ROT_180 2185 } else if (degrees == 270) { // FLIP_H and ROT_270 2189 ALOGE("%s: Bad input: %d", __FUNCTION__, degrees); [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_GLES20Canvas.cpp | 298 OpenGLRenderer* renderer, jfloat degrees) { 299 renderer->rotate(degrees); 297 android_view_GLES20Canvas_rotate(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, jfloat degrees) argument
|
/frameworks/base/libs/hwui/ |
H A D | DisplayListRenderer.cpp | 1520 void DisplayListRenderer::rotate(float degrees) { argument 1522 addFloat(degrees); 1523 OpenGLRenderer::rotate(degrees);
|
H A D | OpenGLRenderer.cpp | 1171 void OpenGLRenderer::rotate(float degrees) { argument 1172 mSnapshot->transform->rotate(degrees, 0.0f, 0.0f, 1.0f);
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
H A D | PhotoView.java | 141 /** The current rotation amount, in degrees */ 526 * Rotates the image 90 degrees, clockwise. 533 * Rotates the image 90 degrees, counter clockwise. 900 * @param degrees how many degrees to rotate the image, positive rotates clockwise 903 private void rotate(float degrees, boolean animate) { argument 905 mRotateRunnable.start(degrees); 907 mRotation += degrees; 908 mMatrix.postRotate(degrees, getWidth() / 2, getHeight() / 2);
|
/frameworks/base/core/java/android/view/ |
H A D | GLES20Canvas.java | 555 public void rotate(float degrees) { argument 556 nRotate(mRenderer, degrees); 559 private static native void nRotate(int renderer, float degrees); argument
|
/frameworks/av/media/libstagefright/ |
H A D | MPEG4Writer.cpp | 682 void MPEG4Writer::writeCompositionMatrix(int degrees) { argument 688 switch (degrees) { 1134 * latitudex10000 is latitude in degrees times 10000, and 1135 * longitudex10000 is longitude in degrees times 10000.
|
/frameworks/base/core/java/android/hardware/ |
H A D | Camera.java | 1132 * Set the clockwise rotation of preview display in degrees. This affects 1153 * int degrees = 0; 1155 * case Surface.ROTATION_0: degrees = 0; break; 1156 * case Surface.ROTATION_90: degrees = 90; break; 1157 * case Surface.ROTATION_180: degrees = 180; break; 1158 * case Surface.ROTATION_270: degrees = 270; break; 1163 * result = (info.orientation + degrees) % 360; 1166 * result = (info.orientation - degrees + 360) % 360; 1175 * @param degrees the angle that the picture will be rotated clockwise. 1180 public native final void setDisplayOrientation(int degrees); argument [all...] |