Searched refs:timeout (Results 1 - 25 of 307) sorted by relevance

1234567891011>>

/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DConfigurator.java38 // This short timeout to make sure we get the very last in cases where the above isn't true.
65 * Sets the timeout for waiting for the user interface to go into an idle
71 * timeout elapses (whichever occurs first), the object will start to wait
75 * @param timeout Timeout value in milliseconds
79 public Configurator setWaitForIdleTimeout(long timeout) { argument
80 mWaitForIdleTimeout = timeout;
85 * Gets the current timeout used for waiting for the user interface to go
91 * timeout elapses (whichever occurs first), the object will start to wait
95 * @return Current timeout value in milliseconds
103 * Sets the timeout fo
115 setWaitForSelectorTimeout(long timeout) argument
149 setScrollAcknowledgmentTimeout(long timeout) argument
183 setActionAcknowledgmentTimeout(long timeout) argument
[all...]
/frameworks/support/webkit/src/androidTest/java/androidx/webkit/
H A DPollingCheck.java33 public PollingCheck(long timeout) { argument
34 mTimeout = timeout;
44 long timeout = mTimeout;
45 while (timeout > 0) {
56 timeout -= TIME_SLICE;
59 Assert.fail("unexpected timeout");
62 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) argument
64 while (timeout > 0) {
70 timeout -= TIME_SLICE;
/frameworks/base/core/tests/coretests/src/android/util/
H A DPollingCheck.java22 * Utility used for testing that allows to poll for a certain condition to happen within a timeout.
43 public PollingCheck(long timeout) { argument
44 mTimeout = timeout;
57 long timeout = mTimeout;
58 while (timeout > 0) {
69 timeout -= TIME_SLICE;
72 Assert.fail("unexpected timeout");
76 * Instantiate and start polling for a given condition with a default 3000ms timeout.
92 * @param timeout Time out in ms
95 public static void waitFor(long timeout, fina argument
[all...]
/frameworks/support/media/version-compat-tests/lib/src/main/java/android/support/mediacompat/testlib/util/
H A DPollingCheck.java22 * Utility used for testing that allows to poll for a certain condition to happen within a timeout.
40 public PollingCheck(long timeout) { argument
41 mTimeout = timeout;
54 long timeout = mTimeout;
55 while (timeout > 0) {
66 timeout -= TIME_SLICE;
69 fail("unexpected timeout");
73 * Instantiate and start polling for a given condition with a default 3000ms timeout.
87 * @param timeout Time out in ms
90 public static void waitFor(long timeout, fina argument
[all...]
/frameworks/support/testutils/src/main/java/androidx/testutils/
H A DPollingCheck.java22 * Utility used for testing that allows to poll for a certain condition to happen within a timeout.
39 public PollingCheck(long timeout) { argument
40 mTimeout = timeout;
53 long timeout = mTimeout;
54 while (timeout > 0) {
65 timeout -= TIME_SLICE;
68 Assert.fail("unexpected timeout");
72 * Instantiate and start polling for a given condition with a default 3000ms timeout.
86 * @param timeout Time out in ms
89 public static void waitFor(long timeout, fina argument
[all...]
/frameworks/base/tests/testables/src/android/testing/
H A DPollingCheck.java33 public PollingCheck(long timeout) { argument
34 mTimeout = timeout;
44 long timeout = mTimeout;
45 while (timeout > 0) {
56 timeout -= TIME_SLICE;
59 Assert.fail("unexpected timeout");
62 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) argument
64 while (timeout > 0) {
70 timeout -= TIME_SLICE;
85 public static void waitFor(long timeout, fina argument
[all...]
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
H A DCtsMockitoUtils.java31 public static VerificationMode within(long timeout) { argument
32 return new Within(timeout);
39 public Within(long timeout) { argument
40 mTimeout = timeout;
45 long timeout = mTimeout;
49 while (timeout > 0) {
57 // Found our match within our timeout. Mark all invocations as verified
67 timeout -= TIME_SLICE;
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/testutils/
H A DPollingCheck.java39 public PollingCheck(long timeout) { argument
40 mTimeout = timeout;
54 long timeout = mTimeout;
55 while (timeout > 0) {
66 timeout -= TIME_SLICE;
69 fail("unexpected timeout");
86 public static void waitFor(long timeout, final PollingCheckCondition condition) { argument
87 new PollingCheck(timeout) {
/frameworks/base/core/java/android/os/
H A DConditionVariable.java107 * timeout milliseconds have passed.
112 * @param timeout the maximum time to wait in milliseconds.
115 * because of the timeout.
117 public boolean block(long timeout) argument
122 if (timeout != 0) {
125 long end = now + timeout;
/frameworks/opt/net/voip/src/java/android/net/sip/
H A DISipSession.aidl112 * @param timeout the session will be timed out if the call is not
113 * established within {@code timeout} seconds
116 void makeCall(in SipProfile callee, String sessionDescription, int timeout);
124 * @param timeout the session will be timed out if the call is not
125 * established within {@code timeout} seconds
127 void answerCall(String sessionDescription, int timeout);
144 * @param timeout the session will be timed out if the call is not
145 * established within {@code timeout} seconds
147 void changeCall(String sessionDescription, int timeout);
/frameworks/base/core/java/android/hardware/usb/
H A DUsbDeviceConnection.java177 * @param timeout in milliseconds
182 int index, byte[] buffer, int length, int timeout) {
183 return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout);
202 * @param timeout in milliseconds
207 byte[] buffer, int offset, int length, int timeout) {
210 buffer, offset, length, timeout);
229 * @param timeout in milliseconds, 0 is infinite
234 byte[] buffer, int length, int timeout) {
235 return bulkTransfer(endpoint, buffer, 0, length, timeout);
249 * @param timeout i
181 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout) argument
206 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int offset, int length, int timeout) argument
233 bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int length, int timeout) argument
253 bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int offset, int length, int timeout) argument
334 requestWait(long timeout) argument
380 native_control_request(int requestType, int request, int value, int index, byte[] buffer, int offset, int length, int timeout) argument
382 native_bulk_request(int endpoint, byte[] buffer, int offset, int length, int timeout) argument
384 native_request_wait(long timeout) argument
[all...]
/frameworks/base/tools/preload2/src/com/android/preload/
H A DClientUtils.java27 * Instances take a default timeout parameter that's applied to all functions without explicit
28 * timeout. Timeouts are in milliseconds.
43 * Shortcut for findClient with default timeout.
51 * the process id (if valid). Stop looking after the given timeout.
56 * @param timeout The amount of milliseconds to wait, at most.
59 public Client findClient(IDevice device, String processName, int processPid, int timeout) { argument
60 WaitForClient wfc = new WaitForClient(device, processName, processPid, timeout);
65 * Shortcut for findAllClients with default timeout.
72 * Retrieve all clients known to the given device. Wait at most the given timeout.
75 * @param timeout Th
79 findAllClients(IDevice device, int timeout) argument
92 private long timeout; field in class:ClientUtils.WaitForClient
95 WaitForClient(IDevice device, String processName, int processPid, long timeout) argument
180 private long timeout; field in class:ClientUtils.WaitForClients
182 WaitForClients(IDevice device, long timeout) argument
[all...]
H A DDeviceUtils.java65 public static void doShell(IDevice device, String cmdline, long timeout, TimeUnit unit) { argument
66 doShell(device, cmdline, new NullShellOutputReceiver(), timeout, unit);
72 public static String doShellReturnString(IDevice device, String cmdline, long timeout, argument
75 doShell(device, cmdline, rec, timeout, unit);
83 long timeout, TimeUnit unit) {
85 device.executeShellCommand(cmdline, receiver, timeout, unit);
99 * Find the device with the given serial. Give up after the given timeout (in milliseconds).
101 public static IDevice findDevice(String serial, int timeout) { argument
102 WaitForDevice wfd = new WaitForDevice(serial, timeout);
107 * Get all devices ddms knows about. Wait at most for the given timeout
82 doShell(IDevice device, String cmdline, IShellOutputReceiver receiver, long timeout, TimeUnit unit) argument
109 findDevices(int timeout) argument
188 waitForBootComplete(IDevice device, long timeout) argument
281 private long timeout; field in class:DeviceUtils.WaitForDevice
284 WaitForDevice(String serial, long timeout) argument
[all...]
/frameworks/base/libs/hwui/thread/
H A DThreadBase.h57 int timeout = -1; local
59 timeout = ns2ms(nextWakeup - WorkQueue::clock::now());
60 if (timeout < 0) timeout = 0;
62 int result = mLooper->pollOnce(timeout);
/frameworks/base/core/java/android/accounts/
H A DAccountManagerFuture.java101 * will be thrown rather than the call returning normally. If a timeout is specified then
103 * @param timeout the maximum time to wait
104 * @param unit the time unit of the timeout argument. This must not be null.
113 V getResult(long timeout, TimeUnit unit) argument
/frameworks/base/core/java/android/app/
H A DWaitResult.java32 public boolean timeout; field in class:WaitResult
48 dest.writeInt(timeout ? 1 : 0);
69 timeout = source.readInt() != 0;
78 pw.println(prefix + " timeout=" + timeout);
/frameworks/base/core/java/android/bluetooth/le/
H A DPeriodicAdvertisingCallback.java56 * @param timeout Synchronization timeout for the periodic advertising in force. One unit is
58 * @param timeout
62 int advertisingSid, int skip, int timeout,
61 onSyncEstablished(int syncHandle, BluetoothDevice device, int advertisingSid, int skip, int timeout, int status) argument
H A DPeriodicAdvertisingManager.java77 * call to registerSync will use the {@code skip} and {@code timeout} provided.
79 * existing sync, thus {@code skip} and {@code timeout} values will not take
86 * @param timeout Synchronization timeout for the periodic advertising. One unit is 10ms. Must
90 * {@code timeout} is invalid or {@code callback} is null.
92 public void registerSync(ScanResult scanResult, int skip, int timeout, argument
94 registerSync(scanResult, skip, timeout, callback, null);
100 * call to registerSync will use the {@code skip} and {@code timeout} provided.
102 * existing sync, thus {@code skip} and {@code timeout} values will not take
109 * @param timeout Synchronizatio
116 registerSync(ScanResult scanResult, int skip, int timeout, PeriodicAdvertisingCallback callback, Handler handler) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DVerifyCredentialResponse.java80 public VerifyCredentialResponse(int timeout) { argument
81 mTimeout = timeout;
86 private VerifyCredentialResponse(int responseCode, int timeout, byte[] payload) { argument
88 mTimeout = timeout;
124 private void setTimeout(int timeout) { argument
125 mTimeout = timeout;
/frameworks/base/tests/net/java/android/net/nsd/
H A DNsdManagerTest.java27 import static org.mockito.Mockito.timeout;
97 verify(listener, timeout(mTimeoutMs).times(1)).onResolveFailed(request, err);
102 verify(listener, timeout(mTimeoutMs).times(1)).onServiceResolved(reply);
124 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceResolved(reply);
125 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceResolved(reply);
148 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceRegistered(request2);
152 verify(listener1, timeout(mTimeoutMs).times(1)).onRegistrationFailed(request1, err);
159 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceRegistered(request1);
167 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceUnregistered(request1);
175 verify(listener2, timeout(mTimeoutM
[all...]
/frameworks/base/core/tests/coretests/src/android/os/
H A DHandlerTester.java30 public void doTest(long timeout) { argument
35 wait(timeout);
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
H A Depoll_file_descriptor.h46 int Wait(epoll_event* events, int maxevents, int timeout) { argument
47 int ret = epoll_wait(fd_.get(), events, maxevents, timeout);
/frameworks/base/core/java/org/apache/http/params/
H A DHttpConnectionParams.java61 * Returns the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the
62 * timeout for waiting for data. A timeout value of zero is interpreted as an infinite
63 * timeout. This value is used when no socket timeout is set in the
66 * @return timeout in milliseconds
76 * Sets the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the
77 * timeout for waiting for data. A timeout value of zero is interpreted as an infinite
78 * timeout
83 setSoTimeout(final HttpParams params, int timeout) argument
187 setConnectionTimeout(final HttpParams params, int timeout) argument
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DGestureUtils.java23 int timeout, int distance) {
24 if (isTimedOut(first, second, timeout)) {
38 public static boolean isTimedOut(MotionEvent firstUp, MotionEvent secondUp, int timeout) { argument
40 return (deltaTime >= timeout);
22 eventsWithinTimeAndDistanceSlop(MotionEvent first, MotionEvent second, int timeout, int distance) argument
/frameworks/base/tools/preload2/src/com/android/preload/classdataretrieval/hprof/
H A DHprof.java48 public static File doHprof(Client client, int timeout) { argument
49 GetHprof gh = new GetHprof(client, timeout);
118 private long timeout; field in class:Hprof.GetHprof
121 public GetHprof(Client client, long timeout) { argument
123 this.timeout = timeout;
132 wait(timeout);
206 private int timeout; field in class:Hprof
208 public Hprof(int timeout) { argument
209 this.timeout
[all...]

Completed in 670 milliseconds

1234567891011>>