Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 193) sorted by relevance

12345678

/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DConfigurator.java76 public Configurator setWaitForIdleTimeout(long timeout) { in setWaitForIdleTimeout() argument
77 mWaitForIdleTimeout = timeout; in setWaitForIdleTimeout()
112 public Configurator setWaitForSelectorTimeout(long timeout) { in setWaitForSelectorTimeout() argument
113 mWaitForSelector = timeout; in setWaitForSelectorTimeout()
146 public Configurator setScrollAcknowledgmentTimeout(long timeout) { in setScrollAcknowledgmentTimeout() argument
147 mScrollEventWaitTimeout = timeout; in setScrollAcknowledgmentTimeout()
180 public Configurator setActionAcknowledgmentTimeout(long timeout) { in setActionAcknowledgmentTimeout() argument
181 mWaitForActionAcknowledgment = timeout; in setActionAcknowledgmentTimeout()
DUiObject.java163 protected AccessibilityNodeInfo findAccessibilityNodeInfo(long timeout) { in findAccessibilityNodeInfo() argument
167 while (currentMills <= timeout) { in findAccessibilityNodeInfo()
176 if(timeout > 0) { in findAccessibilityNodeInfo()
428 public boolean clickAndWaitForNewWindow(long timeout) throws UiObjectNotFoundException { in clickAndWaitForNewWindow() argument
429 Tracer.trace(timeout); in clickAndWaitForNewWindow()
846 public boolean waitForExists(long timeout) { in waitForExists() argument
847 Tracer.trace(timeout); in waitForExists()
848 if(findAccessibilityNodeInfo(timeout) != null) { in waitForExists()
872 public boolean waitUntilGone(long timeout) { in waitUntilGone() argument
873 Tracer.trace(timeout); in waitUntilGone()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DUsbDeviceConnection.java147 int index, byte[] buffer, int length, int timeout) { in controlTransfer() argument
148 return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout); in controlTransfer()
172 byte[] buffer, int offset, int length, int timeout) { in controlTransfer() argument
175 buffer, offset, length, timeout); in controlTransfer()
195 byte[] buffer, int length, int timeout) { in bulkTransfer() argument
196 return bulkTransfer(endpoint, buffer, 0, length, timeout); in bulkTransfer()
212 byte[] buffer, int offset, int length, int timeout) { in bulkTransfer() argument
214 return native_bulk_request(endpoint.getAddress(), buffer, offset, length, timeout); in bulkTransfer()
261 int index, byte[] buffer, int offset, int length, int timeout); in native_control_request() argument
263 int offset, int length, int timeout); in native_bulk_request() argument
/frameworks/base/libs/hwui/
DFence.h69 bool wait(EGLTimeKHR timeout = kDefaultTimeout) {
71 EGL_SYNC_FLUSH_COMMANDS_BIT_KHR, timeout);
97 AutoFence(EGLTimeKHR timeout = Fence::kDefaultTimeout): mTimeout(timeout) { in mTimeout() argument
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java159 protected boolean waitForNetworkState(int networkType, State expectedState, long timeout) { in waitForNetworkState() argument
167 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForNetworkState()
178 protected boolean waitForWifiState(int expectedState, long timeout) { in waitForWifiState() argument
186 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiState()
197 protected boolean waitForWifiApState(int expectedState, long timeout) { in waitForWifiApState() argument
205 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiApState()
222 protected boolean waitForTetherStateChange(long timeout) { in waitForTetherStateChange() argument
226 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForTetherStateChange()
420 protected boolean waitForActiveNetworkConnection(long timeout) { in waitForActiveNetworkConnection() argument
427 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForActiveNetworkConnection()
[all …]
/frameworks/base/docs/html/tools/help/uiautomator/
DConfigurator.jd72 … <div class="jd-descrdiv">Gets the current timeout for waiting for an acknowledgment of generic
127 <div class="jd-descrdiv">Gets the timeout for waiting for an acknowledgement of an
146 … <div class="jd-descrdiv">Gets the current timeout used for waiting for the user interface to go
165 … <div class="jd-descrdiv">Gets the current timeout for waiting for a widget to become visible in
182 …etActionAcknowledgmentTimeout(long)">setActionAcknowledgmentTimeout</a></span>(long timeout)</nobr>
184 … <div class="jd-descrdiv">Sets the timeout for waiting for an acknowledgment of generic uiautomator
219 …etScrollAcknowledgmentTimeout(long)">setScrollAcknowledgmentTimeout</a></span>(long timeout)</nobr>
221 <div class="jd-descrdiv">Sets the timeout for waiting for an acknowledgement of an
238 …ympad"><a href="#setWaitForIdleTimeout(long)">setWaitForIdleTimeout</a></span>(long timeout)</nobr>
240 … <div class="jd-descrdiv">Sets the timeout for waiting for the user interface to go into an idle
[all …]
/frameworks/opt/net/voip/src/java/android/net/sip/
DISipSession.aidl116 void makeCall(in SipProfile callee, String sessionDescription, int timeout); in makeCall() argument
127 void answerCall(String sessionDescription, int timeout); in answerCall() argument
147 void changeCall(String sessionDescription, int timeout); in changeCall() argument
DSipSession.java401 int timeout) { in makeCall() argument
403 mSession.makeCall(callee, sessionDescription, timeout); in makeCall()
419 public void answerCall(String sessionDescription, int timeout) { in answerCall() argument
421 mSession.answerCall(sessionDescription, timeout); in answerCall()
452 public void changeCall(String sessionDescription, int timeout) { in changeCall() argument
454 mSession.changeCall(sessionDescription, timeout); in changeCall()
DSipAudioCall.java623 int timeout) throws SipException {
624 if (DBG) log("makeCall: " + peerProfile + " session=" + sipSession + " timeout=" + timeout);
636 timeout);
671 public void holdCall(int timeout) throws SipException {
672 if (DBG) log("holdCall: mSipSession" + mSipSession + " timeout=" + timeout);
679 mSipSession.changeCall(createHoldOffer().encode(), timeout);
696 public void answerCall(int timeout) throws SipException {
697 if (DBG) log("answerCall: mSipSession" + mSipSession + " timeout=" + timeout);
705 mSipSession.answerCall(createAnswer(mPeerSd).encode(), timeout);
725 public void continueCall(int timeout) throws SipException {
[all …]
/frameworks/base/core/java/android/os/
DConditionVariable.java117 public boolean block(long timeout) in block() argument
122 if (timeout != 0) { in block()
125 long end = now + timeout; in block()
DHandler.java461 public final boolean runWithScissors(final Runnable r, long timeout) { in runWithScissors() argument
465 if (timeout < 0) { in runWithScissors()
475 return br.postAndWait(this, timeout); in runWithScissors()
768 public boolean postAndWait(Handler handler, long timeout) { in postAndWait() argument
774 if (timeout > 0) { in postAndWait()
775 final long expirationTime = SystemClock.uptimeMillis() + timeout; in postAndWait()
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
DBlockingStateCallback.java145 public void waitForState(int state, long timeout) { in waitForState() argument
148 waitForAnyOfStates(Arrays.asList(stateArray), timeout); in waitForState() local
164 public int waitForAnyOfStates(Collection<Integer> states, final long timeout) { in waitForAnyOfStates() argument
176 long timeoutLeft = timeout; in waitForAnyOfStates()
199 s.append(timeout); in waitForAnyOfStates()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DGestureUtils.java27 int timeout, int distance, int actionIndex) { in eventsWithinTimeAndDistanceSlop() argument
28 if (isTimedOut(first, second, timeout)) { in eventsWithinTimeAndDistanceSlop()
43 public static boolean isTimedOut(MotionEvent firstUp, MotionEvent secondUp, int timeout) { in isTimedOut() argument
45 return (deltaTime >= timeout); in isTimedOut()
/frameworks/rs/
DrsSignal.cpp72 bool Signal::wait(uint64_t timeout) { in wait() argument
83 if (!timeout) { in wait()
87 status = pthread_cond_timeout_np(&mCondition, &mMutex, timeout / 1000000); in wait()
/frameworks/base/core/java/com/android/internal/os/
DTransferPipe.java79 String prefix, String[] args, long timeout) throws IOException, RemoteException { in go() argument
92 tp.go(out, timeout); in go()
104 String[] args, long timeout) throws IOException, RemoteException { in goDump() argument
117 tp.go(out, timeout); in goDump()
127 public void go(FileDescriptor out, long timeout) throws IOException { in go() argument
131 mEndTime = SystemClock.uptimeMillis() + timeout; in go()
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java51 private NtpTrustedTime(String server, long timeout) { in NtpTrustedTime() argument
54 mTimeout = timeout; in NtpTrustedTime()
69 final long timeout = Settings.Global.getLong( in getInstance() local
73 sSingleton = new NtpTrustedTime(server, timeout); in getInstance()
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerBaseTest.java189 public boolean waitForDownloadToFinish(long id, long timeout) throws InterruptedException { in waitForDownloadToFinish() argument
193 if (SystemClock.uptimeMillis() - startTime > timeout) { in waitForDownloadToFinish()
197 wait(timeout); in waitForDownloadToFinish()
211 public boolean waitForMultipleDownloadsToFinish(Set<Long> ids, long timeout) in waitForMultipleDownloadsToFinish() argument
216 if (SystemClock.uptimeMillis() - startTime > timeout) { in waitForMultipleDownloadsToFinish()
220 wait(timeout); in waitForMultipleDownloadsToFinish()
363 protected boolean waitForMultipleDownloads(Set<Long> ids, long timeout) in waitForMultipleDownloads() argument
365 return mListener.waitForMultipleDownloadsToFinish(ids, timeout); in waitForMultipleDownloads()
/frameworks/base/core/java/com/android/internal/app/
DNetInitiatedActivity.java52 private int timeout = -1; field in NetInitiatedActivity
98timeout = intent.getIntExtra(GpsNetInitiatedHandler.NI_INTENT_KEY_TIMEOUT, default_response_timeou… in onCreate()
100 …d(TAG, "onCreate() : notificationId: " + notificationId + " timeout: " + timeout + " default_respo… in onCreate()
102 … mHandler.sendMessageDelayed(mHandler.obtainMessage(GPS_NO_RESPONSE_TIME_OUT), (timeout * 1000)); in onCreate()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java95 public Result init(long timeout) { in init() argument
98 Result result = acquireLock(timeout); in init()
155 public Result acquire(long timeout) { in acquire() argument
162 Result result = acquireLock(timeout); in acquire()
185 private Result acquireLock(long timeout) { in acquireLock() argument
189 boolean acquired = lock.tryLock(timeout, TimeUnit.MILLISECONDS); in acquireLock()
/frameworks/av/media/libmedia/
DAudioTrackShared.cpp85 } timeout; in obtainBuffer() local
87 timeout = TIMEOUT_ZERO; in obtainBuffer()
89 timeout = TIMEOUT_ZERO; in obtainBuffer()
91 timeout = TIMEOUT_INFINITE; in obtainBuffer()
93 timeout = TIMEOUT_FINITE; in obtainBuffer()
183 switch (timeout) { in obtainBuffer()
191 timeout = TIMEOUT_CONTINUE; in obtainBuffer()
216 LOG_ALWAYS_FATAL("obtainBuffer() timeout=%d", timeout); in obtainBuffer()
388 } timeout; in waitStreamEndDone() local
390 timeout = TIMEOUT_ZERO; in waitStreamEndDone()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java38 public static void dumpAsync(Handler handler, final Dump dump, PrintWriter pw, long timeout) { in dumpAsync() argument
47 }, timeout)) { in dumpAsync()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraDeviceBinderTest.java385 verify(mMockCb, timeout(WAIT_FOR_COMPLETE_TIMEOUT_MS).times(1)).onResultReceived( in testCaptureResultCallbacks()
389 verify(mMockCb, timeout(WAIT_FOR_COMPLETE_TIMEOUT_MS).atLeast(NUM_CALLBACKS_CHECKED)) in testCaptureResultCallbacks()
403 verify(mMockCb, timeout(WAIT_FOR_COMPLETE_TIMEOUT_MS).times(1)).onCaptureStarted( in testCaptureStartedCallbacks()
408 verify(mMockCb, timeout(WAIT_FOR_COMPLETE_TIMEOUT_MS).atLeast(NUM_CALLBACKS_CHECKED)) in testCaptureStartedCallbacks()
435 verify(mMockCb, timeout(WAIT_FOR_IDLE_TIMEOUT_MS).times(1)).onDeviceIdle(); in testIdleCallback()
445 verify(mMockCb, timeout(WAIT_FOR_IDLE_TIMEOUT_MS).times(2)).onDeviceIdle(); in testIdleCallback()
475 verify(mMockCb, timeout(WAIT_FOR_FLUSH_TIMEOUT_MS).times(1)).onDeviceIdle(); in testFlush()
487 verify(mMockCb, timeout(WAIT_FOR_FLUSH_TIMEOUT_MS).times(2)).onDeviceIdle(); in testFlush()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DCaptureCollector.java311 public boolean queueRequest(RequestHolder holder, LegacyRequest legacy, long timeout, in queueRequest() argument
315 long nanos = unit.toNanos(timeout); in queueRequest()
367 public boolean waitForEmpty(long timeout, TimeUnit unit) throws InterruptedException { in waitForEmpty() argument
368 long nanos = unit.toNanos(timeout); in waitForEmpty()
392 public boolean waitForPreviewsEmpty(long timeout, TimeUnit unit) throws InterruptedException { in waitForPreviewsEmpty() argument
393 long nanos = unit.toNanos(timeout); in waitForPreviewsEmpty()
424 public boolean waitForRequestCompleted(RequestHolder holder, long timeout, TimeUnit unit, in waitForRequestCompleted() argument
427 long nanos = unit.toNanos(timeout); in waitForRequestCompleted()
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/
DAwaitableCompletionListener.java47 public void awaitOneCallback(long timeout, TimeUnit unit) throws InterruptedException, in awaitOneCallback() argument
49 if (mQueue.poll(timeout, unit) == null) { in awaitOneCallback()
/frameworks/base/core/tests/coretests/src/android/os/
DHandlerTester.java30 public void doTest(long timeout) { in doTest() argument
35 wait(timeout); in doTest()

12345678