Home
last modified time | relevance | path

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

12

/packages/apps/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/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/Camera/src/com/android/camera/ui/
DPieRenderer.java73 private static final float PIE_SWEEP = (float)(Math.PI * 2 / 3);
284 layoutItems(mItems, (float) (Math.PI / 2), inner, outer, gap); in layoutPie()
347 return (float) (360 - 180 * angle / Math.PI); in getDegrees()
554 res.x = (float) Math.PI / 2; in getPolar()
561 res.x = (float) (2 * Math.PI + res.x); in getPolar()
681 double a = 2 * Math.PI * (angle % 360) / 360; in convertCart()
/packages/apps/Browser/src/com/android/browser/view/
DPieMenu.java242 float emptyangle = (float) Math.PI / 16; in layoutPie()
249 float sweep = (float) (Math.PI - 2 * emptyangle) / mCounts[level]; in layoutPie()
289 return (float) (270 - 180 * angle / Math.PI); in getDegrees()
599 res.x = (float) Math.PI / 2; in getPolar()
609 res.x = (float) (Math.PI - Math.asin(x / res.y )); in getPolar()
/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/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
DHoloSpiralRS.java221 float separationRads = (separationDegrees / 360.0f) * 2 * (float) Math.PI; in generateSpiral()
247 int multiplier = (int) (radians / (2.0f * (float) Math.PI)); in generateSpiral()
248 radians -= multiplier * 2.0f * (float) Math.PI; in generateSpiral()
/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()
/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/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/apps/FMRadio/jni/fmr/
Dcommon.cpp165 LOGD("%s, Success,[event_status=%d] [PI=%d]\n", __func__, rds->event_status, rds->PI); in COM_get_pi()
166 *pi = rds->PI; in COM_get_pi()
/packages/apps/Camera2/src/com/android/camera/hardware/
DHeadingSensor.java122 mHeading = (int) (orientation[0] * 180f / Math.PI) % 360; in onSensorChanged()
/packages/apps/InCallUI/src/com/android/incallui/
DAccelerometerListener.java130 angle = angle * 180.0 / Math.PI; in onSensorEvent()
/packages/apps/Camera/src/com/android/camera/
DVideoController.java37 private static float FLOAT_PI_DIVIDED_BY_TWO = (float) Math.PI / 2;
/packages/apps/Launcher3/src/com/android/launcher3/util/
DLauncherEdgeEffect.java55 private static final double ANGLE = Math.PI / 6;
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/
Dgalaxy.rs51 #define PI 3.1415f
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropMath.java251 float angle = (float) (Math.atan(dy / dx) * 180 / Math.PI); in getUnrotated()

12