Searched defs:timeout (Results 51 - 75 of 95) sorted by relevance

1234

/frameworks/base/voip/java/android/net/sip/
H A DSipManager.java304 * out if the call is not established within {@code timeout} seconds and
312 * @param timeout the timeout value in seconds. Default value (defined by
313 * SIP protocol) is used if {@code timeout} is zero or negative.
321 SipProfile peerProfile, SipAudioCall.Listener listener, int timeout)
329 call.makeCall(peerProfile, s, timeout);
335 * timed out if the call is not established within {@code timeout} seconds
344 * @param timeout the timeout value in seconds. Default value (defined by
345 * SIP protocol) is used if {@code timeout} i
320 makeAudioCall(SipProfile localProfile, SipProfile peerProfile, SipAudioCall.Listener listener, int timeout) argument
352 makeAudioCall(String localProfileUri, String peerProfileUri, SipAudioCall.Listener listener, int timeout) argument
[all...]
H A DSipSession.java395 * @param timeout the session will be timed out if the call is not
396 * established within {@code timeout} seconds. Default value (defined
397 * by SIP protocol) is used if {@code timeout} is zero or negative.
401 int timeout) {
403 mSession.makeCall(callee, sessionDescription, timeout);
415 * @param timeout the session will be timed out if the call is not
416 * established within {@code timeout} seconds. Default value (defined
417 * by SIP protocol) is used if {@code timeout} is zero or negative.
419 public void answerCall(String sessionDescription, int timeout) { argument
421 mSession.answerCall(sessionDescription, timeout);
400 makeCall(SipProfile callee, String sessionDescription, int timeout) argument
452 changeCall(String sessionDescription, int timeout) argument
[all...]
H A DSipAudioCall.java615 * timed out if the call is not established within {@code timeout} seconds
621 * @param timeout the timeout value in seconds. Default value (defined by
622 * SIP protocol) is used if {@code timeout} is zero or negative.
629 int timeout) throws SipException {
641 timeout);
665 * within {@code timeout} seconds and
669 * @param timeout the timeout value in seconds. Default value (defined by
670 * SIP protocol) is used if {@code timeout} i
628 makeCall(SipProfile peerProfile, SipSession sipSession, int timeout) argument
674 holdCall(int timeout) argument
697 answerCall(int timeout) argument
724 continueCall(int timeout) argument
[all...]
/frameworks/native/services/surfaceflinger/
H A DEventThread.cpp273 // use a 16ms timeout instead. It doesn't need to be
277 // use a (long) timeout when waiting for h/w vsync, and
280 nsecs_t timeout = softwareSync ? ms2ns(16) : ms2ns(1000); local
281 if (mCondition.waitRelative(mLock, timeout) == TIMED_OUT) {
/frameworks/support/v4/java/android/support/v4/content/
H A DModernAsyncTask.java328 * @param timeout Time to wait before cancelling the operation.
329 * @param unit The time unit for the timeout.
339 public final Result get(long timeout, TimeUnit unit) throws InterruptedException, argument
341 return mFuture.get(timeout, unit);
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/
H A DInteractionController.java101 // Read the long press timeout setting.
131 String message = "Error reading long press timeout setting.";
144 * timeout period specified, the call will return anyway.
147 * @param timeout
149 * @return True if busy state is detected else false for timeout waiting for busy state
151 public boolean clickAndWaitForEvent(final int x, final int y, long timeout, argument
153 return clickAndWaitForEvents(x, y, timeout, false, eventType);
162 * @param timeout
167 public boolean clickAndWaitForEvents(final int x, final int y, long timeout, argument
169 String logString = String.format("clickAndWaitForEvents(%d, %d, %d, %s, %d)", x, y, timeout,
193 runAndWaitForEvent(Runnable command, long timeout, int eventType) argument
207 runAndWaitForEvents(Runnable command, long timeout, final boolean waitForAll, final int eventTypesMask) argument
267 sendKeyAndWaitForEvent(final int keyCode, final int metaState, final int eventType, long timeout) argument
317 clickAndWaitForNewWindow(final int x, final int y, long timeout) argument
[all...]
H A DUiObject.java37 // set a default timeout to 5.5s, since ANR threshold is 5s
131 * @param timeout in milliseconds
134 protected AccessibilityNodeInfo findAccessibilityNodeInfo(long timeout) { argument
145 while (currentMills <= timeout) {
153 if(timeout > 0) {
330 * @param timeout timeout before giving up on waiting for a new window
334 public boolean clickAndWaitForNewWindow(long timeout) throws UiObjectNotFoundException { argument
341 rect.centerX(), rect.centerY(), timeout);
684 * until the timeout ha
690 waitForExists(long timeout) argument
714 waitUntilGone(long timeout) argument
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothSocket.java388 /*package*/ BluetoothSocket accept(int timeout) throws IOException { argument
H A DBluetoothAdapter.java721 public void setDiscoverableTimeout(int timeout) { argument
725 if (mService != null) mService.setDiscoverableTimeout(timeout);
/frameworks/base/core/java/android/net/
H A DLocalSocketImpl.java230 /** note timeout presently ignored */
231 protected void connect(LocalSocketAddress address, int timeout) argument
/frameworks/base/core/java/android/os/
H A DHandler.java434 * If timeout occurs then this method returns <code>false</code> but the runnable
439 * @param timeout The timeout in milliseconds, or 0 to wait indefinitely.
449 public final boolean runWithScissors(final Runnable r, long timeout) { argument
453 if (timeout < 0) {
454 throw new IllegalArgumentException("timeout must be non-negative");
463 return br.postAndWait(this, timeout);
754 public boolean postAndWait(Handler handler, long timeout) { argument
760 if (timeout > 0) {
761 final long expirationTime = SystemClock.uptimeMillis() + timeout;
[all...]
H A DPowerManager.java266 * User activity flag: Do not restart the user activity timeout or brighten
286 * Go to sleep reason code: Going to sleep due to a screen timeout.
689 * Acquires the wake lock with a timeout.
692 * the wake lock was created. The lock will be released after the given timeout
696 * @param timeout The timeout after which to release the wake lock, in milliseconds.
698 public void acquire(long timeout) { argument
701 mHandler.postDelayed(mReleaser, timeout);
/frameworks/base/core/jni/
H A Dandroid_net_LocalSocketImpl.cpp342 * send and receive timeouts. Note: The incoming timeout
345 struct timeval timeout; local
346 timeout.tv_sec = intValue / 1000;
347 timeout.tv_usec = (intValue % 1000) * 1000;
350 (void *)&timeout, sizeof(timeout));
354 (void *)&timeout, sizeof(timeout));
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
H A DConnectionUtil.java358 * @param timeout to wait for download to finish
361 public boolean startDownloadAndWait(String targetUrl, long timeout) { argument
371 if ((System.currentTimeMillis() - startTime) > timeout) {
373 " within " + timeout);
431 * @param timeout in milliseconds
434 public boolean waitForNetworkState(int networkType, State expectedState, long timeout) { argument
437 if ((System.currentTimeMillis() - startTime) > timeout) {
480 * Wait for a given wifi state to occur within a given timeout.
482 * @param timeout for the state to be set in milliseconds.
483 * @return true if the state was achieved within the timeout, fals
485 waitForWifiState(int expectedState, long timeout) argument
[all...]
/frameworks/base/location/java/com/android/internal/location/
H A DGpsNetInitiatedHandler.java54 public static final String NI_INTENT_KEY_TIMEOUT = "timeout";
105 public int timeout; field in class:GpsNetInitiatedHandler.GpsNiNotification
168 // A note about timeout
172 // In some GPS hardware, the GPS driver (under HAL) can handle the timeout case
175 // However, the UI should at least close the dialog when timeout. Further,
176 // for more general handling, timeout response should be added to the Handler here.
248 intent.putExtra(NI_INTENT_KEY_TIMEOUT, notif.timeout);
252 ", timeout: " + notif.timeout);
/frameworks/base/services/input/
H A DPointerController.cpp197 // Remove the inactivity timeout, since we are fading now.
474 nsecs_t timeout = mLocked.inactivityTimeout == INACTIVITY_TIMEOUT_SHORT local
476 mLooper->sendMessageDelayed(timeout, mHandler, MSG_INACTIVITY_TIMEOUT);
/frameworks/base/services/java/com/android/server/
H A DNativeDaemonConnector.java291 * final terminal response. Note that the timeout does not count time in
299 public NativeDaemonEvent[] execute(int timeout, String cmd, Object... args) argument
330 event = mResponseQueue.remove(sequenceNumber, timeout, sentCmd);
536 // let any waiter timeout waiting for this
555 // note that the timeout does not count time in deep sleep. If you don't want
/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/tests/DumpRenderTree/src/com/android/dumprendertree/
H A DReliabilityTestActivity.java119 private void navigate(String url, int timeout) { argument
132 if(timeout != 0) {
133 //set a timer with specified timeout (in ms)
135 timeout);
163 Log.v(LOGTAG, "Page timeout triggered, progress = " + progress);
268 Log.v(LOGTAG, "JavaScript timeout, count=" + timeoutCounter);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DQuickSettings.java791 private void dismissBrightnessDialog(int timeout) { argument
794 mHandler.postDelayed(mDismissBrightnessDialogRunnable, timeout);
/frameworks/base/core/java/android/app/admin/
H A DDevicePolicyManager.java762 * Called by a device admin to set the password expiration timeout. Calling this method
766 * <p>The provided timeout is the time delta in ms and will be added to the current time.
767 * For example, to have the password expire 5 days from now, timeout would be
768 * 5 * 86400 * 1000 = 432000000 ms for timeout.
770 * <p>To disable password expiration, a value of 0 may be used for timeout.
777 * @param timeout The limit (in ms) that a password can remain in effect. A value of 0
780 public void setPasswordExpirationTimeout(ComponentName admin, long timeout) { argument
783 mService.setPasswordExpirationTimeout(admin, timeout, UserHandle.myUserId());
791 * Get the password expiration timeout for the given admin. The expiration timeout i
[all...]
/frameworks/base/core/java/android/widget/
H A DMediaController.java326 * automatically after 'timeout' milliseconds of inactivity.
327 * @param timeout The timeout in milliseconds. Use 0 to show
330 public void show(int timeout) { argument
349 if (timeout != 0) {
351 mHandler.sendMessageDelayed(msg, timeout);
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestActivity.java369 public boolean waitForNetworkState(int networkType, State expectedState, long timeout) { argument
372 if ((System.currentTimeMillis() - startTime) > timeout) {
405 public boolean waitForWifiState(int expectedState, long timeout) { argument
408 if ((System.currentTimeMillis() - startTime) > timeout) {
433 public boolean waitForWifiAPState(int expectedState, long timeout) { argument
436 if ((System.currentTimeMillis() - startTime) > timeout) {
461 * @param timeout is the maximum waiting time
465 public int waitForTetherStateChange(long timeout) { argument
468 if ((System.currentTimeMillis() - startTime) > timeout) {
550 // ping test timeout
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderSessionImpl.java162 * @param timeout the time to wait if another rendering is happening.
170 public Result init(long timeout) { argument
171 Result result = super.init(timeout);

Completed in 6607 milliseconds

1234