Searched refs:timeout (Results 1 - 25 of 69) sorted by relevance

123

/frameworks/base/core/java/android/os/
H A DConditionVariable.java107 * timeout milliseconds have passed.
112 * @param timeout the minimum 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;
H A DIPowerManager.aidl32 void clearUserActivityTimeout(long now, long timeout);
H A DAsyncTask.java347 * @param timeout Time to wait before cancelling the operation.
348 * @param unit The time unit for the timeout.
358 public final Result get(long timeout, TimeUnit unit) throws InterruptedException, argument
360 return mFuture.get(timeout, unit);
H A DPowerManager.java263 * the wake lock. The lock will be released after the given timeout.
265 * @param timeout Release the lock after the give timeout in milliseconds.
267 public void acquire(long timeout) { argument
269 mHandler.postDelayed(mReleaser, timeout);
/frameworks/base/voip/java/android/net/sip/
H A DISipSession.aidl112 * @param timeout the session will be timed out if the call is not
113 * established within {@code timeout} seconds
116 void makeCall(in SipProfile callee, String sessionDescription, int timeout);
124 * @param timeout the session will be timed out if the call is not
125 * established within {@code timeout} seconds
127 void answerCall(String sessionDescription, int timeout);
144 * @param timeout the session will be timed out if the call is not
145 * established within {@code timeout} seconds
147 void changeCall(String sessionDescription, int timeout);
H A DSipSession.java381 * @param timeout the session will be timed out if the call is not
382 * established within {@code timeout} seconds. Default value (defined
383 * by SIP protocol) is used if {@code timeout} is zero or negative.
387 int timeout) {
389 mSession.makeCall(callee, sessionDescription, timeout);
401 * @param timeout the session will be timed out if the call is not
402 * established within {@code timeout} seconds. Default value (defined
403 * by SIP protocol) is used if {@code timeout} is zero or negative.
405 public void answerCall(String sessionDescription, int timeout) { argument
407 mSession.answerCall(sessionDescription, timeout);
386 makeCall(SipProfile callee, String sessionDescription, int timeout) argument
438 changeCall(String sessionDescription, int timeout) argument
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothServerSocket.java88 * timeout
95 * Block until a connection is established, with timeout.
102 * timeout
104 public BluetoothSocket accept(int timeout) throws IOException { argument
105 return mSocket.accept(timeout);
H A DIBluetooth.aidl42 boolean setDiscoverableTimeout(int timeout);
/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/java/android/accounts/
H A DAccountManagerFuture.java103 * will be thrown rather than the call returning normally. If a timeout is specified then
105 * @param timeout the maximum time to wait
106 * @param unit the time unit of the timeout argument. This must not be null.
115 V getResult(long timeout, TimeUnit unit) argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderAction.java79 * @param timeout the time to wait if another rendering is happening.
86 public Result init(long timeout) { argument
89 Result result = acquireLock(timeout);
121 * The preparation can fail if another rendering took too long and the timeout was elapsed.
129 * @param timeout the time to wait if another rendering is happening.
137 public Result acquire(long timeout) { argument
144 Result result = acquireLock(timeout);
161 * @param timeout the time to wait if another rendering is happening.
167 private Result acquireLock(long timeout) { argument
171 boolean acquired = lock.tryLock(timeout, TimeUni
[all...]
/frameworks/base/core/java/android/nfc/
H A DINfcTag.aidl44 void setIsoDepTimeout(int timeout);
/frameworks/base/core/java/android/nfc/tech/
H A DIsoDep.java80 * Set the timeout of {@link #transceive} in milliseconds.
81 * <p>The timeout only applies to ISO-DEP {@link #transceive}, and is
83 * <p>Setting a longer timeout may be useful when performing
89 * @param timeout timeout value in milliseconds
91 public void setTimeout(int timeout) { argument
93 mTag.getTagService().setIsoDepTimeout(timeout);
/frameworks/base/voip/java/com/android/server/sip/
H A DSipWakeLock.java42 synchronized void acquire(long timeout) { argument
48 mTimerWakeLock.acquire(timeout);
H A DSipSessionGroup.java406 void start(final int timeout) { argument
409 sleep(timeout);
410 if (mRunning) timeout();
420 private void timeout() { method in class:SipSessionGroup.SipSessionImpl.SessionTimer
426 private synchronized void sleep(int timeout) { argument
428 this.wait(timeout * 1000);
524 int timeout) {
526 timeout));
529 public void answerCall(String sessionDescription, int timeout) { argument
534 sessionDescription, timeout));
523 makeCall(SipProfile peerProfile, String sessionDescription, int timeout) argument
545 changeCall(String sessionDescription, int timeout) argument
1144 startSessionTimer(int timeout) argument
1423 MakeCallCommand(SipProfile peerProfile, String sessionDescription, int timeout) argument
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DDatagramTest.java168 // Regression test for issue 1018003: DatagramSocket ignored a set timeout.
172 int timeout = 5000;
177 sock.setSoTimeout(timeout);
182 if (Math.abs(delay - timeout) > 1000) {
183 fail("timeout was not accurate. expected: " + timeout
H A DURLTest.java194 int timeout = 5000;
206 if (Math.abs(timeout - delay) > 1000) {
208 " instead of " + timeout + "miliseconds");
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/usbhost/
H A Dusbhost.h187 unsigned int timeout);
196 unsigned int 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/services/surfaceflinger/
H A DMessageQueue.cpp63 sp<MessageBase> MessageQueue::waitMessage(nsecs_t timeout) argument
69 const nsecs_t timeoutTime = systemTime() + timeout;
98 if (timeout >= 0) {
/frameworks/base/opengl/include/EGL/
H A Deglext.h142 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
148 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
206 EGLint eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
213 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
/frameworks/base/core/java/android/net/
H A DSntpClient.java71 * @param timeout network timeout in milliseconds.
74 public boolean requestTime(String host, int timeout) { argument
78 socket.setSoTimeout(timeout);
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestActivity.java361 public boolean waitForNetworkState(int networkType, State expectedState, long timeout) { argument
364 if ((System.currentTimeMillis() - startTime) > timeout) {
395 public boolean waitForWifiState(int expectedState, long timeout) { argument
398 if ((System.currentTimeMillis() - startTime) > timeout) {
423 public boolean waitForWifiAPState(int expectedState, long timeout) { argument
426 if ((System.currentTimeMillis() - startTime) > timeout) {
451 * @param timeout is the maximum waiting time
455 public int waitForTetherStateChange(long timeout) { argument
458 if ((System.currentTimeMillis() - startTime) > timeout) {
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
H A DBridgeRenderSession.java84 public Result render(long timeout) { argument
87 mLastResult = mSession.acquire(timeout);

Completed in 734 milliseconds

123