Home
last modified time | relevance | path

Searched refs:forceRefresh (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/
DNetworkTimeUpdateServiceTest.java101 when(mMockNtpTrustedTime.forceRefresh(mDummyNetwork)).thenReturn(true); in engineImpl_refreshAndRescheduleIfRequired_success()
111 verify(mMockNtpTrustedTime).forceRefresh(mDummyNetwork); in engineImpl_refreshAndRescheduleIfRequired_success()
139 when(mMockNtpTrustedTime.forceRefresh(mDummyNetwork)).thenReturn(false); in engineImpl_refreshAndRescheduleIfRequired_failThenFailRepeatedly()
147 verify(mMockNtpTrustedTime).forceRefresh(mDummyNetwork); in engineImpl_refreshAndRescheduleIfRequired_failThenFailRepeatedly()
184 when(mMockNtpTrustedTime.forceRefresh(mDummyNetwork)).thenReturn(true); in engineImpl_refreshAndRescheduleIfRequired_successThenFailRepeatedly()
196 verify(mMockNtpTrustedTime).forceRefresh(mDummyNetwork); in engineImpl_refreshAndRescheduleIfRequired_successThenFailRepeatedly()
214 when(mMockNtpTrustedTime.forceRefresh(mDummyNetwork)).thenReturn(false); in engineImpl_refreshAndRescheduleIfRequired_successThenFailRepeatedly()
222 verify(mMockNtpTrustedTime).forceRefresh(mDummyNetwork); in engineImpl_refreshAndRescheduleIfRequired_successThenFailRepeatedly()
264 when(mMockNtpTrustedTime.forceRefresh(mDummyNetwork)).thenReturn(true); in engineImpl_refreshAndRescheduleIfRequired_successThenFail_tryAgainTimesZero()
276 verify(mMockNtpTrustedTime).forceRefresh(mDummyNetwork); in engineImpl_refreshAndRescheduleIfRequired_successThenFail_tryAgainTimesZero()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DNtpTrustedTimeTest.java216 assertFalse(ntpTrustedTime.forceRefresh()); in testForceRefreshDefaultNetwork_noConnectivity()
232 assertFalse(ntpTrustedTime.forceRefresh()); in testForceRefreshDefaultNetwork_noActiveNetwork()
250 assertFalse(ntpTrustedTime.forceRefresh()); in testForceRefreshDefaultNetwork_nullConfig()
269 assertFalse(ntpTrustedTime.forceRefresh(network)); in testForceRefresh_nullConfig()
286 assertFalse(ntpTrustedTime.forceRefresh(network)); in testForceRefresh_noConnectivity()
307 assertFalse(ntpTrustedTime.forceRefresh(network)); in testForceRefresh_singleServer_queryFailed()
333 assertTrue(ntpTrustedTime.forceRefresh(network)); in testForceRefresh_singleServer_querySucceeded()
361 assertTrue(ntpTrustedTime.forceRefresh(network)); in testForceRefresh_multiServer_firstQueryFailed()
389 assertTrue(ntpTrustedTime.forceRefresh(network)); in testForceRefresh_multiServer_firstQuerySucceeded()
418 assertTrue(ntpTrustedTime.forceRefresh(network)); in testForceRefresh_multiServer_keepsOldValueOnFailure()
[all …]
/frameworks/base/core/java/android/util/
DTrustedTime.java38 public boolean forceRefresh(); in forceRefresh() method
DNtpTrustedTime.java273 public boolean forceRefresh() { in forceRefresh() method in NtpTrustedTime
286 public boolean forceRefresh(@NonNull Network network) { in forceRefresh() method in NtpTrustedTime
/frameworks/base/services/robotests/src/com/android/server/location/gnss/
DNtpNetworkTimeHelperTest.java100 doReturn(false).when(mMockNtpTrustedTime).forceRefresh(); in demandUtcTimeInjection_injectTimeFailed_injectTimeDelayed()
106 doReturn(true).when(mMockNtpTrustedTime).forceRefresh(); in demandUtcTimeInjection_injectTimeFailed_injectTimeDelayed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/backlight/ui/view/
DKeyboardBacklightDialog.kt119 updateState(currentLevel, maxLevel, forceRefresh = true) in <lambda>()
161 fun updateState(current: Int, max: Int, forceRefresh: Boolean = false) { in <lambda>()
162 if (maxLevel != max || forceRefresh) { in <lambda>()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DNtpNetworkTimeHelper.java185 refreshSuccess = mNtpTime.forceRefresh(); in blockingGetNtpTimeAndInject()
/frameworks/base/core/java/android/content/res/
DAssetManager.java1596 int grammaticalGender, int majorVersion, boolean forceRefresh) { in setConfigurationInternal() argument
1603 forceRefresh); in setConfigurationInternal()
1694 int majorVersion, boolean forceRefresh); in nativeSetConfiguration() argument
/frameworks/base/services/core/java/com/android/server/timedetector/
DNetworkTimeUpdateService.java655 return mNtpTrustedTime.forceRefresh(network); in tryRefresh()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt57441 Landroid/util/NtpTrustedTime;->forceRefresh(Landroid/net/Network;)Z