/frameworks/base/libs/hwui/ |
H A D | ShadowTessellator.cpp | 181 float angle = acosf(dotProduct); local 182 return (int)floor(angle / divisor);
|
H A D | SpotShadow.cpp | 81 * For each vertex, we need to keep track of its angle, whether it is penumbra or 85 // The angle to the vertex from the centroid. 91 void set(float angle, bool isPenumbra, int index) { argument 92 mAngle = angle; 99 * Calculate the angle between and x and a y coordinate. 102 static float angle(const Vector2& point, const Vector2& center) { function in namespace:android::uirenderer 253 float pivot = angle(points[p], center); 255 while (angle(points[i], center) > pivot) { 258 while (angle(points[j], center) < pivot) { 326 float angle local [all...] |
/frameworks/native/libs/math/include/math/ |
H A D | quat.h | 131 // constructs a quaternion from an axis and angle 133 constexpr static TQuaternion PURE fromAxisAngle(const TVec3<A>& axis, B angle) { 134 return TQuaternion(std::sin(angle*0.5) * normalize(axis), std::cos(angle*0.5));
|
/frameworks/rs/script_api/include/ |
H A D | rs_quaternion.rsh | 286 float angle = rsQuaternionDot(q0, q1); 287 if (angle < 0) { 289 angle *= -1.0f; 293 if (angle + 1.0f > 0.05f) { 294 if (1.0f - angle >= 0.05f) { 295 float theta = acos(angle);
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | bugdroid.rs | 43 float angle = fabs(2 * fract(atan2pi(vec.z, vec.y) * 5) - 1);
45 * sigmoid(pillDistance(p1, p2, img) - rad * (1 + angle / 2)));
63 float angle = fabs(2 * fract(atan2pi(vec.y, vec.x) * 6) - 1);
65 * sigmoid(cylinderDistance(p1, p2, img) - rad * (1 + angle / 5)));
106 float angle = fabs(2 * fract(atan2pi(vec.y, vec.x) * 20) - 1);
109 distanceDisk(center, circleRadius * (1 + angle / 10),
|
H A D | ViewMatrix.java | 328 double angle = Quaternion.calcAngle(mStartV, mMoveToV);
329 if (angle < 0.0001) {
338 mQ.set(angle, axis);
|
/frameworks/base/core/java/android/gesture/ |
H A D | GestureOverlayView.java | 652 float angle = Math.abs(box.orientation); 653 if (angle > 90) { 654 angle = 180 - angle; 659 angle < mGestureStrokeAngleThreshold : 660 angle > mGestureStrokeAngleThreshold)) {
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 60 public abstract void rotate(float angle, float x, float y, float z); argument
|
H A D | GLES20Canvas.java | 416 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/services/core/java/com/android/server/ |
H A D | AnyMotionDetector.java | 91 /** Threshold angle in degrees beyond which the device is considered moving. */ 267 float angle = previousGravityVectorNormalized.angleBetween(currentGravityVectorNormalized); 268 if (DEBUG) Slog.d(TAG, "getStationaryStatus: angle = " + angle 270 if ((angle < mThresholdAngle) && (mRunningStats.getEnergy() < THRESHOLD_ENERGY)) { 272 } else if (Float.isNaN(angle)) { 274 * Floating point rounding errors have caused the angle calcuation's dot product to 387 * Returns the angle between this 3D vector and another given 3D vector. 391 * @return angle between this vector and the other given one.
|
/frameworks/base/core/java/android/util/ |
H A D | MathUtils.java | 152 public static float tan(float angle) { argument 153 return (float) Math.tan(angle); 161 * Returns an interpolated angle in degrees between a set of start and end 165 * travel is determined by the shortest angle between the start and end 166 * angles. For example, if the starting angle is 0 and the ending angle is 167 * 350, then the interpolated angle will be in the range [0,-10] rather 170 * @param start the starting angle in degrees 171 * @param end the ending angle in degrees 173 * where 0 is the starting angle an [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | RippleForeground.java | 357 final double angle = Math.atan2(dY, dX); 358 mClampedStartingX = cX + (float) (Math.cos(angle) * r); 359 mClampedStartingY = cY + (float) (Math.sin(angle) * r);
|
H A D | GradientDrawable.java | 571 * <li>{@link #SWEEP_GRADIENT} adjusts the ending angle 641 * @param orientation the desired orientation (angle) of the gradient 876 // arcTo treats the sweep angle mod 360, so check for that, since we 1597 int angle = (int) a.getFloat(R.styleable.GradientDrawableGradient_angle, st.mAngle); 1598 angle %= 360; 1600 if (angle % 45 != 0) { 1602 + "<gradient> tag requires 'angle' attribute to " 1606 st.mAngle = angle; 1608 switch (angle) {
|
/frameworks/native/opengl/libagl/ |
H A D | fp.h | 43 void sincosf(GLfloat angle, GLfloat* s, GLfloat* c);
|
/frameworks/support/media/src/androidTest/java/androidx/media/ |
H A D | MediaPlayer2Test.java | 744 private void testRecordedVideoPlaybackWithAngle(int angle) throws Exception { argument 775 checkOrientation(angle); 776 recordVideo(width, height, angle, file, durationMs); 777 checkDisplayedVideoSize(width, height, angle, file); 778 checkVideoRotationAngle(angle, file); 781 private void checkOrientation(int angle) throws Exception { argument 782 assertTrue(angle >= 0); 783 assertTrue(angle < 360); 784 assertTrue((angle % 90) == 0); 788 int w, int h, int angle, Strin 787 recordVideo( int w, int h, int angle, String file, long durationMs) argument 808 checkDisplayedVideoSize( int w, int h, int angle, String file) argument 820 checkVideoRotationAngle(int angle, String file) argument [all...] |
/frameworks/native/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/media/jni/ |
H A D | android_media_MediaMetadataRetriever.cpp | 245 static void rotate(T *dst, const T *src, size_t width, size_t height, int angle) argument 247 switch (angle) {
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLES10.java | 1051 // 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
|
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);
|
/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
|
/frameworks/base/core/java/android/widget/ |
H A D | RadialTimePickerView.java | 107 double angle = Math.PI / 2.0; 109 COS_30[i] = (float) Math.cos(angle); 110 SIN_30[i] = (float) Math.sin(angle); 111 angle += increment; 791 // Determine the current length, angle, and dot scaling factor.
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
H A D | PhotoView.java | 1272 float angle = (float) Math.atan2(mVelocityY, mVelocityX); 1273 mDecelerationX = (float) (DECELERATION_RATE * Math.cos(angle)); 1274 mDecelerationY = (float) (DECELERATION_RATE * Math.sin(angle));
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | PointerLocationView.java | 207 // Draw an oval. When angle is 0 radians, orients the major axis vertically, 211 float angle, Paint paint) { 213 canvas.rotate((float) (angle * 180 / Math.PI), x, y); 210 drawOval(Canvas canvas, float x, float y, float major, float minor, float angle, Paint paint) argument
|