Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerCircleView.java107 final float redPercent; in onDraw() local
113 redPercent = 0; in onDraw()
121 redPercent = 1; in onDraw()
128redPercent = Math.min(1, (float) mTimer.getElapsedTime() / (float) mTimer.getTotalLength()); in onDraw()
129 final float whitePercent = 1 - redPercent; in onDraw()
136 canvas.drawArc(mArcRect, 270, -redPercent * 360 , false, mPaint); in onDraw()
140 final float dotAngleDegrees = 270 - redPercent * 360; in onDraw()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchCircleView.java136 final float redPercent = (float) currentLapTime / (float) firstLapTime; in onDraw() local
137 final float whitePercent = 1 - (redPercent > 1 ? 1 : redPercent); in onDraw()
144 canvas.drawArc(mArcRect, 270, redPercent * 360 , false, mPaint); in onDraw()
157 final float dotAngleDegrees = 270 + redPercent * 360; in onDraw()