Lines Matching refs:device
67 def get_current_driver(device, target_name, hdc_tools):
71 driver = CppTestDriver(device, hdc_tools)
73 driver = CppTestDriver(device, hdc_tools)
89 def pull_result(device, source_path, result_save_path):
91 device.pull_file(source_path, result_save_path)
96 def _check_thread(device, thread_name):
102 output = device.shell_with_output(check_command)
111 def _query_device_ip(device):
112 output = device.shell_with_output("getprop ro.hardware")
117 output = device.shell_with_output("ifconfig")
133 def _query_device_hdc_ip(device):
134 output = device.shell_with_output("param get ohos.boot.hardware")
139 output = device.shell_with_output("ifconfig waln0")
153 def _query_device_uuid(device):
157 2. The dump information reported by the soft bus. Local device info,
162 device_info = device.shell_with_output(dumpsys_command)
178 def _query_device_major_uuid(device):
179 device_sn = device.device_sn
181 device_info = device.execute_command_with_output(command)
192 def _query_device_agent_uuid(device):
193 device_sn = device.device_sn
195 device_info = device.execute_command_with_output(command)
217 def exec_agent(self, device, target_name, result_path, options):
218 driver = get_current_driver(device, target_name, self.hdc_tools)
223 resource_dir = get_resource_dir(self.suite_dir, device.name)
225 self._make_agent_desc_file(device)
226 device.push_file(os.path.join(self.suite_dir, "agent.desc"),
227 device.test_path)
228 device.push_file(os.path.join(resource_dir, target_name),
229 device.test_path)
233 return self._check_thread(device, target_name)
235 def exec_major(self, device, target_name, result_path, options):
236 driver = get_current_driver(device, target_name, self.hdc_tools)
241 resource_dir = get_resource_dir(self.suite_dir, device.name)
243 device.push_file(os.path.join(self.suite_dir, "major.desc"),
244 device.test_path)
245 device.push_file(os.path.join(resource_dir, target_name),
246 device.test_path)
251 def _make_agent_desc_file(self, device):
260 if self._query_device_ip(device) != "":
262 agent_ip_list, self._query_device_ip(device))
279 if self._query_device_hdc_ip(device):
281 agent_ip_list, self._query_device_hdc_ip(device))