Searched refs:ntpTrustedTime (Results 1 – 3 of 3) sorted by relevance
210 NtpTrustedTime ntpTrustedTime = spy(NtpTrustedTime.class); in testForceRefreshDefaultNetwork_noConnectivity() local213 when(ntpTrustedTime.getDefaultNetwork()).thenReturn(network); in testForceRefreshDefaultNetwork_noConnectivity()214 when(ntpTrustedTime.isNetworkConnected(network)).thenReturn(false); in testForceRefreshDefaultNetwork_noConnectivity()216 assertFalse(ntpTrustedTime.forceRefresh()); in testForceRefreshDefaultNetwork_noConnectivity()218 InOrder inOrder = Mockito.inOrder(ntpTrustedTime); in testForceRefreshDefaultNetwork_noConnectivity()219 inOrder.verify(ntpTrustedTime, times(1)).getDefaultNetwork(); in testForceRefreshDefaultNetwork_noConnectivity()220 inOrder.verify(ntpTrustedTime, times(1)).isNetworkConnected(network); in testForceRefreshDefaultNetwork_noConnectivity()223 assertNoCachedTimeValueResult(ntpTrustedTime); in testForceRefreshDefaultNetwork_noConnectivity()228 NtpTrustedTime ntpTrustedTime = spy(NtpTrustedTime.class); in testForceRefreshDefaultNetwork_noActiveNetwork() local230 when(ntpTrustedTime.getDefaultNetwork()).thenReturn(null); in testForceRefreshDefaultNetwork_noActiveNetwork()[all …]
124 @NonNull NtpTrustedTime ntpTrustedTime) { in TimeDetectorService() argument129 mNtpTrustedTime = Objects.requireNonNull(ntpTrustedTime); in TimeDetectorService()
398 int tryAgainTimesMax, @NonNull NtpTrustedTime ntpTrustedTime) { in EngineImpl() argument408 mNtpTrustedTime = Objects.requireNonNull(ntpTrustedTime); in EngineImpl()