Home
last modified time | relevance | path

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

12

/packages/apps/Dialer/InCallUI/src/com/android/incallui/widget/multiwaveview/
DPointCloud.java38 private static final float PI = (float) Math.PI; field in PointCloud
143 final float ds = (2.0f * PI * innerRadius / INNER_POINTS); in makePointCloud()
148 float circumference = 2.0f * PI * r; in makePointCloud()
150 float eta = PI/2.0f; in makePointCloud()
151 float dEta = 2.0f * PI / pointsInBand; in makePointCloud()
183 double cos = Math.cos(Math.PI * 0.25d * glowDistance / glowManager.radius); in getAlphaForPoint()
192 double cos = Math.cos(Math.PI * 0.25d * distanceToWaveRing / waveManager.width); in getAlphaForPoint()
DEase.java117 return -DOMAIN * (float) Math.cos(input/DURATION * (Math.PI/2)) + DOMAIN + START;
122 return DOMAIN * (float) Math.sin(input/DURATION * (Math.PI/2)) + START;
127 return -DOMAIN/2 * ((float)Math.cos(Math.PI*input/DURATION) - 1.0f) + START;
DGlowPadView.java922 double targetMinRad = (i - 0.5) * 2 * Math.PI / ntargets; in handleMove()
923 double targetMaxRad = (i + 0.5) * 2 * Math.PI / ntargets; in handleMove()
927 (angleRad + 2 * Math.PI > targetMinRad && in handleMove()
928 angleRad + 2 * Math.PI <= targetMaxRad); in handleMove()
1173 final float alpha = (float) (-2.0f * Math.PI / size); in updateTargetPositions()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DMotionEventHelper.java112 if (result < -Math.PI / 2) { in transformAngle()
113 result += Math.PI; in transformAngle()
114 } else if (result > Math.PI / 2) { in transformAngle()
115 result -= Math.PI; in transformAngle()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStrokeDrawingPoints.java178 private static final double TWO_PI = Math.PI * 2.0d;
189 while (deltaAngle > Math.PI) { in angularDiff()
192 while (deltaAngle < -Math.PI) { in angularDiff()
DRoundedLine.java28 private static final double RADIAN_TO_DEGREE = 180.0d / Math.PI;
29 private static final double RIGHT_ANGLE = Math.PI / 2.0d;
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DPieRenderer.java68 private static final float PIE_SWEEP = (float) (Math.PI * 2 / 3);
279 layoutItems(mItems, (float) (Math.PI / 2), inner, outer, gap); in layoutPie()
342 return (float) (360 - 180 * angle / Math.PI); in getDegrees()
544 res.x = (float) Math.PI / 2; in getPolar()
551 res.x = (float) (2 * Math.PI + res.x); in getPolar()
675 double a = 2 * Math.PI * (angle % 360) / 360; in convertCart()
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DVUMeter.java75 final float minAngle = (float)Math.PI/8; in onDraw()
76 final float maxAngle = (float)Math.PI*7/8; in onDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageTinyPlanet.java88 return (float) (Math.atan2(dx, dy) * 180 / Math.PI); in angleFor()
102 return (float) (((angleB - angleA) % 360) * Math.PI / 180); in getCurrentTouchAngle()
DEclipseControl.java272 double angle = Math.PI * i / 180.; in paintOvallines()
290 double angle = Math.PI * i / 180.; in fillHandles()
DImageStraighten.java160 return (float) (Math.atan2(dx, dy) * 180 / Math.PI); in angleFor()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DColorSpaceMatrix.java152 float zrs = (float) Math.sin(rot * Math.PI / 180.0); in setHue()
153 float zrc = (float) Math.cos(rot * Math.PI / 180.0); in setHue()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DZoomControlWheel.java96 if (angle < 0) angle += (2 * Math.PI); in dispatchTouchEvent()
155 if (mZoomMax == 0) return Math.PI; in getZoomIndexAngle()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorRectView.java109 double hue = Math.PI * 2 * (mDotX - mBorder) / (mHeight - 2 * mBorder); in onTouchEvent()
184 mDotX = (float) (mBorder + (mHeight - 2 * mBorder) * Math.toRadians(hue) / (Math.PI * 2)); in updateDot()
/packages/apps/ExactCalculator/tests/src/com/android/calculator2/
DBRTest.java55 private final static CR RADIANS_PER_DEGREE = CR.PI.divide(CR.valueOf(180));
56 private final static CR DEGREES_PER_RADIAN = CR.valueOf(180).divide(CR.PI);
/packages/apps/Camera2/src/com/android/camera/hardware/
DHeadingSensor.java122 mHeading = (int) (orientation[0] * 180f / Math.PI) % 360; in onSensorChanged()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DAccelerometerListener.java130 angle = angle * 180.0 / Math.PI; in onSensorEvent()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchCircleView.java152 final float sweepAngle = mScreenDensity * (float) (360 / (radius * Math.PI)); in onDraw()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DIconNormalizer.java35 private static final float CIRCLE_AREA_BY_RECT = (float) Math.PI / 4;
DLauncherEdgeEffect.java55 private static final double ANGLE = Math.PI / 6;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropMath.java251 float angle = (float) (Math.atan(dy / dx) * 180 / Math.PI); in getUnrotated()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTouchListener.java74 180f / Math.PI); in getAngle()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorExpr.java667 private final CR RADIANS_PER_DEGREE = CR.PI.divide(CR.valueOf(180));
669 private final CR DEGREES_PER_RADIAN = CR.valueOf(180).divide(CR.PI);
735 return new EvalRet(i+1, CR.PI, null); in evalUnary()
/packages/screensavers/Basic/src/com/android/dreams/basic/
DColorsGLRenderer.java413 final float freq = (float) Math.sin(2 * Math.PI * t / cornerFrequencies[i]); in draw()
/packages/apps/Gallery/src/com/android/camera/
DHighlightView.java113 int d = (int) Math.round(Math.cos(/*45deg*/Math.PI / 4D) in draw()

12