Home
last modified time | relevance | path

Searched refs:getCachedTimeResult (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/
DNetworkTimeUpdateServiceTest.java100 when(mMockNtpTrustedTime.getCachedTimeResult()).thenReturn(null, timeResult); in engineImpl_refreshAndRescheduleIfRequired_success()
138 when(mMockNtpTrustedTime.getCachedTimeResult()).thenReturn(null); in engineImpl_refreshAndRescheduleIfRequired_failThenFailRepeatedly()
183 when(mMockNtpTrustedTime.getCachedTimeResult()).thenReturn(null, timeResult); in engineImpl_refreshAndRescheduleIfRequired_successThenFailRepeatedly()
213 when(mMockNtpTrustedTime.getCachedTimeResult()).thenReturn(timeResult); in engineImpl_refreshAndRescheduleIfRequired_successThenFailRepeatedly()
263 when(mMockNtpTrustedTime.getCachedTimeResult()).thenReturn(null, timeResult); in engineImpl_refreshAndRescheduleIfRequired_successThenFail_tryAgainTimesZero()
293 when(mMockNtpTrustedTime.getCachedTimeResult()).thenReturn(timeResult); in engineImpl_refreshAndRescheduleIfRequired_successThenFail_tryAgainTimesZero()
338 when(mMockNtpTrustedTime.getCachedTimeResult()).thenReturn(null, timeResult); in engineImpl_refreshAndRescheduleIfRequired_successThenFail_tryAgainTimesNegative()
368 when(mMockNtpTrustedTime.getCachedTimeResult()).thenReturn(timeResult); in engineImpl_refreshAndRescheduleIfRequired_successThenFail_tryAgainTimesNegative()
412 when(mMockNtpTrustedTime.getCachedTimeResult()).thenReturn(null, timeResult1); in engineImpl_refreshAndRescheduleIfRequired_successFailSuccess()
443 when(mMockNtpTrustedTime.getCachedTimeResult()).thenReturn(timeResult1); in engineImpl_refreshAndRescheduleIfRequired_successFailSuccess()
[all …]
DTimeDetectorServiceTest.java429 when(mMockNtpTrustedTime.getCachedTimeResult()) in testLatestNetworkTime()
443 when(mMockNtpTrustedTime.getCachedTimeResult()).thenReturn(null); in testLatestNetworkTime_noTimeAvailable()
/frameworks/base/services/robotests/src/com/android/server/location/gnss/
DNtpNetworkTimeHelperTest.java83 doReturn(result).when(mMockNtpTrustedTime).getCachedTimeResult(); in demandUtcTimeInjection_cachedAgeLow_injectTime()
99 doReturn(result1).when(mMockNtpTrustedTime).getCachedTimeResult(); in demandUtcTimeInjection_injectTimeFailed_injectTimeDelayed()
110 doReturn(result2).when(mMockNtpTrustedTime).getCachedTimeResult(); in demandUtcTimeInjection_injectTimeFailed_injectTimeDelayed()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DNtpNetworkTimeHelper.java182 NtpTrustedTime.TimeResult ntpResult = mNtpTime.getCachedTimeResult(); in blockingGetNtpTimeAndInject()
225 NtpTrustedTime.TimeResult ntpResult = mNtpTime.getCachedTimeResult(); in maybeInjectCachedNtpTime()
/frameworks/base/services/core/java/com/android/server/timedetector/
DNetworkTimeUpdateService.java418 TimeResult cachedTimeResult = mNtpTrustedTime.getCachedTimeResult(); in forceRefreshForTests()
449 NtpTrustedTime.TimeResult initialTimeResult = mNtpTrustedTime.getCachedTimeResult(); in refreshAndRescheduleIfRequired()
476 NtpTrustedTime.TimeResult latestTimeResult = mNtpTrustedTime.getCachedTimeResult(); in refreshAndRescheduleIfRequired()
DTimeDetectorService.java396 NtpTrustedTime.TimeResult ntpResult = mNtpTrustedTime.getCachedTimeResult(); in latestNetworkTime()
/frameworks/base/core/tests/coretests/src/android/util/
DNtpTrustedTimeTest.java634 assertNull(ntpTrustedTime.getCachedTimeResult()); in assertNoCachedTimeValueResult()
645 assertEquals(expected, ntpTrustedTime.getCachedTimeResult()); in assertCachedTimeValueResult()
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java496 public TimeResult getCachedTimeResult() { in getCachedTimeResult() method in NtpTrustedTime