Home
last modified time | relevance | path

Searched refs:NtpConfig (Results 1 – 4 of 4) sorted by relevance

/aosp14/frameworks/base/core/java/android/util/
H A DNtpTrustedTime.java68 public static final class NtpConfig { class in NtpTrustedTime
81 public NtpConfig(@NonNull List<URI> serverUris, @NonNull Duration timeout) in NtpConfig() method in NtpTrustedTime.NtpConfig
222 private NtpConfig mNtpConfigForTests;
248 public void setServerConfigForTests(@NonNull NtpConfig ntpConfig) { in setServerConfigForTests()
286 NtpConfig ntpConfig = getNtpConfig(); in forceRefreshLocked()
353 private NtpConfig getNtpConfig() { in getNtpConfig()
368 public abstract NtpConfig getNtpConfigInternal(); in getNtpConfigInternal()
619 public NtpConfig getNtpConfigInternal() { in getNtpConfigInternal()
649 return ntpServerUris == null ? null : new NtpConfig(ntpServerUris, timeout); in getNtpConfigInternal()
/aosp14/frameworks/base/core/tests/coretests/src/android/util/
H A DNtpTrustedTimeTest.java182 new NtpTrustedTime.NtpConfig(null, Duration.ofSeconds(5)); in testNtpConfig_nullConstructorServerInfo()
187 new NtpTrustedTime.NtpConfig(VALID_SERVER_URIS, null); in testNtpConfig_nullConstructorTimeout()
192 new NtpTrustedTime.NtpConfig(VALID_SERVER_URIS, Duration.ofMillis(0)); in testNtpConfig_zeroTimeout()
197 new NtpTrustedTime.NtpConfig(VALID_SERVER_URIS, Duration.ofMillis(-1)); in testNtpConfig_negativeTimeout()
295 new NtpTrustedTime.NtpConfig(serverUris, VALID_TIMEOUT)); in testForceRefresh_singleServer_queryFailed()
319 new NtpTrustedTime.NtpConfig(serverUris, VALID_TIMEOUT)); in testForceRefresh_singleServer_querySucceeded()
345 new NtpTrustedTime.NtpConfig(serverUris, VALID_TIMEOUT)); in testForceRefresh_multiServer_firstQueryFailed()
375 new NtpTrustedTime.NtpConfig(serverUris, VALID_TIMEOUT)); in testForceRefresh_multiServer_firstQuerySucceeded()
406 new NtpTrustedTime.NtpConfig(serverUris, VALID_TIMEOUT)); in testForceRefresh_multiServer_keepsOldValueOnFailure()
428 new NtpTrustedTime.NtpConfig(serverUris, VALID_TIMEOUT)); in testForceRefresh_multiServer_keepsOldValueOnFailure()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/timedetector/
H A DNetworkTimeUpdateServiceShellCommand.java122 NtpTrustedTime.NtpConfig ntpConfig = new NtpTrustedTime.NtpConfig(serverUris, timeout); in runSetServerConfig()
H A DNetworkTimeUpdateService.java162 void setServerConfigForTests(@Nullable NtpTrustedTime.NtpConfig ntpConfig) { in setServerConfigForTests()