Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 153) 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
114 if timeout:
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/lib_controllers/
Dwlan_policy_controller.py50 def _configure_wlan(self, preserve_saved_networks, timeout=15): argument
57 end_time = time.time() + timeout
144 def save_and_connect(self, ssid, security, password=None, timeout=30): argument
166 return self.wait_for_connect(ssid, security, timeout=timeout)
172 timeout=30): argument
191 return self.wait_for_connect(ssid, security, timeout=timeout)
199 timeout=30): argument
224 timeout=timeout)
226 def remove_all_networks_and_wait_for_no_connections(self, timeout=30): argument
238 return self.wait_for_no_connections(timeout=timeout)
[all …]
/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/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)
53 def suspendRebootBootloader(self, timeout=HW_PWR_STATE_CONTROL_TIMEOUT): argument
67 response_timeout=timeout)
73 def suspendPoweroff(self, timeout=HW_PWR_STATE_CONTROL_TIMEOUT): argument
87 response_timeout=timeout)
93 def suspendMexec(self, timeout=HW_PWR_STATE_CONTROL_TIMEOUT): argument
107 response_timeout=timeout)
113 def suspendRam(self, timeout=HW_PWR_STATE_CONTROL_TIMEOUT): argument
127 response_timeout=timeout)
/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)
226 timeout=DEFAULT_TIMEOUT, argument
253 deadline = time.time() + timeout
279 timeout, event_name)
283 def pop_events(self, regex_pattern, timeout, freq=1): argument
[all …]
Drpc_client.py231 def rpc(self, method, *args, timeout=None, retries=3): argument
252 if timeout:
253 connection.set_timeout(timeout)
287 except socket.timeout as err:
292 method, ticket, timeout or SOCKET_TIMEOUT)
301 if timeout:
/tools/test/connectivity/acts/framework/acts/controllers/
Diperf_client.py124 def start(self, ip, iperf_args, tag, timeout=3600, iperf_binary=None): argument
144 def start(self, ip, iperf_args, tag, timeout=3600, iperf_binary=None): argument
193 def start(self, ip, iperf_args, tag, timeout=3600, iperf_binary=None): argument
230 self._ssh_session.exec_command(iperf_cmd, timeout=timeout))
236 timeout=timeout)
243 except socket.timeout:
296 def start(self, ip, iperf_args, tag, timeout=3600, iperf_binary=None): argument
322 timeout=timeout)
Dandroid_device.py983 self.adb.wait_for_device(timeout=WAIT_FOR_DEVICE_TIMEOUT)
1005 out = self.adb.shell("bugreportz", timeout=BUG_REPORT_TIMEOUT)
1014 " > {}".format(full_out_path), timeout=BUG_REPORT_TIMEOUT)
1017 self.adb.wait_for_device(timeout=WAIT_FOR_DEVICE_TIMEOUT)
1079 "%s %s" % (device_path, host_path), timeout=PULL_TIMEOUT)
1130 timeout=PULL_TIMEOUT,
1142 timeout=PULL_TIMEOUT,
1168 timeout=PULL_TIMEOUT,
1200 timeout=IPERF_TIMEOUT, argument
1222 timeout=IPERF_TIMEOUT): argument
[all …]
Dfuchsia_device.py468 timeout = cmd_dict.get('timeout', FUCHSIA_DEFAULT_COMMAND_TIMEOUT)
478 timeout=timeout,
610 timeout=FUCHSIA_RECONNECT_AFTER_REBOOT_TIME,
616 timeout=3)
630 timeout = time.time() + unreachable_timeout
631 while (time.time() < timeout):
720 timeout=FUCHSIA_DEFAULT_COMMAND_TIMEOUT, argument
746 ssh_conn.exec_command(test_cmd, timeout=timeout))
765 timeout=1000, argument
798 (count, interval, timeout, size, additional_ping_params, dest_ip))
[all …]
Daccess_point.py647 timeout=1000, argument
656 timeout=timeout,
664 timeout=1000, argument
672 timeout=timeout,
718 timeout = time.time() + unreachable_timeout
719 while time.time() < timeout:
738 timeout = time.time() + ping_timeout
739 while time.time() < timeout:
753 timeout = time.time() + ssh_timeout
754 while time.time() < timeout:
Darduino_wifi_dongle.py313 def ip_address(self, exp_result=True, timeout=READ_TIMEOUT): argument
326 while time.time() < curr_time + timeout:
333 def wifi_status(self, exp_result=True, timeout=READ_TIMEOUT): argument
341 while time.time() < curr_time + timeout:
348 def wifi_scan(self, exp_result=True, timeout=READ_TIMEOUT): argument
363 while time.time() < curr_time + timeout:
378 def ping_status(self, exp_result=True, timeout=READ_TIMEOUT): argument
386 while time.time() < curr_time + timeout:
Dfastboot.py60 timeout=60): argument
65 timeout=timeout)
67 result = job.run(command, ignore_status=True, timeout=timeout)
Dadb.py146 def _exec_cmd(self, cmd, ignore_status=False, timeout=DEFAULT_ADB_TIMEOUT): argument
163 result = job.run(cmd, ignore_status=True, timeout=timeout)
258 def shell(self, command, ignore_status=False, timeout=DEFAULT_ADB_TIMEOUT): argument
263 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:
Dradvd.py69 def start(self, config, timeout=60): argument
101 self._wait_for_process(timeout=timeout)
126 def _wait_for_process(self, timeout=60): argument
136 while time.time() - start_time < timeout and not self.is_alive():
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/abstract_devices/
Dwlan_device.py151 timeout=1000, argument
161 timeout=1000, argument
275 timeout=1000, argument
281 timeout=timeout)
283 def ping(self, dest_ip, count=3, interval=1000, timeout=1000, size=25): argument
407 timeout=1000, argument
414 timeout=timeout,
422 timeout=1000, argument
428 timeout=timeout,
/tools/test/connectivity/acts/framework/acts/controllers/bits_lib/
Dbits_client.py106 job.run(cmd, timeout=10)
117 job.run(cmd, timeout=10)
135 job.run(cmd, timeout=600)
149 job.run(cmd, timeout=10)
216 job.run(cmd, timeout=10)
253 job.run(cmd, timeout=10)
265 job.run(cmd, timeout=10)
298 result = job.run(cmd, timeout=20)
/tools/test/connectivity/acts/framework/acts/
Dutils.py494 def wait_for_standing_subprocess(proc, timeout=None): argument
514 proc.wait(timeout)
545 def timeout(sec): function
625 @timeout(timeout_value)
945 timeout=200, argument
964 out = ad.adb.shell(ping_cmd, timeout=timeout, ignore_status=True)
1524 timeout=1000, argument
1558 timeout_flag = ['-t', str(timeout / 1000)]
1560 timeout_flag = ['-W', str(timeout / 1000)]
1580 timeout=1000, argument
[all …]
/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_tests/acts_contrib/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)
86 timeout=EVENT_TIMEOUT, argument
103 event = ad.ed.wait_for_event(event_name, _filter_callbacks, timeout,
113 def fail_on_event(ad, event_name, timeout=EVENT_TIMEOUT): argument
125 event = ad.ed.pop_event(event_name, timeout)
134 def fail_on_event_with_keys(ad, event_name, timeout=EVENT_TIMEOUT, *keyvalues): argument
149 event = ad.ed.wait_for_event(event_name, _filter_callbacks, timeout,
160 def verify_no_more_events(ad, timeout=EVENT_TIMEOUT): argument
169 event = ad.ed.pop_events('.*', timeout, freq=0)
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/tel/
Dtel_test_utils.py976 timeout=MAX_WAIT_TIME_AIRPLANEMODE_EVENT,
1065 timeout=wait_time,
1100 timeout=MAX_WAIT_TIME_CALLEE_RINGING, argument
1121 end_time = time.time() + timeout
1166 timeout=MAX_WAIT_TIME_ACCEPT_CALL_TO_OFFHOOK_EVENT, argument
1185 end_time = time.time() + timeout
1216 timeout=MAX_WAIT_TIME_ACCEPT_CALL_TO_OFFHOOK_EVENT): argument
1236 timeout=timeout,
1256 timeout=MAX_WAIT_TIME_CALLEE_RINGING, argument
1288 timeout=timeout):
[all …]
Dgft_inout_utils.py70 def check_no_service_time(ad, timeout=30): argument
80 for i in range (timeout):
89 …evice does not become no/limited service in %s sec and service_state=%s" %(timeout, service_state))
92 def check_back_to_service_time(ad, timeout=30): argument
102 for i in range (timeout):
115 …ad.log.info("device is not back in service in %s sec and service_state=%s" %(timeout, service_stat…
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/commands/
Dshell.py42 def run(self, command, timeout=60): argument
63 return self._runner.run(command_str, timeout=timeout)
187 def kill(self, identifier, timeout=10): argument
209 signal_duration = timeout / len(signal_queue)

1234567