Searched refs:timeout (Results 126 - 150 of 307) sorted by relevance

1234567891011>>

/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
H A DWriteAheadLoggingTest.java28 import static org.mockito.Mockito.timeout;
131 verify(observer, timeout(3000).atLeastOnce())
142 verify(observer, timeout(3000).atLeastOnce())
166 verify(observer, timeout(3000).atLeastOnce())
/frameworks/base/core/java/android/text/method/
H A DMultiTapKeyListener.java218 // Set up the callback so we can remove the timeout if the
246 Timeout[] timeout = buf.getSpans(0, buf.length(), Timeout.class);
248 for (int i = 0; i < timeout.length; i++) {
249 Timeout t = timeout[i];
/frameworks/base/services/core/java/com/android/server/am/
H A DNativeCrashListener.java50 // Use a short timeout on socket operations and abandon the connection
184 return -1; // premature EOF or timeout
199 StructTimeval timeout = StructTimeval.fromMillis(SOCKET_TIMEOUT_MILLIS);
200 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, timeout);
201 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_SNDTIMEO, timeout);
/frameworks/base/tests/BrowserPowerTest/src/com/android/browserpowertest/
H A DPowerTestActivity.java116 private void navigate(String url, int timeout) { argument
129 if(timeout != 0) {
130 //set a timer with specified timeout (in ms)
132 timeout);
160 Log.v(LOGTAG, "Page timeout triggered, progress = " + progress);
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
H A DBlockingSessionCallback.java291 public CameraCaptureSession get(long timeout, TimeUnit unit) throws TimeoutException { argument
292 long timeoutMs = unit.convert(timeout, TimeUnit.MILLISECONDS);
295 "Failed to receive session after " + timeout + " " + unit);
/frameworks/support/transition/src/androidTest/java/androidx/transition/
H A DTransitionManagerTest.java26 import static org.mockito.Mockito.timeout;
155 verify(listener, timeout(3000)).onTransitionStart(any(Transition.class));
162 verify(listener, timeout(3000)).onTransitionEnd(any(Transition.class));
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
H A DConnectionUtil.java358 * @param timeout to wait for download to finish
361 public boolean startDownloadAndWait(String targetUrl, long timeout) { argument
371 if ((System.currentTimeMillis() - startTime) > timeout) {
373 " within " + timeout);
431 * @param timeout in milliseconds
434 public boolean waitForNetworkState(int networkType, State expectedState, long timeout) { argument
437 if ((System.currentTimeMillis() - startTime) > timeout) {
480 * Wait for a given wifi state to occur within a given timeout.
482 * @param timeout for the state to be set in milliseconds.
483 * @return true if the state was achieved within the timeout, fals
485 waitForWifiState(int expectedState, long timeout) argument
[all...]
/frameworks/opt/net/voip/src/java/com/android/server/sip/
H A DSipSessionGroup.java141 // of timeout values
562 void start(final int timeout) { argument
566 sleep(timeout);
567 if (mRunning) timeout();
577 private void timeout() { method in class:SipSessionGroup.SipSessionImpl.SessionTimer
583 private synchronized void sleep(int timeout) { argument
585 this.wait(timeout * 1000);
699 int timeout) {
701 timeout));
705 public void answerCall(String sessionDescription, int timeout) { argument
698 makeCall(SipProfile peerProfile, String sessionDescription, int timeout) argument
719 changeCall(String sessionDescription, int timeout) argument
1353 startSessionTimer(int timeout) argument
1785 MakeCallCommand(SipProfile peerProfile, String sessionDescription, int timeout) argument
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_fingerprint_FingerprintService.cpp133 static jint nativeEnroll(JNIEnv* env, jobject clazz, jbyteArray token, jint groupId, jint timeout) { argument
134 ALOG(LOG_VERBOSE, LOG_TAG, "nativeEnroll(gid=%d, timeout=%d)\n", groupId, timeout);
142 reinterpret_cast<const hw_auth_token_t*>(tokenData), groupId, timeout);
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/stubhal/
H A DGenericSoundModelTest.java23 import static org.mockito.Mockito.timeout;
172 verify(spyCallback, timeout(100)).onGenericSoundTriggerDetected(any());
248 verify(spyCallback, timeout(100)).onGenericSoundTriggerDetected(any());
/frameworks/native/services/surfaceflinger/
H A DEventThread.cpp307 // use a 16ms timeout instead. It doesn't need to be
311 // use a (long) timeout when waiting for h/w vsync, and
314 auto timeout = softwareSync ? 16ms : 1000ms; local
315 if (mCondition.wait_for(*lock, timeout) == std::cv_status::timeout) {
H A DMonitoredProducer.h63 virtual status_t setDequeueTimeout(nsecs_t timeout) override;
/frameworks/av/media/libmediaplayer2/nuplayer2/
H A DRTSPSource2.h149 void setEOSTimeout(bool audio, int64_t timeout);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DRTSPSource.h151 void setEOSTimeout(bool audio, int64_t timeout);
/frameworks/base/services/core/java/com/android/server/
H A DWatchdog.java64 // timeout in com.android.internal.os.ZygoteConnection, or wrapped applications
427 long timeout = CHECK_INTERVAL;
441 // to timeout on is asleep as well and won't have a chance to run, causing a false
444 while (timeout > 0) {
449 wait(timeout);
456 timeout = CHECK_INTERVAL - (SystemClock.uptimeMillis() - start);
/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowManagerInternal.java308 public abstract void waitForAllWindowsDrawn(Runnable callback, long timeout); argument
/frameworks/ml/nn/runtime/
H A DCallbacks.h49 * and be blocked until it has completed or a timeout condition has been
83 * before the time duration expired, std::cv_status::timeout
93 * return std::cv_status::timeout before CallbackBase::notify is called for
319 if (status != std::cv_status::timeout) {
/frameworks/native/libs/vr/libdvr/include/dvr/
H A Ddvr_api.h187 int timeout,
191 DvrWriteBufferQueue* write_queue, int timeout,
207 int timeout,
212 DvrReadBufferQueue* read_queue, int timeout,
/frameworks/native/vulkan/libvulkan/
H A Dswapchain.h38 VKAPI_ATTR VkResult AcquireNextImageKHR(VkDevice device, VkSwapchainKHR swapchain_handle, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* image_index);
/frameworks/av/services/camera/libcameraservice/common/
H A DCameraDeviceBase.h118 * HAL. Returns TIMED_OUT if the timeout duration is reached. Returns
122 nsecs_t timeout) = 0;
298 * Wait for a new frame to be produced, with timeout in nanoseconds.
302 virtual status_t waitForNextFrame(nsecs_t timeout) = 0;
/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/core/java/android/nfc/tech/
H A DMifareClassic.java588 * Set the {@link #transceive} timeout in milliseconds.
590 * <p>The timeout only applies to {@link #transceive} on this object,
593 * <p>Setting a longer timeout may be useful when performing
599 * @param timeout timeout value in milliseconds
601 public void setTimeout(int timeout) { argument
603 int err = mTag.getTagService().setTimeout(TagTechnology.MIFARE_CLASSIC, timeout);
605 throw new IllegalArgumentException("The supplied timeout is not valid");
613 * Get the current {@link #transceive} timeout in milliseconds.
617 * @return timeout valu
[all...]
/frameworks/base/core/java/android/os/
H A DAsyncTask.java549 * @param timeout Time to wait before cancelling the operation.
550 * @param unit The time unit for the timeout.
560 public final Result get(long timeout, TimeUnit unit) throws InterruptedException, argument
562 return mFuture.get(timeout, unit);
/frameworks/base/core/java/com/android/internal/util/
H A DDumpUtils.java50 * trying to acquire, we use a short timeout to avoid deadlocks. The process
54 final String prefix, long timeout) {
63 }, timeout)) {
53 dumpAsync(Handler handler, final Dump dump, PrintWriter pw, final String prefix, long timeout) argument
/frameworks/base/core/tests/coretests/src/android/animation/
H A DViewPropertyAnimatorTest.java101 * Variant constructor that auto-releases the FutureWaiter after the specified timeout.
103 * @param timeout
105 public FutureReleaseListener(FutureWaiter future, long timeout) { argument
113 }, timeout);
302 // Set the listener to automatically timeout after an uncanceled animation

Completed in 845 milliseconds

1234567891011>>