Searched refs:getAgeMillis (Results 1 – 9 of 9) sorted by relevance
81 doReturn(NtpNetworkTimeHelper.NTP_INTERVAL - 1).when(result).getAgeMillis(); in demandUtcTimeInjection_cachedAgeLow_injectTime()98 doReturn(NtpNetworkTimeHelper.NTP_INTERVAL + 1).when(result1).getAgeMillis(); in demandUtcTimeInjection_injectTimeFailed_injectTimeDelayed()108 doReturn(1L).when(result2).getAgeMillis(); in demandUtcTimeInjection_injectTimeFailed_injectTimeDelayed()
58 assertEquals(ageMillis, nitzSignal.getAgeMillis()); in testGetAgeAdjustedRealtimeMillis_zeroAge()72 assertEquals(ageMillis, nitzSignal.getAgeMillis()); in testGetAgeAdjustedRealtimeMillis_withAge()
2019 assertEquals(actualNitzSignal.getAgeMillis(), 0); in testSetTimeFromNITZStr_withoutAge()2044 assertEquals(actualNitzSignal.getAgeMillis(), ageMs); in testSetTimeFromNITZStr_withAge()
164 return mUnixEpochTimeMillis + getAgeMillis(); in currentTimeMillis()168 public long getAgeMillis() { in getAgeMillis() method in NtpTrustedTime.TimeResult169 return getAgeMillis(SystemClock.elapsedRealtime()); in getAgeMillis()177 public long getAgeMillis(long currentElapsedRealtimeMillis) { in getAgeMillis() method in NtpTrustedTime.TimeResult619 + Duration.ofMillis(timeResult.getAgeMillis())); in dump()
183 if (ntpResult == null || ntpResult.getAgeMillis() >= NTP_INTERVAL) { in blockingGetNtpTimeAndInject()226 if (ntpResult == null || ntpResult.getAgeMillis() >= NTP_INTERVAL) { in maybeInjectCachedNtpTime()
76 public long getAgeMillis() { in getAgeMillis() method in NitzSignal
443 goodNitzSignal.getAgeMillis()); in test_bogusCzNitzSignal()480 goodNitzSignal.getAgeMillis()); in test_bogusUniqueUsNitzSignal()508 originalNitzSignal.getAgeMillis()); in test_emulatorNitzExtensionUsedForTimeZone()
333 baseNitzSignal.getAgeMillis()); in testTrivalentPredicate_rateLimitCheck_offsetDifference()482 long adjustedAgeMillis = baseNitzSignal.getAgeMillis() + ageMillisAdjustment; in createAdjustedNitzSignal()
629 : timeResult.getAgeMillis(currentElapsedRealtimeMillis); in calculateTimeResultAgeMillis()