/external/autotest/server/cros/crosperf/ |
D | device_setup_utils.py | 23 def run_command_on_dut(dut, command, ignore_status=False): argument 34 result = dut.run(command, ignore_status=ignore_status) 42 'Error message: %s' % (dut.hostname, command, ret, err_msg)) 52 def disable_aslr(dut): argument 64 run_command_on_dut(dut, disable_aslr) 67 def set_cpu_governor(dut, governor, ignore_status=False): argument 89 dut, set_gov_cmd % governor, ignore_status=ignore_status) 93 def disable_turbo(dut): argument 115 run_command_on_dut(dut, dis_turbo_boost_cmd) 118 def setup_cpu_usage(dut, cpu_usage): argument [all …]
|
D | device_setup_utils_unittest.py | 106 self.dut = mock.Mock(spec=hosts.create_host) 107 self.dut.hostname = 'lumpy.cros2' 108 self.dut.run = mock.Mock() 115 self.dut.run.return_value.exit_status = 0 116 self.dut.run.return_value.stdout = '' 117 self.dut.run.return_value.stderr = '' 119 self.dut.run.assert_not_called() 120 device_setup_utils.run_command_on_dut(self.dut, 'run command;') 121 self.dut.run.assert_called_once_with( 127 self.dut.run.return_value.exit_status = 1 [all …]
|
/external/autotest/client/common_lib/cros/manual/ |
D | audio_helper.py | 17 def get_soundcard_by_name(dut, name): argument 29 soundcard = dut.run(cmd, ignore_status=True).stdout.strip().split()[0] 40 def check_soundcard_by_name(dut, name): argument 49 if get_soundcard_by_name(dut, name): 54 def check_audio_stream(dut, is_in_meeting): argument 62 number_stream = get_number_of_active_streams(dut) 74 def get_audio_stream_state(dut, soundcard): argument 90 stream_state = dut.run(cmd, ignore_status=True).stdout.split() 96 def check_default_speaker_volume(dut, cfm_facade): argument 112 nodes = get_nodes_for_default_speakers_cras(dut) [all …]
|
D | cfm_helper.py | 20 def check_chrome_logfile(dut): argument 30 output = dut.run(cmd, ignore_status=True).stdout 38 def check_last_reboot(dut): argument 48 output = dut.run(cmd, ignore_status=True).stdout 56 def check_is_platform(dut, name): argument 66 dut.run, ignore_status=True) 72 def get_mgmt_ipv4(dut): argument 81 output = dut.run(cmd, ignore_status=True).stdout 89 def retrieve_usb_devices(dut): argument 95 usb_devices = (dut.run('usb-devices', ignore_status=True). [all …]
|
D | video_helper.py | 22 def get_video_by_name(dut, name): argument 34 video4linux_list = dut.run(cmd, ignore_status=True).stdout.split() 37 video_dev_name = dut.run(cmd, ignore_status=True).stdout.strip() 46 def get_lsof4_video(dut, video): argument 55 lsof_output = dut.run(cmd, ignore_status=True).stdout.strip().split('\n') 61 def get_video_streams(dut, name): argument 68 video_dev = get_video_by_name(dut, name) 69 lsof_output = get_lsof4_video(dut, video_dev) 73 def check_v4l2_interface(dut, vidpid, camera): argument 83 if get_video_by_name(dut, camera): [all …]
|
/external/autotest/server/site_tests/telemetry_Crosperf/ |
D | telemetry_Crosperf.py | 65 def scp_telemetry_results(self, client_ip, dut, file_path, host_dir, argument 81 if dut: 82 port = dut.port 83 ip = dut.hostname 122 def run_in_background_with_log(self, cmd, dut, log_path): argument 131 pid = dut.run_background(cmd) 136 check = dut.run('sleep 5; kill -0 %s' % pid, ignore_status=True) 159 dut.run('pgid=$(cat /proc/%s/stat | cut -d")" -f2 | ' 165 '', dut, log_path, self.resultsdir, ignore_status=True) 171 def run_cpustats_in_background(self, dut, log_name): argument [all …]
|
D | control | 25 dut = hosts.create_host(machine) 28 args=args_dict, dut=dut)
|
/external/autotest/server/site_tests/p2p_EndToEndTest/ |
D | p2p_EndToEndTest.py | 43 def run_once(self, dut, file_id, is_main, peers, barrier): argument 44 self._dut = dut 51 dut.run('start p2p || true') 52 dut.run('status p2p | grep running') 55 dut.run('touch %s' % file_temp_name) 56 dut.run('setfattr -n user.cros-p2p-filesize -v %d %s' 58 dut.run('mv %s %s' % (file_temp_name, file_shared_name)) 70 dut.run('dd if=/dev/urandom of=%s bs=1000 count=%d' 84 dut.run('dd if=/dev/urandom of=%s bs=1000 count=%d' 104 ret = dut.run('p2p-client --get-url=%s' % file_id) [all …]
|
/external/autotest/client/cros/cellular/ |
D | labconfig.py | 122 for dut in self.cell["duts"]: 123 if machine == dut["address"] or machine == dut["name"]: 124 return dut 128 (machine, dut['address'], 129 dut['name'], self.options.cell, self.cell['duts'])) 154 dut = self._get_dut(machine) 155 print dut 156 return dut['rf_switch_port']
|
/external/autotest/client/common_lib/cros/ |
D | power_cycle_usb_util.py | 93 def power_cycle_usb_vidpid(dut, board, vid, pid, pause=1): argument 111 bus_idx, port_idx = get_port_number_from_vidpid(dut, vid, pid) 116 usb_manager = usb_port_manager.UsbPortManager(dut) 123 def get_port_number_from_vidpid(dut, vid, pid): argument 139 lsusb_output = dut.run(cmd, ignore_status=True).stdout 145 lsusb_output = dut.run(cmd, ignore_status=True).stdout 223 def get_all_port_number_from_vidpid(dut, vid, pid): argument 240 lsusb_output = dut.run(cmd, ignore_status=True).stdout 245 lsusb_output = dut.run(cmd, ignore_status=True).stdout 282 def get_target_all_gpio(dut, board, vid, pid): argument [all …]
|
/external/autotest/server/hosts/ |
D | chameleon_host.py | 141 def create_chameleon_host(dut, chameleon_args): argument 171 dut_is_hostname = not dnsname_mangler.is_ip_address(dut) 173 chameleon_hostname = chameleon.make_chameleon_hostname(dut) 189 hosts = afe.get_hosts(hostname=dut) 200 def create_btpeer_host(dut, btpeer_args_list): argument 249 if (not dnsname_mangler.is_ip_address(dut) and 250 utils.host_is_in_lab_zone(dut)): 253 btpeer_hostnames = chameleon.make_btpeer_hostnames(dut) 276 hosts = afe.get_hosts(hostname=dut)
|
/external/autotest/server/cros/clique_lib/ |
D | clique_runner.py | 99 for dut in dut_objects: 100 if not utils.is_dut_healthy(dut.wifi_client, ap): 101 logging.error('DUT %s not healthy.', dut.host.hostname) 112 for dut in dut_objects: 113 utils.sanitize_client(dut.host) 126 for dut in dut_objects: 127 dut.wifi_client.shill.sync_time_to(epoch_seconds) 144 for dut in dut_objects: 145 kernel_ver = dut.host.get_kernel_ver() 146 firmware_ver = utils.get_firmware_ver(dut.host) [all …]
|
D | clique_dut_locker.py | 93 self.dut.host.hostname, 255 def _unlock_one_dut(self, dut): argument 260 host_name = dut.host.host_name 262 self._locked_duts.remove(dut) 269 for dut in self.locked_duts: 270 self._unlock_one_dut(dut) 274 for dut in self.locked_duts: 275 dut.wifi_client.close() 276 self._unlock_one_dut(dut)
|
D | clique_dut_log_collector.py | 14 def log_collector_dut_worker(dut, job): argument 25 host = dut.host 46 for dut in dut_objects: 51 args=(dut, job))
|
D | clique_dut_updater.py | 19 def update_dut_worker(updater_obj, dut, image, force): argument 33 updater_obj.update_dut(dut_host=dut.host, image=image, force=force) 176 for dut in dut_objects: 177 dut_board = self._get_board_name_from_host(dut.host) 185 args=(self, dut, dut_image, False))
|
/external/autotest/site_utils/tester_feedback/ |
D | request.py | 17 def __init__(self, test, dut, desc): argument 25 self.dut = dut 38 {'test': self.test, 'dut': self.dut, 'desc': self.desc})
|
D | audio_query_delegate_impl.py | 61 req = sequenced_request.SequencedFeedbackRequest(self.test, self.dut, 82 self.test, self.dut, 'Audible playback') 98 self.test, self.dut, None) 126 self.test, self.dut, 'Silent playback') 145 self.test, self.dut, None) 170 self.test, self.dut, 'Audio recording') 191 self.test, self.dut, None) 231 self.test, self.dut, None)
|
D | query_delegate.py | 22 def __init__(self, test, dut, multiplexer, atomic=True): argument 32 self.dut = dut
|
/external/autotest/server/site_tests/moblab_StorageQual/ |
D | moblab_StorageQual.py | 84 for dut in duts: 87 board = labellib.LabelsMapping(dut.labels)['board'] 88 for label in dut.labels: 90 dut_to_label[dut.hostname] = label 230 job_id, dut = match.groups() 233 if dut not in keyvals_per_host: 234 keyvals_per_host[dut] = [] 235 keyvals_per_host[dut].append(line)
|
/external/toolchain-utils/crosperf/ |
D | schedv2.py | 28 def __init__(self, dut, sched): argument 29 super(DutWorker, self).__init__(name='DutWorker-{}'.format(dut.name)) 30 self._dut = dut 189 def dut(self): member in DutWorker 266 self._active_workers = [DutWorker(dut, self) for dut in self._duts] 360 def get_benchmark_run(self, dut): argument 377 if dut.label is None: 382 with self.lock_on(dut.label): 383 brl = self._label_brl_map[dut.label] 389 def allocate_label(self, dut): argument [all …]
|
/external/autotest/site_utils/deployment/prepare/ |
D | dut_unittest.py | 15 import autotest_lib.site_utils.deployment.prepare.dut as dut namespace 60 dut.verify_labstation_RPM_config_unsafe(m) 65 dut.verify_labstation_RPM_config_unsafe(m)
|
/external/autotest/utils/ |
D | probe_bluetooth_duts.sh | 32 dut="$1.cros" 35 ping -q -w 10 -c1 "${dut}" > /dev/null 2>&1 39 board=$(ssh ${SSH_OPTIONS} root@"$dut" cat /etc/lsb-release | \ 44 > "${PROBE_RESULT_DIR}/${dut}"
|
/external/autotest/server/control_segments/ |
D | get_network_stats | 14 dut = hosts.create_target_machine(machine) 18 if utils.ping(dut.hostname, tries=1, timeout=3) != 0: 24 result = dut.run('route; echo SEPARATOR; cat /proc/net/dev')
|
/external/autotest/server/site_tests/crosperf_Wrapper/ |
D | crosperf_Wrapper.py | 25 def run_once(self, test_name, test_args, dut_config_str, dut=None): argument 44 wait_time = device_setup_utils.setup_device(dut, dut_config) 51 client_at = autotest.Autotest(dut)
|
/external/autotest/server/site_tests/cheets_CTS_P/ |
D | cheets_CTS_P.py | 121 for dut in self.dut_fixtures: 122 dut.log_camera_scene() 123 dut.initialize() 218 for dut in self.dut_fixtures: 219 dut.cleanup()
|