Home
last modified time | relevance | path

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

12

/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DZoomControl.java33 private static final double MAX_ANGLE = Math.PI / 3;
215 if ((alpha >= -(Math.PI / 2)) && (alpha <= -MAX_ANGLE)) { in checkHit()
219 if ((alpha >= MAX_ANGLE) && (alpha <= (Math.PI / 2))) { in checkHit()
239 beta = ((mMaxProgress - mProgress) * mInterval) + Math.PI + MAX_ANGLE; in progressToPosition()
243 if (beta >= 0 && beta <= Math.PI / 2) { in progressToPosition()
247 } else if (beta > Math.PI / 2 && beta < (Math.PI / 2) + MAX_ANGLE) { in progressToPosition()
248 alpha = beta - Math.PI; in progressToPosition()
251 } else if (beta <= 2 * Math.PI && beta > (3 * Math.PI) / 2) { in progressToPosition()
252 alpha = beta - (2 * Math.PI); in progressToPosition()
256 alpha = beta - Math.PI; in progressToPosition()
[all …]
/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/Exchange/exchange2/src/com/android/exchange/adapter/
DWbxml.java37 static public final int PI = 0x43; field
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DSuggestionCursorWithExtrasTest.java73 checkCursorExtraRowDouble(Math.PI); in testCursorExtraRowDouble()
74 checkCursorExtraRowDouble(-Math.PI); in testCursorExtraRowDouble()
DShortcutRepositoryTest.java757 assertExtra("Float extra", "extra_float", new Float(Math.PI)); in testExtraDataFloat()
/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/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()
DIndicatorControlWheel.java266 if (delta < 0) delta += Math.PI * 2; in dispatchTouchEvent()
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
DHoloSpiralRS.java219 float separationRads = (separationDegrees / 360.0f) * 2 * (float) Math.PI; in generateSpiral()
245 int multiplier = (int) (radians / (2.0f * (float) Math.PI)); in generateSpiral()
246 radians -= multiplier * 2.0f * (float) Math.PI; in generateSpiral()
/packages/apps/Camera/src/com/android/camera/ui/
DIndicatorControlWheel.java301 if (startRadians < 0) startRadians += Math.PI * 2; in getTouchIndicatorIndex()
368 return (oldAngle + offset) % (Math.PI * 2); in rebase()
391 if (delta < 0) delta += Math.PI * 2; in dispatchTouchEvent()
DZoomControlWheel.java111 if (angle < 0) angle += (2 * Math.PI); in dispatchTouchEvent()
/packages/apps/Phone/src/com/android/phone/
DAccelerometerListener.java127 angle = angle * 180.0 / Math.PI; in onSensorEvent()
/packages/apps/Launcher2/src/com/android/launcher2/
DRocketLauncher.java184 anglex = (float) Math.sin(angle / 180. * Math.PI); in randomize()
185 angley = (float) Math.cos(angle / 180. * Math.PI); in randomize()
DPagedView.java1449 f *= 0.3f * Math.PI / 2.0f; in distanceInfluenceForSnapDuration()
DWorkspace.java215 final static float START_DAMPING_TOUCH_SLOP_ANGLE = (float) Math.PI / 6;
216 final static float MAX_SWIPE_ANGLE = (float) Math.PI / 3;
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/
DRotateView.java47 private static final float MATH_PI = (float) Math.PI;
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/
Dgalaxy.rs51 #define PI 3.1415f
/packages/apps/DeskClock/src/com/android/deskclock/
DScreensaver.java58 return (float)(Math.cos((Math.pow(x,3) + 1) * Math.PI) / 2.0f) + 0.5f;
/packages/wallpapers/Basic/src/com/android/wallpaper/galaxy/
Dgalaxy.rs25 #define PI 3.1415f
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
DRendererUtils.java68 private static final float DEGREE_TO_RADIAN = (float) Math.PI / 180.0f;
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java123 private static final double RAD_PER_DEG = Math.PI / 180.0;
/packages/apps/Gallery/src/com/android/camera/
DHighlightView.java113 int d = (int) Math.round(Math.cos(/*45deg*/Math.PI / 4D) in draw()
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/
Dgrass.rs27 #define PI 3.1415926f
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoView.java1017 FloatMath.sin((delta / size) * (float) (Math.PI / 2)); in calculateDeltaY()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java4989 f *= 0.3f * Math.PI / 2.0f; in distanceInfluenceForSnapDuration()

12