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

12

/frameworks/av/media/libstagefright/
H A DMediaMuxer.cpp90 status_t MediaMuxer::setOrientationHint(int degrees) { argument
97 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) {
98 ALOGE("setOrientationHint() get invalid degrees");
102 mFileMeta->setInt32(kKeyRotation, degrees);
/frameworks/base/graphics/java/android/graphics/
H A DColorMatrix.java119 public void setRotate(int axis, float degrees) { argument
121 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) {
250 * degrees.
311 * Set the matrix to rotate by the specified number of degrees, with a pivot
315 public void setRotate(float degrees, float px, float py) { argument
316 native_setRotate(native_instance, degrees, p
322 setRotate(float degrees) argument
392 preRotate(float degrees, float px, float py) argument
400 preRotate(float degrees) argument
456 postRotate(float degrees, float px, float py) argument
464 postRotate(float degrees) argument
818 native_setRotate(int native_object, float degrees, float px, float py) argument
820 native_setRotate(int native_object, float degrees) argument
838 native_preRotate(int native_object, float degrees, float px, float py) argument
840 native_preRotate(int native_object, float degrees) argument
854 native_postRotate(int native_object, float degrees, float px, float py) argument
856 native_postRotate(int native_object, float degrees) argument
[all...]
H A DCanvas.java494 * @param degrees The amount to rotate, in degrees
496 public native void rotate(float degrees); argument
501 * @param degrees The amount to rotate, in degrees
505 public final void rotate(float degrees, float px, float py) { argument
507 rotate(degrees);
1031 * <p>The arc is drawn clockwise. An angle of 0 degrees correspond to the
1032 * geometric angle of 0 degrees (3 o'clock on a watch.)</p>
1036 * @param startAngle Starting angle (in degrees) wher
[all...]
/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.cpp219 static void rotate__F(JNIEnv* env, jobject jcanvas, jfloat degrees) { argument
221 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/media/java/android/media/
H A DMediaMuxer.java94 int degrees);
153 * @param degrees the angle to be rotated clockwise in degrees.
154 * The supported angles are 0, 90, 180, and 270 degrees.
156 public void setOrientationHint(int degrees) { argument
157 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) {
158 throw new IllegalArgumentException("Unsupported angle: " + degrees);
93 nativeSetOrientationHint(int nativeObject, int degrees) argument
[all...]
H A DMediaRecorder.java409 * @param degrees the angle to be rotated clockwise in degrees.
410 * The supported angles are 0, 90, 180, and 270 degrees.
414 public void setOrientationHint(int degrees) { argument
415 if (degrees != 0 &&
416 degrees != 90 &&
417 degrees != 180 &&
418 degrees != 270) {
419 throw new IllegalArgumentException("Unsupported angle: " + degrees);
421 setParameter("video-param-rotation-angle-degrees
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaMuxer.cpp150 JNIEnv *env, jclass clazz, jint nativeObject, jint degrees) {
157 status_t err = muxer->setOrientationHint(degrees);
149 android_media_MediaMuxer_setOrientationHint( JNIEnv *env, jclass clazz, jint nativeObject, jint degrees) argument
/frameworks/av/libvideoeditor/vss/common/inc/
H A DM4Common_types.h161 M4OSA_Float degrees; member in struct:__anon131
/frameworks/av/services/camera/libcameraservice/api1/
H A DCameraClient.cpp945 int CameraClient::getOrientation(int degrees, bool mirror) { argument
947 if (degrees == 0) return 0;
948 else if (degrees == 90) return HAL_TRANSFORM_ROT_90;
949 else if (degrees == 180) return HAL_TRANSFORM_ROT_180;
950 else if (degrees == 270) return HAL_TRANSFORM_ROT_270;
952 if (degrees == 0) { // FLIP_H and ROT_0
954 } else if (degrees == 90) { // FLIP_H and ROT_90
956 } else if (degrees == 180) { // FLIP_H and ROT_180
958 } else if (degrees == 270) { // FLIP_H and ROT_270
962 ALOGE("Invalid setDisplayOrientation degrees
[all...]
H A DCamera2Client.cpp1368 status_t Camera2Client::commandSetDisplayOrientationL(int degrees) { argument
1369 int transform = Parameters::degToTransform(degrees,
1373 __FUNCTION__, mCameraId, degrees);
/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...]
H A DCanvas_Delegate.java147 /*package*/ static void rotate(Canvas thisCanvas, float degrees) { argument
154 canvasDelegate.getSnapshot().rotate(Math.toRadians(degrees));
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
H A DRadialPickerLayout.java126 // Prepare mapping to snap touchable degrees to selectable degrees.
322 * Split up the 360 degrees of the circle among the 60 selectable values. Assigns a larger
325 * E.g. the output of 30 degrees should have a higher range of input associated with it than
326 * the output of 24 degrees, because 30 degrees corresponds to a visible number on the clock
331 // output will correspond to a range of 14 associated input degrees, and each non-visible
332 // output will correspond to a range of 4 associate input degrees, so visible numbers
336 // If an output of 30 degrees should correspond to a range of 14 associated degrees, the
384 snapPrefer30s(int degrees) argument
400 snapOnly30s(int degrees, int forceHigherOrLower) argument
434 reselectSelector(int degrees, boolean isInnerCircle, boolean forceToVisibleValue, boolean forceDrawDot) argument
[all...]
/frameworks/rs/driver/runtime/
H A Drs_cl.c777 extern float __attribute__((overloadable)) degrees(float radians) { function
780 extern float2 __attribute__((overloadable)) degrees(float2 radians) { function
783 extern float3 __attribute__((overloadable)) degrees(float3 radians) { function
786 extern float4 __attribute__((overloadable)) degrees(float4 radians) { function
812 extern float __attribute__((overloadable)) radians(float degrees) { argument
813 return degrees * (M_PI / 180.f);
815 extern float2 __attribute__((overloadable)) radians(float2 degrees) { argument
816 return degrees * (M_PI / 180.f);
818 extern float3 __attribute__((overloadable)) radians(float3 degrees) { argument
819 return degrees * (M_P
821 radians(float4 degrees) argument
[all...]
/frameworks/base/libs/hwui/
H A DDisplayListRenderer.cpp197 void DisplayListRenderer::rotate(float degrees) { argument
198 addStateOp(new (alloc()) RotateOp(degrees));
199 OpenGLRenderer::rotate(degrees);
H A DDisplayListOp.h400 RotateOp(float degrees) argument
401 : mDegrees(degrees) {}
408 OP_LOG("Rotate by %f degrees", mDegrees);
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp373 status_t StagefrightRecorder::setParamVideoRotation(int32_t degrees) { argument
374 ALOGV("setParamVideoRotation: %d", degrees);
375 if (degrees < 0 || degrees % 90 != 0) {
376 ALOGE("Unsupported video rotation angle: %d", degrees);
379 mRotationDegrees = degrees % 360;
647 } else if (key == "video-param-rotation-angle-degrees") {
648 int32_t degrees; local
649 if (safe_strtoi32(value.string(), &degrees)) {
650 return setParamVideoRotation(degrees);
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp2433 int Parameters::degToTransform(int degrees, bool mirror) { argument
2435 if (degrees == 0) return 0;
2436 else if (degrees == 90) return HAL_TRANSFORM_ROT_90;
2437 else if (degrees == 180) return HAL_TRANSFORM_ROT_180;
2438 else if (degrees == 270) return HAL_TRANSFORM_ROT_270;
2440 if (degrees == 0) { // FLIP_H and ROT_0
2442 } else if (degrees == 90) { // FLIP_H and ROT_90
2444 } else if (degrees == 180) { // FLIP_H and ROT_180
2446 } else if (degrees == 270) { // FLIP_H and ROT_270
2450 ALOGE("%s: Bad input: %d", __FUNCTION__, degrees);
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_GLES20Canvas.cpp346 OpenGLRenderer* renderer, jfloat degrees) {
347 renderer->rotate(degrees);
345 android_view_GLES20Canvas_rotate(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, jfloat degrees) argument
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java149 /** The current rotation amount, in degrees */
591 * Rotates the image 90 degrees, clockwise.
598 * Rotates the image 90 degrees, counter clockwise.
965 * @param degrees how many degrees to rotate the image, positive rotates clockwise
968 private void rotate(float degrees, boolean animate) { argument
970 mRotateRunnable.start(degrees);
972 mRotation += degrees;
973 mMatrix.postRotate(degrees, getWidth() / 2, getHeight() / 2);
/frameworks/base/core/java/android/view/
H A DGLES20Canvas.java594 public void rotate(float degrees) { argument
595 nRotate(mRenderer, degrees);
598 private static native void nRotate(int renderer, float degrees); argument

Completed in 472 milliseconds

12