Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 6151) sorted by relevance

12345678910>>...247

/external/autotest/server/hosts/
Dservo_repair.py43 def wrapper(self, host): argument
48 func(self, host)
50 if host.is_cros_host():
68 def verify(self, host): argument
71 not host.get_dut_host_info()
72 or not host.get_dut_host_info().servo_cros_stable_version):
79 host.run('cgpt repair /dev/mmcblk0', ignore_status=True)
80 host.update_image()
88 def _is_applicable(self, host): argument
90 if host.is_labstation() or host.is_containerized_servod():
[all …]
Dcros_repair.py140 def verify(self, host): argument
142 info = self._load_info(host)
144 self._validate_battery(host, info)
146 def _load_info(self, host): argument
148 info = host.get_power_supply_info()
164 def _validate_battery(self, host, info): argument
165 host_info = host.host_info_store.get()
168 data = {'host': host.hostname, 'model': host_info.model}
183 'host': host.hostname,
197 host.run('ectool chargecontrol normal', ignore_status=True)
[all …]
Dcros_firmware.py69 def _is_firmware_testing_device(host): argument
80 info = host.host_info_store.get()
84 def _is_firmware_update_supported(host): argument
99 return not _is_firmware_testing_device(host)
102 def _get_available_firmware(host, model): argument
109 result = host.run('chromeos-firmwareupdate --manifest', ignore_status=True)
133 def verify(self, host): argument
134 if not _is_firmware_testing_device(host):
144 host.run(cmd)
151 rv = host.run(cmd % (c, c), ignore_status=True)
[all …]
Dcros_host_unittest.py65 host = MockHost(
68 self.assertEqual(host.get_platform(), 'coral')
71 host = MockHost(
75 self.assertEqual(host.get_platform(), 'coral')
78 host = MockHost(
83 self.assertEqual(host.get_platform(), 'reef')
86 host = MockHost(
89 self.assertEqual(host.get_platform(), 'reef')
92 host = MockHost(
95 self.assertEqual(host.get_platform(), 'reef')
[all …]
Dcros_label_unittest.py158 host = MockHost([], MockCmd(mosys_cmd, 0, '27\n'))
159 self.assertEqual(DeviceSkuLabel().generate_labels(host), ['27'])
163 host = MockHost([], MockCmd(mosys_cmd, 1, '27\n'))
164 self.assertEqual(DeviceSkuLabel().generate_labels(host), [])
167 host = MockHost(['device-sku:48'])
168 self.assertEqual(DeviceSkuLabel().generate_labels(host), ['48'])
181 host = MockHost([], MockCmd(cros_config_cmd, 0, 'XXYZ\n'))
182 self.assertEqual(BrandCodeLabel().generate_labels(host), ['XXYZ'])
186 host = MockHost([], MockCmd(cros_config_cmd, 1, 'XXYZ\n'))
187 self.assertEqual(BrandCodeLabel().generate_labels(host), [])
[all …]
Drepair_utils.py17 def require_servo(host, ignore_state=False): argument
26 servo_initialized = host.servo is not None
27 servo_working = (host.get_servo_state() ==
32 '%s has no working servo.' % host.hostname, 'no_working_servo')
49 def verify(self, host): argument
50 if host.is_up():
54 socket.gethostbyname(host.hostname)
59 if utils.ping(host.hostname, tries=1, deadline=1) != 0:
61 raise hosts.AutoservVerifyError(msg % host.hostname)
81 def verify(self, host): argument
[all …]
/external/autotest/site_utils/deployment/prepare/
Ddut.py76 host = hosts.create_host(machine_dict)
78 **servo_host.get_servo_args_for_host(host))
80 host.set_servo_host(servohost)
81 host.servo.uart_logs_dir = logs_dir
83 yield host
85 host.close()
102 def download_image_to_servo_usb(host, build): argument
108 _, update_url = host.stage_image_for_servo(build)
109 host.servo.image_to_servo_usb(update_url)
112 def try_reset_by_servo(host): argument
[all …]
/external/iperf3/
Dtest_commands.sh17 host=$1
20 ./src/iperf3 -c $host -V -t 5 -T "test1"
21 ./src/iperf3 -c $host -u -V -t 5
23 ./src/iperf3 -c $host -i .3 -O 2 -t 5
25 ./src/iperf3 -c $host -i 1 -J -t 5
27 ./src/iperf3 -c $host -4 -t 5
28 ./src/iperf3 -c $host -4 -u -t 5
30 ./src/iperf3 -c $host -6 -t 5
31 ./src/iperf3 -c $host -6 -u -t 5
33 ./src/iperf3 -c $host -V -t 5 --fq-rate 5m
[all …]
/external/pdfium/testing/resources/javascript/xfa_specific/
Dxfa_host_pseudomodel.in23 <event activity="docReady" ref="$host">
27 testROProperty(xfa.host, "appType", "Exchange");
28 testRWProperty(xfa.host, "calculationsEnabled", true, false);
29 testRIProperty(xfa.host, "currentPage", -1, 0);
30 testROProperty(xfa.host, "language", "");
31 testROProperty(xfa.host, "name", "Acrobat");
32 testROProperty(xfa.host, "numPages", 2);
33 testROProperty(xfa.host, "platform", "");
34 testRIProperty(xfa.host, "title", "");
35 testRWProperty(xfa.host, "validationsEnabled", true, false);
[all …]
/external/autotest/server/
Dcrashcollect.py34 def __init__(self, host): argument
35 self.host = host
43 self.tmpdir = (self.host
49 self.host.run('rm -rf %s' % (pipes.quote(self.tmpdir),))
52 def _collect_log_file_with_summary(host, source_path, dest_path): argument
60 summary_created = result_tools_runner.run_on_client(host, source_path)
64 host.get_file(source_path, dest_path, preserve_perm=False)
76 host, source_path, dest_path,
80 def collect_log_file(host, log_path, dest_path, use_tmp=False, clean=False, argument
106 if not host.check_cached_up_status():
[all …]
Dautotest.py113 def __init__(self, host=None): argument
114 self.host = host
131 def get_client_autodir_paths(cls, host): argument
137 def get_installed_autodir(cls, host): argument
143 autodir = host.get_autodir()
148 for path in Autotest.get_client_autodir_paths(host):
151 host.run('test -x %s' % utils.sh_escape(autotest_binary))
152 host.run('test -w %s' % utils.sh_escape(path))
157 host.hostname)
162 def get_install_dir(cls, host): argument
[all …]
Dprofilers.py68 for host in self.job.hosts:
69 if host.hostname not in self.job.machines:
74 autodir = host.get_autodir()
76 in_use_hosts[host.hostname] = host
81 for host, at, profiler_dir in self.installed_hosts.values():
82 if host.path_exists(profiler_dir):
83 profiler_hosts.add(host.hostname)
87 host.hostname, profiler_dir)
88 del self.installed_hosts[host.hostname]
94 host = in_use_hosts[hostname]
[all …]
Dtest.py83 host, at, outputdir = self._install()
85 host.erase_dir_contents(outputdir)
86 func(self, mytest, host, at, outputdir)
105 self.host = None
116 if not self.host:
117 self.host = hosts.create_target_machine(
121 self.host.delete_all_tmp_dirs([self.AUTOTEST_PARENT_DIR,
124 tmp_dir = self.host.get_tmp_dir(self.AUTOTEST_PARENT_DIR)
125 self.autotest = autotest.Autotest(self.host)
127 self.outputdir = self.host.get_tmp_dir(self.OUTPUT_PARENT_DIR)
[all …]
/external/autotest/site_utils/admin_audit/
Drpm_validator.py22 def _is_rpm_config_present(host): argument
29 host_info = host.host_info_store.get()
38 set_rpm_state(host, constants.RPM_STATE_MISSING_CONFIG)
41 set_rpm_state(host, constants.RPM_STATE_WRONG_CONFIG)
48 def _set_power_off(host, quite=False): argument
50 rpm_client.set_power(host, "OFF")
53 _set_power_on(host, quite=True)
59 def _set_power_on(host, quite=False): argument
61 rpm_client.set_power(host, "ON")
69 def _check_rpm_power_delivery_with_battery(host): argument
[all …]
/external/autotest/server/site_tests/platform_ServoPowerStateController/
Dplatform_ServoPowerStateController.py112 def initialize(self, host): argument
120 mv = self.host.servo.get_vbus_voltage()
121 if mv is not None and mv < self.host.servo.VBUS_THRESHOLD:
129 self.host.servo.set_servo_v4_role('src')
130 if not self.host.is_up():
132 self.host.power_off_via_servo()
133 self.host.servo.switch_usbkey('off')
134 self.host.power_on_via_servo(self.controller.REC_OFF)
135 self.host.wait_up(timeout=300)
146 if not self.host.wait_up(timeout=300):
[all …]
/external/autotest/server/cros/
Dchrome_sideloader.py22 def extract_from_image(host, image_name, dest_dir): argument
32 if not host.path_exists('/var/lib/imageloader/%s' % image_name):
33 raise Exception('Image %s not found on host %s' % (image_name, host))
50 host.run(['rm', '-rf', dest_dir])
51 host.run(['mkdir', '-p', '--mode', '0755', dest_dir, image_mount_point])
55 host.run([
61 host.run(['cp', '-r', '%s/*' % image_mount_point, '%s/' % dest_dir])
65 (image_name, host), e)
68 host.run([
72 host.run(['rm', '-rf', image_mount_point])
[all …]
Dcamerabox_utils.py21 self.host = chart_host
25 self.host.run(['rm', '-f', self.OUTPUT_LOG], ignore_status=True)
30 chart_version = self.host.run(
36 version = self.host.get_release_builder_path()
38 host=self.host,
42 tmpdir = self.host.get_tmp_dir()
45 self.host.run('wget', args=('-O', scene_path, self.scene_uri))
48 self.display_pid = self.host.run_background(
59 if self.host.run(
72 self.host.run(
[all …]
/external/autotest/client/common_lib/cros/
Dkernel_utils.py22 def _run(cmd, host=None): argument
32 if host is not None:
33 return host.run(cmd)
37 def _cgpt(flag, kernel, host=None): argument
46 rootdev = _run(['rootdev','-s', '-d'], host).stdout.strip()
48 rootdev], host).stdout.strip())
50 def get_kernel_state(host=None): argument
57 rootdev = _run(['rootdev','-s'], host).stdout.strip()
66 def get_next_kernel(host=None): argument
73 priority_a = _cgpt('-P', _KERNEL_A, host)
[all …]
Davahi_utils.py26 def avahi_config(options, src_file='/etc/avahi/avahi-daemon.conf', host=None): argument
42 run = utils.run if host is None else host.run
65 def avahi_ping(host=None): argument
78 host=host, timeout_seconds=2,
84 def avahi_start(config_file=None, host=None): argument
95 run = utils.run if host is None else host.run
103 if avahi_ping(host=host):
109 def avahi_stop(ignore_status=False, host=None): argument
116 run = utils.run if host is None else host.run
120 def avahi_start_on_iface(iface, host=None): argument
[all …]
/external/cronet/net/base/registry_controlled_domains/
Dregistry_controlled_domain.cc83 size_t GetRegistryLengthInTrimmedHost(base::StringPiece host, in GetRegistryLengthInTrimmedHost() argument
89 host, &length); in GetRegistryLengthInTrimmedHost()
91 DCHECK_LE(length, host.size()); in GetRegistryLengthInTrimmedHost()
97 const size_t last_dot = host.find_last_of('.'); in GetRegistryLengthInTrimmedHost()
99 return host.size() - last_dot - 1; in GetRegistryLengthInTrimmedHost()
109 if (length == host.size()) in GetRegistryLengthInTrimmedHost()
112 DCHECK_LE(length + 2, host.size()); in GetRegistryLengthInTrimmedHost()
113 DCHECK_EQ('.', host[host.size() - length - 1]); in GetRegistryLengthInTrimmedHost()
116 host.find_last_of('.', host.size() - length - 2); in GetRegistryLengthInTrimmedHost()
123 return host.size() - preceding_dot - 1; in GetRegistryLengthInTrimmedHost()
[all …]
/external/autotest/server/cros/network/
Dip_config_context_manager.py14 def bring_interface_up(self, host, dev_name): argument
23 if host in self._iface_cleanup_dict:
24 self._iface_cleanup_dict[host].append(clear_command)
26 self._iface_cleanup_dict[host] = [clear_command]
27 host.run('sudo ip link set %s up' % dev_name)
29 def add_ip_route(self, host, dest_ip, iface_name, via_ip=None): argument
42 if host in self._ip_route_cleanup_dict:
43 self._ip_route_cleanup_dict[host].append(clear_command)
45 self._ip_route_cleanup_dict[host] = [clear_command]
46 host.run('sudo ip route replace table 255 %s %sdev %s' %
[all …]
/external/virglrenderer/.gitlab-ci/expectations/host/
Dvirgl-gles-skips.txt35 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/RaW/full barrier test/16x16
36 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/RaW/full barrier test/4x4
37 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/RaW/full barrier test/64x64
38 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/RaW/one bit barrier test/16x16
39 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/RaW/one bit barrier test/4x4
40 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/RaW/one bit barrier test/64x64
41 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/WaR/full barrier test/16x16
42 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/WaR/full barrier test/4x4
43 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/WaR/full barrier test/64x64
44 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/WaR/one bit barrier test/16x16
[all …]
/external/autotest/client/common_lib/hosts/
Drepair.py188 def _is_applicable(self, host): argument
198 def _record(self, host, silent, status_code, *record_args): argument
215 host.record(status_code, None, self._record_tag,
218 def _record_good(self, host, silent): argument
225 self._record(host, silent, 'GOOD')
227 def _record_fail(self, host, silent, exc): argument
235 self._record(host, silent, 'FAIL', str(exc))
237 def _verify_list(self, host, verifiers, silent): argument
263 v._verify_host(host, silent)
274 def _verify_dependencies(self, host, silent): argument
[all …]
/external/autotest/client/cros/
Dliststorage.py45 def read_file(path_to_file, host=None): argument
51 if host:
52 if not host.path_exists(path_to_file):
54 return host.run('cat %s' % path_to_file).stdout.strip()
61 def system_output(command, host=None, ignore_status=False): argument
68 if host:
69 return host.run(command, ignore_status=ignore_status).stdout.strip()
74 def get_udev_info(blockdev, method='udev', host=None): argument
100 output = system_output(cmd, host, ignore_status=ignore_status)
113 def get_lsusb_info(host=None): argument
[all …]
/external/virglrenderer/.gitlab-ci/expectations/virt/
Dvirgl-gles-skips.txt46 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/RaW/full barrier test/16x16
47 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/RaW/full barrier test/4x4
48 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/RaW/full barrier test/64x64
49 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/RaW/one bit barrier test/16x16
50 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/RaW/one bit barrier test/4x4
51 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/RaW/one bit barrier test/64x64
52 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/WaR/full barrier test/16x16
53 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/WaR/full barrier test/4x4
54 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/WaR/full barrier test/64x64
55 spec@arb_shader_image_load_store@host-mem-barrier@Atomic counter/WaR/one bit barrier test/16x16
[all …]

12345678910>>...247