Home
last modified time | relevance | path

Searched refs:PI (Results 1 – 25 of 63) 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.java35 private static final float HORIZONTAL_ANGLE_RANGE = (float) (5f / 360f * Math.PI * 2f);
36 private static final float VERTICAL_ANGLE_RANGE = (float) (5f / 360f * Math.PI * 2f);
37 private static final float DIAGONAL = (float) (Math.PI / 4); // 45 deg
38 private static final float NINETY_DEG = (float) (Math.PI / 2);
39 private static final float ONE_HUNDRED_EIGHTY_DEG = (float) (Math.PI);
40 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/layoutlib/bridge/src/android/view/math/
DMath3DHelper.java452 double step = Math.PI * 2 / rays; in donutPie2()
462 float dx = (float) Math.sin(Math.PI / 4 + step * i); in donutPie2()
463 float dy = (float) Math.cos(Math.PI / 4 + step * i); in donutPie2()
473 float dx = (float) Math.sin(Math.PI / 4 + step * i); in donutPie2()
474 float dy = (float) Math.cos(Math.PI / 4 + step * i); in donutPie2()
511 float dx = (float) Math.sin(Math.PI / 4 + step * i); in donutPie2()
512 float dy = (float) Math.cos(Math.PI / 4 + step * i); in donutPie2()
/frameworks/layoutlib/bridge/src/android/view/shadow/
DHighQualityShadowPainter.java277 double theta = (Math.PI / 2.0d) * ((double) i / ShadowConstants.SPLICE_ROUNDED_EDGE); in buildRoundedEdges()
287 double theta = (Math.PI / 2.0d) * ((double) i / ShadowConstants.SPLICE_ROUNDED_EDGE); in buildRoundedEdges()
297 double theta = (Math.PI / 2.0d) * ((double) i / ShadowConstants.SPLICE_ROUNDED_EDGE); in buildRoundedEdges()
307 double theta = (Math.PI / 2.0d) * ((double) i / ShadowConstants.SPLICE_ROUNDED_EDGE); in buildRoundedEdges()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DKalmanFilterTest.java74 private double mStepSizeRadians = Math.PI / 17.01;
85 phi = phi + Math.PI * .75; in idealSignal()
/frameworks/base/location/java/android/location/
DLocation.java356 lat1 *= Math.PI / 180.0; in computeDistanceAndBearing()
357 lat2 *= Math.PI / 180.0; in computeDistanceAndBearing()
358 lon1 *= Math.PI / 180.0; in computeDistanceAndBearing()
359 lon2 *= Math.PI / 180.0; in computeDistanceAndBearing()
438 initialBearing *= 180.0 / Math.PI; in computeDistanceAndBearing()
442 finalBearing *= 180.0 / Math.PI; in computeDistanceAndBearing()
/frameworks/base/services/core/java/com/android/server/
DSensorNotificationService.java149 (float)(field.getDeclination() * Math.PI / 180), // from degree to rad in onLocationChanged()
150 (float)(field.getInclination() * Math.PI / 180)); // from degree to rad in onLocationChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DCornerHandleView.java84 float innerCircumferenceDp = convertPixelToDp(radiusPx * 2 * (float) Math.PI, in updatePath()
135 getOuterRadiusPx()) * 2 * (float) Math.PI, mContext); in getAngle()
/frameworks/base/core/java/android/view/animation/
DAccelerateDecelerateInterpolator.java41 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/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()
/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/av/media/libeffects/lvm/lib/Eq/src/
DLVEQNB_CalcCoef.cpp33 #define PI 3.14159265358979 macro
/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/services/core/java/com/android/server/power/
DWirelessChargerDetector.java93 private static final double MOVEMENT_ANGLE_COS_THRESHOLD = Math.cos(5 * Math.PI / 180);
362 + ", angle=" + (Math.acos(dotProduct / mag1 / mag2) * 180 / Math.PI) in hasMoved()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DRotateFilter.java75 Quad targetQuad = mSourceRect.rotated((float) (mRotateAngle / 180 * Math.PI)); in onProcess()

123