Lines Matching refs:seconds
791 int seconds = (int) Math.floor(millis / 1000); in formatElapsedTime() local
794 seconds += 30; in formatElapsedTime()
798 if (seconds >= SECONDS_PER_DAY) { in formatElapsedTime()
799 days = seconds / SECONDS_PER_DAY; in formatElapsedTime()
800 seconds -= days * SECONDS_PER_DAY; in formatElapsedTime()
802 if (seconds >= SECONDS_PER_HOUR) { in formatElapsedTime()
803 hours = seconds / SECONDS_PER_HOUR; in formatElapsedTime()
804 seconds -= hours * SECONDS_PER_HOUR; in formatElapsedTime()
806 if (seconds >= SECONDS_PER_MINUTE) { in formatElapsedTime()
807 minutes = seconds / SECONDS_PER_MINUTE; in formatElapsedTime()
808 seconds -= minutes * SECONDS_PER_MINUTE; in formatElapsedTime()
813 days, hours, minutes, seconds)); in formatElapsedTime()
816 hours, minutes, seconds)); in formatElapsedTime()
818 sb.append(context.getString(R.string.battery_history_minutes, minutes, seconds)); in formatElapsedTime()
820 sb.append(context.getString(R.string.battery_history_seconds, seconds)); in formatElapsedTime()