Searched defs:timeout (Results 1 - 25 of 175) sorted by relevance

1234567

/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/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/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/os/
H A DHandlerTester.java30 public void doTest(long timeout) { argument
35 wait(timeout);
H A DTestHandlerThread.java35 public void doTest(long timeout) { argument
40 long endTime = now + timeout;
/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/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/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/layoutlib/remote/common/src/com/android/layout/remote/api/
H A DRemoteRenderSession.java47 Result render(long timeout, boolean forceMeasure) throws RemoteException; argument
/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/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/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/android/nfc/tech/
H A DIsoDep.java81 * Set the timeout of {@link #transceive} in milliseconds.
82 * <p>The timeout only applies to ISO-DEP {@link #transceive}, and is
84 * <p>Setting a longer timeout may be useful when performing
90 * @param timeout timeout value in milliseconds
92 public void setTimeout(int timeout) { argument
94 int err = mTag.getTagService().setTimeout(TagTechnology.ISO_DEP, timeout);
96 throw new IllegalArgumentException("The supplied timeout is not valid");
104 * Get the current timeout for {@link #transceive} in milliseconds.
108 * @return timeout valu
[all...]
H A DNfcA.java132 * Set the {@link #transceive} timeout in milliseconds.
134 * <p>The timeout only applies to {@link #transceive} on this object,
137 * <p>Setting a longer timeout may be useful when performing
143 * @param timeout timeout value in milliseconds
145 public void setTimeout(int timeout) { argument
147 int err = mTag.getTagService().setTimeout(TagTechnology.NFC_A, timeout);
149 throw new IllegalArgumentException("The supplied timeout is not valid");
157 * Get the current {@link #transceive} timeout in milliseconds.
161 * @return timeout valu
[all...]
H A DNfcF.java136 * Set the {@link #transceive} timeout in milliseconds.
138 * <p>The timeout only applies to {@link #transceive} on this object,
141 * <p>Setting a longer timeout may be useful when performing
147 * @param timeout timeout value in milliseconds
149 public void setTimeout(int timeout) { argument
151 int err = mTag.getTagService().setTimeout(TagTechnology.NFC_F, timeout);
153 throw new IllegalArgumentException("The supplied timeout is not valid");
161 * Get the current {@link #transceive} timeout in milliseconds.
165 * @return timeout valu
[all...]
H A DMifareUltralight.java227 * Set the {@link #transceive} timeout in milliseconds.
229 * <p>The timeout only applies to {@link #transceive} on this object,
232 * <p>Setting a longer timeout may be useful when performing
238 * @param timeout timeout value in milliseconds
240 public void setTimeout(int timeout) { argument
243 TagTechnology.MIFARE_ULTRALIGHT, timeout);
245 throw new IllegalArgumentException("The supplied timeout is not valid");
253 * Get the current {@link #transceive} timeout in milliseconds.
257 * @return timeout valu
[all...]
/frameworks/layoutlib/legacy/src/com/android/layoutlib/bridge/
H A DBridge.java50 public Result render(long timeout, boolean forceMeasure) { argument
55 public Result measure(long timeout) { argument
/frameworks/opt/net/voip/src/java/com/android/server/sip/
H A DSipWakeLock.java42 synchronized void acquire(long timeout) { argument
48 mTimerWakeLock.acquire(timeout);
/frameworks/rs/tests/lldb/
H A Dconfig.py106 def timeout(self): member in class:Config
/frameworks/base/cmds/incidentd/src/
H A DFdBuffer.cpp41 status_t FdBuffer::read(int fd, int64_t timeout) { argument
54 int64_t remainingTime = (mStartTime + timeout) - uptimeMillis();
/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/base/core/java/android/bluetooth/
H A DBluetoothGattCallback.java188 * @param timeout Supervision timeout for this connection, in 10ms unit. Valid range is from 10
194 public void onConnectionUpdated(BluetoothGatt gatt, int interval, int latency, int timeout, argument

Completed in 710 milliseconds

1234567