Home
last modified time | relevance | path

Searched refs:toFloat (Results 1 – 16 of 16) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchCircleView.kt114 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/
DTimerCircleView.kt109 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/
DAlarmActivity.kt365 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/
DMoveScreensaverRunnable.kt88 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()
DVerticalViewPager.kt67 val width: Float = width.toFloat() in flipXY()
68 val height: Float = height.toFloat() in flipXY()
DItemAnimator.kt109 view.translationX = -deltaX.toFloat() in animateMove()
110 view.translationY = -deltaY.toFloat() in animateMove()
DAsyncRingtonePlayer.kt622 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/
DDigitalAppWidgetProvider.kt372 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/
DTextSizeHelper.kt90 val midTextSize = Math.round((maxTextSize + minTextSize) / 2f).toFloat() in adjustTextSize()
94 val height = mMeasurePaint.getFontMetricsInt(null).toFloat() in adjustTextSize()
DCircleView.kt244 Gravity.RIGHT -> mCenterX = width.toFloat() in applyGravity()
250 Gravity.BOTTOM -> mCenterY = height.toFloat() in applyGravity()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DExpandedAlarmViewHolder.kt228 -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>()
DCollapsedAlarmViewHolder.kt216 val arrowTranslationY: Float = (oldArrowRect.bottom - newArrowRect.bottom).toFloat() in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DGrantPermissionsViewHandlerImpl.kt269 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/
DResourceSurfaceTextureNexus4Impl.java75 .updatePreviewAspectRatio(previewAspectRatio.toFloat()); in setPreviewSize()
/packages/apps/Camera2/src/com/android/camera/util/
DAspectRatio.java75 public float toFloat() { in toFloat() method in AspectRatio
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DKotlinUtils.kt237 context.packageManager, 20000.toFloat(), TextUtils.SAFE_STRING_FLAG_TRIM) in <lambda>()