Searched refs:timeout (Results 1 - 25 of 281) 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/testutils/src/main/java/android/support/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/support/fragment/tests/java/android/support/v4/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/v17/leanback/tests/java/android/support/v17/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 Assert.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);
226 * @param timeout in milliseconds, 0 is infinite
231 byte[] buffer, int length, int timeout) {
232 return bulkTransfer(endpoint, buffer, 0, length, timeout);
243 * @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
230 bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int length, int timeout) argument
247 bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int offset, int length, int timeout) argument
324 requestWait(long timeout) argument
370 native_control_request(int requestType, int request, int value, int index, byte[] buffer, int offset, int length, int timeout) argument
372 native_bulk_request(int endpoint, byte[] buffer, int offset, int length, int timeout) argument
374 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/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
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.java75 * call to registerSync will use the {@code skip} and {@code timeout} provided.
77 * existing sync, thus {@code skip} and {@code timeout} values will not take
84 * @param timeout Synchronization timeout for the periodic advertising. One
88 * skip} is invalid or {@code timeout} is invalid or {@code callback} is null.
90 public void registerSync(ScanResult scanResult, int skip, int timeout, argument
92 registerSync(scanResult, skip, timeout, callback, null);
98 * call to registerSync will use the {@code skip} and {@code timeout} provided.
100 * existing sync, thus {@code skip} and {@code timeout} values will not take
107 * @param timeout Synchronizatio
114 registerSync(ScanResult scanResult, int skip, int timeout, PeriodicAdvertisingCallback callback, Handler handler) argument
[all...]
H A DIPeriodicAdvertisingCallback.aidl28 in int skip, in int timeout, in int status);
/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;
81 verify(listener, timeout(mTimeoutMs).times(1)).onResolveFailed(request, err);
86 verify(listener, timeout(mTimeoutMs).times(1)).onServiceResolved(reply);
108 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceResolved(reply);
109 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceResolved(reply);
132 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceRegistered(request2);
136 verify(listener1, timeout(mTimeoutMs).times(1)).onRegistrationFailed(request1, err);
143 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceRegistered(request1);
151 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceUnregistered(request1);
159 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/libdvrcommon/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/native/libs/vr/libdvr/include/dvr/
H A Ddvr_buffer_queue.h93 int dvrWriteBufferQueueDequeue(DvrWriteBufferQueue* write_queue, int timeout,
99 // @param timeout Specifies the number of milliseconds that the method will
100 // block. Specifying a timeout of -1 causes it to block indefinitely,
101 // while specifying a timeout equal to zero cause it to return immediately,
111 int dvrWriteBufferQueueGainBuffer(DvrWriteBufferQueue* write_queue, int timeout,
180 int dvrReadBufferQueueDequeue(DvrReadBufferQueue* read_queue, int timeout,
187 // @param timeout Specifies the number of milliseconds that the method will
188 // block. Specifying a timeout of -1 causes it to block indefinitely,
189 // while specifying a timeout equal to zero cause it to return immediately,
199 int dvrReadBufferQueueAcquireBuffer(DvrReadBufferQueue* read_queue, int timeout,
[all...]
/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...]
/frameworks/support/transition/tests/src/android/support/transition/
H A DFadeTest.java29 import static org.mockito.Mockito.timeout;
127 verify(listenerOut, timeout(3000)).onTransitionStart(any(Transition.class));
130 verify(interrupt, timeout(3000)).run();
138 verify(listenerOut, timeout(3000)).onTransitionPause(any(Transition.class));
139 verify(listenerIn, timeout(3000)).onTransitionStart(any(Transition.class));
146 verify(listenerIn, timeout(3000)).onTransitionEnd(any(Transition.class));
163 verify(listenerIn, timeout(3000)).onTransitionStart(any(Transition.class));
166 verify(interrupt, timeout(3000)).run();
174 verify(listenerIn, timeout(3000)).onTransitionPause(any(Transition.class));
175 verify(listenerOut, timeout(300
[all...]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DTwoWayBindingAdapterTest.java69 long timeout = SystemClock.uptimeMillis() + 500;
71 SystemClock.uptimeMillis() < timeout) {
152 long timeout = SystemClock.uptimeMillis() + 1500;
166 } while (date[0] == date[1] && SystemClock.uptimeMillis() < timeout);
168 timeout = SystemClock.uptimeMillis() + 100;
169 while (mBindingObject.date.get() == 0 && SystemClock.uptimeMillis() < timeout) {
198 final long timeout = SystemClock.uptimeMillis() + 500;
199 while (!mBindingObject.checked.get() && SystemClock.uptimeMillis() < timeout) {
219 long timeout = SystemClock.uptimeMillis() + 500;
221 while (SystemClock.uptimeMillis() < timeout) {
[all...]
/frameworks/base/tests/testables/src/android/testing/
H A DAndroidTestingRunner.java49 // Can't seem to get reference to timeout parameter from here, so set default to 10 mins.
75 long timeout = this.getTimeout(method.getAnnotation(Test.class));
76 if (timeout <= 0L && mTimeout > 0L) {
77 timeout = mTimeout;
80 return timeout <= 0L ? next : new FailOnTimeout(next, timeout);
84 return annotation == null ? 0L : annotation.timeout();
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestBase.java159 protected boolean waitForNetworkState(int networkType, State expectedState, long timeout) { argument
167 if ((SystemClock.uptimeMillis() - startTime) > timeout) {
168 logv("waitForNetworkState timeout: %s", ni);
178 protected boolean waitForWifiState(int expectedState, long timeout) { argument
186 if ((SystemClock.uptimeMillis() - startTime) > timeout) {
187 logv("waitForWifiState timeout: expected=%d, actual=%d", expectedState, state);
197 protected boolean waitForWifiApState(int expectedState, long timeout) { argument
205 if ((SystemClock.uptimeMillis() - startTime) > timeout) {
206 logv(String.format("waitForWifiAPState timeout: expected=%d, actual=%d",
218 * @param timeout i
222 waitForTetherStateChange(long timeout) argument
420 waitForActiveNetworkConnection(long timeout) argument
436 waitUntilNoActiveNetworkConnection(long timeout) argument
[all...]

Completed in 666 milliseconds

1234567891011>>