/frameworks/base/core/java/android/gesture/ |
H A D | OrientedBoundingBox.java | 36 OrientedBoundingBox(float angle, float cx, float cy, float w, float h) { argument 37 orientation = angle;
|
H A D | GestureUtils.java | 451 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 D | FloatMath.java | 53 * @param angle to compute the cosine of, in radians 54 * @return the sine of angle 56 public static native float sin(float angle); argument 61 * @param angle to compute the cosine of, in radians 62 * @return the cosine of angle 64 public static native float cos(float angle); argument
|
H A D | MathUtils.java | 143 public static float tan(float angle) { argument 144 return (float) Math.tan(angle);
|
/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
H A D | FloatMath_Delegate.java | 64 * @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 D | fp.cpp | 62 // 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 D | Transform3dActivity.java | 87 Matrix matrix, float angle) { 89 camera.rotateY(angle); 86 rotate(float centerX, float centerY, Camera camera, Matrix matrix, float angle) argument
|
/frameworks/base/libs/androidfw/tests/ |
H A D | InputEvent_test.cpp | 524 // Each point 'i' is a point on a circle of radius ROTATION centered at (3,2) at an angle 527 // and check rotation. We set the orientation to the same angle. 538 float angle = float(i * ARC * PI_180); local 542 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, sinf(angle) * RADIUS + 3); 543 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, -cosf(angle) * RADIUS + 2); 544 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, angle); 570 float angle = float((i * ARC + ROTATION) * PI_180); local 571 ASSERT_NEAR(sinf(angle) * RADIUS, event.getX(i), 0.001); 572 ASSERT_NEAR(-cosf(angle) * RADIUS, event.getY(i), 0.001); 573 ASSERT_NEAR(tanf(angle), tan [all...] |
/frameworks/base/libs/hwui/ |
H A D | Matrix.h | 78 void loadRotate(float angle, float x, float y, float z); 109 void rotate(float angle, float x, float y, float z) { argument 111 u.loadRotate(angle, x, y, z);
|
H A D | Matrix.cpp | 223 void Matrix4::loadRotate(float angle, float x, float y, float z) { argument 232 angle *= float(M_PI / 180.0f); 233 float c = cosf(angle); 234 float s = sinf(angle);
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
H A D | CompoundTransform.java | 91 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 D | android_media_MediaMetadataRetriever.cpp | 200 static void rotate(T *dst, const T *src, size_t width, size_t height, int angle) argument 202 switch (angle) {
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | PointerLocationView.java | 185 // Draw an oval. When angle is 0 radians, orients the major axis vertically, 189 float angle, Paint paint) { 191 canvas.rotate((float) (angle * 180 / Math.PI), x, y); 188 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 D | CarouselController.java | 591 * 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 D | CarouselView.java | 487 * 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 D | GlowPadView.java | 1150 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/core/jni/ |
H A D | android_opengl_GLES10.cpp | 3242 /* void glRotatef ( GLfloat angle, GLfloat x, GLfloat y, GLfloat z ) */ 3245 (JNIEnv *_env, jobject _this, jfloat angle, jfloat x, jfloat y, jfloat z) { 3247 (GLfloat)angle, 3254 /* void glRotatex ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z ) */ 3257 (JNIEnv *_env, jobject _this, jint angle, jint x, jint y, jint z) { 3259 (GLfixed)angle, 3244 android_glRotatef__FFFF(JNIEnv *_env, jobject _this, jfloat angle, jfloat x, jfloat y, jfloat z) argument 3256 android_glRotatex__IIII(JNIEnv *_env, jobject _this, jint angle, jint x, jint y, jint z) argument
|
H A D | android_opengl_GLES11Ext.cpp | 1724 /* void glRotatexOES ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z ) */ 1727 (JNIEnv *_env, jobject _this, jint angle, jint x, jint y, jint z) { 1729 (GLfixed)angle, 1726 android_glRotatexOES__IIII(JNIEnv *_env, jobject _this, jint angle, jint x, jint y, jint z) argument
|
H A D | com_google_android_gles_jni_GLImpl.cpp | 3370 /* void glRotatef ( GLfloat angle, GLfloat x, GLfloat y, GLfloat z ) */ 3373 (JNIEnv *_env, jobject _this, jfloat angle, jfloat x, jfloat y, jfloat z) { 3375 (GLfloat)angle, 3382 /* void glRotatex ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z ) */ 3385 (JNIEnv *_env, jobject _this, jint angle, jint x, jint y, jint z) { 3387 (GLfixed)angle, 3372 android_glRotatef__FFFF(JNIEnv *_env, jobject _this, jfloat angle, jfloat x, jfloat y, jfloat z) argument 3384 android_glRotatex__IIII(JNIEnv *_env, jobject _this, jint angle, jint x, jint y, jint z) argument
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLES11Ext.java | 624 // 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 D | GLErrorWrapper.java | 670 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 D | GLES10.java | 1067 // C function void glRotatef ( GLfloat angle, GLfloat x, GLfloat y, GLfloat z ) 1070 float angle, 1076 // C function void glRotatex ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z ) 1079 int angle, 1069 glRotatef( float angle, float x, float y, float z ) argument 1078 glRotatex( int angle, int x, int y, int z ) argument
|
H A D | GLLogWrapper.java | 2267 public void glRotatef(float angle, float x, float y, float z) { argument 2269 arg("angle", angle); 2275 mgl.glRotatef(angle, x, y, z); 2279 public void glRotatex(int angle, int x, int y, int z) { argument 2281 arg("angle", angle); 2287 mgl.glRotatex(angle, x, y, z);
|
/frameworks/base/opengl/java/com/google/android/gles_jni/ |
H A D | GLImpl.java | 876 // 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
|
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/ |
H A D | GL10.java | 803 float angle, 810 int angle, 802 glRotatef( float angle, float x, float y, float z ) argument 809 glRotatex( int angle, int x, int y, int z ) argument
|