Searched defs:timeout (Results 1 - 25 of 115) sorted by relevance

12345

/frameworks/base/core/java/android/accounts/
H A DAccountManagerFuture.java101 * will be thrown rather than the call returning normally. If a timeout is specified then
103 * @param timeout the maximum time to wait
104 * @param unit the time unit of the timeout argument. This must not be null.
113 V getResult(long timeout, TimeUnit unit) argument
/frameworks/base/core/java/android/os/
H A DConditionVariable.java107 * timeout milliseconds have passed.
112 * @param timeout the maximum 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;
/frameworks/rs/
H A DrsSignal.cpp72 bool Signal::wait(uint64_t timeout) { argument
83 if (!timeout) {
87 status = pthread_cond_timeout_np(&mCondition, &mMutex, timeout / 1000000);
/frameworks/base/core/java/com/android/internal/util/
H A DDumpUtils.java35 * trying to acquire, we use a short timeout to avoid deadlocks. The process
38 public static void dumpAsync(Handler handler, final Dump dump, PrintWriter pw, long timeout) { argument
47 }, 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/ex/variablespeed/tests/src/com/android/ex/variablespeed/
H A DAwaitableCompletionListener.java47 public void awaitOneCallback(long timeout, TimeUnit unit) throws InterruptedException, argument
49 if (mQueue.poll(timeout, unit) == null) {
H A DAwaitableErrorListener.java55 public void awaitOneCallback(long timeout, TimeUnit unit) throws InterruptedException, argument
57 if (mQueue.poll(timeout, unit) == null) {
/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.java131 * Set the {@link #transceive} timeout in milliseconds.
133 * <p>The timeout only applies to {@link #transceive} on this object,
136 * <p>Setting a longer timeout may be useful when performing
142 * @param timeout timeout value in milliseconds
144 public void setTimeout(int timeout) { argument
146 int err = mTag.getTagService().setTimeout(TagTechnology.NFC_F, timeout);
148 throw new IllegalArgumentException("The supplied timeout is not valid");
156 * Get the current {@link #transceive} timeout in milliseconds.
160 * @return timeout valu
[all...]
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/native/services/sensorservice/
H A DSensorDevice.h48 BatchParams(int flag, nsecs_t delay, nsecs_t timeout): flags(flag), batchDelay(delay), argument
49 batchTimeout(timeout) { }
56 // Store batch parameters in the KeyedVector and the optimal batch_rate and timeout in
58 // vector. A continuous mode request is batch(... timeout=0 ..) followed by activate(). A batch
59 // mode request is batch(... timeout > 0 ...) followed by activate().
90 // Call batch with timeout zero instead of calling setDelay() for newer devices.
/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/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DConfigurator.java35 // This short timeout to make sure we get the very last in cases where the above isn't true.
62 * Sets the timeout for waiting for the user interface to go into an idle
68 * timeout elapses (whichever occurs first), the object will start to wait
72 * @param timeout Timeout value in milliseconds
76 public Configurator setWaitForIdleTimeout(long timeout) { argument
77 mWaitForIdleTimeout = timeout;
82 * Gets the current timeout used for waiting for the user interface to go
88 * timeout elapses (whichever occurs first), the object will start to wait
92 * @return Current timeout value in milliseconds
100 * Sets the timeout fo
112 setWaitForSelectorTimeout(long timeout) argument
146 setScrollAcknowledgmentTimeout(long timeout) argument
180 setActionAcknowledgmentTimeout(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/java/android/bluetooth/
H A DBluetoothServerSocket.java113 * timeout
120 * Block until a connection is established, with timeout.
127 * timeout
129 public BluetoothSocket accept(int timeout) throws IOException { argument
130 return mSocket.accept(timeout);
/frameworks/base/core/java/android/net/
H A DSntpClient.java69 * @param timeout network timeout in milliseconds.
72 public boolean requestTime(String host, int timeout) { argument
76 socket.setSoTimeout(timeout);
/frameworks/base/core/java/android/util/
H A DNtpTrustedTime.java51 private NtpTrustedTime(String server, long timeout) { argument
54 mTimeout = timeout;
69 final long timeout = Settings.Global.getLong(
73 sSingleton = new NtpTrustedTime(server, timeout);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderAction.java88 * @param timeout the time to wait if another rendering is happening.
95 public Result init(long timeout) { argument
98 Result result = acquireLock(timeout);
139 * The preparation can fail if another rendering took too long and the timeout was elapsed.
147 * @param timeout the time to wait if another rendering is happening.
155 public Result acquire(long timeout) { argument
162 Result result = acquireLock(timeout);
179 * @param timeout the time to wait if another rendering is happening.
185 private Result acquireLock(long timeout) { argument
189 boolean acquired = lock.tryLock(timeout, TimeUni
[all...]
/frameworks/volley/src/com/android/volley/toolbox/
H A DRequestFuture.java95 public T get(long timeout, TimeUnit unit) argument
97 return doGet(TimeUnit.MILLISECONDS.convert(timeout, unit));
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DJpegCompressor.cpp159 bool JpegCompressor::waitForDone(nsecs_t timeout) { argument
164 res = mDone.waitRelative(mBusyMutex, timeout);
/frameworks/base/core/java/android/net/http/
H A DAndroidHttpClientConnection.java190 public void setSocketTimeout(int timeout) { argument
194 this.socket.setSoTimeout(timeout);
435 * that by attempting a read with a very small timeout. Thus this
/frameworks/base/core/java/android/view/
H A DWindowManagerInternal.java175 public abstract void waitForAllWindowsDrawn(Runnable callback, long timeout); argument
/frameworks/base/core/java/com/android/internal/app/
H A DNetInitiatedActivity.java52 private int timeout = -1; field in class:NetInitiatedActivity
98 timeout = intent.getIntExtra(GpsNetInitiatedHandler.NI_INTENT_KEY_TIMEOUT, default_response_timeout);
100 if (DEBUG) Log.d(TAG, "onCreate() : notificationId: " + notificationId + " timeout: " + timeout + " default_response:" + default_response);
102 mHandler.sendMessageDelayed(mHandler.obtainMessage(GPS_NO_RESPONSE_TIME_OUT), (timeout * 1000));

Completed in 570 milliseconds

12345