/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | RectUtils.java | 59 public static void rotateRect(final int degrees, final int px, final int py, final Rect rect) { argument 62 matrix.setRotate(degrees, px, py);
|
/frameworks/av/media/libstagefright/ |
H A D | MediaMuxer.cpp | 89 status_t MediaMuxer::setOrientationHint(int degrees) { argument 96 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) { 97 ALOGE("setOrientationHint() get invalid degrees"); 101 mFileMeta->setInt32(kKeyRotation, degrees);
|
/frameworks/av/media/ndk/ |
H A D | NdkMediaMuxer.cpp | 76 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer *muxer, int degrees) { argument 77 return translate_error(muxer->mImpl->setOrientationHint(degrees));
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Camera.cpp | 41 static void Camera_rotateX(JNIEnv* env, jobject obj, jfloat degrees) { argument 44 v->rotateX(degrees); 47 static void Camera_rotateY(JNIEnv* env, jobject obj, jfloat degrees) { argument 50 v->rotateY(degrees); 53 static void Camera_rotateZ(JNIEnv* env, jobject obj, jfloat degrees) { argument 56 v->rotateZ(degrees);
|
H A D | Matrix.cpp | 185 static void setRotate__FFF(jlong objHandle, jfloat degrees, jfloat px, argument 188 obj->setRotate(degrees, px, py); 191 static void setRotate__F(jlong objHandle, jfloat degrees) { argument 193 obj->setRotate(degrees); 242 static void preRotate__FFF(jlong objHandle, jfloat degrees, jfloat px, argument 245 obj->preRotate(degrees, px, py); 248 static void preRotate__F(jlong objHandle, jfloat degrees) { argument 250 obj->preRotate(degrees); 286 static void postRotate__FFF(jlong objHandle, jfloat degrees, jfloat px, argument 289 obj->postRotate(degrees, p 292 postRotate__F(jlong objHandle, jfloat degrees) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | ColorMatrix.java | 144 public void setRotate(int axis, float degrees) { argument 146 double radians = degrees * Math.PI / 180d;
|
H A D | Matrix.java | 73 public void setRotate(float degrees, float px, float py) { 78 public void setRotate(float degrees) { 127 public boolean preRotate(float degrees, float px, float py) { 133 public boolean preRotate(float degrees) { 175 public boolean postRotate(float degrees, float px, float py) { 181 public boolean postRotate(float degrees) { 273 * identity, scale-only, or rotates a multiple of 90 degrees. 336 * Set the matrix to rotate by the specified number of degrees, with a pivot point at (px, py). 340 public void setRotate(float degrees, float px, float py) { argument 341 nSetRotate(native_instance, degrees, p 347 setRotate(float degrees) argument 422 preRotate(float degrees, float px, float py) argument 430 preRotate(float degrees) argument 486 postRotate(float degrees, float px, float py) argument 494 postRotate(float degrees) argument 891 nSetRotate(long nObject, float degrees, float px, float py) argument 893 nSetRotate(long nObject, float degrees) argument 912 nPreRotate(long nObject, float degrees, float px, float py) argument 914 nPreRotate(long nObject, float degrees) argument 928 nPostRotate(long nObject, float degrees, float px, float py) argument 930 nPostRotate(long nObject, float degrees) argument [all...] |
H A D | Canvas.java | 653 * @param degrees The amount to rotate, in degrees 655 public void rotate(float degrees) { argument 656 if (degrees == 0.0f) return; 657 nRotate(mNativeCanvasWrapper, degrees); 663 * @param degrees The amount to rotate, in degrees 667 public final void rotate(float degrees, float px, float py) { argument 668 if (degrees == 0.0f) return; 670 rotate(degrees); 1271 nRotate(long canvasHandle, float degrees) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | MathUtils.java | 126 public static float radians(float degrees) { argument 127 return degrees * DEG_TO_RAD; 130 public static float degrees(float radians) { method in class:MathUtils 159 * Returns an interpolated angle in degrees between a set of start and end 168 * @param start the starting angle in degrees 169 * @param end the ending angle in degrees 172 * @return the interpolated angle in degrees
|
/frameworks/base/libs/hwui/ |
H A D | CanvasState.cpp | 172 void CanvasState::rotate(float degrees) { argument 173 mSnapshot->transform->rotate(degrees, 0.0f, 0.0f, 1.0f);
|
H A D | RecordingCanvas.cpp | 203 void RecordingCanvas::rotate(float degrees) { argument 204 if (degrees == 0) return; 206 mState.rotate(degrees);
|
H A D | SkiaCanvas.cpp | 330 void SkiaCanvas::rotate(float degrees) { argument 331 mCanvas->rotate(degrees);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaMuxer.java | 287 long nativeObject, int degrees); 369 * @param degrees the angle to be rotated clockwise in degrees. 370 * The supported angles are 0, 90, 180, and 270 degrees. 374 public void setOrientationHint(int degrees) { argument 375 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) { 376 throw new IllegalArgumentException("Unsupported angle: " + degrees); 286 nativeSetOrientationHint( long nativeObject, int degrees) argument [all...] |
H A D | MediaRecorder.java | 535 * @param degrees the angle to be rotated clockwise in degrees. 536 * The supported angles are 0, 90, 180, and 270 degrees. 540 public void setOrientationHint(int degrees) { argument 541 if (degrees != 0 && 542 degrees != 90 && 543 degrees != 180 && 544 degrees != 270) { 545 throw new IllegalArgumentException("Unsupported angle: " + degrees); 547 setParameter("video-param-rotation-angle-degrees [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaMuxer.cpp | 174 JNIEnv *env, jclass /* clazz */, jlong nativeObject, jint degrees) { 181 status_t err = muxer->setOrientationHint(degrees); 173 android_media_MediaMuxer_setOrientationHint( JNIEnv *env, jclass , jlong nativeObject, jint degrees) argument
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas_Delegate.java | 270 public static void nRotate(long nativeCanvas, float degrees) { argument 277 canvasDelegate.getSnapshot().rotate(Math.toRadians(degrees));
|
H A D | Matrix_Delegate.java | 293 /*package*/ static void nSetRotate(long native_object, float degrees, float px, float py) { argument 299 d.mValues = getRotate(degrees, px, py); 303 /*package*/ static void nSetRotate(long native_object, float degrees) { argument 309 setRotate(d.mValues, degrees); 414 /*package*/ static void nPreRotate(long native_object, float degrees, argument 418 d.preTransform(getRotate(degrees, px, py)); 423 /*package*/ static void nPreRotate(long native_object, float degrees) { argument 427 double rad = Math.toRadians(degrees); 487 /*package*/ static void nPostRotate(long native_object, float degrees, argument 491 d.postTransform(getRotate(degrees, p 496 nPostRotate(long native_object, float degrees) argument 1003 getRotate(float degrees) argument 1015 setRotate(float[] dest, float degrees) argument 1036 getRotate(float degrees, float px, float py) argument [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
H A D | RadialPickerLayout.java | 125 // Prepare mapping to snap touchable degrees to selectable degrees. 321 * Split up the 360 degrees of the circle among the 60 selectable values. Assigns a larger 324 * E.g. the output of 30 degrees should have a higher range of input associated with it than 325 * the output of 24 degrees, because 30 degrees corresponds to a visible number on the clock 330 // output will correspond to a range of 14 associated input degrees, and each non-visible 331 // output will correspond to a range of 4 associate input degrees, so visible numbers 335 // If an output of 30 degrees should correspond to a range of 14 associated degrees, the 383 snapPrefer30s(int degrees) argument 399 snapOnly30s(int degrees, int forceHigherOrLower) argument 433 reselectSelector(int degrees, boolean isInnerCircle, boolean forceToVisibleValue, boolean forceDrawDot) argument [all...] |
/frameworks/av/services/camera/libcameraservice/api1/ |
H A D | Camera2Client.cpp | 1587 status_t Camera2Client::commandSetDisplayOrientationL(int degrees) { argument 1588 int transform = Parameters::degToTransform(degrees, 1592 __FUNCTION__, mCameraId, degrees);
|
H A D | CameraClient.cpp | 1151 int CameraClient::getOrientation(int degrees, bool mirror) { argument 1153 if (degrees == 0) return 0; 1154 else if (degrees == 90) return HAL_TRANSFORM_ROT_90; 1155 else if (degrees == 180) return HAL_TRANSFORM_ROT_180; 1156 else if (degrees == 270) return HAL_TRANSFORM_ROT_270; 1158 if (degrees == 0) { // FLIP_H and ROT_0 1160 } else if (degrees == 90) { // FLIP_H and ROT_90 1162 } else if (degrees == 180) { // FLIP_H and ROT_180 1164 } else if (degrees == 270) { // FLIP_H and ROT_270 1168 ALOGE("Invalid setDisplayOrientation degrees [all...] |
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | CameraAgent.java | 724 * @param degrees The counterclockwise rotation in degrees, relative to the device's natural 727 public void setDisplayOrientation(final int degrees) { argument 728 setDisplayOrientation(degrees, true); 737 * @param degrees The counterclockwise rotation in degrees, relative to the device's natural 741 public void setDisplayOrientation(final int degrees, final boolean capture) { argument 747 .obtainMessage(CameraActions.SET_DISPLAY_ORIENTATION, degrees, 756 public void setJpegOrientation(final int degrees) { argument 762 .obtainMessage(CameraActions.SET_JPEG_ORIENTATION, degrees, [all...] |
/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 535 status_t StagefrightRecorder::setParamVideoRotation(int32_t degrees) { argument 536 ALOGV("setParamVideoRotation: %d", degrees); 537 if (degrees < 0 || degrees % 90 != 0) { 538 ALOGE("Unsupported video rotation angle: %d", degrees); 541 mRotationDegrees = degrees % 360; 808 } else if (key == "video-param-rotation-angle-degrees") { 809 int32_t degrees; local 810 if (safe_strtoi32(value.string(), °rees)) { 811 return setParamVideoRotation(degrees); [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | RadialTimePickerView.java | 103 // Prepare mapping to snap touchable degrees to selectable degrees. 218 * Split up the 360 degrees of the circle among the 60 selectable values. Assigns a larger 221 * E.g. the output of 30 degrees should have a higher range of input associated with it than 222 * the output of 24 degrees, because 30 degrees corresponds to a visible number on the clock 227 // output will correspond to a range of 14 associated input degrees, and each non-visible 228 // output will correspond to a range of 4 associate input degrees, so visible numbers 232 // If an output of 30 degrees should correspond to a range of 14 associated degrees, the 277 snapPrefer30s(int degrees) argument 293 snapOnly30s(int degrees, int forceHigherOrLower) argument 524 getHourForDegrees(int degrees, boolean innerCircle) argument 583 getMinuteForDegrees(int degrees) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_graphics_Canvas.cpp | 135 static void rotate(jlong canvasHandle, jfloat degrees) { argument 136 get_canvas(canvasHandle)->rotate(degrees);
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
H A D | PhotoView.java | 160 /** The current rotation amount, in degrees */ 662 * Rotates the image 90 degrees, clockwise. 669 * Rotates the image 90 degrees, counter clockwise. 1106 * @param degrees how many degrees to rotate the image, positive rotates clockwise 1109 private void rotate(float degrees, boolean animate) { argument 1111 mRotateRunnable.start(degrees); 1113 mRotation += degrees; 1114 mMatrix.postRotate(degrees, getWidth() / 2, getHeight() / 2);
|