/frameworks/base/core/java/android/gesture/ |
D | Instance.java | 30 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
|
D | GestureUtils.java | 452 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/ |
D | DiagonalClassifier.java | 39 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/ |
D | SweepGradient_Delegate.java | 182 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/ |
D | SensorAdditionalInfo.java | 260 || 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/ |
D | AnglesClassifier.java | 94 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()
|
D | SpeedAnglesClassifier.java | 87 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()
|
D | Point.java | 79 angle = 2.0f * (float) Math.PI - angle; in getAngle()
|
/frameworks/native/opengl/tests/angeles/ |
D | demo.c | 39 #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/ |
D | DiagonalClassifierTest.java | 46 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/ |
D | RenderPatch.java | 85 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/ |
D | KalmanFilterTest.java | 76 private double mStepSizeRadians = Math.PI / 17.01; 87 phi = phi + Math.PI * .75; in idealSignal()
|
/frameworks/base/location/java/android/location/ |
D | Location.java | 353 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/ |
D | SensorNotificationService.java | 147 (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/ |
D | AccelerateDecelerateInterpolator.java | 40 return (float)(Math.cos((input + 1) * Math.PI) / 2.0f) + 0.5f; in getInterpolation()
|
D | CycleInterpolator.java | 60 return (float)(Math.sin(2 * mCycles * Math.PI * input)); in getInterpolation()
|
/frameworks/layoutlib/bridge/src/android/view/shadow/ |
D | HighQualityShadowPainter.java | 294 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/ |
D | CornerHandleView.java | 94 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/ |
D | LVEQNB_CalcCoef.cpp | 33 #define PI 3.14159265358979 macro
|
/frameworks/base/rs/java/android/renderscript/ |
D | Matrix3f.java | 115 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate() 152 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate()
|
D | Matrix2f.java | 105 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate()
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | Matrix3f.java | 118 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate() 155 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate()
|
D | Matrix2f.java | 108 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate()
|
/frameworks/base/opengl/java/android/opengl/ |
D | Matrix.java | 382 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/ |
D | RotateFilter.java | 75 Quad targetQuad = mSourceRect.rotated((float) (mRotateAngle / 180 * Math.PI)); in onProcess()
|