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

12

/frameworks/base/core/java/android/gesture/
H A DOrientedBoundingBox.java36 OrientedBoundingBox(float angle, float cx, float cy, float w, float h) { argument
37 orientation = angle;
H A DGestureUtils.java451 final double angle = Math.atan(tan);
452 if (numOrientations > 2 && Math.abs(angle) >= Math.PI / numOrientations) {
455 final double cosine = Math.cos(angle);
505 float angle;
507 angle = (float) -Math.PI/2;
509 angle = (float) Math.atan2(targetVector[1], targetVector[0]);
510 rotate(points, -angle);
534 return new OrientedBoundingBox((float) (angle * 180 / Math.PI), centroid[0], centroid[1], maxx - minx, maxy - miny);
563 static float[] rotate(float[] points, float angle) { argument
564 float cos = (float) Math.cos(angle);
[all...]
/frameworks/base/core/java/android/util/
H A DFloatMath.java51 * @param angle to compute the cosine of, in radians
52 * @return the sine of angle
54 public static native float sin(float angle); argument
59 * @param angle to compute the cosine of, in radians
60 * @return the cosine of angle
62 public static native float cos(float angle); argument
H A DMathUtils.java143 public static float tan(float angle) { argument
144 return (float) Math.tan(angle);
/frameworks/base/tools/layoutlib/bridge/src/android/util/
H A DFloatMath_Delegate.java64 * @param angle to compute the cosine of, in radians
65 * @return the sine of angle
68 /*package*/ static float sin(float angle) { argument
69 return (float)Math.sin(angle);
75 * @param angle to compute the cosine of, in radians
76 * @return the cosine of angle
79 /*package*/ static float cos(float angle) { argument
80 return (float)Math.cos(angle);
/frameworks/native/opengl/libagl/
H A Dfp.cpp62 // scale angle for easy argument reduction
79 void sincosf(GLfloat angle, GLfloat* s, GLfloat* c) { argument
80 *s = sinef(angle);
81 *c = cosinef(angle);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTransform3dActivity.java87 Matrix matrix, float angle) {
89 camera.rotateY(angle);
86 rotate(float centerX, float centerY, Camera camera, Matrix matrix, float angle) argument
/frameworks/native/libs/input/tests/
H A DInputEvent_test.cpp521 static void setRotationMatrix(float matrix[9], float angle) { argument
522 float sin = sinf(angle);
523 float cos = cosf(angle);
537 // Each point 'i' is a point on a circle of radius ROTATION centered at (3,2) at an angle
540 // and check rotation. We set the orientation to the same angle.
551 float angle = float(i * ARC * PI_180); local
555 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, sinf(angle) * RADIUS + 3);
556 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, -cosf(angle) * RADIUS + 2);
557 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, angle);
583 float angle local
[all...]
/frameworks/base/libs/hwui/
H A DMatrix.h121 void loadRotate(float angle);
122 void loadRotate(float angle, float x, float y, float z);
172 void rotate(float angle, float x, float y, float z) { argument
174 u.loadRotate(angle, x, y, z);
H A DMatrix.cpp292 void Matrix4::loadRotate(float angle) { argument
293 angle *= float(M_PI / 180.0f);
294 float c = cosf(angle);
295 float s = sinf(angle);
308 void Matrix4::loadRotate(float angle, float x, float y, float z) { argument
317 angle *= float(M_PI / 180.0f);
318 float c = cosf(angle);
319 float s = sinf(angle);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
H A DQuad.java109 * @param angle the angle to rotate the source rectangle in radians
110 * @return the Quad representing the source rectangle rotated by the given angle.
112 public static Quad fromRotatedRect(RectF rect, float angle) { argument
113 return Quad.fromRect(rect).rotated(angle);
176 * Rotate the quad by the given angle.
180 * @param angle the angle to rotate in radians
183 public Quad rotated(float angle) { argument
185 float cosa = (float) Math.cos(angle);
[all...]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DCompoundTransform.java91 public RotateComponent(String name, Float3 axis, float angle) { argument
94 setAngle(angle);
143 public RotateComponent addRotate(String name, Float3 axis, float angle) { argument
144 RotateComponent c = new RotateComponent(name, axis, angle);
/frameworks/base/media/jni/
H A Dandroid_media_MediaMetadataRetriever.cpp200 static void rotate(T *dst, const T *src, size_t width, size_t height, int angle) argument
202 switch (angle) {
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java62 public abstract void rotate(float angle, float x, float y, float z); argument
H A DGLES20Canvas.java416 public void rotate(float angle, float x, float y, float z) { argument
417 if (angle == 0f) {
421 Matrix.setRotateM(temp, 0, angle, x, y, z);
/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java204 // Draw an oval. When angle is 0 radians, orients the major axis vertically,
208 float angle, Paint paint) {
210 canvas.rotate((float) (angle * 180 / Math.PI), x, y);
207 drawOval(Canvas canvas, float x, float y, float major, float minor, float angle, Paint paint) argument
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A DCarouselController.java591 * Sets the startAngle for the Carousel. The start angle is the first position of the first
592 * slot draw. Cards will be drawn from this angle in a counter-clockwise manner around the
595 * @param angle the angle, in radians.
597 public void setStartAngle(float angle) argument
599 mStartAngle = angle;
601 mRenderScript.setStartAngle(angle);
606 * Set the current carousel rotation angle, in card units.
613 * @param angle
615 public void setCarouselRotationAngle(float angle) { argument
[all...]
H A DCarouselView.java487 * Sets the startAngle for the Carousel. The start angle is the first position of the first
488 * slot draw. Cards will be drawn from this angle in a counter-clockwise manner around the
491 * @param angle the angle, in radians.
493 public void setStartAngle(float angle) argument
495 mController.setStartAngle(angle);
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
H A DGlowPadView.java1150 final float angle = getAngle(getSliceAngle(), i);
1151 updateTargetPosition(i, centerX, centerY, angle);
1154 private void updateTargetPosition(int i, float centerX, float centerY, float angle) { argument
1162 targetIcon.setX(placementRadiusX * (float) Math.cos(angle));
1163 targetIcon.setY(placementRadiusY * (float) Math.sin(angle));
/frameworks/base/opengl/java/android/opengl/
H A DGLES11Ext.java624 // C function void glRotatexOES ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z )
627 int angle,
626 glRotatexOES( int angle, int x, int y, int z ) argument
H A DGLErrorWrapper.java670 public void glRotatef(float angle, float x, float y, float z) { argument
672 mgl.glRotatef(angle, x, y, z);
676 public void glRotatex(int angle, int x, int y, int z) { argument
678 mgl.glRotatex(angle, x, y, z);
H A DGLES10.java1051 // C function void glRotatef ( GLfloat angle, GLfloat x, GLfloat y, GLfloat z )
1054 float angle,
1060 // C function void glRotatex ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z )
1063 int angle,
1053 glRotatef( float angle, float x, float y, float z ) argument
1062 glRotatex( int angle, int x, int y, int z ) argument
/frameworks/base/core/jni/
H A Dandroid_opengl_GLES10.cpp2538 /* void glRotatef ( GLfloat angle, GLfloat x, GLfloat y, GLfloat z ) */
2541 (JNIEnv *_env, jobject _this, jfloat angle, jfloat x, jfloat y, jfloat z) {
2543 (GLfloat)angle,
2550 /* void glRotatex ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z ) */
2553 (JNIEnv *_env, jobject _this, jint angle, jint x, jint y, jint z) {
2555 (GLfixed)angle,
2540 android_glRotatef__FFFF(JNIEnv *_env, jobject _this, jfloat angle, jfloat x, jfloat y, jfloat z) argument
2552 android_glRotatex__IIII(JNIEnv *_env, jobject _this, jint angle, jint x, jint y, jint z) argument
H A Dandroid_opengl_GLES11Ext.cpp1929 /* void glRotatexOES ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z ) */
1932 (JNIEnv *_env, jobject _this, jint angle, jint x, jint y, jint z) {
1934 (GLfixed)angle,
1931 android_glRotatexOES__IIII(JNIEnv *_env, jobject _this, jint angle, jint x, jint y, jint z) argument
/frameworks/base/opengl/java/com/google/android/gles_jni/
H A DGLImpl.java876 // C function void glRotatef ( GLfloat angle, GLfloat x, GLfloat y, GLfloat z )
879 float angle,
885 // C function void glRotatex ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z )
888 int angle,
878 glRotatef( float angle, float x, float y, float z ) argument
887 glRotatex( int angle, int x, int y, int z ) argument

Completed in 3358 milliseconds

12