/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 | 139 public static float tan(float angle) { argument 140 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/base/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);
|
H A D | fp.h | 43 void sincosf(GLfloat angle, GLfloat* s, GLfloat* c);
|
/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...] |
H A D | GestureOverlayView.java | 643 float angle = Math.abs(box.orientation); 644 if (angle > 90) { 645 angle = 180 - angle; 650 angle < mGestureStrokeAngleThreshold : 651 angle > mGestureStrokeAngleThreshold)) {
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | SweepGradient_Delegate.java | 170 // compute angle from each point to the center, and figure out the distance from 190 float angle; 192 angle = (float) (dy < 0 ? 3 * Math.PI / 2 : Math.PI / 2); 194 angle = (float) (dx < 0 ? Math.PI : 0); 196 angle = (float) Math.atan(dy / dx); 199 angle += Math.PI * 2; 202 angle += Math.PI; 207 data[index++] = getGradientColor((float) (angle / (2 * Math.PI)));
|
/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 | 221 void Matrix4::loadRotate(float angle, float x, float y, float z) { argument 230 angle *= float(M_PI / 180.0f); 231 float c = cosf(angle); 232 float s = sinf(angle);
|
/frameworks/base/libs/rs/scriptc/ |
H A D | rs_quaternion.rsh | 84 * @param rot angle to rotate by 105 * @param rot angle to rotate by 196 float angle = rsQuaternionDot(q0, q1); 197 if (angle < 0) { 199 angle *= -1.0f; 203 if (angle + 1.0f > 0.05f) { 204 if (1.0f - angle >= 0.05f) { 205 float theta = acos(angle);
|
/frameworks/base/core/java/android/view/ |
H A D | OrientationEventListener.java | 125 // Don't trust the angle if the magnitude is small compared to the y value 128 float angle = (float)Math.atan2(-Y, X) * OneEightyOverPi; 129 orientation = 90 - (int)Math.round(angle);
|
/frameworks/base/opengl/tests/gldual/src/com/android/gldual/ |
H A D | TriangleRenderer.java | 84 float angle = 0.090f * ((int) time); 86 gl.glRotatef(angle, 0, 0, 1.0f);
|
/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/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);
|
H A D | carousel.rs | 386 // Returns total angle for given number of slots 392 // Return angle of slot in position p. 398 // Return angle for card in position p. 423 // convert from carousel rotation angle (in card slot units) to radians. 429 // convert from radians to carousel rotation angle (in card slot units). 430 static float radiansToCarouselRotationAngle(float angle) 432 return -angle * slotCount / ( 2.0f * M_PI ); 1069 // Computes a hit angle from the center of the carousel to a point on either a plane 1071 static bool hitAngle(float x, float y, float *angle) 1079 *angle [all...] |
/frameworks/base/libs/ui/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/media/jni/ |
H A D | android_media_MediaMetadataRetriever.cpp | 207 static void rotate(T *dst, const T *src, size_t width, size_t height, int angle) argument 209 switch (angle) {
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | GradientDrawable.java | 423 // arcTo treats the sweep angle mod 360, so check for that, since we 711 int angle = (int)a.getFloat( 713 angle %= 360; 714 if (angle % 45 != 0) { 716 + "<gradient> tag requires 'angle' attribute to " 720 switch (angle) {
|
/frameworks/base/opengl/tools/glgen/specs/gles11/ |
H A D | GLES10.spec | 83 void glRotatef ( GLfloat angle, GLfloat x, GLfloat y, GLfloat z ) 84 void glRotatex ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z )
|
H A D | GLES11Ext.spec | 45 void glRotatexOES ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z )
|
/frameworks/base/opengl/java/android/opengl/ |
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
|
/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
|