Home
last modified time | relevance | path

Searched refs:delay (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/debug/data/repository/
DUdfpsEnrollDebugRepository.kt31 import kotlinx.coroutines.delay
49 delay(200) in enroll()
51 delay(200) in enroll()
53 delay(300) in enroll()
55 delay(1000) in enroll()
57 delay(500) in enroll()
59 delay(500) in enroll()
61 delay(500) in enroll()
63 delay(500) in enroll()
65 delay(500) in enroll()
[all …]
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/schedule/
DDeviceLockControllerSchedulerImpl.java240 Duration delay = Duration.ofMinutes(PROVISION_PAUSED_MINUTES_DEFAULT); in scheduleResumeProvisionAlarm() local
242 delay = Duration.ofMinutes( in scheduleResumeProvisionAlarm()
246 LogUtil.i(TAG, "Scheduling resume provision work with delay: " + delay); in scheduleResumeProvisionAlarm()
247 scheduleResumeProvisionAlarm(delay); in scheduleResumeProvisionAlarm()
248 Instant whenExpectedToRun = Instant.now(mClock).plus(delay); in scheduleResumeProvisionAlarm()
280 public ListenableFuture<Void> scheduleRetryCheckInWork(Duration delay) { in scheduleRetryCheckInWork() argument
281 LogUtil.i(TAG, "Scheduling retry check-in work with delay: " + delay); in scheduleRetryCheckInWork()
283 enqueueCheckInWorkRequest(/* isExpedited= */ false, delay); in scheduleRetryCheckInWork()
288 Instant whenExpectedToRun = Instant.now(mClock).plus(delay); in scheduleRetryCheckInWork()
324 Duration delay = Duration.between(
[all …]
/packages/modules/Bluetooth/system/common/
Dtime_util_unittest.cc90 struct timespec delay = {}; in TEST() local
92 delay.tv_sec = TEST_TIME_SLEEP_MS / 1000; in TEST()
93 delay.tv_nsec = 1000 * 1000 * (TEST_TIME_SLEEP_MS % 1000); in TEST()
97 int err = nanosleep(&delay, &delay); in TEST()
111 struct timespec delay = {}; in TEST() local
113 delay.tv_sec = TEST_TIME_SLEEP_US / (1000 * 1000); in TEST()
114 delay.tv_nsec = 1000 * (TEST_TIME_SLEEP_US % (1000 * 1000)); in TEST()
118 int err = nanosleep(&delay, &delay); in TEST()
152 struct timespec delay = {}; in TEST() local
154 delay.tv_sec = TEST_TIME_SLEEP_US / (1000 * 1000); in TEST()
[all …]
/packages/modules/UprobeStats/src/bpf/headers/include/bpf/
DWaitForProgsLoaded.h30 for (int delay = 5;; delay *= 2) { in waitForProgsLoaded() local
31 if (delay > 60) delay = 60; in waitForProgsLoaded()
32 if (android::base::WaitForProperty("bpf.progs_loaded", "1", std::chrono::seconds(delay))) in waitForProgsLoaded()
34 ALOGW("Waited %ds for bpf.progs_loaded, still waiting...", delay); in waitForProgsLoaded()
/packages/modules/Connectivity/bpf/headers/include/bpf/
DWaitForProgsLoaded.h30 for (int delay = 5;; delay *= 2) { in waitForProgsLoaded() local
31 if (delay > 60) delay = 60; in waitForProgsLoaded()
32 if (android::base::WaitForProperty("bpf.progs_loaded", "1", std::chrono::seconds(delay))) in waitForProgsLoaded()
34 ALOGW("Waited %ds for bpf.progs_loaded, still waiting...", delay); in waitForProgsLoaded()
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/
DContactsExecutors.java111 public ScheduledFuture<?> schedule(final Runnable command, long delay, TimeUnit unit) { in schedule() argument
113 .fromRunnable(mHandler, delay, unit, command); in schedule()
114 mHandler.postDelayed(future, unit.toMillis(delay)); in schedule()
120 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule() argument
121 final HandlerFuture<V> future = new HandlerFuture<>(mHandler, delay, unit, callable); in schedule()
122 mHandler.postDelayed(future, unit.toMillis(delay)); in schedule()
136 long delay, TimeUnit unit) { in scheduleWithFixedDelay() argument
180 private HandlerFuture(Handler handler, long delay, TimeUnit timeUnit, Callable<T> task) { in HandlerFuture() argument
182 mDelayMillis = timeUnit.toMillis(delay); in HandlerFuture()
231 public static HandlerFuture<Void> fromRunnable(Handler handler, long delay, TimeUnit unit, in fromRunnable() argument
[all …]
/packages/services/Car/service/src/com/android/car/systeminterface/
DSystemStateInterface.java79 default void scheduleActionForBootCompleted(Runnable action, Duration delay) { in scheduleActionForBootCompleted() argument
80 scheduleActionForBootCompleted(action, delay, /* delayRange= */ Duration.ZERO); in scheduleActionForBootCompleted()
96 void scheduleActionForBootCompleted(Runnable action, Duration delay, Duration delayRange); in scheduleActionForBootCompleted() argument
171 private void runActionWithDelay(Runnable action, Duration delay) { in runActionWithDelay() argument
172 long delayInMs = delay.toMillis(); in runActionWithDelay()
242 static Duration getRandomizedDelay(Duration delay, Duration delayRange) { in getRandomizedDelay() argument
244 return delay; in getRandomizedDelay()
246 Duration bootCompleteDelayMin = delay.minus(delayRange); in getRandomizedDelay()
250 Duration bootCompleteDelayMax = delay.plus(delayRange); in getRandomizedDelay()
264 public void scheduleActionForBootCompleted(Runnable action, Duration delay, in scheduleActionForBootCompleted() argument
[all …]
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DTrackRecordTest.kt181 var delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 0)) } in <lambda>() variable
182 assertTrue(delay >= SHORT_TIMEOUT, "Delay $delay < $SHORT_TIMEOUT") in <lambda>()
183 delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 0) { it < 10 }) } in <lambda>()
184 assertTrue(delay >= SHORT_TIMEOUT) in <lambda>()
226 var delay = measureTimeMillis { in <lambda>() variable
230 assertTrue(delay in SHORT_TIMEOUT..TEST_TIMEOUT) in <lambda>()
232 delay = measureTimeMillis { assertEquals(31, record.poll(TEST_TIMEOUT, 0)) } in <lambda>()
233 assertTrue(delay < TEST_TIMEOUT, "Delay $delay > $TEST_TIMEOUT") in <lambda>()
235 delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 1)) } in <lambda>()
236 assertTrue(delay >= SHORT_TIMEOUT, "Delay $delay < $SHORT_TIMEOUT") in <lambda>()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DTimerHandler.java87 final int delay) { in startKeyRepeatTimerOf() argument
89 if (key == null || delay == 0) { in startKeyRepeatTimerOf()
93 obtainMessage(MSG_REPEAT_KEY, key.getCode(), repeatCount, tracker), delay); in startKeyRepeatTimerOf() local
110 public void startLongPressTimerOf(@Nonnull final PointerTracker tracker, final int delay) { in startLongPressTimerOf() argument
119 sendMessageDelayed(obtainMessage(messageId, tracker), delay); in startLongPressTimerOf() local
220 public void postDismissKeyPreview(@Nonnull final Key key, final long delay) { in postDismissKeyPreview() argument
221 sendMessageDelayed(obtainMessage(MSG_DISMISS_KEY_PREVIEW, key), delay); in postDismissKeyPreview() local
224 public void postDismissGestureFloatingPreviewText(final long delay) { in postDismissGestureFloatingPreviewText() argument
225 sendMessageDelayed(obtainMessage(MSG_DISMISS_GESTURE_FLOATING_PREVIEW_TEXT), delay); in postDismissGestureFloatingPreviewText() local
DTimerProxy.java43 public void startKeyRepeatTimerOf(@Nonnull PointerTracker tracker, int repeatCount, int delay); in startKeyRepeatTimerOf() argument
52 public void startLongPressTimerOf(@Nonnull PointerTracker tracker, int delay); in startLongPressTimerOf() argument
111 int delay) {} in startKeyRepeatTimerOf() argument
113 public void startLongPressTimerOf(@Nonnull PointerTracker tracker, int delay) {} in startLongPressTimerOf() argument
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DQnsTimerTest.java248 long delay = setupAlarmForDelay(setDelay); in testAlarmOnLiteIdleModeMinDelay() local
251 assertTrue(delay < 30000 && delay > 30000 - 100); in testAlarmOnLiteIdleModeMinDelay()
260 long delay = setupAlarmForDelay(setDelay); in testAlarmOnLiteIdleMode() local
263 assertTrue(delay < setDelay && delay > setDelay - 100); in testAlarmOnLiteIdleMode()
272 long delay = setupAlarmForDelay(setDelay); in testAlarmOnIdleModeMinDelay() local
275 assertTrue(delay < 60000 && delay > 60000 - 100); in testAlarmOnIdleModeMinDelay()
284 long delay = setupAlarmForDelay(setDelay); in testAlarmOnIdleMode() local
287 assertTrue(delay < setDelay && delay > setDelay - 100); in testAlarmOnIdleMode()
307 long delay = setupAlarmForDelay(setDelay); in testAlarmInCallActiveState() local
310 assertTrue(delay < setDelay && delay > setDelay - 100); in testAlarmInCallActiveState()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/selectabledeletion/
DDeletionViewModel.kt35 import kotlinx.coroutines.delay
104 delay(defaultDelay) in delete()
110 delay(defaultDelay) in delete()
120 delay(defaultDelay) in delete()
126 delay(defaultDelay) in delete()
132 delay(defaultDelay) in delete()
141 delay(defaultDelay) in delete()
151 delay(1000) in delete()
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/
DONSProfileActivatorTest.java484 int delay = ONSProfileActivator.calculateBackoffDelay(1, 1) / 1000; in testCalculateBackoffDelay()
485 assertEquals(true, (delay >= 1 && delay <= 2)); in testCalculateBackoffDelay()
488 delay = ONSProfileActivator.calculateBackoffDelay(2, 1) / 1000; in testCalculateBackoffDelay()
489 assertEquals(true, (delay >= 1 && delay < 4)); in testCalculateBackoffDelay()
491 delay = ONSProfileActivator.calculateBackoffDelay(3, 1) / 1000; in testCalculateBackoffDelay()
492 assertEquals(true, (delay >= 1 && delay < 8)); in testCalculateBackoffDelay()
494 delay = ONSProfileActivator.calculateBackoffDelay(4, 1) / 1000; in testCalculateBackoffDelay()
495 assertEquals(true, (delay >= 1 && delay < 16)); in testCalculateBackoffDelay()
497 delay = ONSProfileActivator.calculateBackoffDelay(1, 2) / 1000; in testCalculateBackoffDelay()
498 assertEquals(true, (delay >= 1 && delay <= 4)); in testCalculateBackoffDelay()
[all …]
/packages/modules/Connectivity/bpf/dns_helper/
DDnsBpfHelper.cpp43 for (int delay = 5;; delay *= 2) { in waitForNetProgsLoaded() local
44 if (delay > 60) delay = 60; in waitForNetProgsLoaded()
45 if (base::WaitForProperty("init.svc.mdnsd_netbpfload", "stopped", std::chrono::seconds(delay)) in waitForNetProgsLoaded()
47 LOG(WARNING) << "Waited " << delay << "s for init.svc.mdnsd_netbpfload=stopped, still waiting."; in waitForNetProgsLoaded()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTestScheduledExecutorService.java187 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { in schedule() argument
189 long scheduledTime = getNextExecutionTime(delay, unit); in schedule()
195 return new TestScheduledExecutorService.CompletedFuture<Runnable>(command, delay); in schedule()
199 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule() argument
211 long delay, TimeUnit unit) { in scheduleWithFixedDelay() argument
213 long nextScheduledTime = getNextExecutionTime(delay, unit); in scheduleWithFixedDelay()
215 mRepeatDuration.put(command, unit.toMillis(delay)); in scheduleWithFixedDelay()
217 return new TestScheduledExecutorService.CompletedFuture<Runnable>(command, delay); in scheduleWithFixedDelay()
220 private long getNextExecutionTime(long delay, TimeUnit unit) { in getNextExecutionTime() argument
221 long delayMillis = unit.toMillis(delay); in getNextExecutionTime()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestScheduledExecutorService.java120 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { in schedule() argument
121 TestFuture future = new TestFuture(command, delay, unit); in schedule()
127 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule() argument
139 long delay, TimeUnit unit) { in scheduleWithFixedDelay() argument
185 final long delay; field in TestScheduledExecutorService.TestFuture
188 public TestFuture(Runnable runnable, long delay, TimeUnit unit) { in TestFuture() argument
190 this.delay = delay; in TestFuture()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/
DMobileNetworkSummaryControllerTest.kt27 import kotlinx.coroutines.delay
71 delay(100) in <lambda>()
86 delay(100) in onViewCreated_addNetwork()
106 delay(100) in <lambda>()
122 delay(100) in <lambda>()
140 delay(100) in <lambda>()
DSimOnboardingServiceTest.kt28 import kotlinx.coroutines.delay
118 delay(100) in <lambda>()
132 delay(100) in <lambda>()
144 delay(100) in <lambda>()
159 delay(100) in <lambda>()
176 delay(100) in <lambda>()
191 delay(100) in <lambda>()
/packages/modules/NetworkStack/src/com/android/networkstack/ipmemorystore/
DRelevanceUtils.java253 final long delay = expiry - target; in computeRelevanceForTargetDate() local
254 if (delay >= CAPPED_RELEVANCE_LIFETIME_MS) return CAPPED_RELEVANCE; in computeRelevanceForTargetDate()
255 if (delay <= 0) return 0; in computeRelevanceForTargetDate()
256 return (int) (IRRELEVANCE_FLOOR / powF((float) delay / HALF_LIFE_MS) - IRRELEVANCE_FLOOR); in computeRelevanceForTargetDate()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.kt37 import kotlinx.coroutines.delay
151 delay(100) in <lambda>()
165 delay(100) in <lambda>()
180 delay(100) in <lambda>()
198 delay(100) in onViewCreated_policyLimitOnly()
216 delay(100) in onViewCreated_policyHasWarningAndLimit()
231 delay(100) in <lambda>()
252 delay(100) in <lambda>()
/packages/modules/Nfc/libnfc-nci/src/gki/ulinux/
Dgki_ulinux.cc419 struct timespec delay; in timer_thread() local
424 delay.tv_sec = timeout / 1000; in timer_thread()
425 delay.tv_nsec = 1000 * 1000 * (timeout % 1000); in timer_thread()
430 err = nanosleep(&delay, &delay); in timer_thread()
457 struct timespec delay; in GKI_run() local
493 delay.tv_sec = LINUX_SEC / 1000; in GKI_run()
494 delay.tv_nsec = 1000 * 1000 * (LINUX_SEC % 1000); in GKI_run()
498 err = nanosleep(&delay, &delay); in GKI_run()
732 struct timespec delay; in GKI_delay() local
738 delay.tv_sec = timeout / 1000; in GKI_delay()
[all …]
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DPackageInfoPresenterTest.kt36 import kotlinx.coroutines.delay
149 delay(100) in <lambda>()
160 delay(100) in <lambda>()
171 delay(100) in <lambda>()
198 delay(100) in <lambda>()
207 delay(100) in <lambda>()
218 delay(100) in <lambda>()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAutoclickPreferenceController.java67 private int getAutoclickPreferenceSummaryIndex(int delay) { in getAutoclickPreferenceSummaryIndex() argument
68 if (delay <= AutoclickUtils.MIN_AUTOCLICK_DELAY_MS) { in getAutoclickPreferenceSummaryIndex()
71 if (delay >= AutoclickUtils.MAX_AUTOCLICK_DELAY_MS) { in getAutoclickPreferenceSummaryIndex()
77 return (delay - AutoclickUtils.MIN_AUTOCLICK_DELAY_MS) / rangeSize; in getAutoclickPreferenceSummaryIndex()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DWnmData.java57 boolean ess, int delay) { in WnmData() argument
62 mDelay = delay; in WnmData()
89 int delay) { in createDeauthImminentEvent() argument
90 return new WnmData(HS20_DEAUTH_IMMINENT_EVENT, bssid, url, UNDEFINED, ess, delay); in createDeauthImminentEvent()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/
DDataSubscriptionRepositoryTest.kt33 import kotlinx.coroutines.delay in <lambda>()
96 delay(100) in <lambda>()
106 delay(100) in <lambda>()
116 delay(100) in <lambda>()
126 delay(100) in <lambda>()

12345678910>>...13