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

123456

/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;
/frameworks/base/core/java/android/hardware/usb/
H A DUsbDeviceConnection.java119 * @param timeout in milliseconds
124 int index, byte[] buffer, int length, int timeout) {
125 return native_control_request(requestType, request, value, index, buffer, length, timeout);
135 * @param timeout in milliseconds
139 public int bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int length, int timeout) { argument
140 return native_bulk_request(endpoint.getAddress(), buffer, length, timeout);
178 int index, byte[] buffer, int length, int timeout);
179 private native int native_bulk_request(int endpoint, byte[] buffer, int length, int timeout); argument
123 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout) argument
177 native_control_request(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout) argument
/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);
/frameworks/av/libvideoeditor/osal/src/
H A DM4OSA_Mutex.c119 * "timeout" is reached. This is a blocking call.
121 * @param timeout:(IN) Time out in milliseconds
129 M4OSA_ERR M4OSA_mutexLock(M4OSA_Context context, M4OSA_UInt32 timeout) argument
138 context, timeout);
154 if ( M4OSA_WAIT_FOREVER == timeout)
165 while ( ( EBUSY == result ) && ( 0 < timeout ) )
168 if (1 <= timeout)
171 timeout -= 1;
175 ts.tv_nsec = timeout * 1000000;
176 timeout
[all...]
H A DM4OSA_Semaphore.c118 * @note If "timeout" value is M4OSA_WAIT_FOREVER, the calling thread
121 * @param timeout:(IN) Time out in milliseconds
129 M4OSA_ERR M4OSA_semaphoreWait(M4OSA_Context context, M4OSA_Int32 timeout) argument
137 context, timeout);
145 if ( (M4OSA_Int32)M4OSA_WAIT_FOREVER == timeout)
158 while ( ((EBUSY == result) || (EAGAIN == result)) && ( 0 < timeout ) )
161 if (1 <= timeout)
164 timeout -= 1;
168 ts.tv_nsec = timeout * 1000000;
169 timeout
[all...]
/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/av/libvideoeditor/osal/inc/
H A DM4OSA_Mutex.h42 M4OSA_UInt32 timeout );
H A DM4OSA_Semaphore.h43 M4OSA_Int32 timeout );
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
H A DKeyguardSecurityCallback.java29 * Manually report user activity to keep the device awake. If timeout is 0,
30 * uses user-defined timeout.
31 * @param timeout
33 void userActivity(long timeout); argument
/frameworks/rs/
H A DrsSignal.h36 // false for timeout
37 bool wait(uint64_t timeout = 0);
H A DrsSignal.cpp71 bool Signal::wait(uint64_t timeout) { argument
82 if (!timeout) {
86 status = pthread_cond_timeout_np(&mCondition, &mMutex, timeout / 1000000);
/frameworks/support/renderscript/v8/rs_support/
H A DrsSignal.h36 // false for timeout
37 bool wait(uint64_t timeout = 0);
H A DrsSignal.cpp71 bool Signal::wait(uint64_t timeout) { argument
82 if (!timeout) {
86 status = pthread_cond_timeout_np(&mCondition, &mMutex, timeout / 1000000);
/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/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/core/java/android/util/
H A DNtpTrustedTime.java46 private NtpTrustedTime(String server, long timeout) { argument
49 mTimeout = timeout;
64 final long timeout = Settings.Global.getLong(
68 sSingleton = new NtpTrustedTime(server, timeout);
/frameworks/base/services/java/com/android/server/accessibility/
H A DGestureUtils.java27 int timeout, int distance, int actionIndex) {
28 if (isTimedOut(first, second, timeout)) {
43 public static boolean isTimedOut(MotionEvent firstUp, MotionEvent secondUp, int timeout) { argument
45 return (deltaTime >= timeout);
26 eventsWithinTimeAndDistanceSlop(MotionEvent first, MotionEvent second, int timeout, int distance, int actionIndex) argument
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothServerSocket.java114 * timeout
121 * Block until a connection is established, with timeout.
128 * timeout
130 public BluetoothSocket accept(int timeout) throws IOException { argument
131 return mSocket.accept(timeout);
/frameworks/base/core/java/android/nfc/
H A DINfcTag.aidl43 int setTimeout(int technology, int timeout);
/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...]

Completed in 263 milliseconds

123456