Home
last modified time | relevance | path

Searched refs:redPercent (Results 1 – 4 of 4) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerCircleView.java108 final float redPercent; in onDraw() local
114 redPercent = 0; in onDraw()
122 redPercent = 1; in onDraw()
129redPercent = Math.min(1, (float) mTimer.getElapsedTime() / (float) mTimer.getTotalLength()); in onDraw()
130 final float whitePercent = 1 - redPercent; in onDraw()
137 canvas.drawArc(mArcRect, 270, -redPercent * 360 , false, mPaint); in onDraw()
141 final float dotAngleDegrees = 270 - redPercent * 360; in onDraw()
DTimerCircleView.kt105 val redPercent: Float in onDraw() constant
112 redPercent = 0f in onDraw()
121 redPercent = 1f in onDraw()
129 redPercent = min(1f, in onDraw()
131 val whitePercent = 1 - redPercent in onDraw()
138 canvas.drawArc(mArcRect, 270f, -redPercent * 360, false, mPaint) in onDraw()
143 val dotAngleDegrees = 270 - redPercent * 360 in onDraw()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchCircleView.java137 final float redPercent = (float) currentLapTime / (float) firstLapTime; in onDraw() local
138 final float whitePercent = 1 - (redPercent > 1 ? 1 : redPercent); in onDraw()
145 canvas.drawArc(mArcRect, 270, redPercent * 360 , false, mPaint); in onDraw()
158 final float dotAngleDegrees = 270 + redPercent * 360; in onDraw()
DStopwatchCircleView.kt133 val redPercent = currentLapTime.toFloat() / firstLapTime.toFloat() in onDraw() constant
134 val whitePercent: Float = 1f - if (redPercent > 1) 1f else redPercent in onDraw()
141 canvas.drawArc(mArcRect, 270f, redPercent * 360, false, mPaint) in onDraw()
154 val dotAngleDegrees = 270 + redPercent * 360 in onDraw()