Home
last modified time | relevance | path

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

/frameworks/base/services/robotests/src/com/android/server/location/
DNtpTimeHelperTest.java57 doReturn(NtpTimeHelper.NTP_INTERVAL - 1).when(result).getAgeMillis(); in handleInjectNtpTime_cachedAgeLow_injectTime()
71 doReturn(NtpTimeHelper.NTP_INTERVAL + 1).when(result1).getAgeMillis(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
81 doReturn(1L).when(result2).getAgeMillis(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
/frameworks/base/services/core/java/com/android/server/
DNetworkTimeUpdateService.java158 if (cachedNtpResult == null || cachedNtpResult.getAgeMillis() >= mPollingIntervalMs) { in onPollNetworkTimeUnderWakeLock()
164 if (cachedNtpResult != null && cachedNtpResult.getAgeMillis() < mPollingIntervalMs) { in onPollNetworkTimeUnderWakeLock()
284 pw.println("NTP result age: " + ntpResult.getAgeMillis()); in dump()
/frameworks/base/services/core/java/com/android/server/location/
DNtpTimeHelper.java134 if (ntpResult == null || ntpResult.getAgeMillis() >= NTP_INTERVAL) { in blockingGetNtpTimeAndInject()
145 if (ntpResult != null && ntpResult.getAgeMillis() < NTP_INTERVAL) { in blockingGetNtpTimeAndInject()
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java78 return mTimeMillis + getAgeMillis(); in currentTimeMillis()
82 public long getAgeMillis() { in getAgeMillis() method in NtpTrustedTime.TimeResult