Home
last modified time | relevance | path

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

/frameworks/base/services/robotests/src/com/android/server/location/gnss/
DNtpNetworkTimeHelperTest.java81 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()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNitzSignalTest.java58 assertEquals(ageMillis, nitzSignal.getAgeMillis()); in testGetAgeAdjustedRealtimeMillis_zeroAge()
72 assertEquals(ageMillis, nitzSignal.getAgeMillis()); in testGetAgeAdjustedRealtimeMillis_withAge()
DServiceStateTrackerTest.java2019 assertEquals(actualNitzSignal.getAgeMillis(), 0); in testSetTimeFromNITZStr_withoutAge()
2044 assertEquals(actualNitzSignal.getAgeMillis(), ageMs); in testSetTimeFromNITZStr_withAge()
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java164 return mUnixEpochTimeMillis + getAgeMillis(); in currentTimeMillis()
168 public long getAgeMillis() { in getAgeMillis() method in NtpTrustedTime.TimeResult
169 return getAgeMillis(SystemClock.elapsedRealtime()); in getAgeMillis()
177 public long getAgeMillis(long currentElapsedRealtimeMillis) { in getAgeMillis() method in NtpTrustedTime.TimeResult
619 + Duration.ofMillis(timeResult.getAgeMillis())); in dump()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DNtpNetworkTimeHelper.java183 if (ntpResult == null || ntpResult.getAgeMillis() >= NTP_INTERVAL) { in blockingGetNtpTimeAndInject()
226 if (ntpResult == null || ntpResult.getAgeMillis() >= NTP_INTERVAL) { in maybeInjectCachedNtpTime()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNitzSignal.java76 public long getAgeMillis() { in getAgeMillis() method in NitzSignal
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
DTimeZoneSuggesterImplTest.java443 goodNitzSignal.getAgeMillis()); in test_bogusCzNitzSignal()
480 goodNitzSignal.getAgeMillis()); in test_bogusUniqueUsNitzSignal()
508 originalNitzSignal.getAgeMillis()); in test_emulatorNitzExtensionUsedForTimeZone()
DNitzSignalInputFilterPredicateFactoryTest.java333 baseNitzSignal.getAgeMillis()); in testTrivalentPredicate_rateLimitCheck_offsetDifference()
482 long adjustedAgeMillis = baseNitzSignal.getAgeMillis() + ageMillisAdjustment; in createAdjustedNitzSignal()
/frameworks/base/services/core/java/com/android/server/timedetector/
DNetworkTimeUpdateService.java629 : timeResult.getAgeMillis(currentElapsedRealtimeMillis); in calculateTimeResultAgeMillis()