Searched refs:angle (Results 26 - 50 of 58) sorted by relevance

123

/frameworks/rs/script_api/include/
H A Drs_quaternion.rsh286 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 Dbugdroid.rs43 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 DViewMatrix.java328 double angle = Quaternion.calcAngle(mStartV, mMoveToV);
329 if (angle < 0.0001) {
338 mQ.set(angle, axis);
/frameworks/base/core/java/android/gesture/
H A DGestureOverlayView.java652 float angle = Math.abs(box.orientation);
653 if (angle > 90) {
654 angle = 180 - angle;
659 angle < mGestureStrokeAngleThreshold :
660 angle > mGestureStrokeAngleThreshold)) {
/frameworks/base/graphics/java/android/graphics/drawable/
H A DRippleForeground.java340 final double angle = Math.atan2(dY, dX);
341 mClampedStartingX = cX + (float) (Math.cos(angle) * r);
342 mClampedStartingY = cY + (float) (Math.sin(angle) * r);
H A DGradientDrawable.java570 * <li>{@link #SWEEP_GRADIENT} adjusts the ending angle
640 * @param orientation the desired orientation (angle) of the gradient
857 // arcTo treats the sweep angle mod 360, so check for that, since we
1578 int angle = (int) a.getFloat(R.styleable.GradientDrawableGradient_angle, st.mAngle);
1579 angle %= 360;
1581 if (angle % 45 != 0) {
1583 + "<gradient> tag requires 'angle' attribute to "
1587 st.mAngle = angle;
1589 switch (angle) {
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java60 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/services/core/java/com/android/server/
H A DAnyMotionDetector.java91 /** 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/libs/hwui/
H A DSpotShadow.cpp81 * 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
258 float pivot = angle(points[p], center);
260 while (angle(points[i], center) > pivot) {
263 while (angle(points[j], center) < pivot) {
333 float angle local
[all...]
/frameworks/base/core/java/android/util/
H A DMathUtils.java150 public static float tan(float angle) { argument
151 return (float) Math.tan(angle);
159 * Returns an interpolated angle in degrees between a set of start and end
163 * travel is determined by the shortest angle between the start and end
164 * angles. For example, if the starting angle is 0 and the ending angle is
165 * 350, then the interpolated angle will be in the range [0,-10] rather
168 * @param start the starting angle in degrees
169 * @param end the ending angle in degrees
171 * where 0 is the starting angle an
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/shadowutil/
H A DSpotShadow.java283 public static float angle(float x1, float y1, @NonNull float[] ctr) { method in class:SpotShadow
300 float pivot = angle(points[p * 2], points[p * 2 + 1], ctr);
302 while (angle(points[i * 2 + 0], points[i * 2 + 1], ctr) < pivot) {
305 while (angle(points[j * 2 + 0], points[j * 2 + 1], ctr) > pivot) {
434 double angle = 2 * i * Math.PI / points;
435 ret[i * 3 + 0] = (float) Math.cos(angle) * size + x;
436 ret[i * 3 + 1] = (float) Math.sin(angle) * size + y;
/frameworks/native/opengl/libagl/
H A Dfp.h43 void sincosf(GLfloat angle, GLfloat* s, GLfloat* c);
/frameworks/base/media/jni/
H A Dandroid_media_MediaMetadataRetriever.cpp229 static void rotate(T *dst, const T *src, size_t width, size_t height, int angle) argument
231 switch (angle) {
/frameworks/native/opengl/tools/glgen/specs/gles11/
H A DGLES10.spec83 void glRotatef ( GLfloat angle, GLfloat x, GLfloat y, GLfloat z )
84 void glRotatex ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z )
H A DGLES11Ext.spec45 void glRotatexOES ( GLfixed angle, GLfixed x, GLfixed y, GLfixed z )
/frameworks/base/opengl/java/android/opengl/
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
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);
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
H A DGL10.java803 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 DRadialTimePickerView.java107 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 DPhotoView.java1272 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 DPointerLocationView.java206 // Draw an oval. When angle is 0 radians, orients the major axis vertically,
210 float angle, Paint paint) {
212 canvas.rotate((float) (angle * 180 / Math.PI), x, y);
209 drawOval(Canvas canvas, float x, float y, float major, float minor, float angle, Paint paint) 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
/frameworks/native/opengl/include/GLES/
H A Dgl.h624 GL_API void GL_APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
716 GL_API void GL_APIENTRY glRotatex (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);

Completed in 990 milliseconds

123