Lines Matching refs:timeout
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) {
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 The amount of milliseconds to wait, at most.
79 public Client[] findAllClients(IDevice device, int timeout) {
83 WaitForClients wfc = new WaitForClients(device, timeout);
92 private long timeout;
95 public WaitForClient(IDevice device, String processName, int processPid, long timeout) {
99 this.timeout = timeout;
114 wait(timeout);
180 private long timeout;
182 public WaitForClients(IDevice device, long timeout) {
184 this.timeout = timeout;
196 wait(timeout); // Note: doesn't guard for spurious wakeup.
202 // Note: a loop with timeout is brittle as well and complicated, just accept this