Searched refs:getCachedTimeResult (Results 1 – 8 of 8) sorted by relevance
100 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 …]
429 when(mMockNtpTrustedTime.getCachedTimeResult()) in testLatestNetworkTime()443 when(mMockNtpTrustedTime.getCachedTimeResult()).thenReturn(null); in testLatestNetworkTime_noTimeAvailable()
83 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()
182 NtpTrustedTime.TimeResult ntpResult = mNtpTime.getCachedTimeResult(); in blockingGetNtpTimeAndInject()225 NtpTrustedTime.TimeResult ntpResult = mNtpTime.getCachedTimeResult(); in maybeInjectCachedNtpTime()
418 TimeResult cachedTimeResult = mNtpTrustedTime.getCachedTimeResult(); in forceRefreshForTests()449 NtpTrustedTime.TimeResult initialTimeResult = mNtpTrustedTime.getCachedTimeResult(); in refreshAndRescheduleIfRequired()476 NtpTrustedTime.TimeResult latestTimeResult = mNtpTrustedTime.getCachedTimeResult(); in refreshAndRescheduleIfRequired()
396 NtpTrustedTime.TimeResult ntpResult = mNtpTrustedTime.getCachedTimeResult(); in latestNetworkTime()
634 assertNull(ntpTrustedTime.getCachedTimeResult()); in assertNoCachedTimeValueResult()645 assertEquals(expected, ntpTrustedTime.getCachedTimeResult()); in assertCachedTimeValueResult()
496 public TimeResult getCachedTimeResult() { in getCachedTimeResult() method in NtpTrustedTime