Home
last modified time | relevance | path

Searched refs:ntpTrustedTime (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/util/
DNtpTrustedTimeTest.java210 NtpTrustedTime ntpTrustedTime = spy(NtpTrustedTime.class); in testForceRefreshDefaultNetwork_noConnectivity() local
213 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() local
230 when(ntpTrustedTime.getDefaultNetwork()).thenReturn(null); in testForceRefreshDefaultNetwork_noActiveNetwork()
[all …]
/frameworks/base/services/core/java/com/android/server/timedetector/
DTimeDetectorService.java124 @NonNull NtpTrustedTime ntpTrustedTime) { in TimeDetectorService() argument
129 mNtpTrustedTime = Objects.requireNonNull(ntpTrustedTime); in TimeDetectorService()
DNetworkTimeUpdateService.java398 int tryAgainTimesMax, @NonNull NtpTrustedTime ntpTrustedTime) { in EngineImpl() argument
408 mNtpTrustedTime = Objects.requireNonNull(ntpTrustedTime); in EngineImpl()