Searched refs:durationMillis (Results 1 – 4 of 4) sorted by relevance
51 public boolean waitForWindowFocus(long durationMillis) { in waitForWindowFocus() argument55 while (!mHasWindowFocus && durationMillis > 0) { in waitForWindowFocus()57 durationMillis -= (newElapsedMillis - elapsedMillis); in waitForWindowFocus()59 if (durationMillis > 0) { in waitForWindowFocus()61 mHasWindowFocusLock.wait(durationMillis); in waitForWindowFocus()
84 public boolean waitForWindowFocus(long durationMillis) { in waitForWindowFocus() argument88 while (!mHasWindowFocus && durationMillis > 0) { in waitForWindowFocus()90 durationMillis -= (newElapsedMillis - elapsedMillis); in waitForWindowFocus()92 if (durationMillis > 0) { in waitForWindowFocus()94 mHasWindowFocusLock.wait(durationMillis); in waitForWindowFocus()
2015 private static boolean isDeadlineReached(long startTimeMillis, long durationMillis) { in isDeadlineReached() argument2020 return nowMillis - startTimeMillis > durationMillis; in isDeadlineReached()
523 private static String generateDurationString(long durationMillis, boolean isAllDay) { in generateDurationString() argument524 long durationSeconds = durationMillis / 1000; in generateDurationString()