Searched refs:timeout (Results 26 - 50 of 307) sorted by relevance

1234567891011>>

/frameworks/support/transition/src/androidTest/java/androidx/transition/
H A DFadeTest.java30 import static org.mockito.Mockito.timeout;
131 verify(listenerOut, timeout(3000)).onTransitionStart(any(Transition.class));
134 verify(interrupt, timeout(3000)).run();
142 verify(listenerOut, timeout(3000)).onTransitionPause(any(Transition.class));
143 verify(listenerIn, timeout(3000)).onTransitionStart(any(Transition.class));
150 verify(listenerIn, timeout(3000)).onTransitionEnd(any(Transition.class));
167 verify(listenerIn, timeout(3000)).onTransitionStart(any(Transition.class));
170 verify(interrupt, timeout(3000)).run();
178 verify(listenerIn, timeout(3000)).onTransitionPause(any(Transition.class));
179 verify(listenerOut, timeout(300
[all...]
H A DBaseTransitionTest.java21 import static org.mockito.Mockito.timeout;
60 verify(mListener, timeout(3000)).onTransitionStart(any(Transition.class));
64 verify(mListener, timeout(3000)).onTransitionEnd(any(Transition.class));
/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.java153 protected boolean waitForNetworkState(int networkType, State expectedState, long timeout) { argument
161 if ((SystemClock.uptimeMillis() - startTime) > timeout) {
162 logv("waitForNetworkState timeout: %s", ni);
172 protected boolean waitForWifiState(int expectedState, long timeout) { argument
180 if ((SystemClock.uptimeMillis() - startTime) > timeout) {
181 logv("waitForWifiState timeout: expected=%d, actual=%d", expectedState, state);
191 protected boolean waitForWifiApState(int expectedState, long timeout) { argument
199 if ((SystemClock.uptimeMillis() - startTime) > timeout) {
200 logv(String.format("waitForWifiAPState timeout: expected=%d, actual=%d",
212 * @param timeout i
216 waitForTetherStateChange(long timeout) argument
414 waitForActiveNetworkConnection(long timeout) argument
430 waitUntilNoActiveNetworkConnection(long timeout) argument
[all...]
/frameworks/base/libs/hwui/tests/scripts/
H A Dskp-capture.sh64 timeout=$(( $(date +%s) + $phase1_timeout_seconds))
67 if [ $(date +%s) -gt $timeout ] ; then
86 timeout=$(( $(date +%s) + $phase2_timeout_seconds))
89 if [ $(date +%s) -gt $timeout ] ; then
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
H A DBridgeRenderSession.java80 public Result measure(long timeout) { argument
84 mLastResult = mSession.acquire(timeout);
99 public Result render(long timeout, boolean forceMeasure) { argument
103 mLastResult = mSession.acquire(timeout);
/frameworks/native/libs/vr/libdvr/
H A Ddvr_buffer_queue_internal.h45 int Dequeue(int timeout, DvrWriteBuffer* write_buffer, int* out_fence_fd);
46 int GainBuffer(int timeout, DvrWriteBuffer** out_write_buffer,
77 int Dequeue(int timeout, DvrReadBuffer* read_buffer, int* out_fence_fd,
79 int AcquireBuffer(int timeout, DvrReadBuffer** out_read_buffer,
H A Ddvr_buffer_queue.cpp54 int DvrWriteBufferQueue::Dequeue(int timeout, DvrWriteBuffer* write_buffer, argument
59 if (const int ret = GainBuffer(timeout, &buffer, &meta, &fence_fd))
70 int DvrWriteBufferQueue::GainBuffer(int timeout, argument
85 producer_queue_->Dequeue(timeout, &slot, out_meta, &release_fence);
292 int dvrWriteBufferQueueGainBuffer(DvrWriteBufferQueue* write_queue, int timeout, argument
299 return write_queue->GainBuffer(timeout, out_write_buffer, out_meta,
341 int DvrReadBufferQueue::AcquireBuffer(int timeout, argument
348 consumer_queue_->Dequeue(timeout, &slot, out_meta, &acquire_fence);
491 int dvrReadBufferQueueDequeue(DvrReadBufferQueue* read_queue, int timeout, argument
500 return read_queue->Dequeue(timeout, read_buffe
504 dvrReadBufferQueueAcquireBuffer(DvrReadBufferQueue* read_queue, int timeout, DvrReadBuffer** out_read_buffer, DvrNativeBufferMetadata* out_meta, int* out_fence_fd) argument
[all...]
/frameworks/base/core/java/android/nfc/
H A DINfcTag.aidl42 int setTimeout(int technology, int timeout);
/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...]
/frameworks/base/core/tests/coretests/src/android/os/
H A DTestHandlerThread.java35 public void doTest(long timeout) { argument
40 long endTime = now + timeout;
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
H A DAlarmTimeout.java24 * Schedules a timeout through AlarmManager. Ensures that the timeout is called even when
47 public void schedule(long timeout, int mode) { argument
51 throw new IllegalStateException(mTag + " timeout is already scheduled");
69 SystemClock.elapsedRealtime() + timeout, mTag, this, mHandler);
/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/layoutlib/remote/server/src/com/android/layoutlib/bridge/remote/server/adapters/
H A DRemoteRenderSessionAdapter.java49 public Result render(long timeout, boolean forceMeasure) { argument
50 return mDelegate.render(timeout, forceMeasure);
/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/support/webkit/src/androidTest/java/androidx/webkit/
H A DWebViewOnUiThread.java151 * Test fails if the load timeout elapses.
175 * Test fails if the load timeout elapses.
218 private void waitForCriteria(long timeout, Callable<Boolean> doneCriteria) { argument
220 waitOnUiThread(timeout, doneCriteria);
222 waitOnTestThread(timeout, doneCriteria);
339 private void waitOnUiThread(long timeout, final Callable<Boolean> doneCriteria) { argument
340 new PollingCheck(timeout) {
357 private synchronized void waitOnTestThread(long timeout, Callable<Boolean> doneCriteria) { argument
359 long waitEnd = SystemClock.uptimeMillis() + timeout;
360 long timeRemaining = timeout;
[all...]
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
H A DBlockingStateCallback.java149 * @param timeout how long to wait in milliseconds
151 * @throws TimeoutRuntimeException if the desired state is not observed before timeout.
153 public void waitForState(int state, long timeout) { argument
156 waitForAnyOfStates(Arrays.asList(stateArray), timeout);
166 * @param timeout how long to wait in milliseconds
169 * @throws TimeoutRuntimeException if none of the states is observed before timeout.
172 public int waitForAnyOfStates(Collection<Integer> states, final long timeout) { argument
186 long timeoutLeft = timeout;
209 s.append(timeout);
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DTooltipCompatHandler.java178 final long timeout;
180 timeout = LONG_CLICK_HIDE_TIMEOUT_MS;
183 timeout = HOVER_HIDE_TIMEOUT_SHORT_MS - ViewConfiguration.getLongPressTimeout();
185 timeout = HOVER_HIDE_TIMEOUT_MS - ViewConfiguration.getLongPressTimeout();
188 mAnchor.postDelayed(mHideRunnable, timeout);
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
H A Dbuffer_hub_queue_client.h157 // timeout argument specifies the number of milliseconds that |Dequeue()| will
158 // block. Specifying a timeout of -1 causes Dequeue() to block indefinitely,
159 // while specifying a timeout equal to zero cause Dequeue() to return
161 pdx::Status<std::shared_ptr<BufferHubBuffer>> Dequeue(int timeout,
165 bool WaitForBuffers(int timeout);
346 int timeout, size_t* slot, pdx::LocalHandle* release_fence);
348 int timeout, size_t* slot, DvrNativeBufferMetadata* out_meta,
402 int timeout, size_t* slot, Meta* meta, pdx::LocalHandle* acquire_fence) {
403 return Dequeue(timeout, slot, meta, sizeof(*meta), acquire_fence);
406 int timeout, size_
401 Dequeue( int timeout, size_t* slot, Meta* meta, pdx::LocalHandle* acquire_fence) argument
405 Dequeue( int timeout, size_t* slot, pdx::LocalHandle* acquire_fence) argument
[all...]
/frameworks/base/tests/utils/SleepUtils/SleepHelper/src/com/android/testing/sleephelper/
H A DSetAlarm.java74 long timeout = -1;
76 timeout = Long.parseLong(paramString);
80 callSetAndWait(timeout);
/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
H A DBluetoothGattServerCallback.java192 * @param timeout Supervision timeout for this connection, in 10ms unit. Valid range is from 10
198 public void onConnectionUpdated(BluetoothDevice device, int interval, int latency, int timeout, argument

Completed in 555 milliseconds

1234567891011>>