Searched refs:degrees (Results 1 - 25 of 56) sorted by last modified time

123

/frameworks/rs/api/
H A Drs_math.spec223 To get an inverse cosine measured in degrees, use <code>acospi(a) * 180.f</code>.
294 To get an inverse sine measured in degrees, use <code>asinpi(a) * 180.f</code>.
368 To get an inverse tangent measured in degrees, use <code>atan2pi(n, d) * 180.f</code>.
417 To get an inverse tangent measured in degrees, use <code>atanpi(a) * 180.f</code>.
652 To get the cosine of a value measured in degrees, call <code>cospi(v / 180.f)</code>.
666 function: degrees
673 summary: Converts radians into degrees
675 Converts from radians to degrees.
678 function: degrees
1850 To get an inverse cosine measured in degrees, us
[all...]
/frameworks/rs/driver/runtime/
H A Drs_cl.c939 extern float __attribute__((overloadable)) degrees(float radians) { function
942 extern float2 __attribute__((overloadable)) degrees(float2 radians) { function
945 extern float3 __attribute__((overloadable)) degrees(float3 radians) { function
948 extern float4 __attribute__((overloadable)) degrees(float4 radians) { function
974 extern float __attribute__((overloadable)) radians(float degrees) { argument
975 return degrees * (M_PI / 180.f);
977 extern float2 __attribute__((overloadable)) radians(float2 degrees) { argument
978 return degrees * (M_PI / 180.f);
980 extern float3 __attribute__((overloadable)) radians(float3 degrees) { argument
981 return degrees * (M_P
983 radians(float4 degrees) argument
1917 HN_FUNC_HN(degrees); variable
[all...]
/frameworks/rs/scriptc/
H A Drs_math.rsh282 * To get an inverse cosine measured in degrees, use acospi(a) * 180.f.
401 * To get an inverse sine measured in degrees, use asinpi(a) * 180.f.
524 * To get an inverse tangent measured in degrees, use atan2pi(n, d) * 180.f.
608 * To get an inverse tangent measured in degrees, use atanpi(a) * 180.f.
1279 * To get the cosine of a value measured in degrees, call cospi(v / 180.f).
1316 * degrees: Converts radians into degrees
1318 * Converts from radians to degrees.
1321 degrees(float v);
1324 degrees(float
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java160 /** 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);
/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...]
H A DRadialSelectorView.java90 * @param selectionDegrees The initial degrees to be selected.
159 * @param selectionDegrees The degrees to be selected.
163 * drawn. If false, the dot will be drawn only when the degrees is not a multiple of 30, i.e.
254 int degrees = (int) (radians * 180 / Math.PI);
260 degrees = 90 - degrees;
262 degrees = 90 + degrees;
264 degrees = 270 - degrees;
[all...]
/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/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/base/services/core/java/com/android/server/
H A DAnyMotionDetector.java88 /** Threshold angle in degrees beyond which the device is considered moving. */
342 float degrees = Math.abs((float)Math.toDegrees(
345 ", other = " + other.toString() + ", degrees = " + degrees);
346 return degrees;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGetBitmapSurfaceViewActivity.java101 int degrees = 0;
104 degrees = 0;
107 degrees = 90;
110 degrees = 180;
113 degrees = 270;
119 result = (info.orientation + degrees) % 360;
122 result = (info.orientation - degrees + 360) % 360;
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/tools/layoutlib/bridge/src/android/graphics/
H A DCanvas_Delegate.java293 public static void native_rotate(long nativeCanvas, float degrees) { argument
300 canvasDelegate.getSnapshot().rotate(Math.toRadians(degrees));
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
995 getRotate(float degrees) argument
1007 setRotate(float[] dest, float degrees) argument
1028 getRotate(float degrees, float px, float py) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DGlobalScreenshot.java527 * @return the current display rotation in degrees
550 float degrees = getDegreesForRotation(mDisplay.getRotation());
551 boolean requiresRotation = (degrees > 0);
555 mDisplayMatrix.preRotate(-degrees);
576 c.rotate(degrees);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifInterface.java1856 * Returns the Orientation ExifTag value for a given number of degrees.
1858 * @param degrees the amount an image is rotated in degrees.
1860 public static short getOrientationValueForRotation(int degrees) { argument
1861 degrees %= 360;
1862 if (degrees < 0) {
1863 degrees += 360;
1865 if (degrees < 90) {
1866 return Orientation.TOP_LEFT; // 0 degrees
1867 } else if (degrees < 18
[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 , jlong nativeObject, jint degrees) argument
/frameworks/base/graphics/java/android/graphics/
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
853 native_setRotate(long native_object, float degrees, float px, float py) argument
855 native_setRotate(long native_object, float degrees) argument
874 native_preRotate(long native_object, float degrees, float px, float py) argument
876 native_preRotate(long native_object, float degrees) argument
890 native_postRotate(long native_object, float degrees, float px, float py) argument
892 native_postRotate(long native_object, float degrees) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DRotateDrawable.java162 * @param fromDegrees starting angle in degrees
174 * @return starting angle for rotation in degrees
185 * @param toDegrees ending angle in degrees
197 * @return ending angle for rotation in degrees
314 final float degrees = MathUtils.lerp(mState.mFromDegrees, mState.mToDegrees, value);
315 mState.mCurrentDegrees = degrees;
/frameworks/base/libs/hwui/
H A DCanvasState.cpp173 void CanvasState::rotate(float degrees) { argument
174 mSnapshot->transform->rotate(degrees, 0.0f, 0.0f, 1.0f);
H A DCanvasState.h110 void rotate(float degrees);
H A DDisplayListCanvas.cpp150 void DisplayListCanvas::rotate(float degrees) { argument
151 if (degrees == 0.0f) return;
153 addStateOp(new (alloc()) RotateOp(degrees));
154 mState.rotate(degrees);
H A DDisplayListCanvas.h147 virtual void rotate(float degrees) override;
H A DDisplayListOp.h411 RotateOp(float degrees) argument
412 : mDegrees(degrees) {}
419 OP_LOG("Rotate by %f degrees", mDegrees);
H A DOpenGLRenderer.cpp2044 void OpenGLRenderer::rotate(float degrees) { argument
2045 mState.rotate(degrees);
H A DOpenGLRenderer.h304 void rotate(float degrees);

Completed in 9666 milliseconds

123