Home
last modified time | relevance | path

Searched refs:timeoutMillis (Results 1 – 25 of 76) sorted by relevance

1234

/packages/modules/Permission/tests/cts/permissionmultidevice/TestUtils/src/android/permissionmultidevice/cts/
DUiAutomatorUtils.kt31 fun waitFindObject(selector: BySelector, timeoutMillis: Long): UiObject2 { in <lambda>()
34 timeoutMillis in <lambda>()
38 fun click(selector: BySelector, timeoutMillis: Long = 20_000) { in <lambda>()
39 waitFindObject(selector, timeoutMillis).click() in <lambda>()
58 automatorMethod: (timeoutMillis: Long) -> UiObject2?, in <lambda>()
59 timeoutMillis: Long = 20_000L in <lambda>()
63 automatorMethod(timeoutMillis) in <lambda>()
65 val remainingTime = timeoutMillis - (SystemClock.elapsedRealtime() - startTime) in <lambda>()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/
DHttpUrlConnectionBuilder.java103 public HttpUrlConnectionBuilder setConnectTimeout(int timeoutMillis) { in setConnectTimeout() argument
104 if (timeoutMillis < 0) { in setConnectTimeout()
106 + timeoutMillis); in setConnectTimeout()
108 mConnectTimeoutMillis = timeoutMillis; in setConnectTimeout()
118 public HttpUrlConnectionBuilder setReadTimeout(int timeoutMillis) { in setReadTimeout() argument
119 if (timeoutMillis < 0) { in setReadTimeout()
121 + timeoutMillis); in setReadTimeout()
123 mReadTimeoutMillis = timeoutMillis; in setReadTimeout()
/packages/modules/StatsD/framework/test/unittests/src/android/app/
DPullAtomMetadataTest.java43 long timeoutMillis = 500L; in testSetTimeoutMillis() local
45 new PullAtomMetadata.Builder().setTimeoutMillis(timeoutMillis).build(); in testSetTimeoutMillis()
46 assertThat(metadata.getTimeoutMillis()).isEqualTo(timeoutMillis); in testSetTimeoutMillis()
73 long timeoutMillis = 300L; in testSetAllElements() local
77 .setTimeoutMillis(timeoutMillis) in testSetAllElements()
81 assertThat(metadata.getTimeoutMillis()).isEqualTo(timeoutMillis); in testSetAllElements()
/packages/modules/StatsD/lib/libstatspull/tests/
Dpull_atom_metadata_test.cpp37 int64_t timeoutMillis = 500; in TEST() local
39 AStatsManager_PullAtomMetadata_setTimeoutMillis(metadata, timeoutMillis); in TEST()
41 EXPECT_EQ(AStatsManager_PullAtomMetadata_getTimeoutMillis(metadata), timeoutMillis); in TEST()
73 int64_t timeoutMillis = 500; in TEST() local
79 AStatsManager_PullAtomMetadata_setTimeoutMillis(metadata, timeoutMillis); in TEST()
84 EXPECT_EQ(AStatsManager_PullAtomMetadata_getTimeoutMillis(metadata), timeoutMillis); in TEST()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DBasePermissionTest.kt317 protected fun waitFindObject(selector: BySelector, timeoutMillis: Long): UiObject2 { in <lambda>()
320 timeoutMillis in <lambda>()
328 protected fun waitFindObjectOrNull(selector: BySelector, timeoutMillis: Long): UiObject2? { in <lambda>()
331 timeoutMillis in <lambda>()
336 automatorMethod: (timeoutMillis: Long) -> UiObject2?, in <lambda>()
337 timeoutMillis: Long = 20_000L in <lambda>()
341 automatorMethod(timeoutMillis) in <lambda>()
343 val remainingTime = timeoutMillis - (SystemClock.elapsedRealtime() - startTime) in <lambda>()
351 protected fun click(selector: BySelector, timeoutMillis: Long = 20_000) { in <lambda>()
352 waitFindObject(selector, timeoutMillis).click() in <lambda>()
[all …]
DBaseUsePermissionTest.kt382 protected fun clearTargetSdkWarning(timeoutMillis: Long = TIMEOUT_MILLIS) { in <lambda>()
393 timeoutMillis in <lambda>()
804 protected fun findPermissionRequestAllowButton(timeoutMillis: Long = 20000) { in <lambda>()
806 waitFindObject(By.text(getPermissionControllerString(ALLOW_BUTTON_TEXT)), timeoutMillis) in <lambda>()
808 waitFindObject(By.res(ALLOW_BUTTON), timeoutMillis) in <lambda>()
812 protected fun clickPermissionRequestAllowButton(timeoutMillis: Long = 20000) { in <lambda>()
814 click(By.text(getPermissionControllerString(ALLOW_BUTTON_TEXT)), timeoutMillis) in <lambda>()
816 click(By.res(ALLOW_BUTTON), timeoutMillis) in <lambda>()
820 protected fun clickPermissionRequestAllowAllButton(timeoutMillis: Long = 20000) { in <lambda>()
821 click(By.res(ALLOW_ALL_BUTTON), timeoutMillis) in <lambda>()
[all …]
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DRevokeSelfPermissionTest.java251 private void keepAppInForeground(long timeoutMillis) { in keepAppInForeground() argument
254 while (System.currentTimeMillis() < start + timeoutMillis) { in keepAppInForeground()
324 long timeoutMillis) { in assertGrantedState() argument
327 timeoutMillis); in assertGrantedState() local
330 private void assertGranted(long timeoutMillis, String permissionName) { in assertGranted() argument
332 PackageManager.PERMISSION_GRANTED, timeoutMillis); in assertGranted()
335 private void assertDenied(long timeoutMillis, String permissionName) { in assertDenied() argument
337 PackageManager.PERMISSION_DENIED, timeoutMillis); in assertDenied()
340 private void waitUntilPermissionRevoked(long timeoutMillis, String permName) throws Throwable { in waitUntilPermissionRevoked() argument
356 }, timeoutMillis); in waitUntilPermissionRevoked()
DOneTimePermissionTest.java265 private void assertGrantedState(String s, int permissionGranted, long timeoutMillis) { in assertGrantedState() argument
268 .checkPermission(ACCESS_FINE_LOCATION, APP_PKG_NAME)), timeoutMillis); in assertGrantedState() local
271 private void assertGranted(long timeoutMillis) { in assertGranted() argument
273 timeoutMillis); in assertGranted()
276 private void assertDenied(long timeoutMillis) { in assertDenied() argument
278 timeoutMillis); in assertDenied()
/packages/services/Telephony/tests/src/com/android/
DTelephonyTestBase.java76 protected final boolean waitForExecutorAction(Executor executor, long timeoutMillis) { in waitForExecutorAction() argument
83 return lock.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForExecutorAction()
91 protected final void waitForHandlerAction(Handler h, long timeoutMillis) { in waitForHandlerAction() argument
96 lock.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForHandlerAction()
103 protected final void waitForHandlerActionDelayed(Handler h, long timeoutMillis, long delayMs) { in waitForHandlerActionDelayed() argument
108 lock.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForHandlerActionDelayed()
/packages/apps/Dialer/java/com/android/incallui/multisim/
DSwapSimWorker.java63 private final int timeoutMillis; field in SwapSimWorker
84 int timeoutMillis) { in SwapSimWorker() argument
91 this.timeoutMillis = timeoutMillis; in SwapSimWorker()
111 if (!disconnectLatch.await(timeoutMillis, TimeUnit.MILLISECONDS)) { in doInBackground()
124 if (!dialingLatch.await(timeoutMillis, TimeUnit.MILLISECONDS)) { in doInBackground()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomTestCase.java64 protected static void waitForHandlerAction(Handler h, long timeoutMillis) { in waitForHandlerAction() argument
69 lock.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForHandlerAction()
76 protected final void waitForHandlerActionDelayed(Handler h, long timeoutMillis, long delayMs) { in waitForHandlerActionDelayed() argument
81 lock.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForHandlerActionDelayed()
/packages/modules/Virtualization/tests/hostside/helper/java/com/android/microdroid/test/host/
DCommandRunner.java67 public String runWithTimeout(long timeoutMillis, String... cmd) in runWithTimeout() argument
69 CommandResult result = runForResultWithTimeout(timeoutMillis, cmd); in runWithTimeout()
76 public CommandResult runForResultWithTimeout(long timeoutMillis, String... cmd) in runForResultWithTimeout() argument
79 join(cmd), timeoutMillis, java.util.concurrent.TimeUnit.MILLISECONDS); in runForResultWithTimeout()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/backuprestore/
DBackupRestore.java711 long timeoutMillis = in scheduleDownloadStateTimeoutJob() local
726 .setMinimumLatency(timeoutMillis) in scheduleDownloadStateTimeoutJob()
727 .setOverrideDeadline(timeoutMillis + MINIMUM_LATENCY_WINDOW_MILLIS); in scheduleDownloadStateTimeoutJob()
730 "Scheduling download state timeout job with period: " + timeoutMillis + " millis"); in scheduleDownloadStateTimeoutJob()
769 long timeoutMillis = in scheduleStagingTimeoutJob() local
784 .setMinimumLatency(timeoutMillis) in scheduleStagingTimeoutJob()
785 .setOverrideDeadline(timeoutMillis + MINIMUM_LATENCY_WINDOW_MILLIS); in scheduleStagingTimeoutJob()
786 Slog.i(TAG, "Scheduling staging timeout job with period: " + timeoutMillis + " millis"); in scheduleStagingTimeoutJob()
824 long timeoutMillis = in scheduleMergingTimeoutJob() local
839 .setMinimumLatency(timeoutMillis) in scheduleMergingTimeoutJob()
[all …]
/packages/modules/OnDevicePersonalization/tests/perftests/scenarios/src/android/ondevicepersonalization/test/scenario/ondevicepersonalization/
DDownloadHelper.java172 private boolean findLog(final String targetLog, long timeoutMillis, in findLog() argument
174 return findLog(List.of(targetLog), timeoutMillis, queryIntervalMillis); in findLog()
178 private boolean findLog(final List<String> targetLogs, long timeoutMillis, in findLog() argument
182 while (System.currentTimeMillis() - startTime < timeoutMillis) { in findLog()
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/
DAdvertiseSettings.java259 public Builder setTimeout(int timeoutMillis) { in setTimeout() argument
260 if (timeoutMillis < 0 || timeoutMillis > LIMITED_ADVERTISING_MAX_MILLIS) { in setTimeout()
266 mTimeoutMillis = timeoutMillis; in setTimeout()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAnomalyWatchdog.java294 long timeoutMillis = getTimeoutMillis(call, newState); in maybeTrackCall() local
297 if (timeoutMillis > 0) { in maybeTrackCall()
298 Runnable cleanupRunnable = getCleanupRunnable(call, newState, timeoutMillis, in maybeTrackCall()
304 timeoutMillis, TimeUnit.MILLISECONDS); in maybeTrackCall()
340 private Runnable getCleanupRunnable(Call call, WatchdogCallState newState, long timeoutMillis, in getCleanupRunnable() argument
354 && getDurationInCurrentStateMillis(newState) > timeoutMillis) { in getCleanupRunnable()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DJavaNetHttpHelper.kt152 override fun setConnectTimeout(timeoutMillis: Int) { in setConnectTimeout()
153 mConnectTimeout = timeoutMillis in setConnectTimeout()
156 override fun setReadTimeout(timeoutMillis: Int) { in setReadTimeout()
157 mReadTimeout = timeoutMillis in setReadTimeout()
/packages/services/Car/cpp/telemetry/cartelemetryd/src/
DLooperWrapper.cpp25 int LooperWrapper::pollAll(int timeoutMillis) { in pollAll() argument
26 return mLooper->pollAll(timeoutMillis); in pollAll()
/packages/modules/DeviceLock/tests/unittests/src/com/android/server/devicelock/
DTestUtils.java31 static void eventually(ThrowingRunnable r, long timeoutMillis) { in eventually() argument
41 if (System.currentTimeMillis() - start < timeoutMillis) { in eventually()
/packages/modules/OnDevicePersonalization/tests/perftests/scenarios/src/android/federatedcompute/test/scenario/federatedcompute/
DTestHelper.java288 private boolean findLog(final String targetLog, long timeoutMillis, in findLog() argument
292 while (System.currentTimeMillis() - startTime < timeoutMillis) { in findLog()
302 private long findJobId(long timeoutMillis, in findJobId() argument
306 while (System.currentTimeMillis() - startTime < timeoutMillis) { in findJobId()
/packages/modules/Permission/tests/cts/permissionmultiuser/src/android/permissionmultiuser/cts/
DAppDataSharingUpdatesTest.kt442 timeoutMillis: Long = 20_000L in <lambda>()
447 UiAutomatorUtils.waitFindObject(selector, timeoutMillis) in <lambda>()
449 val remainingTime = timeoutMillis - (SystemClock.elapsedRealtime() - startTime) in <lambda>()
458 val timeoutMillis = in <lambda>() constant
470 UiAutomatorUtils.waitFindObject(selector, timeoutMillis) in <lambda>()
473 timeoutMillis - (SystemClock.elapsedRealtime() - startTime) in <lambda>()
/packages/services/Car/cpp/evs/manager/1.1/stats/
DLooperWrapper.cpp38 int LooperWrapper::pollAll(int timeoutMillis) { in pollAll() argument
44 return mLooper->pollAll(timeoutMillis); in pollAll()
/packages/services/Car/cpp/evs/manager/aidl/stats/src/
DLooperWrapper.cpp36 int LooperWrapper::pollAll(int timeoutMillis) { in pollAll() argument
42 return mLooper->pollAll(timeoutMillis); in pollAll()
/packages/services/Car/cpp/watchdog/server/src/
DLooperWrapper.cpp35 int LooperWrapper::pollAll(int timeoutMillis) { in pollAll() argument
40 return mLooper->pollAll(timeoutMillis); in pollAll()
/packages/modules/Wifi/framework/java/android/net/wifi/
DSoftApConfiguration.java1912 public Builder setShutdownTimeoutMillis(@IntRange(from = -1) long timeoutMillis) { in setShutdownTimeoutMillis()
1914 REMOVE_ZERO_FOR_TIMEOUT_SETTING) && timeoutMillis < 1) { in setShutdownTimeoutMillis()
1915 if (timeoutMillis != DEFAULT_TIMEOUT) { in setShutdownTimeoutMillis()
1916 throw new IllegalArgumentException("Invalid timeout value: " + timeoutMillis); in setShutdownTimeoutMillis()
1918 } else if (timeoutMillis < 0) { in setShutdownTimeoutMillis()
1920 + timeoutMillis); in setShutdownTimeoutMillis()
1922 mShutdownTimeoutMillis = timeoutMillis; in setShutdownTimeoutMillis()
2283 @IntRange(from = -1) long timeoutMillis) { in setBridgedModeOpportunisticShutdownTimeoutMillis()
2287 if (timeoutMillis < 1 && timeoutMillis != DEFAULT_TIMEOUT) { in setBridgedModeOpportunisticShutdownTimeoutMillis()
2288 throw new IllegalArgumentException("Invalid timeout value: " + timeoutMillis); in setBridgedModeOpportunisticShutdownTimeoutMillis()
[all …]

1234