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

12

/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 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.java238 * the wake lock. The lock will be released after the given timeout.
240 * @param timeout Release the lock after the give timeout in milliseconds.
242 public void acquire(long timeout) { argument
244 mHandler.postDelayed(mReleaser, timeout);
/frameworks/base/libs/ui/
H A DSurfaceFlingerSynchro.cpp67 status_t SurfaceFlingerSynchro::Barrier::waitAndClose(nsecs_t timeout) argument
73 int err = cv.waitRelative(lock, timeout);
108 status_t SurfaceFlingerSynchro::wait(nsecs_t timeout) argument
110 if (timeout == 0)
112 return mBarrier.waitAndClose(timeout);
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/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/net/
H A DSntpClient.java71 * @param timeout network timeout in milliseconds.
74 public boolean requestTime(String host, int timeout) { argument
77 socket.setSoTimeout(timeout);
H A DLocalSocket.java238 public void connect(LocalSocketAddress endpoint, int timeout) argument
H A DLocalSocketImpl.java230 /** note timeout presently ignored */
231 protected void connect(LocalSocketAddress address, int timeout) argument
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
H A DLoadTestsAutoTest.java164 private void runTestAndWaitUntilDone(TestShellActivity activity, String url, int timeout) { argument
182 intent.putExtra(TestShellActivity.TIMEOUT_IN_MILLIS, timeout);
H A DLayoutTestsAutoTest.java282 private void runTestAndWaitUntilDone(TestShellActivity activity, String test, int timeout) { argument
316 intent.putExtra(TestShellActivity.TIMEOUT_IN_MILLIS, timeout);
363 int timeout = runner.mTimeoutInMillis;
364 if (timeout <= 0) {
365 timeout = DEFAULT_TIMEOUT_IN_MILLIS;
H A DReliabilityTestActivity.java103 private void navigate(String url, int timeout) { argument
116 if(timeout != 0) {
117 //set a timer with specified timeout (in ms)
119 timeout);
147 Log.v(LOGTAG, "Page timeout triggered, progress = " + progress);
252 Log.v(LOGTAG, "JavaScript timeout, count=" + timeoutCounter);
/frameworks/base/awt/java/awt/
H A DEventQueueCore.java240 synchronized boolean isEmpty(long timeout) { argument
245 wait(timeout);
/frameworks/base/cmds/dumpstate/
H A Dutils.c103 int run_command(struct Command* cmd, int timeout) { argument
123 if (timeout) {
131 alarm(timeout);
/frameworks/base/core/java/android/net/http/
H A DAndroidHttpClientConnection.java194 public void setSocketTimeout(int timeout) { argument
198 this.socket.setSoTimeout(timeout);
439 * that by attempting a read with a very small timeout. Thus this
/frameworks/base/libs/utils/
H A Dfutex_synchro.c40 int futex (int *uaddr, int op, int val, const struct timespec *timeout, int *uaddr2, int val3) argument
42 int err = syscall(SYS_futex, uaddr, op, val, timeout, uaddr2, val3);
46 int __futex_wait(volatile void *ftx, int val, const struct timespec *timeout) argument
48 return futex((int*)ftx, FUTEX_WAIT, val, timeout, NULL, 0);
73 int __futex_wait(volatile void *ftx, int val, const struct timespec *timeout);
H A DThreads.cpp662 DWORD timeout = INFINITE; local
667 timeout = reltime/1000000;
672 SignalObjectAndWait(hMutex, condState->sema, timeout, FALSE);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothDevice.java237 public void setDiscoverableTimeout(int timeout) { argument
239 mService.setDiscoverableTimeout(timeout);
/frameworks/base/core/java/android/widget/
H A DMediaController.java254 * automatically after 'timeout' milliseconds of inactivity.
255 * @param timeout The timeout in milliseconds. Use 0 to show
258 public void show(int timeout) { argument
288 if (timeout != 0) {
290 mHandler.sendMessageDelayed(msg, timeout);
/frameworks/base/core/jni/
H A Dandroid_net_LocalSocketImpl.cpp344 * send and receive timeouts. Note: The incoming timeout
347 struct timeval timeout; local
348 timeout.tv_sec = intValue / 1000;
349 timeout.tv_usec = (intValue % 1000) * 1000;
352 (void *)&timeout, sizeof(timeout));
356 (void *)&timeout, sizeof(timeout));
/frameworks/base/media/libmedia/
H A DAudioRecord.cpp378 int timeout = 0; local
398 timeout = 0;
405 timeout = 1;
418 LOGW_IF(timeout,
H A DAudioTrack.cpp587 int timeout = 0; local
609 timeout = 0;
623 timeout = 1;
651 LOGW_IF(timeout,
906 // If stepServer() has been called once, switch to normal obtainBuffer() timeout period
929 // the code below simulates lock-with-timeout
949 // we switch to normal obtainBuffer() timeout period
/frameworks/base/tests/CoreTests/android/core/
H A DSSLSocketTest.java80 int delay, int timeout) throws IOException {
87 if (timeout >= 0) {
89 socket.setSoTimeout(timeout * 1000);
182 int delay, int timeout) throws IOException {
184 delay, timeout);
230 * stays within a reasonable timeout. Expectation is that the connection
250 // Seems to have a veeeery long timeout.
253 // Google has a 60s timeout, so 90s of waiting should trigger it.
256 fail("Oops - timeout expected.");
275 fail("Oops - timeout expecte
78 fetch(SSLSocketFactory socketFactory, String host, int port, boolean secure, String path, int outerLoop, int innerLoop, int delay, int timeout) argument
180 fetch(String host, int port, boolean secure, String path, int outerLoop, int innerLoop, int delay, int timeout) argument
[all...]
H A DTestWebServer.java47 /* timeout on client connections */
48 int timeout = 0; field in class:TestWebServer
56 /* Default socket timeout value */
70 /* timeout on client connections */
103 * Initialize a new server with default port and timeout.
111 * Initialize a new server with default timeout.
120 * Initialize a new server with default port and timeout.
122 * @param timeout Indicates the period of time to wait until a socket is
126 public void initServer(int port, int timeout, boolean log) throws Exception { argument
128 mTimeout = timeout;
[all...]
/frameworks/base/services/java/com/android/server/
H A DWifiWatchdogService.java1215 static boolean isDnsReachable(int dns, int timeout) { argument
1220 socket.setSoTimeout(timeout);
1237 // Wait for reply (blocks for the above timeout)
1241 // If a timeout occurred, an exception would have been thrown. We got a reply!

Completed in 388 milliseconds

12