Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 348) sorted by relevance

12345678910>>...14

/aosp14/frameworks/base/tests/testables/src/android/testing/
H A DPollingCheck.java33 public PollingCheck(long timeout) { in PollingCheck() argument
34 mTimeout = timeout; in PollingCheck()
44 long timeout = mTimeout; in run() local
45 while (timeout > 0) { in run()
56 timeout -= TIME_SLICE; in run()
62 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) in check() argument
64 while (timeout > 0) { in check()
70 timeout -= TIME_SLICE; in check()
85 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() argument
86 new PollingCheck(timeout) { in waitFor() argument
H A DAndroidTestingRunner.java75 long timeout = this.getTimeout(method.getAnnotation(Test.class)); in withPotentialTimeout() local
76 if (timeout <= 0L && mTimeout > 0L) { in withPotentialTimeout()
77 timeout = mTimeout; in withPotentialTimeout()
80 return timeout <= 0L ? next : new FailOnTimeout(next, timeout); in withPotentialTimeout()
84 return annotation == null ? 0L : annotation.timeout(); in getTimeout()
/aosp14/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DConfigurator.java79 public Configurator setWaitForIdleTimeout(long timeout) { in setWaitForIdleTimeout() argument
80 mWaitForIdleTimeout = timeout; in setWaitForIdleTimeout()
115 public Configurator setWaitForSelectorTimeout(long timeout) { in setWaitForSelectorTimeout() argument
116 mWaitForSelector = timeout; in setWaitForSelectorTimeout()
149 public Configurator setScrollAcknowledgmentTimeout(long timeout) { in setScrollAcknowledgmentTimeout() argument
150 mScrollEventWaitTimeout = timeout; in setScrollAcknowledgmentTimeout()
183 public Configurator setActionAcknowledgmentTimeout(long timeout) { in setActionAcknowledgmentTimeout() argument
184 mWaitForActionAcknowledgment = timeout; in setActionAcknowledgmentTimeout()
/aosp14/frameworks/base/core/java/android/hardware/usb/
H A DUsbDeviceConnection.java241 int index, @Nullable byte[] buffer, int length, int timeout) { in controlTransfer() argument
266 @Nullable byte[] buffer, int offset, int length, int timeout) { in controlTransfer() argument
269 buffer, offset, length, timeout); in controlTransfer()
293 byte[] buffer, int length, int timeout) { in bulkTransfer() argument
294 return bulkTransfer(endpoint, buffer, 0, length, timeout); in bulkTransfer()
313 byte[] buffer, int offset, int length, int timeout) { in bulkTransfer() argument
393 public UsbRequest requestWait(long timeout) throws TimeoutException { in requestWait() argument
394 timeout = Preconditions.checkArgumentNonnegative(timeout, "timeout"); in requestWait()
396 UsbRequest request = native_request_wait(timeout); in requestWait()
440 int index, byte[] buffer, int offset, int length, int timeout); in native_control_request() argument
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/util/
H A DPollingCheck.java43 public PollingCheck(long timeout) { in PollingCheck() argument
44 mTimeout = timeout; in PollingCheck()
57 long timeout = mTimeout; in run() local
58 while (timeout > 0) { in run()
69 timeout -= TIME_SLICE; in run()
95 public static void waitFor(long timeout, final PollingCheckCondition condition) { in waitFor() argument
96 new PollingCheck(timeout) { in waitFor() argument
/aosp14/system/core/watchdogd/
H A Dwatchdogd.cpp45 int timeout = interval + margin; in main() local
46 int ret = ioctl(fd, WDIOC_SETTIMEOUT, &timeout); in main()
48 PLOG(ERROR) << "Failed to set timeout to " << timeout; in main()
49 ret = ioctl(fd, WDIOC_GETTIMEOUT, &timeout); in main()
53 if (timeout > margin) { in main()
54 interval = timeout - margin; in main()
59 << "timeout " << timeout << ", interval " << interval << ", margin " in main()
/aosp14/system/core/gatekeeperd/include/gatekeeper/
H A DGateKeeperResponse.h34 GateKeeperResponse(ResponseCode response_code, int32_t timeout = 0,
37 timeout_(timeout),
48 static GateKeeperResponse retry(int32_t timeout) { in retry() argument
49 return GateKeeperResponse(ResponseCode::RETRY, timeout); in retry()
70 int32_t timeout() const { return timeout_; } in timeout() function
72 void timeout(int32_t timeout) { timeout_ = timeout; } in timeout() argument
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/
H A DThermalManagerServiceTest.java30 import static org.mockito.Mockito.timeout;
225 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
229 verify(mEventListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
236 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
242 verify(mEventListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in setUp()
269 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testRegister()
279 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testRegister()
284 verify(mEventListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testRegister()
299 verify(mEventListener1, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testNotify()
303 verify(mEventListener2, timeout(CALLBACK_TIMEOUT_MILLI_SEC) in testNotify()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/utils/
H A DAlarmQueueTest.java32 import static org.mockito.Mockito.timeout;
131 inOrder.verify(mAlarmManager, timeout(1000).times(1))
149 inOrder.verify(mAlarmManager, timeout(1000).times(1)).setExact(
152 inOrder.verify(mAlarmManager, timeout(1000).times(1)).setExact(
155 inOrder.verify(mAlarmManager, timeout(1000).times(1)).setExact(
167 inOrder.verify(mAlarmManager, timeout(1000).times(1))
173 inOrder.verify(mAlarmManager, timeout(1000).times(1))
192 inOrder.verify(mAlarmManager, timeout(1000).times(1)).setExact(
197 inOrder.verify(mAlarmManager, timeout(1000).times(1)).setExact(
225 verify(mAlarmManager, timeout(1000).times(1)).setWindow(
[all …]
/aosp14/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
H A DUserLifecycleTests.java178 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS)
192 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS)
207 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS)
227 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS)
251 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS)
278 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS)
288 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS)
342 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS)
381 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS)
413 @Test(timeout = TIMEOUT_MAX_TEST_TIME_MS)
[all …]
/aosp14/system/core/libusbhost/include/usbhost/
H A Dusbhost.h158 int usb_device_get_string_ucs2(struct usb_device* device, int id, int timeout, void** ucs2_out,
173 char* usb_device_get_string(struct usb_device *device, int id, int timeout);
178 char* usb_device_get_manufacturer_name(struct usb_device *device, int timeout);
183 char* usb_device_get_product_name(struct usb_device *device, int timeout);
192 char* usb_device_get_serial(struct usb_device *device, int timeout);
237 unsigned int timeout);
246 unsigned int timeout);
/aosp14/frameworks/base/libs/hwui/thread/
H A DThreadBase.h59 int timeout = -1; in waitForWork() local
61 timeout = ns2ms(nextWakeup - WorkQueue::clock::now()); in waitForWork()
62 if (timeout < 0) timeout = 0; in waitForWork()
64 int result = mLooper->pollOnce(timeout); in waitForWork()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
H A DPrefetchControllerTest.java40 import static org.mockito.Mockito.timeout;
281 inOrder.verify(mAlarmManager, timeout(DEFAULT_WAIT_MS).times(1)) in testConstantsUpdating_ThresholdChangesAlarms()
303 verify(mUsageStatsManagerInternal, timeout(DEFAULT_WAIT_MS)) in testConstraintNotSatisfiedWhenLaunchLate()
318 verify(mUsageStatsManagerInternal, timeout(DEFAULT_WAIT_MS)) in testConstraintSatisfiedWhenLaunchSoon()
340 verify(mUsageStatsManagerInternal, timeout(DEFAULT_WAIT_MS)) in testConstraintSatisfiedWhenTop()
342 inOrder.verify(mJobSchedulerService, timeout(DEFAULT_WAIT_MS)) in testConstraintSatisfiedWhenTop()
350 inOrder.verify(mJobSchedulerService, timeout(DEFAULT_WAIT_MS)) in testConstraintSatisfiedWhenTop()
358 inOrder.verify(mJobSchedulerService, timeout(DEFAULT_WAIT_MS)) in testConstraintSatisfiedWhenTop()
384 verify(mUsageStatsManagerInternal, timeout(DEFAULT_WAIT_MS)) in testConstraintSatisfiedWhenWidget()
419 verify(mAlarmManager, timeout(DEFAULT_WAIT_MS).times(1)) in testEstimatedLaunchTimeChangedToLate()
[all …]
/aosp14/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestBase.java165 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForNetworkState()
176 protected boolean waitForWifiState(int expectedState, long timeout) { in waitForWifiState() argument
184 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiState()
195 protected boolean waitForWifiApState(int expectedState, long timeout) { in waitForWifiApState() argument
203 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiApState()
220 protected boolean waitForTetherStateChange(long timeout) { in waitForTetherStateChange() argument
224 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForTetherStateChange()
418 protected boolean waitForActiveNetworkConnection(long timeout) { in waitForActiveNetworkConnection() argument
425 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForActiveNetworkConnection()
434 protected boolean waitUntilNoActiveNetworkConnection(long timeout) { in waitUntilNoActiveNetworkConnection() argument
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DVerifyCredentialResponse.java59 final int timeout = source.readInt();
63 return new VerifyCredentialResponse(responseCode, timeout, gatekeeperHAT,
109 public static VerifyCredentialResponse fromTimeout(int timeout) { in fromTimeout() argument
111 timeout, in fromTimeout()
127 private VerifyCredentialResponse(@ResponseCode int responseCode, int timeout, in VerifyCredentialResponse() argument
130 mTimeout = timeout; in VerifyCredentialResponse()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
H A DBackgroundRestrictionTest.java100 import static org.mockito.Mockito.timeout;
475 final long timeout = 1_000; // ms in testTogglingBackgroundRestrictInternal() local
557 verify(mInjector.getAppStandbyInternal(), timeout(timeout).times(1)).restrictApp( in testTogglingBackgroundRestrictInternal()
571 final long timeout = 1_000; // ms in testTogglingStandbyBucket() local
625 final long timeout = in testBgCurrentDrainMonitor() local
1473 timeout(windowMs * 2).times(2)); in testLongFGSExemptions()
1479 timeout(windowMs * 2).times(0)); in testLongFGSExemptions()
1489 timeout(windowMs * 2).times(2)); in testLongFGSExemptions()
1501 timeout(windowMs * 2).times(0)); in testLongFGSExemptions()
1519 timeout(windowMs * 2).times(2)); in testLongFGSExemptions()
[all …]
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DSystemServiceTestsBase.java54 boolean waitHandlerIdle(Handler handler, long timeout) { in waitHandlerIdle() argument
55 return runWithScissors(handler, () -> { }, timeout); in waitHandlerIdle()
58 boolean runWithScissors(Handler handler, Runnable r, long timeout) { in runWithScissors() argument
59 return mLockRule.runWithScissors(handler, r, timeout); in runWithScissors()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/temporarydisplay/
H A DTemporaryViewDisplayController.kt145 val timeout = accessibilityManager.getRecommendedTimeoutMillis( regex
151 val timeExpirationMillis = systemClock.currentTimeMillis() + timeout
163 updateTimeout(currentDisplayInfo, timeout)
181 showNewView(newDisplayInfo, timeout)
206 showNewView(newDisplayInfo, timeout)
209 private fun showNewView(newDisplayInfo: DisplayInfo, timeout: Int) {
213 updateTimeout(newDisplayInfo, timeout)
246 private fun updateTimeout(displayInfo: DisplayInfo, timeout: Int) {
251 timeout.toLong()
366 val timeout = newViewToDisplay.timeExpirationMillis - systemClock.currentTimeMillis() regex
[all …]
/aosp14/system/core/libusbhost/
H A Dusbhost.c498 timeout); in usb_device_get_string_ucs2()
531 char* usb_device_get_string(struct usb_device* device, int id, int timeout) { in usb_device_get_string() argument
555 return usb_device_get_string(device, desc->iManufacturer, timeout); in usb_device_get_manufacturer_name()
558 char* usb_device_get_product_name(struct usb_device *device, int timeout) in usb_device_get_product_name() argument
561 return usb_device_get_string(device, desc->iProduct, timeout); in usb_device_get_product_name()
570 char* usb_device_get_serial(struct usb_device *device, int timeout) in usb_device_get_serial() argument
573 return usb_device_get_string(device, desc->iSerialNumber, timeout); in usb_device_get_serial()
646 unsigned int timeout) in usb_device_control_transfer() argument
661 ctrl.timeout = timeout; in usb_device_control_transfer()
669 unsigned int timeout) in usb_device_bulk_transfer() argument
[all …]
/aosp14/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
H A DCompanionDeviceDiscoveryService.java106 private final Runnable mTimeoutRunnable = this::timeout;
215 private void stopDiscoveryAndFinish(boolean timeout) { in stopDiscoveryAndFinish() argument
250 if (timeout) { in stopDiscoveryAndFinish()
380 long timeout = SystemProperties.getLong(SYS_PROP_DEBUG_TIMEOUT, -1); in scheduleTimeout() local
381 if (timeout <= 0) { in scheduleTimeout()
383 timeout = TIMEOUT_DEFAULT; in scheduleTimeout()
385 timeout = min(timeout, TIMEOUT_MAX); // should be <= 1 min (TIMEOUT_MAX) in scheduleTimeout()
386 timeout = max(timeout, TIMEOUT_MIN); // should be >= 1 sec (TIMEOUT_MIN) in scheduleTimeout()
389 if (DEBUG) Log.d(TAG, "scheduleTimeout(), timeout=" + timeout); in scheduleTimeout()
391 Handler.getMain().postDelayed(mTimeoutRunnable, timeout); in scheduleTimeout()
[all …]
/aosp14/frameworks/base/core/java/org/apache/http/params/
H A DHttpConnectionParams.java83 public static void setSoTimeout(final HttpParams params, int timeout) { in setSoTimeout() argument
87 params.setIntParameter(CoreConnectionPNames.SO_TIMEOUT, timeout); in setSoTimeout()
187 public static void setConnectionTimeout(final HttpParams params, int timeout) { in setConnectionTimeout() argument
192 (CoreConnectionPNames.CONNECTION_TIMEOUT, timeout); in setConnectionTimeout()
/aosp14/frameworks/base/libs/dream/lowlight/tests/src/com.android.dream.lowlight/
H A DLowLightTransitionCoordinatorTest.kt73 coordinator.waitForLowLightTransitionAnimation(timeout = TIMEOUT, entering = true)
85 coordinator.waitForLowLightTransitionAnimation(timeout = TIMEOUT, entering = false)
98 coordinator.waitForLowLightTransitionAnimation(timeout = TIMEOUT, entering = true)
111 coordinator.waitForLowLightTransitionAnimation(timeout = TIMEOUT, entering = true)
131 coordinator.waitForLowLightTransitionAnimation(timeout = TIMEOUT, entering = true)
146 coordinator.waitForLowLightTransitionAnimation(timeout = TIMEOUT, entering = true)
/aosp14/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/
H A DTunerAdapterTest.java29 import static org.mockito.Mockito.timeout;
314 verify(mCallbackMock, timeout(CALLBACK_TIMEOUT_MS)).onTuneFailed( in seek_forTunerAdapter_invokesOnErrorWhenTimeout()
390 verify(mCallbackMock, timeout(CALLBACK_TIMEOUT_MS)) in tune_withInvalidSelectorForTunerAdapter_invokesOnTuneFailed()
695 verify(mCallbackMock, timeout(CALLBACK_TIMEOUT_MS)).onError(errorStatus); in onError_forTunerAdapter()
717 verify(mCallbackMock, timeout(CALLBACK_TIMEOUT_MS)) in onConfigurationChanged_forTunerCallbackAdapter()
725 verify(mCallbackMock, timeout(CALLBACK_TIMEOUT_MS)) in onTrafficAnnouncement_forTunerCallbackAdapter()
733 verify(mCallbackMock, timeout(CALLBACK_TIMEOUT_MS)) in onEmergencyAnnouncement_forTunerCallbackAdapter()
741 verify(mCallbackMock, timeout(CALLBACK_TIMEOUT_MS)) in onBackgroundScanAvailabilityChange_forTunerCallbackAdapter()
756 verify(mCallbackMock, timeout(CALLBACK_TIMEOUT_MS)).onTuneFailed( in onTuneFailed_withCanceledResult()
765 verify(mCallbackMock, timeout(CALLBACK_TIMEOUT_MS)).onProgramListChanged(); in onProgramListChanged_forTunerCallbackAdapter()
[all …]
/aosp14/frameworks/base/core/java/android/app/
H A DWaitResult.java81 public boolean timeout; field in WaitResult
97 dest.writeInt(timeout ? 1 : 0); in writeToParcel()
118 timeout = source.readInt() != 0; in WaitResult()
127 pw.println(prefix + " timeout=" + timeout); in dump()
/aosp14/system/core/init/
H A Depoll.cpp84 Result<int> Epoll::Wait(std::optional<std::chrono::milliseconds> timeout) { in Wait() argument
86 if (timeout && timeout->count() < INT_MAX) { in Wait()
87 timeout_ms = timeout->count(); in Wait()

12345678910>>...14