Searched defs:timeout (Results 26 - 50 of 95) sorted by relevance

1234

/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/core/java/com/android/internal/app/
H A DNetInitiatedActivity.java52 private int timeout = -1; field in class:NetInitiatedActivity
99 timeout = intent.getIntExtra(GpsNetInitiatedHandler.NI_INTENT_KEY_TIMEOUT, default_response_timeout);
101 if (DEBUG) Log.d(TAG, "onCreate() : notificationId: " + notificationId + " timeout: " + timeout + " default_response:" + default_response);
103 mHandler.sendMessageDelayed(mHandler.obtainMessage(GPS_NO_RESPONSE_TIME_OUT), (timeout * 1000));
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbDeviceConnection.cpp145 jbyteArray buffer, jint length, jint timeout)
163 value, index, bufferBytes, length, timeout);
173 jint endpoint, jbyteArray buffer, jint length, jint timeout)
190 jint result = usb_device_bulk_transfer(device, endpoint, bufferBytes, length, timeout);
143 android_hardware_UsbDeviceConnection_control_request(JNIEnv *env, jobject thiz, jint requestType, jint request, jint value, jint index, jbyteArray buffer, jint length, jint timeout) argument
172 android_hardware_UsbDeviceConnection_bulk_request(JNIEnv *env, jobject thiz, jint endpoint, jbyteArray buffer, jint length, jint timeout) argument
H A Dandroid_util_EventLog.cpp165 struct timeval timeout = {0, 0}; local
172 timeout.tv_usec = 5000;
174 int r = select(fd + 1, &readset, NULL, NULL, &timeout);
/frameworks/base/core/tests/coretests/src/android/animation/
H A DViewPropertyAnimatorTest.java101 * Variant constructor that auto-releases the FutureWaiter after the specified timeout.
103 * @param timeout
105 public FutureReleaseListener(FutureWaiter future, long timeout) { argument
113 }, timeout);
302 // Set the listener to automatically timeout after an uncanceled animation
H A DEventsTest.java119 * Variant constructor that auto-releases the FutureWaiter after the specified timeout.
121 * @param timeout
123 public FutureReleaseListener(FutureWaiter future, long timeout) { argument
131 }, timeout);
416 // Set the listener to automatically timeout after an uncanceled animation
443 // Set the listener to automatically timeout after an uncanceled animation
/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/services/java/com/android/server/am/
H A DTransferPipe.java79 String prefix, String[] args, long timeout) throws IOException, RemoteException {
92 tp.go(out, timeout);
104 String[] args, long timeout) throws IOException, RemoteException {
117 tp.go(out, timeout);
127 void go(FileDescriptor out, long timeout) throws IOException { argument
131 mEndTime = SystemClock.uptimeMillis() + timeout;
78 go(Caller caller, IInterface iface, FileDescriptor out, String prefix, String[] args, long timeout) argument
103 goDump(IBinder binder, FileDescriptor out, String[] args, long timeout) argument
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
H A DLoadTestsAutoTest.java218 private void runTestAndWaitUntilDone(TestShellActivity activity, String url, int timeout) { argument
258 intent.putExtra(TestShellActivity.TIMEOUT_IN_MILLIS, timeout);
H A DLayoutTestsAutoTest.java305 private void runTestAndWaitUntilDone(TestShellActivity activity, String test, int timeout, boolean ignoreResult, int testNumber) { argument
315 Log.v(LOGTAG, "layout timeout: " + url);
344 intent.putExtra(TestShellActivity.TIMEOUT_IN_MILLIS, timeout);
390 int timeout = runner.mTimeoutInMillis;
391 if (timeout <= 0) {
392 timeout = DEFAULT_TIMEOUT_IN_MILLIS;
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
H A DTextToSpeechTests.java225 public static void awaitCountDown(CountDownLatch latch, long timeout, TimeUnit unit) argument
227 Assert.assertTrue("Waited too long for method call", latch.await(timeout, unit));
/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);
/frameworks/native/libs/ui/
H A DFence.cpp45 status_t Fence::wait(unsigned int timeout) { argument
50 int err = sync_wait(mFenceFd, timeout);
/frameworks/rs/
H A DrsThreadIO.cpp100 void ThreadIO::setTimeoutCallback(void (*cb)(void *), void *dat, uint64_t timeout) { argument
101 //mToCore.setTimeoutCallback(cb, dat, timeout);
141 // exception or timeout occurred.
/frameworks/support/renderscript/v8/rs_support/
H A DrsThreadIO.cpp100 void ThreadIO::setTimeoutCallback(void (*cb)(void *), void *dat, uint64_t timeout) { argument
101 //mToCore.setTimeoutCallback(cb, dat, timeout);
141 // exception or timeout occurred.
/frameworks/support/volley/tests/src/com/android/volley/
H A DRequestQueueTest.java146 public void waitUntilExpectedDone(long timeout) argument
148 if (mSemaphore.tryAcquire(timeout, TimeUnit.MILLISECONDS) == false) {
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/
H A DUiAutomatorBridge.java137 public void waitForIdle(long timeout) { argument
138 waitForIdle(QUIET_TIME_TO_BE_CONSIDERD_IDLE_STATE, timeout);
/frameworks/av/services/camera/libcameraservice/camera2/
H A DCaptureSequencer.cpp76 status_t CaptureSequencer::waitUntilIdle(nsecs_t timeout) { argument
84 res = mStateChanged.waitRelative(mStateMutex, timeout);
87 timeout -= (systemTime() - startTime);
/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/core/java/android/net/
H A DDnsPinger.java59 /** Short socket timeout so we don't block one any 'receive' call */
90 * Send a new ping via a socket. arg1 is ID, arg2 is timeout, obj is InetAddress to ping
103 int timeout; field in class:DnsPinger.ActivePing
147 newActivePing.timeout = msg.arg2;
204 // A timeout here doesn't mean anything - squelsh this exception
220 curPing.start + curPing.timeout) {
264 * @param timeout timeout for ping
267 public int pingDnsAsync(InetAddress dns, int timeout, int delay) { argument
269 sendMessageDelayed(obtainMessage(ACTION_PING_DNS, id, timeout,
[all...]
/frameworks/base/core/java/android/nfc/tech/
H A DMifareClassic.java588 * Set the {@link #transceive} timeout in milliseconds.
590 * <p>The timeout only applies to {@link #transceive} on this object,
593 * <p>Setting a longer timeout may be useful when performing
599 * @param timeout timeout value in milliseconds
601 public void setTimeout(int timeout) { argument
603 int err = mTag.getTagService().setTimeout(TagTechnology.MIFARE_CLASSIC, timeout);
605 throw new IllegalArgumentException("The supplied timeout is not valid");
613 * Get the current {@link #transceive} timeout in milliseconds.
617 * @return timeout valu
[all...]
/frameworks/base/core/java/android/os/
H A DAsyncTask.java489 * @param timeout Time to wait before cancelling the operation.
490 * @param unit The time unit for the timeout.
500 public final Result get(long timeout, TimeUnit unit) throws InterruptedException, argument
502 return mFuture.get(timeout, unit);
/frameworks/base/services/java/com/android/server/power/
H A DShutdownThread.java373 private void shutdownRadios(int timeout) { argument
376 final long endTime = SystemClock.elapsedRealtime() + timeout;
475 t.join(timeout);
/frameworks/base/test-runner/src/android/test/
H A DIsolatedContext.java182 public T getResult(long timeout, TimeUnit unit) argument
/frameworks/base/tests/BrowserPowerTest/src/com/android/browserpowertest/
H A DPowerTestActivity.java115 private void navigate(String url, int timeout) { argument
128 if(timeout != 0) {
129 //set a timer with specified timeout (in ms)
131 timeout);
159 Log.v(LOGTAG, "Page timeout triggered, progress = " + progress);

Completed in 1514 milliseconds

1234