/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | ZoomControl.java | 33 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/ |
D | VUMeter.java | 75 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/ |
D | Wbxml.java | 37 static public final int PI = 0x43; field
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | SuggestionCursorWithExtrasTest.java | 73 checkCursorExtraRowDouble(Math.PI); in testCursorExtraRowDouble() 74 checkCursorExtraRowDouble(-Math.PI); in testCursorExtraRowDouble()
|
D | ShortcutRepositoryTest.java | 757 assertExtra("Float extra", "extra_float", new Float(Math.PI)); in testExtraDataFloat()
|
/packages/apps/Browser/src/com/android/browser/view/ |
D | PieMenu.java | 242 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/ |
D | ZoomControlWheel.java | 96 if (angle < 0) angle += (2 * Math.PI); in dispatchTouchEvent() 155 if (mZoomMax == 0) return Math.PI; in getZoomIndexAngle()
|
D | IndicatorControlWheel.java | 266 if (delta < 0) delta += Math.PI * 2; in dispatchTouchEvent()
|
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/ |
D | HoloSpiralRS.java | 219 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/ |
D | IndicatorControlWheel.java | 301 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()
|
D | ZoomControlWheel.java | 111 if (angle < 0) angle += (2 * Math.PI); in dispatchTouchEvent()
|
/packages/apps/Phone/src/com/android/phone/ |
D | AccelerometerListener.java | 127 angle = angle * 180.0 / Math.PI; in onSensorEvent()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | RocketLauncher.java | 184 anglex = (float) Math.sin(angle / 180. * Math.PI); in randomize() 185 angley = (float) Math.cos(angle / 180. * Math.PI); in randomize()
|
D | PagedView.java | 1449 f *= 0.3f * Math.PI / 2.0f; in distanceInfluenceForSnapDuration()
|
D | Workspace.java | 215 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/ |
D | RotateView.java | 47 private static final float MATH_PI = (float) Math.PI;
|
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/ |
D | galaxy.rs | 51 #define PI 3.1415f
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Screensaver.java | 58 return (float)(Math.cos((Math.pow(x,3) + 1) * Math.PI) / 2.0f) + 0.5f;
|
/packages/wallpapers/Basic/src/com/android/wallpaper/galaxy/ |
D | galaxy.rs | 25 #define PI 3.1415f
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/ |
D | RendererUtils.java | 68 private static final float DEGREE_TO_RADIAN = (float) Math.PI / 180.0f;
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | GalleryUtils.java | 123 private static final double RAD_PER_DEG = Math.PI / 180.0;
|
/packages/apps/Gallery/src/com/android/camera/ |
D | HighlightView.java | 113 int d = (int) Math.round(Math.cos(/*45deg*/Math.PI / 4D) in draw()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/ |
D | grass.rs | 27 #define PI 3.1415926f
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PhotoView.java | 1017 FloatMath.sin((delta / size) * (float) (Math.PI / 2)); in calculateDeltaY()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DayView.java | 4989 f *= 0.3f * Math.PI / 2.0f; in distanceInfluenceForSnapDuration()
|