Home
last modified time | relevance | path

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

1234567

/tools/acloud/internal/lib/
Dssh.py36 def _SshCallWait(cmd, timeout=None): argument
53 if timeout:
55 timer = threading.Timer(timeout, process.kill)
58 if timeout:
63 def _SshCall(cmd, timeout=None): argument
80 if timeout:
82 timer = threading.Timer(timeout, process.kill)
85 if timeout:
90 def _SshLogOutput(cmd, timeout=None, show_output=False): argument
113 if timeout:
[all …]
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DRunUtil.java145 public CommandResult runTimedCmd(final long timeout, final String... command) { in runTimedCmd() argument
146 return runTimedCmd(timeout, null, null, command); in runTimedCmd()
153 public CommandResult runTimedCmd(final long timeout, OutputStream stdout, in runTimedCmd() argument
156 CommandStatus status = runTimed(timeout, osRunnable, true); in runTimedCmd()
181 long timeout, long retryInterval, int attempts, String... command) { in runTimedCmdRetry() argument
185 result = runTimedCmd(timeout, command); in runTimedCmdRetry()
244 public CommandResult runTimedCmdWithInput(final long timeout, String input, in runTimedCmdWithInput() argument
246 return runTimedCmdWithInput(timeout, input, ArrayUtil.list(command)); in runTimedCmdWithInput()
253 public CommandResult runTimedCmdWithInput(final long timeout, String input, in runTimedCmdWithInput() argument
256 CommandStatus status = runTimed(timeout, osRunnable, true); in runTimedCmdWithInput()
[all …]
DIRunUtil.java107 public CommandResult runTimedCmd(final long timeout, final String... command); in runTimedCmd() argument
121 final long timeout, OutputStream stdout, OutputStream stderr, final String... command); in runTimedCmd() argument
133 public CommandResult runTimedCmdRetry(final long timeout, long retryInterval, in runTimedCmdRetry() argument
145 public CommandResult runTimedCmdSilently(final long timeout, final String... command); in runTimedCmdSilently() argument
158 public CommandResult runTimedCmdSilentlyRetry(final long timeout, long retryInterval, in runTimedCmdSilentlyRetry() argument
170 CommandResult runTimedCmdWithInput(long timeout, String input, String... command); in runTimedCmdWithInput() argument
181 CommandResult runTimedCmdWithInput(long timeout, String input, List<String> command); in runTimedCmdWithInput() argument
194 long timeout, @Nullable File inputRedirect, String... command); in runTimedCmdWithInputRedirect() argument
262 public CommandStatus runTimed(long timeout, IRunUtil.IRunnableResult runnable, in runTimed() argument
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtel_test_utils.py969 timeout=MAX_WAIT_TIME_AIRPLANEMODE_EVENT,
1058 timeout=wait_time,
1093 timeout=MAX_WAIT_TIME_CALLEE_RINGING, argument
1114 end_time = time.time() + timeout
1159 timeout=MAX_WAIT_TIME_ACCEPT_CALL_TO_OFFHOOK_EVENT, argument
1178 end_time = time.time() + timeout
1209 timeout=MAX_WAIT_TIME_ACCEPT_CALL_TO_OFFHOOK_EVENT): argument
1229 timeout=timeout,
1249 timeout=MAX_WAIT_TIME_CALLEE_RINGING, argument
1281 timeout=timeout):
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dandroid_device.py933 self.adb.wait_for_device(timeout=WAIT_FOR_DEVICE_TIMEOUT)
955 out = self.adb.shell("bugreportz", timeout=BUG_REPORT_TIMEOUT)
964 " > {}".format(full_out_path), timeout=BUG_REPORT_TIMEOUT)
967 self.adb.wait_for_device(timeout=WAIT_FOR_DEVICE_TIMEOUT)
1014 "%s %s" % (device_path, host_path), timeout=PULL_TIMEOUT)
1065 timeout=PULL_TIMEOUT,
1077 timeout=PULL_TIMEOUT,
1103 timeout=PULL_TIMEOUT,
1135 timeout=IPERF_TIMEOUT, argument
1157 timeout=IPERF_TIMEOUT): argument
[all …]
Dfuchsia_device.py346 def verify_ping(self, timeout=30): argument
355 end_time = time.time() + timeout
365 def verify_ssh(self, timeout=30): argument
379 end_time = time.time() + timeout
427 timeout=FUCHSIA_RECONNECT_AFTER_REBOOT_TIME,
437 timeout=3)
456 timeout = time.time() + unreachable_timeout
457 while (time.time() < timeout):
478 self.verify_ping(timeout=ping_timeout)
482 self.verify_ssh(timeout=ssh_timeout)
[all …]
Diperf_client.py122 def start(self, ip, iperf_args, tag, timeout=3600, iperf_binary=None): argument
142 def start(self, ip, iperf_args, tag, timeout=3600, iperf_binary=None): argument
185 def start(self, ip, iperf_args, tag, timeout=3600, iperf_binary=None): argument
222 self._ssh_session.exec_command(iperf_cmd, timeout=timeout))
228 timeout=timeout)
235 except socket.timeout:
288 def start(self, ip, iperf_args, tag, timeout=3600, iperf_binary=None): argument
314 timeout=timeout)
Dadb.py142 def _exec_cmd(self, cmd, ignore_status=False, timeout=DEFAULT_ADB_TIMEOUT): argument
156 result = job.run(cmd, ignore_status=True, timeout=timeout)
253 def shell(self, command, ignore_status=False, timeout=DEFAULT_ADB_TIMEOUT): argument
258 timeout=timeout)
266 timeout=DEFAULT_ADB_PULL_TIMEOUT): argument
268 'pull', command, ignore_status=ignore_status, 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:
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/test_actions/
Dapollo_acts.py89 def wait_for_bluetooth_disconnection(self, timeout=60): argument
105 if (time.time() - ini_time) > timeout:
354 def wait_for_magic_pairing_notification(self, android_act, timeout=60): argument
373 if time.time() - start_time > timeout:
381 def start_magic_pairing(self, android_act, timeout=30, retries=3): argument
384 BISTO_MP_CONNECT_TEXT, timeout=timeout)
387 timeout = 30
392 if time.time() - connect_start_time > timeout:
395 self.logger.info('Timeout(s): %s' % timeout)
429 timeout=DEFAULT_TIMEOUT, argument
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DRemoteFileUtil.java49 long timeout, in fetchRemoteFile() argument
58 remoteInstance, options, runUtil, timeout, remoteFilePath, localFile)) { in fetchRemoteFile()
84 long timeout, in fetchRemoteFile() argument
92 timeout, in fetchRemoteFile()
114 long timeout, in fetchRemoteDir() argument
122 timeout, in fetchRemoteDir()
143 long timeout, in fetchRemoteDir() argument
154 timeout, in fetchRemoteDir()
185 long timeout, in pushFileToRemote() argument
193 timeout, in pushFileToRemote()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Devent_dispatcher.py84 event_obj = self._rpc_client.eventWait(60000, timeout=120)
178 def pop_event(self, event_name, timeout=DEFAULT_TIMEOUT): argument
209 if timeout:
210 return e_queue.get(True, timeout)
212 elif timeout == 0:
219 timeout, event_name))
224 timeout=DEFAULT_TIMEOUT, argument
251 deadline = time.time() + timeout
278 timeout, event_name))
280 def pop_events(self, regex_pattern, timeout, freq=1): argument
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/
Dhardware_power_statecontrol_lib.py32 def suspendReboot(self, timeout=HW_PWR_STATE_CONTROL_TIMEOUT): argument
46 response_timeout=timeout)
52 def suspendRebootBootloader(self, timeout=HW_PWR_STATE_CONTROL_TIMEOUT): argument
66 response_timeout=timeout)
72 def suspendPoweroff(self, timeout=HW_PWR_STATE_CONTROL_TIMEOUT): argument
86 response_timeout=timeout)
92 def suspendMexec(self, timeout=HW_PWR_STATE_CONTROL_TIMEOUT): argument
106 response_timeout=timeout)
112 def suspendRam(self, timeout=HW_PWR_STATE_CONTROL_TIMEOUT): argument
126 response_timeout=timeout)
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/
Dhostapd.py56 def start(self, config, timeout=60, additional_parameters=None): argument
94 self._wait_for_process(timeout=timeout)
95 self._wait_for_interface(timeout=timeout)
121 def _wait_for_process(self, timeout=60): argument
131 while time.time() - start_time < timeout and not self.is_alive():
135 def _wait_for_interface(self, timeout=60): argument
144 while time.time() - start_time < timeout:
Ddhcp_server.py65 def start(self, config, timeout=60): argument
96 self._wait_for_process(timeout=timeout)
97 self._wait_for_server(timeout=timeout)
122 def _wait_for_process(self, timeout=60): argument
132 while time.time() - start_time < timeout and not self.is_alive():
138 def _wait_for_server(self, timeout=60): argument
147 while time.time() - start_time < timeout:
/tools/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/
Dcmw500_cellular_simulator.py544 def wait_until_attached(self, timeout=120): argument
552 self.cmw.wait_for_attached_state(timeout=timeout)
558 def wait_until_communication_state(self, timeout=120): argument
566 self.cmw.wait_for_rrc_state(cmw500.LTE_CONN_RESP, timeout=timeout)
572 def wait_until_idle_state(self, timeout=120): argument
580 self.cmw.wait_for_rrc_state(cmw500.LTE_IDLE_RESP, timeout=timeout)
Dcmw500.py271 def wait_for_pswitched_state(self, timeout=10): argument
280 while timeout > 0:
291 timeout -= 1
295 def wait_for_attached_state(self, timeout=120): argument
304 while timeout > 0:
313 timeout -= 1
317 def wait_for_rrc_state(self, state, timeout=120): argument
332 while timeout > 0:
341 timeout -= 1
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/aware/
Daware_test_utils.py46 def wait_for_event(ad, event_name, timeout=EVENT_TIMEOUT): argument
60 event = ad.ed.pop_event(event_name, timeout)
68 def wait_for_event_with_keys(ad, event_name, timeout=EVENT_TIMEOUT, argument
92 event = ad.ed.wait_for_event(event_name, filter_callbacks, timeout,
102 def fail_on_event(ad, event_name, timeout=EVENT_TIMEOUT): argument
114 event = ad.ed.pop_event(event_name, timeout)
123 def fail_on_event_with_keys(ad, event_name, timeout=EVENT_TIMEOUT, *keyvalues): argument
145 event = ad.ed.wait_for_event(event_name, filter_callbacks, timeout,
156 def verify_no_more_events(ad, timeout=EVENT_TIMEOUT): argument
165 event = ad.ed.pop_events('.*', timeout, freq=0)
/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/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java256 AdbAction(long timeout, String[] cmd, boolean isShell) { in AdbAction() argument
257 mTimeout = timeout; in AdbAction()
303 AdbShellAction(String[] cmd, File pipeAsInput, OutputStream pipeToOutput, long timeout) { in AdbShellAction() argument
307 mTimeout = timeout; in AdbShellAction()
1872 public String executeAdbCommand(long timeout, String... cmdArgs) in executeAdbCommand() argument
1875 AdbAction adbAction = new AdbAction(timeout, fullCmd, "shell".equals(cmdArgs[0])); in executeAdbCommand()
1893 public CommandResult executeFastbootCommand(long timeout, String... cmdArgs) in executeFastbootCommand() argument
1895 return doFastbootCommand(timeout, cmdArgs); in executeFastbootCommand()
1911 private CommandResult doFastbootCommand(final long timeout, String... cmdArgs) in doFastbootCommand() argument
1933 result = runUtil.runTimedCmd(timeout, fullCmd); in doFastbootCommand()
[all …]
DWifiHelper.java209 boolean waitForWifiState(long timeout, WifiState... expectedStates) in waitForWifiState() argument
212 while (System.currentTimeMillis() < (startTime + timeout)) { in waitForWifiState()
307 public boolean waitForIp(long timeout) throws DeviceNotAvailableException { in waitForIp() argument
310 while (System.currentTimeMillis() < (startTime + timeout)) { in waitForIp()
383 public boolean waitForWifiEnabled(long timeout) throws DeviceNotAvailableException { in waitForWifiEnabled() argument
386 while (System.currentTimeMillis() < (startTime + timeout)) { in waitForWifiEnabled()
404 public boolean waitForWifiDisabled(long timeout) throws DeviceNotAvailableException { in waitForWifiDisabled() argument
407 while (System.currentTimeMillis() < (startTime + timeout)) { in waitForWifiDisabled()
/tools/test/connectivity/acts/framework/acts/test_utils/abstract_devices/
Dwlan_device.py141 def ping(self, dest_ip, count=3, interval=1000, timeout=1000, size=25): argument
240 def ping(self, dest_ip, count=3, interval=1000, timeout=1000, size=25): argument
244 timeout=timeout)
322 def ping(self, dest_ip, count=3, interval=1000, timeout=1000, size=25): argument
326 timeout=timeout,
/tools/tradefederation/core/src/com/android/tradefed/util/
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()
/tools/test/connectivity/acts_tests/tests/google/tel/live/
DTelLiveProjectFiTest.py107 ad.adb.install("-r %s" % account_util, timeout=300, ignore_status=True)
342 timeout=_MAX_WAIT_TIME, argument
360 max_time = timeout
382 ad, carrier, timeout=timeout, check_interval=check_interval)
456 timeout=_MAX_WAIT_TIME, argument
473 timeout, *check_args):
/tools/test/connectivity/acts/framework/acts/
Dutils.py492 def wait_for_standing_subprocess(proc, timeout=None): argument
512 proc.wait(timeout)
543 def timeout(sec): function
624 @timeout(timeout_value)
944 timeout=200, argument
966 out = ad.adb.shell(ping_cmd, timeout=timeout, ignore_status=True)
1559 result = job.run(ping_cmd, timeout=10, ignore_status=True)

1234567