/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchCircleView.kt | 114 canvas.drawCircle(xCenter.toFloat(), yCenter.toFloat(), radius, mPaint) in onDraw() 133 val redPercent = currentLapTime.toFloat() / firstLapTime.toFloat() in onDraw() 147 val markerAngle = priorLap.lapTime.toFloat() / firstLapTime.toFloat() * 360 in onDraw() 149 val sweepAngle = mScreenDensity * (360 / (radius * Math.PI)).toFloat() in onDraw() 156 val dotX = xCenter + (radius * cos(dotAngleRadians)).toFloat() in onDraw() 157 val dotY = yCenter + (radius * sin(dotAngleRadians)).toFloat() in onDraw()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerCircleView.kt | 109 canvas.drawCircle(xCenter.toFloat(), yCenter.toFloat(), radius, mPaint) in onDraw() 118 canvas.drawCircle(xCenter.toFloat(), yCenter.toFloat(), radius, mPaint) in onDraw() 130 mTimer!!.elapsedTime.toFloat() / mTimer!!.totalLength.toFloat()) in onDraw() 145 val dotX = xCenter + (radius * cos(dotAngleRadians)).toFloat() in onDraw() 146 val dotY = yCenter + (radius * sin(dotAngleRadians)).toFloat() in onDraw()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmActivity.kt | 365 getFraction(alarmRight.toFloat(), mSnoozeButton.getLeft().toFloat(), x) in onTouch() 367 getFraction(alarmLeft.toFloat(), mDismissButton.getRight().toFloat(), x) in onTouch() 369 snoozeFraction = getFraction(alarmLeft.toFloat(), mSnoozeButton.getRight().toFloat(), x) in onTouch() 371 getFraction(alarmRight.toFloat(), mDismissButton.getLeft().toFloat(), x) in onTouch() 433 Math.min(mSnoozeButton.getRight() - alarmLeft, 0)).toFloat() in hintSnooze() 445 Math.min(mDismissButton.getRight() - alarmLeft, 0)).toFloat() in hintDismiss() 594 val endRadius = sqrt(xMax * xMax + yMax * yMax.toDouble()).toFloat() in getAlertAnimator() 597 .setCenterX(centerX.toFloat()) in getAlertAnimator() 598 .setCenterY(centerY.toFloat()) in getAlertAnimator()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | MoveScreensaverRunnable.kt | 88 val newX = getRandomPoint(smallestDim - mSaverView.width.toFloat()) in run() 89 val newY = getRandomPoint(smallestDim - mSaverView.height.toFloat()) in run() 99 val newX = getRandomPoint(mContentView.width - mSaverView.width.toFloat()) in run() 100 val newY = getRandomPoint(mContentView.height - mSaverView.height.toFloat()) in run() 138 return (Math.random() * maximum).toFloat() in getRandomPoint()
|
D | VerticalViewPager.kt | 67 val width: Float = width.toFloat() in flipXY() 68 val height: Float = height.toFloat() in flipXY()
|
D | ItemAnimator.kt | 109 view.translationX = -deltaX.toFloat() in animateMove() 110 view.translationY = -deltaY.toFloat() in animateMove()
|
D | AsyncRingtonePlayer.kt | 622 val elapsedCrescendoTime = stopTime - currentTime.toFloat() in <lambda>() 630 val volume = 10.0.pow(gain / 20f.toDouble()).toFloat() in <lambda>()
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
D | DigitalAppWidgetProvider.kt | 372 rv.setTextViewTextSize(R.id.date, COMPLEX_UNIT_PX, sizes.mFontSizePx.toFloat()) in <lambda>() 373 rv.setTextViewTextSize(R.id.nextAlarm, COMPLEX_UNIT_PX, sizes.mFontSizePx.toFloat()) in <lambda>() 374 rv.setTextViewTextSize(R.id.clock, COMPLEX_UNIT_PX, sizes.mClockFontSizePx.toFloat()) in <lambda>() 484 clock.setTextSize(COMPLEX_UNIT_PX, measuredSizes.mClockFontSizePx.toFloat()) in <lambda>() 485 date.setTextSize(COMPLEX_UNIT_PX, measuredSizes.mFontSizePx.toFloat()) in <lambda>() 486 nextAlarm.setTextSize(COMPLEX_UNIT_PX, measuredSizes.mFontSizePx.toFloat()) in <lambda>() 487 nextAlarmIcon.setTextSize(COMPLEX_UNIT_PX, measuredSizes.mIconFontSizePx.toFloat()) in <lambda>()
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
D | TextSizeHelper.kt | 90 val midTextSize = Math.round((maxTextSize + minTextSize) / 2f).toFloat() in adjustTextSize() 94 val height = mMeasurePaint.getFontMetricsInt(null).toFloat() in adjustTextSize()
|
D | CircleView.kt | 244 Gravity.RIGHT -> mCenterX = width.toFloat() in applyGravity() 250 Gravity.BOTTOM -> mCenterY = height.toFloat() in applyGravity()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
D | ExpandedAlarmViewHolder.kt | 228 -height.toFloat() in <lambda>() 232 -height.toFloat() in <lambda>() 234 height.toFloat() in <lambda>() 247 -height.toFloat() in <lambda>() 398 val arrowTranslationY: Float = (oldArrowRect.bottom - newArrowRect.bottom).toFloat() in <lambda>()
|
D | CollapsedAlarmViewHolder.kt | 216 val arrowTranslationY: Float = (oldArrowRect.bottom - newArrowRect.bottom).toFloat() in <lambda>()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/ |
D | GrantPermissionsViewHandlerImpl.kt | 269 path.addRoundRect(0f, 0f, width.toFloat(), height.toFloat(), in <lambda>() 270 width.toFloat() / 2, height.toFloat() / 2, Path.Direction.CW) in <lambda>()
|
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/ |
D | ResourceSurfaceTextureNexus4Impl.java | 75 .updatePreviewAspectRatio(previewAspectRatio.toFloat()); in setPreviewSize()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | AspectRatio.java | 75 public float toFloat() { in toFloat() method in AspectRatio
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
D | KotlinUtils.kt | 237 context.packageManager, 20000.toFloat(), TextUtils.SAFE_STRING_FLAG_TRIM) in <lambda>()
|