Home
last modified time | relevance | path

Searched refs:toFloat (Results 1 – 10 of 10) 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.kt359 getFraction(alarmRight.toFloat(), mSnoozeButton.getLeft().toFloat(), x) in onTouch()
361 getFraction(alarmLeft.toFloat(), mDismissButton.getRight().toFloat(), x) in onTouch()
363 snoozeFraction = getFraction(alarmLeft.toFloat(), mSnoozeButton.getRight().toFloat(), x) in onTouch()
365 getFraction(alarmRight.toFloat(), mDismissButton.getLeft().toFloat(), x) in onTouch()
427 Math.min(mSnoozeButton.getRight() - alarmLeft, 0)).toFloat() in hintSnooze()
439 Math.min(mDismissButton.getRight() - alarmLeft, 0)).toFloat() in hintDismiss()
588 val endRadius = sqrt(xMax * xMax + yMax * yMax.toDouble()).toFloat() in getAlertAnimator()
591 .setCenterX(centerX.toFloat()) in getAlertAnimator()
592 .setCenterY(centerY.toFloat()) in getAlertAnimator()
/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>()
480 clock.setTextSize(COMPLEX_UNIT_PX, measuredSizes.mClockFontSizePx.toFloat()) in <lambda>()
481 date.setTextSize(COMPLEX_UNIT_PX, measuredSizes.mFontSizePx.toFloat()) in <lambda>()
482 nextAlarm.setTextSize(COMPLEX_UNIT_PX, measuredSizes.mFontSizePx.toFloat()) in <lambda>()
483 nextAlarmIcon.setTextSize(COMPLEX_UNIT_PX, measuredSizes.mIconFontSizePx.toFloat()) in <lambda>()
/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/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/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