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

123

/frameworks/base/libs/hwui/
H A DShadowTessellator.cpp181 float angle = acosf(dotProduct); local
182 return (int)floor(angle / divisor);
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
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 Dquat.h131 // 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 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/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/core/java/android/util/
H A DMathUtils.java152 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 DRippleForeground.java357 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 DGradientDrawable.java571 * <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 Dfp.h43 void sincosf(GLfloat angle, GLfloat* s, GLfloat* c);
/frameworks/support/media/src/androidTest/java/androidx/media/
H A DMediaPlayer2Test.java744 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 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/media/jni/
H A Dandroid_media_MediaMetadataRetriever.cpp245 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 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.java207 // 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

Completed in 2460 milliseconds

123