/external/autotest/server/site_tests/brillo_BootLoader/ |
D | brillo_BootLoader.py | 34 self.num_slots = int(self.dut.run_output('bootctl get-number-slots')) 36 self.suffix_a = self.dut.run_output('bootctl get-suffix 0') 37 self.suffix_b = self.dut.run_output('bootctl get-suffix 1') 42 self.boot_a_size = int(self.dut.run_output( 44 self.boot_b_size = int(self.dut.run_output( 62 cmd_output = self.dut.fastboot_run('getvar %s' % variable_name) 78 self.dut.ensure_bootloader_mode() 85 self.dut.fastboot_reboot() 93 return int(self.dut.run_output('bootctl get-current-slot')) 114 self.dut.run('bootctl set-active-boot-slot %d' % slot_number) [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 | 18 def check_chrome_logfile(dut): argument 28 output = dut.run(cmd, ignore_status=True).stdout 36 def check_last_reboot(dut): argument 46 output = dut.run(cmd, ignore_status=True).stdout 54 def check_is_platform(dut, name): argument 63 output = dut.run(cmd, ignore_status=True).stdout.strip() 69 def get_mgmt_ipv4(dut): argument 78 output = dut.run(cmd, ignore_status=True).stdout 86 def retrieve_usb_devices(dut): argument 92 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/p2p_EndToEndTest/ |
D | p2p_EndToEndTest.py | 43 def run_once(self, dut, file_id, is_master, 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/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/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/server/cros/clique_lib/ |
D | clique_runner.py | 102 for dut in dut_objects: 103 if not utils.is_dut_healthy(dut.wifi_client, ap): 104 logging.error('DUT %s not healthy.', dut.host.hostname) 115 for dut in dut_objects: 116 utils.sanitize_client(dut.host) 129 for dut in dut_objects: 130 dut.wifi_client.shill.sync_time_to(epoch_seconds) 147 for dut in dut_objects: 148 kernel_ver = dut.host.get_kernel_ver() 149 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) 178 for dut in dut_objects: 179 dut_board = self._get_board_name_from_host(dut.host) 187 args=(self, dut, dut_image, False))
|
/external/autotest/server/site_tests/telemetry_Crosperf/ |
D | telemetry_Crosperf.py | 124 def _ensure_deps(dut, test_name): argument 158 dut.send_file(src, dst) 167 def scp_telemetry_results(self, client_ip, dut, file, host_dir): argument 179 (dut.hostname if dut else client_ip, 198 def run_once(self, args, client_ip='', dut=None): argument 216 _ensure_deps(dut, test_name) 222 runner = dut 274 _kill_perf(dut) 288 result = self.scp_telemetry_results(client_ip, dut,
|
D | control | 24 dut = hosts.create_host(machine) 27 args=args_dict, dut=dut)
|
/external/autotest/site_utils/tester_feedback/ |
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 | 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 | 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 | 23 def __init__(self, dut, sched): argument 24 super(DutWorker, self).__init__(name='DutWorker-{}'.format(dut.name)) 25 self._dut = dut 179 def dut(self): member in DutWorker 255 self._active_workers = [DutWorker(dut, self) for dut in self._duts] 347 def get_benchmark_run(self, dut): argument 364 if dut.label is None: 369 with self.lock_on(dut.label): 370 brl = self._label_brl_map[dut.label] 376 def allocate_label(self, dut): argument [all …]
|
D | machine_image_manager.py | 142 for idx, dut in enumerate(self.duts_): 143 self.dut_name_ordinal_[dut.name] = idx 194 def allocate(self, dut, schedv2=None): argument 206 j = self.dut_name_ordinal_[dut.name]
|
/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')
|
D | cleanup | 29 # Try to save /var/log files. If the dut is not sshable, try to restart 30 # with servo. This is a temp fix to collect log for test failed with dut 37 # Try to restart dut with servo.
|
/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)
|
/external/autotest/server/site_tests/cheets_CTS_N/ |
D | cheets_CTS_N.py | 140 for dut in self.dut_fixtures: 141 dut.initialize() 222 for dut in self.dut_fixtures: 223 dut.cleanup()
|
/external/autotest/server/lib/ |
D | suite_report.py | 111 dut = None 118 dut = s.hostname 127 if dut: 128 entry['dut'] = dut
|