Searched refs:NtpConfig (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/java/android/util/ |
D | NtpTrustedTime.java | 68 public static final class NtpConfig { class in NtpTrustedTime 81 public NtpConfig(@NonNull List<URI> serverUris, @NonNull Duration timeout) in NtpConfig() method in NtpTrustedTime.NtpConfig 228 private NtpConfig mNtpConfigForTests; 265 public void setServerConfigForTests(@NonNull NtpConfig ntpConfig) { in setServerConfigForTests() 304 NtpConfig ntpConfig = getNtpConfig(); in forceRefreshLocked() 370 private NtpConfig getNtpConfig() { in getNtpConfig() 388 public abstract NtpConfig getNtpConfigInternal(); in getNtpConfigInternal() 642 public NtpConfig getNtpConfigInternal() { in getNtpConfigInternal() 672 return ntpServerUris == null ? null : new NtpConfig(ntpServerUris, timeout); in getNtpConfigInternal()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | NtpTrustedTimeTest.java | 190 new NtpTrustedTime.NtpConfig(null, Duration.ofSeconds(5)); in testNtpConfig_nullConstructorServerInfo() 195 new NtpTrustedTime.NtpConfig(VALID_SERVER_URIS, null); in testNtpConfig_nullConstructorTimeout() 200 new NtpTrustedTime.NtpConfig(VALID_SERVER_URIS, Duration.ofMillis(0)); in testNtpConfig_zeroTimeout() 205 new NtpTrustedTime.NtpConfig(VALID_SERVER_URIS, Duration.ofMillis(-1)); in testNtpConfig_negativeTimeout() 303 new NtpTrustedTime.NtpConfig(serverUris, VALID_TIMEOUT)); in testForceRefresh_singleServer_queryFailed() 327 new NtpTrustedTime.NtpConfig(serverUris, VALID_TIMEOUT)); in testForceRefresh_singleServer_querySucceeded() 353 new NtpTrustedTime.NtpConfig(serverUris, VALID_TIMEOUT)); in testForceRefresh_multiServer_firstQueryFailed() 383 new NtpTrustedTime.NtpConfig(serverUris, VALID_TIMEOUT)); in testForceRefresh_multiServer_firstQuerySucceeded() 414 new NtpTrustedTime.NtpConfig(serverUris, VALID_TIMEOUT)); in testForceRefresh_multiServer_keepsOldValueOnFailure() 436 new NtpTrustedTime.NtpConfig(serverUris, VALID_TIMEOUT)); in testForceRefresh_multiServer_keepsOldValueOnFailure() [all …]
|
/frameworks/base/services/core/java/com/android/server/timedetector/ |
D | NetworkTimeUpdateServiceShellCommand.java | 122 NtpTrustedTime.NtpConfig ntpConfig = new NtpTrustedTime.NtpConfig(serverUris, timeout); in runSetServerConfig()
|
D | NetworkTimeUpdateService.java | 153 void setServerConfigForTests(@Nullable NtpTrustedTime.NtpConfig ntpConfig) { in setServerConfigForTests()
|