/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 | 73 def verify(self, host): argument 83 info = host.get_power_supply_info() 131 def verify(self, host): argument 137 rv = host.run(command=command, ignore_status=True) 151 def verify(self, host): argument 157 output = host.run(command=command, ignore_status=True).stdout 164 output = host.run(command=command, ignore_status=True).stdout 189 def verify(self, host): argument 190 result = host.run('test -f %s' % host.PROVISION_FAILED, 204 def verify(self, host): argument [all …]
|
D | cros_label.py | 27 def _parse_lsb_output(host): argument 34 run_method=host.run) 45 def generate_labels(self, host): argument 51 for label in host._afe_host.labels: 55 return [_parse_lsb_output(host).board] 63 def generate_labels(self, host): argument 66 for label in host._afe_host.labels: 70 lsb_output = _parse_lsb_output(host) 75 result = host.run(command=test_label_cmd, ignore_status=True) 80 result = host.run(command=mosys_cmd, ignore_status=True) [all …]
|
D | cros_firmware.py | 63 def _is_firmware_repair_supported(host): argument 75 info = host.host_info_store.get() 79 def _is_firmware_update_supported(host): argument 94 info = host.host_info_store.get() 121 def _get_available_firmware(host, model): argument 128 result = host.run('chromeos-firmwareupdate -V', ignore_status=True) 155 def verify(self, host): argument 156 if not _is_firmware_repair_supported(host): 166 host.run(cmd) 173 rv = host.run(cmd % (c, c), ignore_status=True) [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.reboot() [all …]
|
D | base_label.py | 24 def exists_wrapper(self, host): argument 34 info = host.host_info_store.get() 35 return (self._NAME in info.labels) or exists(self, host) 64 def generate_labels(self, host): argument 76 def exists(self, host): argument 90 def get(self, host): argument 96 if self.exists(host): 97 return self.generate_labels(host) 134 def generate_labels(self, host): argument 138 def exists(self, host): argument [all …]
|
/external/autotest/server/ |
D | crashcollect.py | 32 def __init__(self, host): argument 33 self.host = host 41 self.tmpdir = (self.host 47 self.host.run('rm -rf %s' % (pipes.quote(self.tmpdir),)) 50 def _collect_log_file_with_summary(host, source_path, dest_path): argument 58 summary_created = result_tools_runner.run_on_client(host, source_path) 62 host.get_file(source_path, dest_path, preserve_perm=False) 74 host, source_path, dest_path, 78 def collect_log_file(host, log_path, dest_path, use_tmp=False, clean=False, argument 104 if not host.check_cached_up_status(): [all …]
|
D | autotest.py | 101 def __init__(self, host=None): argument 102 self.host = host 119 def get_client_autodir_paths(cls, host): argument 125 def get_installed_autodir(cls, host): argument 131 autodir = host.get_autodir() 136 for path in Autotest.get_client_autodir_paths(host): 139 host.run('test -x %s' % utils.sh_escape(autotest_binary)) 140 host.run('test -w %s' % utils.sh_escape(path)) 145 host.hostname) 150 def get_install_dir(cls, host): argument [all …]
|
D | test.py | 66 host, at, outputdir = self._install() 69 if not host.is_client_install_supported: 75 host.erase_dir_contents(outputdir) 76 func(self, mytest, host, at, outputdir) 92 self.host = None 103 if not self.host: 105 self.host = hosts.create_target_machine( 109 if not self.host.is_client_install_supported: 110 return self.host, None, None 112 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[host.hostname] = host 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 del self.installed_hosts[host.hostname] 93 host = in_use_hosts[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 …]
|
D | site_crashcollect.py | 166 def _find_orphaned_crashdumps(host): argument 171 return host.list_files_glob(os.path.join(constants.CRASH_DIR, '*')) 174 def report_crashdumps(host): argument 182 for crashfile in _find_orphaned_crashdumps(host): 184 host.job.record('INFO', None, None, 187 host_resultdir = _get_host_resultdir(host) 190 host.job.record('INFO', None, None, 194 def fetch_orphaned_crashdumps(host, infodir): argument 206 if not host.check_cached_up_status(): 208 'orphaned crashdumps.', host.hostname) [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 | 43 update_url, host=self.mox.CreateMockAnything()) 46 self.mox.StubOutWithMock(updater.host, 'get_release_version') 47 updater.host.get_release_version().MultipleTimes().AndReturn( 55 self.mox.StubOutWithMock(updater.host, 'get_release_version') 56 updater.host.get_release_version().MultipleTimes().AndReturn( 64 self.mox.StubOutWithMock(updater.host, 'get_release_version') 65 updater.host.get_release_version().MultipleTimes().AndReturn('1111.0.0') 72 self.mox.StubOutWithMock(updater.host, 'get_release_version') 73 updater.host.get_release_version().MultipleTimes().AndReturn( 94 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/client/common_lib/hosts/ |
D | repair.py | 145 def _record(self, host, silent, status_code, *record_args): argument 162 host.record(status_code, None, self._record_tag, 165 def _record_good(self, host, silent): argument 172 self._record(host, silent, 'GOOD') 174 def _record_fail(self, host, silent, exc): argument 182 self._record(host, silent, 'FAIL', str(exc)) 184 def _verify_list(self, host, verifiers, silent): argument 210 v._verify_host(host, silent) 218 def _verify_dependencies(self, host, silent): argument 226 self._verify_list(host, self._dependency_list, silent) [all …]
|
/external/autotest/cli/ |
D | host.py | 33 class host(topic_common.atest): class 46 super(host, self).__init__() 96 class host_help(host): 102 class host_list(action_common.atest_list, host): 217 class host_stat(host): 226 for host in self.hosts: 227 if host.endswith('*'): 229 hostname__startswith=host.rstrip('*')) 231 self.failure('No hosts matching %s' % host, item=host, 235 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/caliper/ |
D | Android.mk | 22 LOCAL_MODULE := caliper-host 32 apache-commons-math-host \ 33 caliper-gson-host \ 34 caliper-java-allocation-instrumenter-host \ 35 caliper-jersey-client-host \ 36 caliper-jersey-core-host \ 37 caliper-joda-time-host \ 38 caliper-jsr311-api-host \ 39 dagger2-host \ 40 dagger2-inject-host \ [all …]
|
/external/python/cpython2/Demo/sockets/ |
D | gopher.py | 41 def open_socket(host, port): argument 47 s.connect((host, port)) 51 def send_request(selector, host, port): argument 52 s = open_socket(host, port) 58 def get_menu(selector, host, port): argument 59 f = send_request(selector, host, port) 88 def get_textfile(selector, host, port): argument 90 get_alt_textfile(selector, host, port, list.append) 94 def get_alt_textfile(selector, host, port, func): argument 95 f = send_request(selector, host, port) [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/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/cros/network/ |
D | iw_runner_unittest.py | 44 class host(object): class in IwRunnerTest 327 host = self.host(scan_output + self.SCAN_TIME_OUTPUT) 328 runner = iw_runner.IwRunner(remote_host=host) 378 host = self.host(scan_output + self.SCAN_TIME_OUTPUT) 379 runner = iw_runner.IwRunner(remote_host=host) 389 host = self.host(self.STATION_LINK_INFORMATION) 390 runner = iw_runner.IwRunner(remote_host=host) 405 host = self.host(self.STATION_LINK_INFORMATION) 406 runner = iw_runner.IwRunner(remote_host=host) 415 host = self.host(self.STATION_DUMP_INFORMATION) [all …]
|
/external/autotest/server/brillo/ |
D | host_utils.py | 27 def run_in_background(host, cmd): argument 36 return int(host.run_output(background_cmd).strip()) 39 def wait_for_process(host, pid, timeout=-1): argument 49 return host.run(wait_cmd, ignore_status=True).exit_status == 0 53 def connect_to_ssid(host, ssid, passphrase): argument 73 host.remount() 74 host.run('sed \'s/service weaved \/system\/bin\/weaved/' 77 host.reboot() 79 lambda: 'running' in host.run('getprop init.svc.shill' 88 host.run(wifi_cmd) [all …]
|