Searched refs:forceRefresh (Results 1 – 10 of 10) sorted by relevance
101 when(mMockNtpTrustedTime.forceRefresh(mDummyNetwork)).thenReturn(true); in engineImpl_refreshAndRescheduleIfRequired_success()111 verify(mMockNtpTrustedTime).forceRefresh(mDummyNetwork); in engineImpl_refreshAndRescheduleIfRequired_success()139 when(mMockNtpTrustedTime.forceRefresh(mDummyNetwork)).thenReturn(false); in engineImpl_refreshAndRescheduleIfRequired_failThenFailRepeatedly()147 verify(mMockNtpTrustedTime).forceRefresh(mDummyNetwork); in engineImpl_refreshAndRescheduleIfRequired_failThenFailRepeatedly()184 when(mMockNtpTrustedTime.forceRefresh(mDummyNetwork)).thenReturn(true); in engineImpl_refreshAndRescheduleIfRequired_successThenFailRepeatedly()196 verify(mMockNtpTrustedTime).forceRefresh(mDummyNetwork); in engineImpl_refreshAndRescheduleIfRequired_successThenFailRepeatedly()214 when(mMockNtpTrustedTime.forceRefresh(mDummyNetwork)).thenReturn(false); in engineImpl_refreshAndRescheduleIfRequired_successThenFailRepeatedly()222 verify(mMockNtpTrustedTime).forceRefresh(mDummyNetwork); in engineImpl_refreshAndRescheduleIfRequired_successThenFailRepeatedly()264 when(mMockNtpTrustedTime.forceRefresh(mDummyNetwork)).thenReturn(true); in engineImpl_refreshAndRescheduleIfRequired_successThenFail_tryAgainTimesZero()276 verify(mMockNtpTrustedTime).forceRefresh(mDummyNetwork); in engineImpl_refreshAndRescheduleIfRequired_successThenFail_tryAgainTimesZero()[all …]
216 assertFalse(ntpTrustedTime.forceRefresh()); in testForceRefreshDefaultNetwork_noConnectivity()232 assertFalse(ntpTrustedTime.forceRefresh()); in testForceRefreshDefaultNetwork_noActiveNetwork()250 assertFalse(ntpTrustedTime.forceRefresh()); in testForceRefreshDefaultNetwork_nullConfig()269 assertFalse(ntpTrustedTime.forceRefresh(network)); in testForceRefresh_nullConfig()286 assertFalse(ntpTrustedTime.forceRefresh(network)); in testForceRefresh_noConnectivity()307 assertFalse(ntpTrustedTime.forceRefresh(network)); in testForceRefresh_singleServer_queryFailed()333 assertTrue(ntpTrustedTime.forceRefresh(network)); in testForceRefresh_singleServer_querySucceeded()361 assertTrue(ntpTrustedTime.forceRefresh(network)); in testForceRefresh_multiServer_firstQueryFailed()389 assertTrue(ntpTrustedTime.forceRefresh(network)); in testForceRefresh_multiServer_firstQuerySucceeded()418 assertTrue(ntpTrustedTime.forceRefresh(network)); in testForceRefresh_multiServer_keepsOldValueOnFailure()[all …]
38 public boolean forceRefresh(); in forceRefresh() method
273 public boolean forceRefresh() { in forceRefresh() method in NtpTrustedTime286 public boolean forceRefresh(@NonNull Network network) { in forceRefresh() method in NtpTrustedTime
100 doReturn(false).when(mMockNtpTrustedTime).forceRefresh(); in demandUtcTimeInjection_injectTimeFailed_injectTimeDelayed()106 doReturn(true).when(mMockNtpTrustedTime).forceRefresh(); in demandUtcTimeInjection_injectTimeFailed_injectTimeDelayed()
119 updateState(currentLevel, maxLevel, forceRefresh = true) in <lambda>()161 fun updateState(current: Int, max: Int, forceRefresh: Boolean = false) { in <lambda>()162 if (maxLevel != max || forceRefresh) { in <lambda>()
185 refreshSuccess = mNtpTime.forceRefresh(); in blockingGetNtpTimeAndInject()
1596 int grammaticalGender, int majorVersion, boolean forceRefresh) { in setConfigurationInternal() argument1603 forceRefresh); in setConfigurationInternal()1694 int majorVersion, boolean forceRefresh); in nativeSetConfiguration() argument
655 return mNtpTrustedTime.forceRefresh(network); in tryRefresh()
57441 Landroid/util/NtpTrustedTime;->forceRefresh(Landroid/net/Network;)Z