Home
last modified time | relevance | path

Searched refs:PI (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/base/core/java/android/uwb/
DAngleMeasurement.java52 @FloatRange(from = -Math.PI, to = +Math.PI) double radians, in AngleMeasurement()
53 @FloatRange(from = 0.0, to = +Math.PI) double errorRadians, in AngleMeasurement()
55 if (radians < -Math.PI || radians > Math.PI) { in AngleMeasurement()
60 if (errorRadians < 0.0 || errorRadians > Math.PI) { in AngleMeasurement()
76 @FloatRange(from = -Math.PI, to = +Math.PI)
88 @FloatRange(from = 0.0, to = +Math.PI)
/frameworks/base/core/java/android/gesture/
DInstance.java30 0, (float) (Math.PI / 4), (float) (Math.PI / 2), (float) (Math.PI * 3 / 4),
31 (float) Math.PI, -0, (float) (-Math.PI / 4), (float) (-Math.PI / 2),
32 (float) (-Math.PI * 3 / 4), (float) -Math.PI
DGestureUtils.java452 if (numOrientations > 2 && Math.abs(angle) >= Math.PI / numOrientations) { in minimumCosineDistance()
460 return (float) Math.PI / 2; in minimumCosineDistance()
507 angle = (float) -Math.PI/2; in computeOrientedBoundingBox()
534 …return new OrientedBoundingBox((float) (angle * 180 / Math.PI), centroid[0], centroid[1], maxx - m… in computeOrientedBoundingBox()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DDiagonalClassifier.java41 private static final float HORIZONTAL_ANGLE_RANGE = (float) (5f / 360f * Math.PI * 2f);
42 private static final float VERTICAL_ANGLE_RANGE = (float) (5f / 360f * Math.PI * 2f);
43 private static final float DIAGONAL = (float) (Math.PI / 4); // 45 deg
44 private static final float NINETY_DEG = (float) (Math.PI / 2);
45 private static final float ONE_HUNDRED_EIGHTY_DEG = (float) (Math.PI);
46 private static final float THREE_HUNDRED_SIXTY_DEG = (float) (2 * Math.PI);
/frameworks/base/graphics/java/android/graphics/drawable/
DRippleShader.java126 private static final double PI_ROTATE_RIGHT = Math.PI * 0.0078125;
127 private static final double PI_ROTATE_LEFT = Math.PI * -0.0078125;
180 final double rotation1 = turbulencePhase * PI_ROTATE_RIGHT + 1.7 * Math.PI; in setNoisePhase()
184 final double rotation2 = turbulencePhase * PI_ROTATE_LEFT + 2 * Math.PI; in setNoisePhase()
188 final double rotation3 = turbulencePhase * PI_ROTATE_RIGHT + 2.75 * Math.PI; in setNoisePhase()
/frameworks/layoutlib/bridge/src/android/graphics/
DSweepGradient_Delegate.java182 angle = (float) (dy < 0 ? 3 * Math.PI / 2 : Math.PI / 2); in getRaster()
184 angle = (float) (dx < 0 ? Math.PI : 0); in getRaster()
189 angle += Math.PI * 2; in getRaster()
192 angle += Math.PI; in getRaster()
197 data[index++] = getGradientColor((float) (angle / (2 * Math.PI))); in getRaster()
/frameworks/base/core/java/android/hardware/
DSensorAdditionalInfo.java260 || declination < 0 || declination > Math.PI in createLocalGeomagneticField()
261 || inclination < -Math.PI / 2 || inclination > Math.PI / 2) { in createLocalGeomagneticField()
/frameworks/base/core/tests/uwbtests/src/android/uwb/
DUwbTestUtils.java28 getDoubleInRange(-Math.PI, Math.PI), in getAngleMeasurement()
29 getDoubleInRange(0, Math.PI), in getAngleMeasurement()
/frameworks/base/libs/hwui/pipeline/skia/
DAnimatedDrawables.h106 const float rotation1 = turbulencePhase * PI_ROTATE_RIGHT + 1.7 * PI; in draw()
108 const float rotation2 = turbulencePhase * PI_ROTATE_LEFT + 2 * PI; in draw()
110 const float rotation3 = turbulencePhase * PI_ROTATE_RIGHT + 2.75 * PI; in draw()
119 static constexpr float PI = 3.1415926535897932384626;
120 static constexpr float PI_ROTATE_RIGHT = PI * 0.0078125;
121 static constexpr float PI_ROTATE_LEFT = PI * -0.0078125;
/frameworks/native/opengl/tests/angeles/
Ddemo.c39 #undef PI
40 #define PI 3.1415926535897932f macro
230 float t1 = -PI + longitude * 2 * PI / resol1; in createSuperShape()
231 float t2 = -PI + (longitude + 1) * 2 * PI / resol1; in createSuperShape()
232 float p1 = -PI / 2 + latitude * 2 * PI / resol2; in createSuperShape()
233 float p2 = -PI / 2 + (latitude + 1) * 2 * PI / resol2; in createSuperShape()
507 ymax = zNear * (GLfloat)tan(fovy * PI / 360); in gluPerspective()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DDiagonalClassifierTest.java47 private static final float FIVE_DEG_IN_RADIANS = (float) (4.99f / 360f * Math.PI * 2f);
48 private static final float UP_IN_RADIANS = (float) (Math.PI / 2f);
49 private static final float DOWN_IN_RADIANS = (float) (3 * Math.PI / 2f);
51 private static final float LEFT_IN_RADIANS = (float) Math.PI;
52 private static final float FORTY_FIVE_DEG_IN_RADIANS = (float) (Math.PI / 4);
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DRenderPatch.java85 final double angle = Math.PI * 0.25 + (Math.PI * 2.0 * i) / (externalPointCount); in RenderPatch()
/frameworks/base/core/java/com/android/internal/graphics/cam/
DCam.java186 float atanDegrees = atan2 * 180.0f / (float) Math.PI; in fromIntInFrame()
191 float hueRadians = hue * (float) Math.PI / 180.0f; in fromIntInFrame()
207 float eHue = 0.25f * (float) (Math.cos(huePrime * Math.PI / 180.0 + 2.0) + 3.8); in fromIntInFrame()
252 float hueRadians = h * (float) Math.PI / 180.0f; in fromJchInFrame()
290 float hRad = getHue() * (float) Math.PI / 180.0f; in viewed()
/frameworks/base/core/java/android/view/animation/
DAccelerateDecelerateInterpolator.java40 return (float)(Math.cos((input + 1) * Math.PI) / 2.0f) + 0.5f; in getInterpolation()
DCycleInterpolator.java60 return (float)(Math.sin(2 * mCycles * Math.PI * input)); in getInterpolation()
/frameworks/base/services/core/java/com/android/server/
DSensorNotificationService.java147 (float)(field.getDeclination() * Math.PI / 180), // from degree to rad in onLocationChanged()
148 (float)(field.getInclination() * Math.PI / 180)); // from degree to rad in onLocationChanged()
/frameworks/layoutlib/bridge/src/android/view/shadow/
DHighQualityShadowPainter.java294 double theta = (Math.PI / 2.0d) * ((double) i / ShadowConstants.SPLICE_ROUNDED_EDGE); in buildRoundedEdges()
304 double theta = (Math.PI / 2.0d) * ((double) i / ShadowConstants.SPLICE_ROUNDED_EDGE); in buildRoundedEdges()
314 double theta = (Math.PI / 2.0d) * ((double) i / ShadowConstants.SPLICE_ROUNDED_EDGE); in buildRoundedEdges()
324 double theta = (Math.PI / 2.0d) * ((double) i / ShadowConstants.SPLICE_ROUNDED_EDGE); in buildRoundedEdges()
/frameworks/base/location/java/android/location/
DLocation.java324 lat1 *= Math.PI / 180.0; in computeDistanceAndBearing()
325 lat2 *= Math.PI / 180.0; in computeDistanceAndBearing()
326 lon1 *= Math.PI / 180.0; in computeDistanceAndBearing()
327 lon2 *= Math.PI / 180.0; in computeDistanceAndBearing()
405 initialBearing *= 180.0 / Math.PI; in computeDistanceAndBearing()
409 finalBearing *= 180.0 / Math.PI; in computeDistanceAndBearing()
/frameworks/av/media/libeffects/lvm/lib/Eq/src/
DLVEQNB_CalcCoef.cpp33 #define PI 3.14159265358979 macro
/frameworks/base/rs/java/android/renderscript/
DMatrix3f.java119 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate()
156 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate()
/frameworks/rs/support/java/src/androidx/renderscript/
DMatrix3f.java122 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate()
159 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate()
DMatrix2f.java112 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate()
/frameworks/base/opengl/java/android/opengl/
DMatrix.java382 float f = 1.0f / (float) Math.tan(fovy * (Math.PI / 360.0)); in perspectiveM()
589 a *= (float) (Math.PI / 180.0f); in setRotateM()
648 x *= (float) (Math.PI / 180.0f); in setRotateEulerM()
649 y *= (float) (Math.PI / 180.0f); in setRotateEulerM()
650 z *= (float) (Math.PI / 180.0f); in setRotateEulerM()
/frameworks/base/tests/UpdatableSystemFontTest/testdata/
DUpdatableSystemFontTestKey.pem41 xBcogsi4BAoEzsGcuOk7Yjn1Ia2/PI/r3VUUT7l6QOLD2JZPgWmqXovH0LjR0rw3
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DRotateFilter.java75 Quad targetQuad = mSourceRect.rotated((float) (mRotateAngle / 180 * Math.PI)); in onProcess()

123