Searched refs:timeout (Results 51 - 75 of 281) sorted by relevance

1234567891011>>

/frameworks/rs/tests/lldb/tests/harness/
H A Dutil_android.py60 def adb(self, args, async=False, device=True, timeout=None):
69 timeout: it specifies the number of seconds to wait for
75 - when both the combination async=True and timeout are
77 - when a timeout <= 0 is specified.
81 specified timeout, a string which is the output (standard out and
93 if timeout is None:
101 'with timeout specified')
104 timeout)
115 def adb_retry(self, args, max_num_attempts, timeout):
119 completion up to 'timeout' second
[all...]
/frameworks/base/cmds/incidentd/src/
H A DFdBuffer.cpp52 FdBuffer::read(int fd, int64_t timeout) argument
77 int64_t remainingTime = (mStartTime + timeout) - uptimeMillis();
/frameworks/base/core/java/android/nfc/tech/
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/base/core/java/android/service/gatekeeper/
H A DGateKeeperResponse.java50 private static GateKeeperResponse createRetryResponse(int timeout) { argument
52 response.mTimeout = timeout;
/frameworks/base/core/java/com/android/internal/os/
H A DTransferPipe.java90 String prefix, String[] args, long timeout) throws IOException, RemoteException {
102 tp.go(out, timeout);
112 String[] args, long timeout) throws IOException, RemoteException {
124 tp.go(out, timeout);
132 public void go(FileDescriptor out, long timeout) throws IOException { argument
136 mEndTime = SystemClock.uptimeMillis() + timeout;
89 go(Caller caller, IInterface iface, FileDescriptor out, String prefix, String[] args, long timeout) argument
111 goDump(IBinder binder, FileDescriptor out, String[] args, long timeout) argument
/frameworks/base/tests/net/java/com/android/server/
H A DNsdServiceTest.java24 import static org.mockito.Mockito.timeout;
90 verify(mDaemon, timeout(100).times(1)).start();
97 verify(mDaemon, timeout(mTimeoutMs).times(1)).stop();
108 verify(mDaemon, timeout(100).times(1)).start();
130 verify(mDaemon, timeout(mTimeoutMs).times(1)).stop();
160 verify(mDaemon, timeout(mTimeoutMs).times(n)).execute(argumentsCaptor.capture());
/frameworks/opt/net/voip/src/java/android/net/sip/
H A DSipSession.java395 * @param timeout the session will be timed out if the call is not
396 * established within {@code timeout} seconds. Default value (defined
397 * by SIP protocol) is used if {@code timeout} is zero or negative.
401 int timeout) {
403 mSession.makeCall(callee, sessionDescription, timeout);
415 * @param timeout the session will be timed out if the call is not
416 * established within {@code timeout} seconds. Default value (defined
417 * by SIP protocol) is used if {@code timeout} is zero or negative.
419 public void answerCall(String sessionDescription, int timeout) { argument
421 mSession.answerCall(sessionDescription, timeout);
400 makeCall(SipProfile callee, String sessionDescription, int timeout) argument
452 changeCall(String sessionDescription, int timeout) argument
[all...]
H A DSipAudioCall.java609 * timed out if the call is not established within {@code timeout} seconds
615 * @param timeout the timeout value in seconds. Default value (defined by
616 * SIP protocol) is used if {@code timeout} is zero or negative.
623 int timeout) throws SipException {
624 if (DBG) log("makeCall: " + peerProfile + " session=" + sipSession + " timeout=" + timeout);
636 timeout);
662 * within {@code timeout} seconds and
666 * @param timeout th
622 makeCall(SipProfile peerProfile, SipSession sipSession, int timeout) argument
671 holdCall(int timeout) argument
696 answerCall(int timeout) argument
725 continueCall(int timeout) argument
[all...]
/frameworks/native/libs/vr/libbufferhubqueue/
H A Dbuffer_hub_queue_client.cpp140 bool BufferHubQueue::WaitForBuffers(int timeout) { argument
153 count() == 0 ? timeout : 0);
157 "BufferHubQueue::WaitForBuffers: No events before timeout: "
351 Status<std::shared_ptr<BufferHubBuffer>> BufferHubQueue::Dequeue(int timeout, argument
353 ALOGD_IF(TRACE, "BufferHubQueue::Dequeue: count=%zu, timeout=%d", count(),
354 timeout);
359 if (!WaitForBuffers(timeout))
532 int timeout, size_t* slot, LocalHandle* release_fence) {
534 return Dequeue(timeout, slot, &canonical_meta, release_fence);
538 int timeout, size_
531 Dequeue( int timeout, size_t* slot, LocalHandle* release_fence) argument
537 Dequeue( int timeout, size_t* slot, DvrNativeBufferMetadata* out_meta, pdx::LocalHandle* release_fence) argument
655 Dequeue( int timeout, size_t* slot, void* meta, size_t user_metadata_size, LocalHandle* acquire_fence) argument
684 Dequeue( int timeout, size_t* slot, DvrNativeBufferMetadata* out_meta, pdx::LocalHandle* acquire_fence) argument
[all...]
/frameworks/support/dynamic-animation/tests/src/android/support/dynamicanimation/tests/
H A DFlingTests.java25 import static org.mockito.Mockito.timeout;
100 verify(listener, timeout(1000)).onAnimationEnd(eq(anim), eq(false), floatThat(
123 verify(listener, timeout(1000)).onAnimationEnd(eq(anim), eq(false), floatThat(
154 verify(listener, timeout(1000)).onAnimationEnd(eq(animHighFriction), eq(false), floatThat(
206 verify(listener, timeout(1000)).onAnimationEnd(eq(animHighThreshold), eq(false), floatThat(
H A DSpringTests.java31 import static org.mockito.Mockito.timeout;
108 verify(listener, timeout(1000)).onAnimationEnd(anim, false, 1f, 0f);
147 verify(mockListener, timeout(1000).atLeast(10)).onAnimationUpdate(eq(anim), lt(1000f),
149 verify(listener, timeout(1000)).onAnimationEnd(anim, false, 1000f, 0f);
226 verify(mockListener, timeout(2000)).onAnimationEnd(anim3, false, 0, 0);
288 verify(mockListener, timeout(2000)).onAnimationEnd(anim2, false, 0, 0);
349 verify(mockListener, timeout(2000)).onAnimationEnd(springAnims[1], false, 0f, 0f);
417 verify(endListener, timeout(1000)).onAnimationEnd(anim, false, 0.5f, 0f);
482 verify(mockEndListener, timeout(2000)).onAnimationEnd(anim, false, 0f, 0f);
515 verify(mockEndListener, timeout(150
[all...]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiObject.java50 // set a default timeout to 5.5s, since ANR threshold is 5s
162 * @param timeout in milliseconds
166 protected AccessibilityNodeInfo findAccessibilityNodeInfo(long timeout) { argument
170 while (currentMills <= timeout) {
179 if(timeout > 0) {
430 * @param timeout timeout before giving up on waiting for a new window
435 public boolean clickAndWaitForNewWindow(long timeout) throws UiObjectNotFoundException { argument
436 Tracer.trace(timeout);
846 * until the timeout ha
853 waitForExists(long timeout) argument
879 waitUntilGone(long timeout) argument
[all...]
H A DUiAutomatorBridge.java94 public void waitForIdle(long timeout) { argument
96 mUiAutomation.waitForIdle(QUIET_TIME_TO_BE_CONSIDERD_IDLE_STATE, timeout);
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DActivityTestsBase.java168 boolean timeout = false;
173 timeout = true;
187 if (timeout) {
/frameworks/base/tests/net/java/android/net/ip/
H A DIpManagerTest.java28 import static org.mockito.Mockito.timeout;
107 verify(mNMService, timeout(100).times(1)).disableIpv6(ifname);
108 verify(mNMService, timeout(100).times(1)).clearInterfaceAddresses(ifname);
141 verify(mCb, timeout(100).times(1)).setFallbackMulticastFilter(false);
145 verify(mNMService, timeout(100).times(1)).disableIpv6(iface);
146 verify(mNMService, timeout(100).times(1)).clearInterfaceAddresses(iface);
169 verify(mCb, timeout(100).times(1)).setFallbackMulticastFilter(false);
174 verify(mNetd, timeout(100).times(1))
183 verify(mCb, timeout(100).times(1)).onLinkPropertiesChange(any());
190 verify(mCb, timeout(10
[all...]
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
H A DBroadcastInterceptingContext.java58 public abstract void assertNotReceived(long timeout, TimeUnit unit) argument
101 public void assertNotReceived(long timeout, TimeUnit unit) argument
104 final Intent intent = get(timeout, unit);
/frameworks/base/core/java/android/os/
H A DHandler.java472 * If timeout occurs then this method returns <code>false</code> but the runnable
482 * @param timeout The timeout in milliseconds, or 0 to wait indefinitely.
492 public final boolean runWithScissors(final Runnable r, long timeout) { argument
496 if (timeout < 0) {
497 throw new IllegalArgumentException("timeout must be non-negative");
506 return br.postAndWait(this, timeout);
819 public boolean postAndWait(Handler handler, long timeout) { argument
825 if (timeout > 0) {
826 final long expirationTime = SystemClock.uptimeMillis() + timeout;
[all...]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderAction.java95 * @param timeout the time to wait if another rendering is happening.
102 public Result init(long timeout) { argument
105 Result result = acquireLock(timeout);
145 * The preparation can fail if another rendering took too long and the timeout was elapsed.
153 * @param timeout the time to wait if another rendering is happening.
161 public Result acquire(long timeout) { argument
168 Result result = acquireLock(timeout);
185 * @param timeout the time to wait if another rendering is happening.
191 private Result acquireLock(long timeout) { argument
195 boolean acquired = lock.tryLock(timeout, TimeUni
[all...]
/frameworks/native/cmds/dumpstate/
H A DDumpstateUtil.cpp93 CommandOptions::CommandOptionsBuilder::CommandOptionsBuilder(int64_t timeout) : values(timeout) { argument
126 CommandOptions::CommandOptionsValues::CommandOptionsValues(int64_t timeout) argument
127 : timeout_(timeout),
157 CommandOptions::CommandOptionsBuilder CommandOptions::WithTimeout(int64_t timeout) { argument
158 return CommandOptions::CommandOptionsBuilder(timeout);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothServerSocket.java141 * timeout
148 * Block until a connection is established, with timeout.
155 * timeout
157 public BluetoothSocket accept(int timeout) throws IOException { argument
158 return mSocket.accept(timeout);
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DCaptureCollector.java312 * @param timeout a timeout to use for this call.
313 * @param unit the units to use for the timeout.
317 public boolean queueRequest(RequestHolder holder, LegacyRequest legacy, long timeout, argument
321 long nanos = unit.toNanos(timeout);
368 * @param timeout a timeout to use for this call.
369 * @param unit the units to use for the timeout.
373 public boolean waitForEmpty(long timeout, TimeUnit unit) throws InterruptedException { argument
374 long nanos = unit.toNanos(timeout);
398 waitForPreviewsEmpty(long timeout, TimeUnit unit) argument
430 waitForRequestCompleted(RequestHolder holder, long timeout, TimeUnit unit, MutableLong timestamp) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DDumpUtils.java43 * trying to acquire, we use a short timeout to avoid deadlocks. The process
47 final String prefix, long timeout) {
56 }, timeout)) {
46 dumpAsync(Handler handler, final Dump dump, PrintWriter pw, final String prefix, long timeout) argument
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
H A DDownloadManagerBaseTest.java183 * Waits for a given download to finish, or until the timeout expires.
185 * @param timeout maximum time to wait, in milliseconds
189 public boolean waitForDownloadToFinish(long id, long timeout) throws InterruptedException { argument
193 if (SystemClock.uptimeMillis() - startTime > timeout) {
197 wait(timeout);
205 * Waits for multiple downloads to finish, or until timeout expires.
207 * @param timeout maximum time to wait, in milliseconds
211 public boolean waitForMultipleDownloadsToFinish(Set<Long> ids, long timeout) argument
216 if (SystemClock.uptimeMillis() - startTime > timeout) {
220 wait(timeout);
363 waitForMultipleDownloads(Set<Long> ids, long timeout) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
H A DCameraDeviceBinderTest.java56 // Wait for capture result timeout value: 1500ms
58 // Wait for flush timeout value: 1000ms
60 // Wait for idle timeout value: 2000ms
441 verify(mMockCb, timeout(WAIT_FOR_COMPLETE_TIMEOUT_MS).times(1)).onResultReceived(
445 verify(mMockCb, timeout(WAIT_FOR_COMPLETE_TIMEOUT_MS).atLeast(NUM_CALLBACKS_CHECKED))
459 verify(mMockCb, timeout(WAIT_FOR_COMPLETE_TIMEOUT_MS).times(1)).onCaptureStarted(
464 verify(mMockCb, timeout(WAIT_FOR_COMPLETE_TIMEOUT_MS).atLeast(NUM_CALLBACKS_CHECKED))
491 verify(mMockCb, timeout(WAIT_FOR_IDLE_TIMEOUT_MS).times(1)).onDeviceIdle();
501 verify(mMockCb, timeout(WAIT_FOR_IDLE_TIMEOUT_MS).times(2)).onDeviceIdle();
528 verify(mMockCb, timeout(WAIT_FOR_FLUSH_TIMEOUT_M
[all...]
/frameworks/support/lifecycle/extensions/src/androidTest/java/android/arch/lifecycle/activity/
H A DFragmentLifecycleActivity.java115 public boolean awaitForDestruction(long timeout, TimeUnit timeUnit) argument
117 return mDestroyLatch.await(timeout, timeUnit);

Completed in 896 milliseconds

1234567891011>>