/aosp14/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | NtpTrustedTimeTest.java | 202 NtpTrustedTime ntpTrustedTime = spy(NtpTrustedTime.class); in testForceRefreshDefaultNetwork_noConnectivity() 220 NtpTrustedTime ntpTrustedTime = spy(NtpTrustedTime.class); in testForceRefreshDefaultNetwork_noActiveNetwork() 235 NtpTrustedTime ntpTrustedTime = spy(NtpTrustedTime.class); in testForceRefreshDefaultNetwork_nullConfig() 255 NtpTrustedTime ntpTrustedTime = spy(NtpTrustedTime.class); in testForceRefresh_nullConfig() 273 NtpTrustedTime ntpTrustedTime = spy(NtpTrustedTime.class); in testForceRefresh_noConnectivity() 289 NtpTrustedTime ntpTrustedTime = spy(NtpTrustedTime.class); in testForceRefresh_singleServer_queryFailed() 313 NtpTrustedTime ntpTrustedTime = spy(NtpTrustedTime.class); in testForceRefresh_singleServer_querySucceeded() 339 NtpTrustedTime ntpTrustedTime = spy(NtpTrustedTime.class); in testForceRefresh_multiServer_firstQueryFailed() 369 NtpTrustedTime ntpTrustedTime = spy(NtpTrustedTime.class); in testForceRefresh_multiServer_firstQuerySucceeded() 395 NtpTrustedTime ntpTrustedTime = spy(NtpTrustedTime.class); in testForceRefresh_multiServer_keepsOldValueOnFailure() [all …]
|
/aosp14/frameworks/base/services/robotests/src/com/android/server/location/gnss/ |
H A D | NtpNetworkTimeHelperTest.java | 27 import android.util.NtpTrustedTime; 52 private NtpTrustedTime mMockNtpTrustedTime; 78 NtpTrustedTime.TimeResult result = mock(NtpTrustedTime.TimeResult.class); in demandUtcTimeInjection_cachedAgeLow_injectTime() 95 NtpTrustedTime.TimeResult result1 = mock(NtpTrustedTime.TimeResult.class); in demandUtcTimeInjection_injectTimeFailed_injectTimeDelayed() 105 NtpTrustedTime.TimeResult result2 = mock(NtpTrustedTime.TimeResult.class); in demandUtcTimeInjection_injectTimeFailed_injectTimeDelayed()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/ |
H A D | NetworkTimeUpdateServiceTest.java | 30 import android.util.NtpTrustedTime; 53 private NtpTrustedTime mMockNtpTrustedTime; 59 mMockNtpTrustedTime = mock(NtpTrustedTime.class); in setUp() 98 NtpTrustedTime.TimeResult timeResult = createNtpTimeResult( in engineImpl_refreshAndRescheduleIfRequired_success() 176 NtpTrustedTime.TimeResult timeResult = createNtpTimeResult( in engineImpl_refreshAndRescheduleIfRequired_successThenFailRepeatedly() 256 NtpTrustedTime.TimeResult timeResult = createNtpTimeResult( in engineImpl_refreshAndRescheduleIfRequired_successThenFail_tryAgainTimesZero() 331 NtpTrustedTime.TimeResult timeResult = createNtpTimeResult( in engineImpl_refreshAndRescheduleIfRequired_successThenFail_tryAgainTimesNegative() 514 NtpTrustedTime.TimeResult timeResult = createNtpTimeResult( in engineImpl_refreshAndRescheduleIfRequired_noRefreshIfLatestIsFresh() 678 NtpTrustedTime.TimeResult timeResult1; in engineImpl_refreshAndRescheduleIfRequired_minimumRefreshTimeEnforced_b269425914() 765 NtpTrustedTime.TimeResult timeResult) { in createExpectedSuggestion() [all …]
|
H A D | TimeDetectorServiceTest.java | 53 import android.util.NtpTrustedTime; 88 private NtpTrustedTime mMockNtpTrustedTime; 104 mMockNtpTrustedTime = mock(NtpTrustedTime.class); in setUp() 427 NtpTrustedTime.TimeResult latestNetworkTime = new NtpTrustedTime.TimeResult( in testLatestNetworkTime()
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/gnss/ |
H A D | NtpNetworkTimeHelper.java | 30 import android.util.NtpTrustedTime; 75 private final NtpTrustedTime mNtpTime; 92 NtpTrustedTime ntpTime) { in NtpNetworkTimeHelper() 102 this(context, looper, callback, NtpTrustedTime.getInstance(context)); in NtpNetworkTimeHelper() 182 NtpTrustedTime.TimeResult ntpResult = mNtpTime.getCachedTimeResult(); in blockingGetNtpTimeAndInject() 225 NtpTrustedTime.TimeResult ntpResult = mNtpTime.getCachedTimeResult(); in maybeInjectCachedNtpTime()
|
/aosp14/frameworks/base/services/core/java/com/android/server/timedetector/ |
H A D | NetworkTimeUpdateServiceShellCommand.java | 21 import android.util.NtpTrustedTime; 97 serverUris.add(NtpTrustedTime.parseNtpUriStrict(getNextArgRequired())); in runSetServerConfig() 122 NtpTrustedTime.NtpConfig ntpConfig = new NtpTrustedTime.NtpConfig(serverUris, timeout); in runSetServerConfig()
|
H A D | NetworkTimeUpdateService.java | 45 import android.util.NtpTrustedTime; 46 import android.util.NtpTrustedTime.TimeResult; 84 private final NtpTrustedTime mNtpTrustedTime; 101 mNtpTrustedTime = NtpTrustedTime.getInstance(context); in NetworkTimeUpdateService() 162 void setServerConfigForTests(@Nullable NtpTrustedTime.NtpConfig ntpConfig) { in setServerConfigForTests() 377 private final NtpTrustedTime mNtpTrustedTime; 407 int tryAgainTimesMax, @NonNull NtpTrustedTime ntpTrustedTime) { in EngineImpl() 452 NtpTrustedTime.TimeResult initialTimeResult = mNtpTrustedTime.getCachedTimeResult(); in refreshAndRescheduleIfRequired() 479 NtpTrustedTime.TimeResult latestTimeResult = mNtpTrustedTime.getCachedTimeResult(); in refreshAndRescheduleIfRequired()
|
H A D | TimeDetectorService.java | 43 import android.util.NtpTrustedTime; 100 NtpTrustedTime.getInstance(context)); in onStart() 112 @NonNull private final NtpTrustedTime mNtpTrustedTime; 126 @NonNull NtpTrustedTime ntpTrustedTime) { in TimeDetectorService() 399 NtpTrustedTime.TimeResult ntpResult = mNtpTrustedTime.getCachedTimeResult(); in latestNetworkTime() 459 NtpTrustedTime.TimeResult timeResult = new NtpTrustedTime.TimeResult( in setNetworkTimeForSystemClockForTests()
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | NtpTrustedTime.java | 56 public abstract class NtpTrustedTime implements TrustedTime { class 217 private static NtpTrustedTime sSingleton; 232 protected NtpTrustedTime() { in NtpTrustedTime() method in NtpTrustedTime 236 public static synchronized NtpTrustedTime getInstance(Context context) { in getInstance() 604 private static final class NtpTrustedTimeImpl extends NtpTrustedTime {
|
H A D | OWNERS | 10 per-file NtpTrustedTime.java = file:/services/core/java/com/android/server/timezonedetector/OWNERS
|
/aosp14/frameworks/base/config/ |
H A D | dirty-image-objects | 141 Landroid/util/NtpTrustedTime;
|
H A D | preloaded-classes | 8278 android.util.NtpTrustedTime$TimeResult 8279 android.util.NtpTrustedTime
|
H A D | boot-image-profile.txt | 41179 Landroid/util/NtpTrustedTime$TimeResult; 41180 Landroid/util/NtpTrustedTime;
|
/aosp14/frameworks/base/boot/ |
H A D | preloaded-classes | 8247 android.util.NtpTrustedTime$TimeResult 8248 android.util.NtpTrustedTime
|
H A D | boot-image-profile.txt | 31045 Landroid/util/NtpTrustedTime$TimeResult; 31046 Landroid/util/NtpTrustedTime;
|
/aosp14/frameworks/base/boot/hiddenapi/ |
H A D | hiddenapi-max-target-o.txt | 58085 Landroid/util/NtpTrustedTime;->getCacheAge()J 58086 Landroid/util/NtpTrustedTime;->getCacheCertainty()J 58087 Landroid/util/NtpTrustedTime;->LOGD:Z 58088 Landroid/util/NtpTrustedTime;->mCachedNtpCertainty:J 58089 Landroid/util/NtpTrustedTime;->mCachedNtpElapsedRealtime:J 58090 Landroid/util/NtpTrustedTime;->mCachedNtpTime:J 58092 Landroid/util/NtpTrustedTime;->mHasCache:Z 58093 Landroid/util/NtpTrustedTime;->mServer:Ljava/lang/String; 58094 Landroid/util/NtpTrustedTime;->mTimeout:J 58096 Landroid/util/NtpTrustedTime;->sSingleton:Landroid/util/NtpTrustedTime; [all …]
|
/aosp14/frameworks/base/services/ |
H A D | art-profile | 10002 …roid/util/NtpTrustedTime;Landroid/util/NtpTrustedTime$NtpTrustedTimeImpl;]Landroid/util/NtpTrusted…
|