/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | Configurator.java | 38 // This short timeout to make sure we get the very last in cases where the above isn't true. 65 * Sets the timeout for waiting for the user interface to go into an idle 71 * timeout elapses (whichever occurs first), the object will start to wait 75 * @param timeout Timeout value in milliseconds 79 public Configurator setWaitForIdleTimeout(long timeout) { argument 80 mWaitForIdleTimeout = timeout; 85 * Gets the current timeout used for waiting for the user interface to go 91 * timeout elapses (whichever occurs first), the object will start to wait 95 * @return Current timeout value in milliseconds 103 * Sets the timeout fo 115 setWaitForSelectorTimeout(long timeout) argument 149 setScrollAcknowledgmentTimeout(long timeout) argument 183 setActionAcknowledgmentTimeout(long timeout) argument [all...] |
/frameworks/support/core-ui/tests/java/android/support/v4/testutils/ |
H A D | PollingCheck.java | 34 public PollingCheck(long timeout) { argument 35 mTimeout = timeout; 45 long timeout = mTimeout; 46 while (timeout > 0) { 57 timeout -= TIME_SLICE; 60 Assert.fail("unexpected timeout"); 63 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) argument 65 while (timeout > 0) { 71 timeout -= TIME_SLICE; 86 public static void waitFor(long timeout, fina argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | ConditionVariable.java | 107 * 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/opt/net/voip/src/java/android/net/sip/ |
H A D | ISipSession.aidl | 112 * @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/base/core/java/android/hardware/usb/ |
H A D | UsbDeviceConnection.java | 157 * @param timeout in milliseconds 162 int index, byte[] buffer, int length, int timeout) { 163 return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout); 182 * @param timeout in milliseconds 187 byte[] buffer, int offset, int length, int timeout) { 190 buffer, offset, length, timeout); 205 * @param timeout in milliseconds 210 byte[] buffer, int length, int timeout) { 211 return bulkTransfer(endpoint, buffer, 0, length, timeout); 222 * @param timeout i 161 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout) argument 186 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int offset, int length, int timeout) argument 209 bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int length, int timeout) argument 226 bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int offset, int length, int timeout) argument 275 native_control_request(int requestType, int request, int value, int index, byte[] buffer, int offset, int length, int timeout) argument 277 native_bulk_request(int endpoint, byte[] buffer, int offset, int length, int timeout) argument [all...] |
/frameworks/base/tools/preload2/src/com/android/preload/ |
H A D | ClientUtils.java | 27 * Instances take a default timeout parameter that's applied to all functions without explicit 28 * timeout. Timeouts are in milliseconds. 43 * Shortcut for findClient with default timeout. 51 * the process id (if valid). Stop looking after the given timeout. 56 * @param timeout The amount of milliseconds to wait, at most. 59 public Client findClient(IDevice device, String processName, int processPid, int timeout) { argument 60 WaitForClient wfc = new WaitForClient(device, processName, processPid, timeout); 65 * Shortcut for findAllClients with default timeout. 72 * Retrieve all clients known to the given device. Wait at most the given timeout. 75 * @param timeout Th 79 findAllClients(IDevice device, int timeout) argument 92 private long timeout; field in class:ClientUtils.WaitForClient 95 WaitForClient(IDevice device, String processName, int processPid, long timeout) argument 180 private long timeout; field in class:ClientUtils.WaitForClients 182 WaitForClients(IDevice device, long timeout) argument [all...] |
H A D | DeviceUtils.java | 48 public static void doShell(IDevice device, String cmdline, long timeout, TimeUnit unit) { argument 49 doShell(device, cmdline, new NullShellOutputReceiver(), timeout, unit); 55 public static String doShellReturnString(IDevice device, String cmdline, long timeout, argument 58 doShell(device, cmdline, rec, timeout, unit); 66 long timeout, TimeUnit unit) { 68 device.executeShellCommand(cmdline, receiver, timeout, unit); 82 * Find the device with the given serial. Give up after the given timeout (in milliseconds). 84 public static IDevice findDevice(String serial, int timeout) { argument 85 WaitForDevice wfd = new WaitForDevice(serial, timeout); 90 * Get all devices ddms knows about. Wait at most for the given timeout 65 doShell(IDevice device, String cmdline, IShellOutputReceiver receiver, long timeout, TimeUnit unit) argument 92 findDevices(int timeout) argument 251 private long timeout; field in class:DeviceUtils.WaitForDevice 254 WaitForDevice(String serial, long timeout) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | VerifyCredentialResponse.java | 77 public VerifyCredentialResponse(int timeout) { argument 78 mTimeout = timeout; 83 private VerifyCredentialResponse(int responseCode, int timeout, byte[] payload) { argument 85 mTimeout = timeout; 119 private void setTimeout(int timeout) { argument 120 mTimeout = timeout;
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | DumpUtils.java | 35 * trying to acquire, we use a short timeout to avoid deadlocks. The process 39 final String prefix, long timeout) { 48 }, timeout)) { 38 dumpAsync(Handler handler, final Dump dump, PrintWriter pw, final String prefix, long timeout) argument
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/bots/ |
H A D | KeyboardBot.java | 28 public KeyboardBot(UiDevice device, Context context, int timeout) { argument 29 super(device, context, timeout);
|
/frameworks/base/core/java/android/accounts/ |
H A D | AccountManagerFuture.java | 101 * 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/rs/ |
H A D | rsSignal.h | 36 // false for timeout 37 bool wait(uint64_t timeout = 0);
|
H A D | rsSignal.cpp | 72 bool Signal::wait(uint64_t timeout) { argument 83 if (!timeout) { 87 status = pthread_cond_timeout_np(&mCondition, &mMutex, timeout / 1000000);
|
/frameworks/base/core/java/android/hardware/fingerprint/ |
H A D | IFingerprintDaemon.aidl | 28 int enroll(in byte [] token, int groupId, int timeout);
|
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | HandlerTester.java | 30 public void doTest(long timeout) { argument 35 wait(timeout);
|
/frameworks/base/core/java/org/apache/http/params/ |
H A D | HttpConnectionParams.java | 61 * Returns the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the 62 * timeout for waiting for data. A timeout value of zero is interpreted as an infinite 63 * timeout. This value is used when no socket timeout is set in the 66 * @return timeout in milliseconds 76 * Sets the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the 77 * timeout for waiting for data. A timeout value of zero is interpreted as an infinite 78 * timeout 83 setSoTimeout(final HttpParams params, int timeout) argument 187 setConnectionTimeout(final HttpParams params, int timeout) argument [all...] |
/frameworks/base/core/java/android/service/gatekeeper/ |
H A D | GateKeeperResponse.java | 42 private GateKeeperResponse(int responseCode, int timeout) { argument 108 private void setTimeout(int timeout) { argument 109 mTimeout = timeout;
|
/frameworks/base/tools/preload2/src/com/android/preload/classdataretrieval/hprof/ |
H A D | Hprof.java | 48 public static File doHprof(Client client, int timeout) { argument 49 GetHprof gh = new GetHprof(client, timeout); 118 private long timeout; field in class:Hprof.GetHprof 121 public GetHprof(Client client, long timeout) { argument 123 this.timeout = timeout; 132 wait(timeout); 200 private int timeout; field in class:Hprof 202 public Hprof(int timeout) { argument 203 this.timeout [all...] |
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
H A D | ConnectivityManagerTestBase.java | 159 protected boolean waitForNetworkState(int networkType, State expectedState, long timeout) { argument 167 if ((SystemClock.uptimeMillis() - startTime) > timeout) { 168 logv("waitForNetworkState timeout: %s", ni); 178 protected boolean waitForWifiState(int expectedState, long timeout) { argument 186 if ((SystemClock.uptimeMillis() - startTime) > timeout) { 187 logv("waitForWifiState timeout: expected=%d, actual=%d", expectedState, state); 197 protected boolean waitForWifiApState(int expectedState, long timeout) { argument 205 if ((SystemClock.uptimeMillis() - startTime) > timeout) { 206 logv(String.format("waitForWifiAPState timeout: expected=%d, actual=%d", 218 * @param timeout i 222 waitForTetherStateChange(long timeout) argument 420 waitForActiveNetworkConnection(long timeout) argument 436 waitUntilNoActiveNetworkConnection(long timeout) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | NtpTrustedTime.java | 52 private NtpTrustedTime(String server, long timeout) { argument 55 mTimeout = timeout; 70 final long timeout = Settings.Global.getLong( 74 sSingleton = new NtpTrustedTime(server, timeout);
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | GestureUtils.java | 27 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/nfc/ |
H A D | INfcTag.aidl | 42 int setTimeout(int technology, int timeout);
|
/frameworks/base/core/java/android/nfc/tech/ |
H A D | IsoDep.java | 81 * 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 D | NfcA.java | 132 * 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 D | NfcF.java | 136 * Set the {@link #transceive} timeout in milliseconds. 138 * <p>The timeout only applies to {@link #transceive} on this object, 141 * <p>Setting a longer timeout may be useful when performing 147 * @param timeout timeout value in milliseconds 149 public void setTimeout(int timeout) { argument 151 int err = mTag.getTagService().setTimeout(TagTechnology.NFC_F, timeout); 153 throw new IllegalArgumentException("The supplied timeout is not valid"); 161 * Get the current {@link #transceive} timeout in milliseconds. 165 * @return timeout valu [all...] |