Home
last modified time | relevance | path

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

123

/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/brightline/
DDiagonalClassifier.java39 private static final float HORIZONTAL_ANGLE_RANGE = (float) (5f / 360f * Math.PI * 2f);
40 private static final float VERTICAL_ANGLE_RANGE = (float) (5f / 360f * Math.PI * 2f);
41 private static final float DIAGONAL = (float) (Math.PI / 4); // 45 deg
42 private static final float NINETY_DEG = (float) (Math.PI / 2);
43 private static final float ONE_HUNDRED_EIGHTY_DEG = (float) (Math.PI);
44 private static final float THREE_HUNDRED_SIXTY_DEG = (float) (2 * Math.PI);
/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/packages/SystemUI/src/com/android/systemui/classifier/
DAnglesClassifier.java94 private final float ANGLE_DEVIATION = (float) Math.PI / 20.0f;
115 mPreviousAngle = (float) Math.PI; in Data()
140 if (angle < Math.PI - ANGLE_DEVIATION) { in addPoint()
142 } else if (angle <= Math.PI + ANGLE_DEVIATION) { in addPoint()
DSpeedAnglesClassifier.java87 private final float ANGLE_DEVIATION = (float) Math.PI / 10.0f;
101 mPreviousAngle = (float) Math.PI; in Data()
130 if (angle >= (float) Math.PI - ANGLE_DEVIATION) { in addPoint()
DPoint.java79 angle = 2.0f * (float) Math.PI - angle; in getAngle()
/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/brightline/
DDiagonalClassifierTest.java46 private static final float FIVE_DEG_IN_RADIANS = (float) (4.99f / 360f * Math.PI * 2f);
47 private static final float UP_IN_RADIANS = (float) (Math.PI / 2f);
48 private static final float DOWN_IN_RADIANS = (float) (3 * Math.PI / 2f);
50 private static final float LEFT_IN_RADIANS = (float) Math.PI;
51 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DKalmanFilterTest.java76 private double mStepSizeRadians = Math.PI / 17.01;
87 phi = phi + Math.PI * .75; in idealSignal()
/frameworks/base/location/java/android/location/
DLocation.java353 lat1 *= Math.PI / 180.0; in computeDistanceAndBearing()
354 lat2 *= Math.PI / 180.0; in computeDistanceAndBearing()
355 lon1 *= Math.PI / 180.0; in computeDistanceAndBearing()
356 lon2 *= Math.PI / 180.0; in computeDistanceAndBearing()
435 initialBearing *= 180.0 / Math.PI; in computeDistanceAndBearing()
439 finalBearing *= 180.0 / Math.PI; in computeDistanceAndBearing()
/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/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/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/packages/SystemUI/src/com/android/systemui/
DCornerHandleView.java94 float innerCircumferenceDp = convertPixelToDp(radiusPx * 2 * (float) Math.PI, in updatePath()
151 getOuterRadiusPx()) * 2 * (float) Math.PI, mContext); in getAngle()
/frameworks/av/media/libeffects/lvm/lib/Eq/src/
DLVEQNB_CalcCoef.cpp33 #define PI 3.14159265358979 macro
/frameworks/base/rs/java/android/renderscript/
DMatrix3f.java115 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate()
152 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate()
DMatrix2f.java105 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate()
/frameworks/rs/support/java/src/androidx/renderscript/
DMatrix3f.java118 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate()
155 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate()
DMatrix2f.java108 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/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DRotateFilter.java75 Quad targetQuad = mSourceRect.rotated((float) (mRotateAngle / 180 * Math.PI)); in onProcess()

123