Home
last modified time | relevance | path

Searched refs:toRadians (Results 1 – 21 of 21) sorted by relevance

/packages/apps/LegacyCamera/src/com/android/camera/ui/
DZoomControlWheel.java49 private static final double BUFFER_RADIANS = Math.toRadians(HIGHLIGHT_DEGREES / 2);
51 Math.toRadians(MAX_SLIDER_ANGLE - MIN_SLIDER_ANGLE);
109 performZoom((Math.toRadians(MAX_SLIDER_ANGLE) in dispatchTouchEvent()
119 mSliderRadians = Math.toRadians(DEFAULT_SLIDER_POSITION); in startZoomControl()
135 if (sliderAngle > Math.toRadians(MAX_SLIDER_ANGLE)) { in getSliderDrawAngle()
136 return Math.toRadians(MAX_SLIDER_ANGLE); in getSliderDrawAngle()
137 } else if (sliderAngle < Math.toRadians(MIN_SLIDER_ANGLE)) { in getSliderDrawAngle()
138 return Math.toRadians(MIN_SLIDER_ANGLE); in getSliderDrawAngle()
149 layoutIcon(mZoomIn, Math.toRadians(ZOOM_IN_ICON_DEGREES)); in onLayout()
150 layoutIcon(mZoomOut, Math.toRadians(ZOOM_OUT_ICON_DEGREES)); in onLayout()
[all …]
DIndicatorControlWheel.java47 private static final double HIGHLIGHT_RADIANS = Math.toRadians(HIGHLIGHT_DEGREES);
319 double increment = Math.toRadians(expectedAngle) in rotateWheel()
325 - Math.toRadians(MAX_ZOOM_CONTROL_DEGREES)); in rotateWheel()
376 mStartVisibleRadians[0] = Math.toRadians(FIRST_LEVEL_START_DEGREES); in presetFirstLevelChildRadians()
378 mEndVisibleRadians[0] = Math.toRadians(FIRST_LEVEL_END_DEGREES); in presetFirstLevelChildRadians()
383 mChildRadians[startIndex++] = Math.toRadians(MAX_ZOOM_CONTROL_DEGREES); in presetFirstLevelChildRadians()
386 mChildRadians[startIndex++] = Math.toRadians(FIRST_LEVEL_START_DEGREES); in presetFirstLevelChildRadians()
388 mChildRadians[startIndex++] = Math.toRadians(FIRST_LEVEL_END_DEGREES); in presetFirstLevelChildRadians()
396 mSectorRadians[1] = Math.toRadians(sectorDegrees); in presetSecondLevelChildRadians()
399 mStartVisibleRadians[1] = Math.toRadians(SECOND_LEVEL_START_DEGREES); in presetSecondLevelChildRadians()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStrokeDrawingParams.java49 ? Math.toRadians(DEFAULT_MAX_INTERPOLATION_ANGULAR_THRESHOLD) in GestureStrokeDrawingParams()
50 : Math.toRadians(interpolationAngularDegree); in GestureStrokeDrawingParams()
/packages/apps/ExactCalculator/tests/src/com/android/calculator2/
DBRTest.java59 private static CR toRadians(CR x) { in toRadians() method in BRTest
82 checkWeakEq(BoundedRational.degreeSin(x), toRadians(xAsCR).sin(), in checkBR()
84 checkWeakEq(BoundedRational.degreeCos(x), toRadians(xAsCR).cos(), in checkBR()
90 TAN.execute(toRadians(xAsCR)), "degree tan:" + x); in checkBR()
/packages/apps/DevCamera/src/com/android/devcamera/
DPreviewOverlay.java248 … float focalLengthH = 0.5f * previewH / (float) Math.tan(Math.toRadians(mFovLargeDegrees) * 0.5); in onDraw()
249 … float focalLengthW = 0.5f * previewW / (float) Math.tan(Math.toRadians(mFovSmallDegrees) * 0.5); in onDraw()
250 final double ANGLE_STEP = (float) Math.toRadians(10f); in onDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DTimeClustering.java329 Math.toRadians(itemA.lat), in isGeographicallySeparated()
330 Math.toRadians(itemA.lng), in isGeographicallySeparated()
331 Math.toRadians(itemB.lat), in isGeographicallySeparated()
332 Math.toRadians(itemB.lng)); in isGeographicallySeparated()
DLocationClustering.java48 latRad = Math.toRadians(lat); in Point()
49 lngRad = Math.toRadians(lng); in Point()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorExpr.java671 private CR toRadians(CR x, EvalContext ec) { in toRadians() method in CalculatorExpr
774 return new EvalRet(argVal.pos, toRadians(argVal.val,ec).sin(), null); in evalUnary()
785 return new EvalRet(argVal.pos, toRadians(argVal.val,ec).cos(), null); in evalUnary()
796 CR argCR = toRadians(argVal.val, ec); in evalUnary()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerCircleView.java141 final double dotAngleRadians = Math.toRadians(dotAngleDegrees); in onDraw()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchCircleView.java158 final double dotAngleRadians = Math.toRadians(dotAngleDegrees); in onDraw()
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DDrawerArrowDrawable.java39 private static final float ARROW_HEAD_ANGLE = (float) Math.toRadians(45);
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DEyePosition.java45 private static final float USER_ANGEL = (float) Math.toRadians(10);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorRectView.java184 mDotX = (float) (mBorder + (mHeight - 2 * mBorder) * Math.toRadians(hue) / (Math.PI * 2)); in updateDot()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageStraighten.java190 double a = Math.toRadians(deg); in getUntranslatedStraightenCropBounds()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java365 final double alpha = Math.toRadians(direction); in moveFocus()
366 final double beta = Math.toRadians(Math.min(angle, 180f) / 2f); in moveFocus()
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
DTinyPlanetFragment.java420 mCurrentAngle = (float) Math.toRadians(angle); in onAngleChange()
/packages/apps/Launcher3/src/com/android/launcher3/
DDragController.java687 if (theta <= Math.toRadians(MAX_FLING_DEGREES)) {
/packages/apps/Launcher2/src/com/android/launcher2/
DDragController.java636 if (theta <= Math.toRadians(MAX_FLING_DEGREES)) {
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageRenderer.java362 double radians = Math.toRadians(-rotation); in getRange()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/
DTiledImageRenderer.java363 double radians = Math.toRadians(-rotation); in getRange()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DTileImageView.java304 double radians = Math.toRadians(-rotation); in getRange()