/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | Configurator.java | 38 // 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 D | PollingCheck.java | 22 * 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 D | CtsMockitoUtils.java | 30 public static VerificationMode within(long timeout) { argument 31 return new Within(timeout); 38 public Within(long timeout) { argument 39 mTimeout = timeout; 44 long timeout = mTimeout; 48 while (timeout > 0) { 56 // Found our match within our timeout. Mark all invocations as verified 66 timeout -= TIME_SLICE;
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/testutils/ |
H A D | PollingCheck.java | 39 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 D | ConditionVariable.java | 107 * 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 D | ISipSession.aidl | 112 * @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 D | UsbDeviceConnection.java | 176 * @param timeout in milliseconds 181 int index, byte[] buffer, int length, int timeout) { 182 return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout); 201 * @param timeout in milliseconds 206 byte[] buffer, int offset, int length, int timeout) { 209 buffer, offset, length, timeout); 225 * @param timeout in milliseconds, 0 is infinite 230 byte[] buffer, int length, int timeout) { 231 return bulkTransfer(endpoint, buffer, 0, length, timeout); 242 * @param timeout i 180 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout) argument 205 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int offset, int length, int timeout) argument 229 bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int length, int timeout) argument 246 bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int offset, int length, int timeout) argument 322 requestWait(long timeout) argument 366 native_control_request(int requestType, int request, int value, int index, byte[] buffer, int offset, int length, int timeout) argument 368 native_bulk_request(int endpoint, byte[] buffer, int offset, int length, int timeout) argument 370 native_request_wait(long timeout) argument [all...] |
/frameworks/base/tools/preload2/src/com/android/preload/ |
H A D | ClientUtils.java | 27 * 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 D | DeviceUtils.java | 65 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/com/android/internal/widget/ |
H A D | VerifyCredentialResponse.java | 77 public VerifyCredentialResponse(int timeout) { argument 78 mTimeout = timeout; 83 private VerifyCredentialResponse(int responseCode, int timeout, byte[] payload) { argument 85 mTimeout = timeout; 119 private void setTimeout(int timeout) { argument 120 mTimeout = timeout;
|
/frameworks/base/core/java/android/accounts/ |
H A D | AccountManagerFuture.java | 101 * 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 D | WaitResult.java | 32 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 D | PeriodicAdvertisingCallback.java | 56 * @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 D | PeriodicAdvertisingManager.java | 75 * 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 D | IPeriodicAdvertisingCallback.aidl | 28 in int skip, in int timeout, in int status);
|
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | HandlerTester.java | 30 public void doTest(long timeout) { argument 35 wait(timeout);
|
/frameworks/native/libs/vr/libdvr/include/dvr/ |
H A D | dvr_buffer_queue.h | 29 int dvrWriteBufferQueueDequeue(DvrWriteBufferQueue* write_queue, int timeout, 38 int dvrReadBufferQueueDequeue(DvrReadBufferQueue* read_queue, int timeout,
|
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
H A D | epoll_file_descriptor.h | 46 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 D | HttpConnectionParams.java | 61 * 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/libpdx/private/pdx/ |
H A D | mock_service_dispatcher.h | 15 MOCK_METHOD1(ReceiveAndDispatch, int(int timeout));
|
H A D | service_dispatcher.h | 48 * Same as above with timeout in milliseconds. A negative value means 49 * infinite timeout, while a value of 0 means return immediately if no 52 virtual int ReceiveAndDispatch(int timeout) = 0;
|
/frameworks/base/tools/preload2/src/com/android/preload/classdataretrieval/hprof/ |
H A D | Hprof.java | 48 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 D | FadeTest.java | 29 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 D | TwoWayBindingAdapterTest.java | 69 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 D | AndroidTestingRunner.java | 47 // Can't seem to get reference to timeout parameter from here, so set default to 10 mins. 73 long timeout = this.getTimeout(method.getAnnotation(Test.class)); 74 if (timeout <= 0L && mTimeout > 0L) { 75 timeout = mTimeout; 78 return timeout <= 0L ? next : new FailOnTimeout(next, timeout); 82 return annotation == null ? 0L : annotation.timeout();
|