Searched refs:getAgeMillis (Results 1 – 4 of 4) sorted by relevance
57 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()
158 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()
134 if (ntpResult == null || ntpResult.getAgeMillis() >= NTP_INTERVAL) { in blockingGetNtpTimeAndInject()145 if (ntpResult != null && ntpResult.getAgeMillis() < NTP_INTERVAL) { in blockingGetNtpTimeAndInject()
78 return mTimeMillis + getAgeMillis(); in currentTimeMillis()82 public long getAgeMillis() { in getAgeMillis() method in NtpTrustedTime.TimeResult