/external/autotest/server/hosts/ |
D | servo_repair.py | 23 def verify(self, host): argument 27 if host.is_in_lab() and host.job and host.job.in_lab: 28 host.update_image(wait_for_update=False) 44 def _get_config_val(host, config_file, attr): argument 57 attr_val = host.run(getboard, ignore_status=True).stdout 61 def _validate_attr(host, val, expected_val, attr, config_file): argument 87 def _get_configs(self, host): argument 98 config_list = ['%s_%d' % (self.CONFIG_FILE, host.servo_port)] 99 if host.servo_port == host.DEFAULT_PORT: 115 def verify(self, host): argument [all …]
|
D | cros_repair.py | 33 def verify(self, host): argument 43 info = host.get_power_supply_info() 91 def verify(self, host): argument 97 rv = host.run(command=command, ignore_status=True) 111 def verify(self, host): argument 117 output = host.run(command=command, ignore_status=True).stdout 124 output = host.run(command=command, ignore_status=True).stdout 149 def verify(self, host): argument 150 result = host.run('test -f %s' % host.PROVISION_FAILED, 164 def verify(self, host): argument [all …]
|
D | cros_label.py | 30 def generate_labels(self, host): argument 36 for label in host._afe_host.labels: 46 run_method=host.run) 63 def exists(self, host): argument 69 result = host.run(search_cmd, stdout_tee=None, stderr_tee=None, 80 def exists(self, host): argument 81 result = host.run('test -d /sys/class/bluetooth/hci0', 92 def exists(self, host): argument 108 ecinfo = host.run(command=cmd, ignore_status=True) 125 def exists(self, host): argument [all …]
|
D | cros_firmware.py | 61 def _is_firmware_repair_supported(host): argument 73 info = host.host_info_store.get() 77 def _is_firmware_update_supported(host): argument 92 info = host.host_info_store.get() 105 def verify(self, host): argument 106 if not _is_firmware_repair_supported(host): 116 host.run(cmd) 123 rv = host.run(cmd % (c, c), ignore_status=True) 129 host.run('rm -rf /tmp/verify_firmware') 146 def repair(self, host): argument [all …]
|
D | repair.py | 25 def verify(self, host): argument 26 if host.is_up(): 30 socket.gethostbyname(host.hostname) 35 if utils.ping(host.hostname, tries=1, deadline=1) != 0: 37 raise hosts.AutoservVerifyError(msg % host.hostname) 54 def verify(self, host): argument 55 host.verify_software() 56 host.verify_hardware() 67 def repair(self, host): argument 68 host.run('/usr/share/vboot/bin/set_gbb_flags.sh 0') [all …]
|
/external/autotest/server/ |
D | afe_utils.py | 30 def _host_in_lab(host): argument 42 if not host.job or not host.job.in_lab: 44 return host._afe_host 47 def get_labels(host, prefix=None): argument 56 return host._afe_host.labels 58 return [label for label in host._afe_host.labels 62 def clear_version_labels(host): argument 67 host._afe_host.labels = [label for label in host._afe_host.labels 68 if not label.startswith(host.VERSION_PREFIX)] 69 if not _host_in_lab(host): [all …]
|
D | crashcollect.py | 31 def __init__(self, host): argument 32 self.host = host 40 self.tmpdir = (self.host 46 self.host.run('rm -rf %s' % (pipes.quote(self.tmpdir),)) 49 def collect_log_file(host, log_path, dest_path, use_tmp=False, clean=False): argument 73 file_stats = _get_file_stats(host, log_path) 80 _collect_log_file_with_tmpdir(host, log_path, dest_path) 83 host.get_file(source_path, dest_path, preserve_perm=False) 88 host.run('rm -rf %s' % (pipes.quote(log_path),)) 95 def _collect_log_file_with_tmpdir(host, log_path, dest_path): argument [all …]
|
D | autotest.py | 79 def __init__(self, host=None): argument 80 self.host = host 97 def get_client_autodir_paths(cls, host): argument 103 def get_installed_autodir(cls, host): argument 109 autodir = host.get_autodir() 114 for path in Autotest.get_client_autodir_paths(host): 117 host.run('test -x %s' % utils.sh_escape(autotest_binary)) 118 host.run('test -w %s' % utils.sh_escape(path)) 123 host.hostname) 128 def get_install_dir(cls, host): argument [all …]
|
D | test.py | 61 host, at, outputdir = self._install() 64 if not host.is_client_install_supported: 70 host.erase_dir_contents(outputdir) 71 func(self, mytest, host, at, outputdir) 87 self.host = None 98 if not self.host: 100 self.host = hosts.create_target_machine( 104 if not self.host.is_client_install_supported: 105 return self.host, None, None 107 tmp_dir = self.host.get_tmp_dir(parent="/tmp/sysinfo") [all …]
|
D | profilers.py | 67 for host in self.job.hosts: 68 if host.hostname not in self.job.machines: 73 autodir = host.get_autodir() 75 in_use_hosts.add(host.hostname) 80 for host, at, profiler_dir in self.installed_hosts.values(): 81 if host.path_exists(profiler_dir): 82 profiler_hosts.add(host.hostname) 86 host.hostname, profiler_dir) 87 host.close() 88 del self.installed_hosts[host.hostname] [all …]
|
D | autotest_unittest.py | 21 self.host = self.god.create_mock_class(hosts.RemoteHost, "host") 22 self.host.hostname = "hostname" 23 self.host.job = self.god.create_mock_class(server_job.server_job, 25 self.host.job.run_test_cleanup = True 26 self.host.job.sysinfo = self.god.create_mock_class( 28 self.host.job.profilers = self.god.create_mock_class( 30 self.host.job.profilers.add_log = {} 31 self.host.job.tmpdir = "/job/tmp" 32 self.host.job.default_profile_only = False 33 self.host.job.args = [] [all …]
|
/external/autotest/client/common_lib/cros/ |
D | avahi_utils.py | 25 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 …]
|
D | autoupdater_unittest.py | 41 update_url, host=self.mox.CreateMockAnything()) 44 self.mox.StubOutWithMock(updater.host, 'get_release_version') 45 updater.host.get_release_version().MultipleTimes().AndReturn( 53 self.mox.StubOutWithMock(updater.host, 'get_release_version') 54 updater.host.get_release_version().MultipleTimes().AndReturn( 62 self.mox.StubOutWithMock(updater.host, 'get_release_version') 63 updater.host.get_release_version().MultipleTimes().AndReturn('1111.0.0') 70 self.mox.StubOutWithMock(updater.host, 'get_release_version') 71 updater.host.get_release_version().MultipleTimes().AndReturn( 92 update_url, host=self.mox.CreateMockAnything()) [all …]
|
/external/autotest/server/site_tests/power_DarkResumeShutdownServer/ |
D | power_DarkResumeShutdownServer.py | 26 def initialize(self, host, power_method=None): argument 29 self.orig_boot_id = host.get_boot_id() 31 host.run('mkdir -p %s' % TMP_POWER_DIR) 35 host.run('echo %s %d > %s/dark_resume_suspend_durations' % 41 host.run('echo %s > %s/dark_resume_sources' % 46 host.run('echo 0 > %s/disable_dark_resume' % TMP_POWER_DIR) 49 host.run('mount --bind %s %s' % (TMP_POWER_DIR, POWER_DIR)) 53 host.run('restart powerd') 65 def run_once(self, host=None): argument 80 platform = host.run_output('mosys platform name') [all …]
|
/external/autotest/cli/ |
D | host.py | 32 class host(topic_common.atest): class 45 super(host, self).__init__() 95 class host_help(host): 101 class host_list(action_common.atest_list, host): 216 class host_stat(host): 225 for host in self.hosts: 226 if host.endswith('*'): 228 hostname__startswith=host.rstrip('*')) 230 self.failure('No hosts matching %s' % host, item=host, 234 stats = self.execute_rpc('get_hosts', hostname=host) [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
D | CallIdentifier.java | 55 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/guava/guava/src/com/google/common/net/ |
D | HostAndPort.java | 72 private final String host; field in HostAndPort 80 private HostAndPort(String host, int port, boolean hasBracketlessColons) { in HostAndPort() argument 81 this.host = host; in HostAndPort() 94 return host; in getHostText() 133 public static HostAndPort fromParts(String host, int port) { in fromParts() argument 135 HostAndPort parsedHost = fromString(host); in fromParts() 136 checkArgument(!parsedHost.hasPort(), "Host has a port: %s", host); in fromParts() 137 return new HostAndPort(parsedHost.host, port, parsedHost.hasBracketlessColons); in fromParts() 151 public static HostAndPort fromHost(String host) { in fromHost() argument 152 HostAndPort parsedHost = fromString(host); in fromHost() [all …]
|
/external/dagger2/ |
D | Android.mk | 22 LOCAL_MODULE := dagger2-host 28 dagger2-inject-host \ 39 LOCAL_MODULE := dagger2-producers-host 45 dagger2-host \ 46 dagger2-inject-host \ 57 LOCAL_MODULE := dagger2-compiler-host 67 dagger2-host \ 68 dagger2-auto-common-host \ 69 dagger2-auto-factory-host \ 70 dagger2-auto-service-host \ [all …]
|
/external/autotest/server/site_tests/platform_CloseOpenLid/ |
D | platform_CloseOpenLid.py | 16 def run_once(self, host): argument 18 boot_id = host.get_boot_id() 19 host.servo.lid_close() 20 host.test_wait_for_shutdown() 22 host.servo.lid_open() 23 host.servo.pass_devmode() 24 host.test_wait_for_boot(boot_id) 27 boot_id = host.get_boot_id() 28 host.servo.power_long_press() 29 if host.is_up(): [all …]
|
/external/autotest/site_utils/ |
D | mass_update.py | 82 host = self._hosts.popleft() 85 self._logger.info('Updating host %s' % host) 88 if not CheckSSH(host=host, options=self._options): 90 elif LockHost(host) and ImageHost(host=host, options=self._options): 95 'Completed update for host %s successfully.' % host) 98 self._logger.info('Failed to SSH to host %s.' % host) 99 self._status.ssh_failures.append(host) 101 self._logger.info('Failed to update host %s.' % host) 102 self._status.update_failures.append(host) 104 UnlockHost(host) [all …]
|
/external/autotest/server/site_tests/platform_PowerStatusStress/ |
D | platform_PowerStatusStress.py | 40 if not self.host.ping_wait_down(timeout=suspend_timeout): 53 if not self.host.wait_up(timeout=resume_timeout): 64 self.host.servo.lid_close() 68 self.host.suspend(suspend_time=_SUSPEND_TIME) 73 self.host.servo.lid_open() 75 self.host.servo.power_key(_WAKE_PRESS_IN_SEC) 81 self.host.power_on() 82 self.host.servo.lid_open() 96 self.host.power_on() 98 self.host.power_off() [all …]
|
/external/autotest/server/site_tests/platform_Vpd/ |
D | platform_Vpd.py | 39 def get_stat(self, host, path): argument 48 if not self.file_exists(host, path): 51 user = host.run('stat -c %U ' + path).stdout.strip() 52 group = host.run('stat -c %G ' + path).stdout.strip() 53 mode = host.run('stat -c %a ' + path).stdout.strip() 57 def file_exists(self, host, path): argument 65 return host.run('[ -f %s ]' % path, 68 def is_symlink(self, host, path): argument 76 return host.run('[ -h %s ]' % path, 79 def run_once(self, host): argument [all …]
|
/external/autotest/client/common_lib/hosts/ |
D | repair.py | 140 def _record(self, host, silent, *record_args): argument 153 host.record(*record_args) 156 def _verify_list(self, host, verifiers, silent): argument 182 v._verify_host(host, silent) 191 def _verify_dependencies(self, host, silent): argument 199 self._verify_list(host, self._dependency_list, silent) 305 def _verify_host(self, host, silent): argument 326 self._verify_dependencies(host, silent) 329 self.verify(host) 330 self._record(host, silent, 'GOOD', None, self._verify_tag) [all …]
|
/external/caliper/ |
D | Android.mk | 25 LOCAL_MODULE := caliper-host 33 apache-commons-math-host \ 34 caliper-gson-host \ 35 caliper-java-allocation-instrumenter-host \ 36 caliper-jersey-client-host \ 37 caliper-jersey-core-host \ 38 caliper-joda-time-host \ 39 caliper-jsr311-api-host \ 40 dagger2-host \ 41 dagger2-inject-host \ [all …]
|
/external/c-ares/ |
D | ares_gethostbyname.c | 74 struct hostent *host); 77 static int file_lookup(const char *name, int family, struct hostent **host); 78 static void sort_addresses(struct hostent *host, 80 static void sort6_addresses(struct hostent *host, 135 struct hostent *host; in next_lookup() local 161 status = file_lookup(hquery->name, hquery->want_family, &host); in next_lookup() 168 end_hquery(hquery, status, host); in next_lookup() 183 struct hostent *host = NULL; in host_callback() local 190 status = ares_parse_a_reply(abuf, alen, &host, NULL, NULL); in host_callback() 191 if (host && channel->nsort) in host_callback() [all …]
|