Home
last modified time | relevance | path

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

12345678910>>...198

/external/autotest/server/hosts/
Dservo_repair.py47 def wrapper(self, host): argument
52 func(self, host)
54 if host.is_cros_host():
71 def verify(self, host): argument
76 if host.is_labstation():
81 if host.is_in_lab() and host.job and host.job.in_lab:
83 not host.get_dut_host_info() or
84 not host.get_dut_host_info().servo_cros_stable_version
92 host.run('cgpt repair /dev/mmcblk0', ignore_status=True)
93 host.update_image()
[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_repair.py132 def verify(self, host): argument
134 info = self._load_info(host)
136 self._validate_battery(host, info)
138 def _load_info(self, host): argument
140 info = host.get_power_supply_info()
156 def _validate_battery(self, host, info): argument
166 'host': host.hostname,
180 host.run('ectool chargecontrol normal', ignore_status=True)
183 info = self._load_info(host)
189 'model': host.host_info_store.get().model,
[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/openssh/regress/
Dkeygen-knownhosts.sh9 for x in host-a host-b host-c host-d host-e host-f host-a2 host-b2; do
16 host-a|host-b) printf "$x " ;;
17 host-c) printf "@cert-authority $x " ;;
18 host-d) printf "@revoked $x " ;;
19 host-e) printf "host-e* " ;;
20 host-f) printf "host-f,host-g,host-h " ;;
21 host-a2) printf "host-a " ;;
22 host-b2) printf "host-b " ;;
78 expect_key host-a host-a host-a 2
79 expect_key host-a host-a host-a2 20
[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 …]
Dxfa_host_pseudomodel_expected.txt24 Alert: PASS: xfa.host.beep(1, 1) threw XFAObject.beep: Incorrect number of parameters passed to fun…
26 Alert: PASS: xfa.host.beep(42) = undefined
28 Alert: PASS: xfa.host.beep() = undefined
29 Alert: PASS: xfa.host.documentCountInBatch() = 0
30 Alert: PASS: xfa.host.documentCountInBatch(42, 'args', ['ignored']) = 0
31 Alert: PASS: xfa.host.documentInBatch() = 0
32 Alert: PASS: xfa.host.documentInBatch(42, 'args', ['ignored']) = 0
33 Alert: PASS: xfa.host.exportData() threw XFAObject.exportData: Incorrect number of parameters passe…
34 Alert: PASS: xfa.host.exportData(1, 2, 3) threw XFAObject.exportData: Incorrect number of parameter…
35 Alert: PASS: xfa.host.exportData('to-evil-place') = undefined
[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/
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.py108 def __init__(self, host=None): argument
109 self.host = host
126 def get_client_autodir_paths(cls, host): argument
132 def get_installed_autodir(cls, host): argument
138 autodir = host.get_autodir()
143 for path in Autotest.get_client_autodir_paths(host):
146 host.run('test -x %s' % utils.sh_escape(autotest_binary))
147 host.run('test -w %s' % utils.sh_escape(path))
152 host.hostname)
157 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.py70 host, at, outputdir = self._install()
72 host.erase_dir_contents(outputdir)
73 func(self, mytest, host, at, outputdir)
92 self.host = None
103 if not self.host:
105 self.host = hosts.create_target_machine(
109 self.host.delete_all_tmp_dirs([self.AUTOTEST_PARENT_DIR,
112 tmp_dir = self.host.get_tmp_dir(self.AUTOTEST_PARENT_DIR)
113 self.autotest = autotest.Autotest(self.host)
115 self.outputdir = self.host.get_tmp_dir(self.OUTPUT_PARENT_DIR)
[all …]
/external/autotest/server/site_tests/platform_ServoPowerStateController/
Dplatform_ServoPowerStateController.py110 def initialize(self, host): argument
118 mv = self.host.servo.get_vbus_voltage()
119 if mv is not None and mv < self.host.servo.VBUS_THRESHOLD:
127 self.host.servo.set_servo_v4_role('src')
128 if not self.host.is_up():
130 self.host.power_off_via_servo()
131 self.host.servo.switch_usbkey('off')
132 self.host.power_on_via_servo(self.controller.REC_OFF)
133 self.host.wait_up(timeout=300)
144 if not self.host.wait_up(timeout=300):
[all …]
/external/autotest/client/common_lib/cros/
Dkernel_utils.py20 def _run(cmd, host=None): argument
30 if host is not None:
31 return host.run(cmd)
35 def _cgpt(flag, kernel, host=None): argument
44 rootdev = _run(['rootdev','-s', '-d'], host).stdout.strip()
46 rootdev], host).stdout.strip())
48 def get_kernel_state(host=None): argument
55 rootdev = _run(['rootdev','-s'], host).stdout.strip()
64 def get_next_kernel(host=None): argument
71 priority_a = _cgpt('-P', _KERNEL_A, host)
[all …]
Davahi_utils.py25 def avahi_config(options, src_file='/etc/avahi/avahi-daemon.conf', host=None): argument
41 run = utils.run if host is None else host.run
64 def avahi_ping(host=None): argument
77 host=host, timeout_seconds=2,
83 def avahi_start(config_file=None, host=None): argument
94 run = utils.run if host is None else host.run
102 if avahi_ping(host=host):
108 def avahi_stop(ignore_status=False, host=None): argument
115 run = utils.run if host is None else host.run
119 def avahi_start_on_iface(iface, host=None): argument
[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/nist-sip/java/gov/nist/javax/sip/header/
DCallIdentifier.java55 protected String host; field in CallIdentifier
68 public CallIdentifier(String localId, String host) { in CallIdentifier() argument
70 this.host = host; in CallIdentifier()
93 if (host != null) { in encode()
94 buffer.append(AT).append(host); in encode()
114 if (this.host == that.host) in equals()
116 if ((this.host == null && that.host != null) in equals()
117 || (this.host != null && that.host == null)) in equals()
119 if (host.compareToIgnoreCase(that.host) != 0) { in equals()
144 return host; in getHost()
[all …]
/external/autotest/server/site_tests/platform_StageAndRecover/
Dplatform_StageAndRecover.py25 self.host.servo.switch_usbkey('host')
28 def initialize(self, host): argument
32 host.servo.set('prtctl4_pwren','on')
34 host.servo.set('usb_mux_oe3', 'off')
36 host.servo.set('usb_mux_oe1', 'off')
40 host.servo.set('usb_mux_oe1', 'on')
42 host.servo.set('usb_mux_sel1', 'servo_sees_usbkey')
45 host.servo.system('test -e /dev/sda')
46 host.servo.system('mkdir -p %s' %(self._MOUNT_PATH))
48 servo_disk = host.servo.system_output('fdisk -l', ignore_status=True )
[all …]
/external/linux-kselftest/tools/testing/selftests/net/
Dl2tp.sh138 for ns in host-1 host-2 router
149 ip -netns host-1 l2tp add tunnel tunnel_id 1041 peer_tunnel_id 1042 \
151 ip -netns host-1 l2tp add session name l2tp4 tunnel_id 1041 \
153 ip -netns host-1 link set dev l2tp4 up
154 ip -netns host-1 addr add dev l2tp4 172.16.1.1 peer 172.16.1.2
159 ip -netns host-2 l2tp add tunnel tunnel_id 1042 peer_tunnel_id 1041 \
161 ip -netns host-2 l2tp add session name l2tp4 tunnel_id 1042 \
163 ip -netns host-2 link set dev l2tp4 up
164 ip -netns host-2 addr add dev l2tp4 172.16.1.2 peer 172.16.1.1
169 ip -netns host-1 ro add 172.16.101.2/32 via 172.16.1.2
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/test/
Dares-test-parse.cc17 struct hostent *host = nullptr; in TEST_F() local
21 &host, info, &count)); in TEST_F()
24 ss << HostEnt(host); in TEST_F()
26 ares_free_hostent(host); in TEST_F()
51 struct hostent *host = nullptr; in TEST_F() local
55 &host, info, &count)); in TEST_F()
58 ss << HostEnt(host); in TEST_F()
60 ares_free_hostent(host); in TEST_F()
88 struct hostent *host = nullptr; in TEST_F() local
92 &host, info, &count)); in TEST_F()
[all …]

12345678910>>...198