Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 88) sorted by relevance

1234

/tools/tradefederation/core/src/com/android/tradefed/util/
DIRunUtil.java87 public CommandResult runTimedCmd(final long timeout, final String... command); in runTimedCmd() argument
101 final long timeout, OutputStream stdout, OutputStream stderr, final String... command); in runTimedCmd() argument
113 public CommandResult runTimedCmdRetry(final long timeout, long retryInterval, in runTimedCmdRetry() argument
125 public CommandResult runTimedCmdSilently(final long timeout, final String... command); in runTimedCmdSilently() argument
138 public CommandResult runTimedCmdSilentlyRetry(final long timeout, long retryInterval, in runTimedCmdSilentlyRetry() argument
150 CommandResult runTimedCmdWithInput(long timeout, String input, String... command); in runTimedCmdWithInput() argument
161 CommandResult runTimedCmdWithInput(long timeout, String input, List<String> command); in runTimedCmdWithInput() argument
204 public CommandStatus runTimed(long timeout, IRunUtil.IRunnableResult runnable, in runTimed() argument
DDeviceConcurrentUtil.java55 public static <T> T joinFuture(String taskDesc, Future<T> task, long timeout) in joinFuture() argument
58 T ret = task.get(timeout, TimeUnit.MILLISECONDS); in joinFuture()
94 public ShellCommandCallable(ITestDevice device, String command, long timeout) { in ShellCommandCallable() argument
97 mTimeout = timeout; in ShellCommandCallable()
106 public ShellCommandCallable<V> setTimeout(long timeout) { in setTimeout() argument
107 mTimeout = timeout; in setTimeout()
DAlarm.java42 public Alarm(long timeout) { in Alarm() argument
46 if (timeout <= 0) { in Alarm()
48 "Alarm timeout time %d <= 0, which is not valid.", timeout)); in Alarm()
51 mTimeoutTime = timeout; in Alarm()
DRunUtil.java130 public CommandResult runTimedCmd(final long timeout, final String... command) { in runTimedCmd() argument
131 return runTimedCmd(timeout, null, null, true, command); in runTimedCmd()
138 public CommandResult runTimedCmd(final long timeout, OutputStream stdout, in runTimedCmd() argument
140 return runTimedCmd(timeout, stdout, stderr, false, command); in runTimedCmd()
148 private CommandResult runTimedCmd(final long timeout, OutputStream stdout, in runTimedCmd() argument
153 CommandStatus status = runTimed(timeout, osRunnable, true); in runTimedCmd()
176 long timeout, long retryInterval, int attempts, String... command) { in runTimedCmdRetry() argument
180 result = runTimedCmd(timeout, command); in runTimedCmdRetry()
225 public CommandResult runTimedCmdWithInput(final long timeout, String input, in runTimedCmdWithInput() argument
227 return runTimedCmdWithInput(timeout, input, ArrayUtil.list(command)); in runTimedCmdWithInput()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/
DSl4aEventDispatcher.java46 public Sl4aEventDispatcher(Sl4aClient client, long timeout) { in Sl4aEventDispatcher() argument
50 mTimeout = timeout; in Sl4aEventDispatcher()
117 public EventSl4aObject popEvent(String name, long timeout) { in popEvent() argument
118 long deadline = System.currentTimeMillis() + timeout; in popEvent()
130 CLog.e("Timeout after waiting %sms for event '%s'", timeout, name); in popEvent()
143 long timeout) { in waitForEvent() argument
144 long deadline = System.currentTimeMillis() + timeout; in waitForEvent()
156 CLog.e("Timeout after waiting %sms for event '%s'", timeout, name); in waitForEvent()
/tools/test/connectivity/acts/framework/acts/controllers/
Dadb.py149 def _exec_cmd(self, cmd, ignore_status=False, timeout=DEFAULT_ADB_TIMEOUT): argument
163 result = job.run(cmd, ignore_status=True, timeout=timeout)
247 def shell(self, command, ignore_status=False, timeout=DEFAULT_ADB_TIMEOUT): argument
252 timeout=timeout)
260 timeout=DEFAULT_ADB_PULL_TIMEOUT): argument
262 'pull', command, ignore_status=ignore_status, timeout=timeout)
Dsniffer.py244 def wait_for_capture(self, timeout=None): argument
282 def __init__(self, sniffer, timeout=None): argument
284 self._timeout = timeout
Darduino_wifi_dongle.py314 def ip_address(self, exp_result=True, timeout=READ_TIMEOUT): argument
327 while time.time() < curr_time + timeout:
334 def wifi_status(self, exp_result=True, timeout=READ_TIMEOUT): argument
342 while time.time() < curr_time + timeout:
349 def wifi_scan(self, exp_result=True, timeout=READ_TIMEOUT): argument
364 while time.time() < curr_time + timeout:
379 def ping_status(self, exp_result=True, timeout=READ_TIMEOUT): argument
387 while time.time() < curr_time + timeout:
Dandroid_device.py875 self.adb.wait_for_device(timeout=WAIT_FOR_DEVICE_TIMEOUT)
897 out = self.adb.shell("bugreportz", timeout=BUG_REPORT_TIMEOUT)
905 " > {}".format(full_out_path), timeout=BUG_REPORT_TIMEOUT)
908 self.adb.wait_for_device(timeout=WAIT_FOR_DEVICE_TIMEOUT)
938 "%s %s" % (file_name, remote_path), timeout=PULL_TIMEOUT)
991 timeout=PULL_TIMEOUT,
1023 timeout=IPERF_TIMEOUT, argument
1045 timeout=IPERF_TIMEOUT): argument
1061 "iperf3 -c {} {}".format(server_host, extra_args), timeout=timeout)
1091 timeout = 15 * 60
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Devent_dispatcher.py173 def pop_event(self, event_name, timeout=DEFAULT_TIMEOUT): argument
204 if timeout:
205 return e_queue.get(True, timeout)
207 elif timeout == 0:
214 timeout, event_name))
219 timeout=DEFAULT_TIMEOUT, argument
246 deadline = time.time() + timeout
268 timeout, event_name))
270 def pop_events(self, regex_pattern, timeout, freq=1): argument
297 deadline = time.time() + timeout
[all …]
Drpc_connection.py85 except socket.timeout as e:
119 def set_timeout(self, timeout): argument
121 self._client_socket.settimeout(timeout)
Drpc_client.py183 def rpc(self, method, *args, timeout=None, retries=1): argument
204 if timeout:
205 connection.set_timeout(timeout)
238 if timeout:
/tools/test/connectivity/tools/lab/utils/
Dtime_limit.py37 self.timeout = False
40 self.timeout = True
48 return self.timeout
Dshell.py43 def run(self, command, timeout=3600, ignore_status=False): argument
65 command_str, timeout=timeout, ignore_status=ignore_status)
213 def kill(self, identifier, timeout=10): argument
235 signal_duration = timeout / len(signal_queue)
Djob.py111 timeout=60, argument
150 (out, err) = proc.communicate(timeout=timeout)
168 timeout)
/tools/test/connectivity/acts/framework/acts/test_utils/car/
Dcar_media_utils.py39 def verifyEventReceived(log, device, event, timeout): argument
54 device.ed.pop_event(event, timeout)
67 timeout=1.0): argument
84 return verifyEventReceived(log, toDevice, expctEvent, timeout)
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DInstrumentationPreparer.java187 void setTimeout(int timeout) { in setTimeout() argument
188 setShellTimeout(timeout); in setTimeout()
191 void setShellTimeout(long timeout) { in setShellTimeout() argument
192 mShellTimeout = timeout; in setShellTimeout()
195 void setTestTimeout(int timeout) { in setTestTimeout() argument
196 mTestTimeout = timeout; in setTestTimeout()
DConnectionChecker.java39 long timeout = mTimeout * 1000; in setUp() local
41 if (System.currentTimeMillis() - startTime > timeout) { in setUp()
/tools/tradefederation/core/src/com/android/tradefed/device/
DIWifiHelper.java117 boolean waitForIp(long timeout) throws DeviceNotAvailableException; in waitForIp() argument
172 boolean waitForWifiEnabled(long timeout) throws DeviceNotAvailableException; in waitForWifiEnabled() argument
189 boolean waitForWifiDisabled(long timeout) throws DeviceNotAvailableException; in waitForWifiDisabled() argument
DWifiHelper.java196 boolean waitForWifiState(long timeout, WifiState... expectedStates) in waitForWifiState() argument
199 while (System.currentTimeMillis() < (startTime + timeout)) { in waitForWifiState()
294 public boolean waitForIp(long timeout) throws DeviceNotAvailableException { in waitForIp() argument
297 while (System.currentTimeMillis() < (startTime + timeout)) { in waitForIp()
370 public boolean waitForWifiEnabled(long timeout) throws DeviceNotAvailableException { in waitForWifiEnabled() argument
373 while (System.currentTimeMillis() < (startTime + timeout)) { in waitForWifiEnabled()
391 public boolean waitForWifiDisabled(long timeout) throws DeviceNotAvailableException { in waitForWifiDisabled() argument
394 while (System.currentTimeMillis() < (startTime + timeout)) { in waitForWifiDisabled()
/tools/test/connectivity/acts/tests/google/bt/power/
DSetupBTPairingTest.py47 timeout = float(self.user_params["socket_timeout_secs"])
55 sock.settimeout(timeout)
60 except socket.timeout:
/tools/test/connectivity/acts/framework/acts/libs/proc/
Djob.py111 timeout=60, argument
150 (out, err) = proc.communicate(timeout=timeout)
168 timeout)
/tools/test/connectivity/acts/tests/google/nfc/
DNfcBasicFunctionalityTest.py26 timeout = 5 variable in NfcBasicFunctionalityTest
47 dut.ed.pop_event(self.nfc_on_event, self.timeout)
59 dut.ed.pop_event(self.nfc_off_event, self.timeout)
/tools/test/connectivity/acts/tests/google/wifi/
DSetupWifiNetworkTest.py32 timeout = float(self.user_params["socket_timeout_secs"])
40 sock.settimeout(timeout)
45 except socket.timeout:
/tools/test/connectivity/acts/tests/google/tel/live/
DTelLiveProjectFiTest.py106 ad.adb.install("-r %s" % account_util, timeout=180)
128 ad.adb.install("-r %s" % account_util, timeout=180)
337 timeout=_MAX_WAIT_TIME, argument
355 max_time = timeout
377 ad, carrier, timeout=timeout, check_interval=check_interval)
451 timeout=_MAX_WAIT_TIME, argument
468 timeout, *check_args):

1234