/frameworks/base/core/java/android/util/ |
H A D | FloatMath.java | 51 * @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 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);
|
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 | 644 float angle = Math.abs(box.orientation); 645 if (angle > 90) { 646 angle = 180 - angle; 651 angle < mGestureStrokeAngleThreshold : 652 angle > mGestureStrokeAngleThreshold)) {
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | SweepGradient_Delegate.java | 174 // compute angle from each point to the center, and figure out the distance from 194 float angle; 196 angle = (float) (dy < 0 ? 3 * Math.PI / 2 : Math.PI / 2); 198 angle = (float) (dx < 0 ? Math.PI : 0); 200 angle = (float) Math.atan(dy / dx); 203 angle += Math.PI * 2; 206 angle += Math.PI; 211 data[index++] = getGradientColor((float) (angle / (2 * Math.PI)));
|
/frameworks/base/libs/hwui/ |
H A D | Matrix.h | 121 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 D | Matrix.cpp | 292 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/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/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/native/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/native/libs/input/tests/ |
H A D | InputEvent_test.cpp | 521 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/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/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
H A D | Quad.java | 109 * @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/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/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 62 public abstract void rotate(float angle, float x, float y, float z); argument
|
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/ |
H A D | MultiWaveView.java | 424 double angle = 2.0 * Math.PI * direction / directionCount; 425 final float sx = (float) Math.cos(angle); 426 final float sy = 0.0f - (float) Math.sin(angle); 1050 final float angle = alpha * i; 1053 targetIcon.setX(mOuterRadius * (float) Math.cos(angle)); 1054 targetIcon.setY(mOuterRadius * (float) Math.sin(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/graphics/java/android/graphics/drawable/ |
H A D | GradientDrawable.java | 396 * @param orientation The desired orientation (angle) of the gradient 590 // arcTo treats the sweep angle mod 360, so check for that, since we 898 int angle = (int)a.getFloat( 900 angle %= 360; 901 if (angle % 45 != 0) { 903 + "<gradient> tag requires 'angle' attribute to " 907 switch (angle) {
|