Home
last modified time | relevance | path

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

/tools/loganalysis/src/com/android/loganalysis/util/
DNumberFormattingUtil.java33 public static long getMs(long days, long hours, long mins, long secs, long msecs) { in getMs() argument
34 return (((24 * days + hours) * 60 + mins) * 60 + secs) * 1000 + msecs; in getMs()
84 final long days = TimeUnit.MILLISECONDS.toDays(ms); in getDuration() local
85 final long hrs = TimeUnit.MILLISECONDS.toHours(ms - TimeUnit.DAYS.toMillis(days)); in getDuration()
86 final long mins = TimeUnit.MILLISECONDS.toMinutes(ms - TimeUnit.DAYS.toMillis(days) in getDuration()
88 final long secs = TimeUnit.MILLISECONDS.toSeconds(ms - TimeUnit.DAYS.toMillis(days) in getDuration()
91 return String.format("%dd %dh %dm %ds", days, hrs, mins, secs); in getDuration()
/tools/loganalysis/src/com/android/loganalysis/parser/
DBatteryStatsSummaryInfoParser.java83 final int days = NumberFormattingUtil.parseIntOrZero(dischargeMatcher.group(1)); in parse() local
98 long elapsedTime = NumberFormattingUtil.getMs(days, hours, mins, secs, msecs); in parse()
102 getDischargeClockTime(days, hours, mins, secs), in parse()
114 private Calendar getDischargeClockTime(int days, int hours, int mins, int secs) { in getDischargeClockTime() argument
118 dischargeClockTime.add(Calendar.DATE, days); in getDischargeClockTime()
/tools/external_updater/
Dgit_updater.py98 len(commits), time_behind.days), end='')
Dnotifier.py108 if git_utils.is_commit(latest_ver) and time_diff <= timedelta(days=30):