Searched defs:degrees (Results 1 - 25 of 33) sorted by relevance

12

/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DRectUtils.java59 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 DMediaMuxer.cpp104 status_t MediaMuxer::setOrientationHint(int degrees) { argument
111 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) {
112 ALOGE("setOrientationHint() get invalid degrees");
116 mFileMeta->setInt32(kKeyRotation, degrees);
/frameworks/av/media/ndk/
H A DNdkMediaMuxer.cpp76 media_status_t AMediaMuxer_setOrientationHint(AMediaMuxer *muxer, int degrees) { argument
77 return translate_error(muxer->mImpl->setOrientationHint(degrees));
/frameworks/base/graphics/java/android/graphics/
H A DColorMatrix.java146 public void setRotate(int axis, float degrees) { argument
148 float radians = degrees * (float)Math.PI / 180;
H A DMatrix.java69 public void setRotate(float degrees, float px, float py) {
74 public void setRotate(float degrees) {
123 public boolean preRotate(float degrees, float px, float py) {
129 public boolean preRotate(float degrees) {
171 public boolean postRotate(float degrees, float px, float py) {
177 public boolean postRotate(float degrees) {
260 * degrees.
321 * Set the matrix to rotate by the specified number of degrees, with a pivot
325 public void setRotate(float degrees, float px, float py) { argument
326 native_setRotate(native_instance, degrees, p
332 setRotate(float degrees) argument
411 preRotate(float degrees, float px, float py) argument
420 preRotate(float degrees) argument
483 postRotate(float degrees, float px, float py) argument
492 postRotate(float degrees) argument
852 native_setRotate(long native_object, float degrees, float px, float py) argument
854 native_setRotate(long native_object, float degrees) argument
873 native_preRotate(long native_object, float degrees, float px, float py) argument
875 native_preRotate(long native_object, float degrees) argument
889 native_postRotate(long native_object, float degrees, float px, float py) argument
891 native_postRotate(long native_object, float degrees) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DCamera.cpp41 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 DMatrix.cpp85 static void setRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px, jfloat py) { argument
87 obj->setRotate(degrees, px, py);
89 static void setRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) { argument
91 obj->setRotate(degrees);
131 static void preRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px, jfloat py) { argument
133 obj->preRotate(degrees, px, py);
136 static void preRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) { argument
138 obj->preRotate(degrees);
172 static void postRotate__FFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees, jfloat px, jfloat py) { argument
174 obj->postRotate(degrees, p
177 postRotate__F(JNIEnv* env, jobject clazz, jlong objHandle, jfloat degrees) argument
[all...]
H A DSkiaCanvas.cpp76 virtual void rotate(float degrees);
375 void SkiaCanvas::rotate(float degrees) { argument
376 mCanvas->rotate(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/libs/hwui/
H A DStatefulBaseRenderer.cpp120 void StatefulBaseRenderer::rotate(float degrees) { argument
121 mSnapshot->transform->rotate(degrees, 0.0f, 0.0f, 1.0f);
H A DDisplayListRenderer.cpp138 void DisplayListRenderer::rotate(float degrees) { argument
139 addStateOp(new (alloc()) RotateOp(degrees));
140 StatefulBaseRenderer::rotate(degrees);
/frameworks/base/media/java/android/media/
H A DMediaMuxer.java91 int degrees);
152 * @param degrees the angle to be rotated clockwise in degrees.
153 * The supported angles are 0, 90, 180, and 270 degrees.
155 public void setOrientationHint(int degrees) { argument
156 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) {
157 throw new IllegalArgumentException("Unsupported angle: " + degrees);
90 nativeSetOrientationHint(long nativeObject, int degrees) argument
[all...]
H A DMediaRecorder.java456 * @param degrees the angle to be rotated clockwise in degrees.
457 * The supported angles are 0, 90, 180, and 270 degrees.
461 public void setOrientationHint(int degrees) { argument
462 if (degrees != 0 &&
463 degrees != 90 &&
464 degrees != 180 &&
465 degrees != 270) {
466 throw new IllegalArgumentException("Unsupported angle: " + degrees);
468 setParameter("video-param-rotation-angle-degrees
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaMuxer.cpp149 JNIEnv *env, jclass clazz, jlong nativeObject, jint degrees) {
156 status_t err = muxer->setOrientationHint(degrees);
148 android_media_MediaMuxer_setOrientationHint( JNIEnv *env, jclass clazz, jlong nativeObject, jint degrees) argument
/frameworks/av/services/camera/libcameraservice/api1/
H A DCameraClient.cpp978 int CameraClient::getOrientation(int degrees, bool mirror) { argument
980 if (degrees == 0) return 0;
981 else if (degrees == 90) return HAL_TRANSFORM_ROT_90;
982 else if (degrees == 180) return HAL_TRANSFORM_ROT_180;
983 else if (degrees == 270) return HAL_TRANSFORM_ROT_270;
985 if (degrees == 0) { // FLIP_H and ROT_0
987 } else if (degrees == 90) { // FLIP_H and ROT_90
989 } else if (degrees == 180) { // FLIP_H and ROT_180
991 } else if (degrees == 270) { // FLIP_H and ROT_270
995 ALOGE("Invalid setDisplayOrientation degrees
[all...]
H A DCamera2Client.cpp1579 status_t Camera2Client::commandSetDisplayOrientationL(int degrees) { argument
1580 int transform = Parameters::degToTransform(degrees,
1584 __FUNCTION__, mCameraId, degrees);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DMatrix_Delegate.java290 /*package*/ static void native_setRotate(long native_object, float degrees, float px, float py) { argument
296 d.mValues = getRotate(degrees, px, py);
300 /*package*/ static void native_setRotate(long native_object, float degrees) { argument
306 setRotate(d.mValues, degrees);
411 /*package*/ static void native_preRotate(long native_object, float degrees, argument
415 d.preTransform(getRotate(degrees, px, py));
420 /*package*/ static void native_preRotate(long native_object, float degrees) { argument
424 double rad = Math.toRadians(degrees);
484 /*package*/ static void native_postRotate(long native_object, float degrees, argument
488 d.postTransform(getRotate(degrees, p
493 native_postRotate(long native_object, float degrees) argument
1000 getRotate(float degrees) argument
1012 setRotate(float[] dest, float degrees) argument
1033 getRotate(float degrees, float px, float py) argument
[all...]
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
H A DRadialPickerLayout.java125 // 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/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DCameraAgent.java724 * @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/rs/driver/runtime/
H A Drs_cl.c780 extern float __attribute__((overloadable)) degrees(float radians) { function
783 extern float2 __attribute__((overloadable)) degrees(float2 radians) { function
786 extern float3 __attribute__((overloadable)) degrees(float3 radians) { function
789 extern float4 __attribute__((overloadable)) degrees(float4 radians) { function
815 extern float __attribute__((overloadable)) radians(float degrees) { argument
816 return degrees * (M_PI / 180.f);
818 extern float2 __attribute__((overloadable)) radians(float2 degrees) { argument
819 return degrees * (M_PI / 180.f);
821 extern float3 __attribute__((overloadable)) radians(float3 degrees) { argument
822 return degrees * (M_P
824 radians(float4 degrees) argument
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp381 status_t StagefrightRecorder::setParamVideoRotation(int32_t degrees) { argument
382 ALOGV("setParamVideoRotation: %d", degrees);
383 if (degrees < 0 || degrees % 90 != 0) {
384 ALOGE("Unsupported video rotation angle: %d", degrees);
387 mRotationDegrees = degrees % 360;
655 } else if (key == "video-param-rotation-angle-degrees") {
656 int32_t degrees; local
657 if (safe_strtoi32(value.string(), &degrees)) {
658 return setParamVideoRotation(degrees);
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp2567 int Parameters::degToTransform(int degrees, bool mirror) { argument
2569 if (degrees == 0) return 0;
2570 else if (degrees == 90) return HAL_TRANSFORM_ROT_90;
2571 else if (degrees == 180) return HAL_TRANSFORM_ROT_180;
2572 else if (degrees == 270) return HAL_TRANSFORM_ROT_270;
2574 if (degrees == 0) { // FLIP_H and ROT_0
2576 } else if (degrees == 90) { // FLIP_H and ROT_90
2578 } else if (degrees == 180) { // FLIP_H and ROT_180
2580 } else if (degrees == 270) { // FLIP_H and ROT_270
2584 ALOGE("%s: Bad input: %d", __FUNCTION__, degrees);
[all...]
/frameworks/base/core/java/android/view/
H A DGLES20Canvas.java393 public void rotate(float degrees) { argument
394 nRotate(mRenderer, degrees);
397 private static native void nRotate(long renderer, float degrees); argument
/frameworks/base/core/java/android/widget/
H A DRadialTimePickerView.java190 // Prepare mapping to snap touchable degrees to selectable degrees.
195 * Split up the 360 degrees of the circle among the 60 selectable values. Assigns a larger
198 * E.g. the output of 30 degrees should have a higher range of input associated with it than
199 * the output of 24 degrees, because 30 degrees corresponds to a visible number on the clock
204 // output will correspond to a range of 14 associated input degrees, and each non-visible
205 // output will correspond to a range of 4 associate input degrees, so visible numbers
209 // If an output of 30 degrees should correspond to a range of 14 associated degrees, the
254 snapPrefer30s(int degrees) argument
270 snapOnly30s(int degrees, int forceHigherOrLower) argument
536 getHourForDegrees(int degrees, boolean innerCircle) argument
585 getMinuteForDegrees(int degrees) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp123 static void rotate(JNIEnv*, jobject, jlong canvasHandle, jfloat degrees) { argument
124 get_canvas(canvasHandle)->rotate(degrees);

Completed in 434 milliseconds

12