/external/autotest/server/ |
D | autotest.py | 72 def __init__(self, host=None): argument 73 self.host = host 90 def get_client_autodir_paths(cls, host): argument 96 def get_installed_autodir(cls, host): argument 102 autodir = host.get_autodir() 107 for path in Autotest.get_client_autodir_paths(host): 110 host.run('test -x %s' % utils.sh_escape(autotest_binary)) 111 host.run('test -w %s' % utils.sh_escape(path)) 116 host.hostname) 121 def get_install_dir(cls, host): argument [all …]
|
D | crashcollect.py | 12 lambda host, test_start_time: None) 15 lambda host, test_start_time: None) 21 def get_crashdumps(host, test_start_time): argument 22 get_site_crashdumps(host, test_start_time) 26 def get_crashinfo(host, test_start_time): argument 34 get_crashdumps(host, test_start_time) 36 if wait_for_machine_to_recover(host): 38 get_site_crashinfo(host, test_start_time) 40 crashinfo_dir = get_crashinfo_dir(host, 'crashinfo') 41 collect_messages(host) [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 | afe_utils.py | 19 def host_in_lab(host): argument 31 if not host.job or not host.job.in_lab: 33 return AFE.get_hosts(hostname=host.hostname) 36 def get_build(host): argument 46 if not host_in_lab(host): 48 return utils.get_build_from_afe(host.hostname, AFE) 51 def get_board(host): argument 60 if not host_in_lab(host): 62 return utils.get_board_from_afe(host.hostname, AFE) 65 def clear_version_labels(host): argument [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.last_boot_tag = 'Autotest' 27 self.host.job.sysinfo = self.god.create_mock_class( 29 self.host.job.profilers = self.god.create_mock_class( 31 self.host.job.profilers.add_log = {} 32 self.host.job.tmpdir = "/job/tmp" 33 self.host.job.default_profile_only = False [all …]
|
/external/autotest/server/site_tests/power_DarkResumeShutdownServer/ |
D | power_DarkResumeShutdownServer.py | 26 def initialize(self, host): argument 28 self.orig_boot_id = host.get_boot_id() 30 host.run('mkdir -p %s' % TMP_POWER_DIR) 34 host.run('echo %s %d > %s/dark_resume_suspend_durations' % 40 host.run('echo %s > %s/dark_resume_sources' % 45 host.run('echo 0 > %s/disable_dark_resume' % TMP_POWER_DIR) 48 host.run('mount --bind %s %s' % (TMP_POWER_DIR, POWER_DIR)) 52 host.run('restart powerd') 64 def run_once(self, host=None): argument 79 platform = host.run_output('mosys platform name') [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 | 40 update_url, host=self.mox.CreateMockAnything()) 43 self.mox.StubOutWithMock(updater.host, 'get_release_version') 44 updater.host.get_release_version().MultipleTimes().AndReturn( 52 self.mox.StubOutWithMock(updater.host, 'get_release_version') 53 updater.host.get_release_version().MultipleTimes().AndReturn( 61 self.mox.StubOutWithMock(updater.host, 'get_release_version') 62 updater.host.get_release_version().MultipleTimes().AndReturn('1111.0.0') 69 self.mox.StubOutWithMock(updater.host, 'get_release_version') 70 updater.host.get_release_version().MultipleTimes().AndReturn( 91 update_url, host=self.mox.CreateMockAnything()) [all …]
|
/external/autotest/server/site_tests/power_BatteryStateOnResume/ |
D | power_BatteryStateOnResume.py | 29 def initialize(self, host, client_ip, cmdline_args): argument 38 self.power_control = args.get('power_control', host.POWER_CONTROL_RPM) 39 if self.power_control not in host.POWER_CONTROL_VALID_ARGS: 43 % (host.POWER_CONTROL_VALID_ARGS, 47 def run_once(self, host): argument 48 if not self.loggedin(host): 50 self.unplug_ac_on_suspend(host) 51 self.test_discharge_state(host) 52 self.plug_ac_on_suspend(host) 53 self.test_charge_state(host) [all …]
|
/external/chromium-trace/catapult/third_party/typ/typ/ |
D | test_case.py | 35 def _write_files(self, host, files): argument 37 dirname = host.dirname(path) 39 host.maybe_mkdir(dirname) 40 host.write_text_file(path, contents) 42 def _read_files(self, host, tmpdir): argument 44 for f in host.files_under(tmpdir): 47 key = f.replace(host.sep, '/') 48 out_files[key] = host.read_text_file(tmpdir, f) 63 return self.child.host 65 def call(self, host, argv, stdin, env): argument [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/autotest/server/site_tests/power_SuspendShutdown/ |
D | power_SuspendShutdown.py | 21 def initialize(self, host): argument 29 self.orig_boot_id = host.get_boot_id() 30 self.host = host 34 host.run('mount --bind /dev/full /sys/power/state') 39 host.run('echo %s > /tmp/retry_suspend_attempts;' 47 host.run('echo %s > /tmp/retry_suspend_ms;' 54 host.run('restart powerd') 136 host = self.host 138 out = host.run('cryptohome --action=status').stdout.strip() 160 host = self.host [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/server/site_tests/power_BrightnessResetAfterReboot/ |
D | power_BrightnessResetAfterReboot.py | 17 def run_once(self, host, client_autotest): argument 21 if host.has_internal_display() is None: 24 self.is_freon_build(host) 25 autotest_client = autotest.Autotest(host) 26 host.reboot() 31 host) 38 self.backlight_control('%s=0' % (self.SET_BRIGHTNESS_FLAG), host) 39 if not self.backlight_control(self.GET_BRIGHTNESS_FLAG, host) == 0: 42 self.backlight_control('%s=100' % (self.SET_BRIGHTNESS_FLAG), host) 43 if not self.backlight_control(self.GET_BRIGHTNESS_FLAG, host) == 100: [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 …]
|
/external/conscrypt/src/main/java/org/conscrypt/ |
D | ClientSessionContext.java | 51 String host = session.getPeerHost(); in sessionRemoved() local 53 if (host == null) { in sessionRemoved() 56 HostAndPort hostAndPortKey = new HostAndPort(host, port); in sessionRemoved() 69 public SSLSession getSession(String host, int port) { in getSession() argument 70 if (host == null) { in getSession() 74 HostAndPort hostAndPortKey = new HostAndPort(host, port); in getSession() 84 byte[] data = persistentCache.getSessionData(host, port); in getSession() 86 session = toSession(data, host, port); in getSession() 104 String host = session.getPeerHost(); in putSession() local 106 if (host == null) { in putSession() [all …]
|
/external/autotest/server/site_tests/platform_FullyChargedPowerStatus/ |
D | platform_FullyChargedPowerStatus.py | 21 self.host.power_on() 30 power_supply_info = self.host.get_power_supply_info() 72 return self.host.run('ls %s' % _CHROME_PATH, 82 boot_id = self.host.get_boot_id() 83 thread = threading.Thread(target = self.host.suspend) 85 self.host.test_wait_for_sleep(_LONG_TIMEOUT) 90 def run_once(self, host, power_status_sets): argument 91 self.host = host 92 self.autotest_client = autotest.Autotest(self.host) 97 if not self.host.get_board_type() == 'CHROMEBOOK': [all …]
|
/external/avahi/avahi-daemon/ |
D | static-hosts.c | 43 char *host; member 66 avahi_log_error("Host name conflict for \"%s\", not established.", h->host); in entry_group_callback() 70 avahi_log_notice ("Static host name \"%s\" successfully established.", h->host); in entry_group_callback() 74 …avahi_log_notice ("Failed to establish static host name \"%s\": %s.", h->host, avahi_strerror (ava… in entry_group_callback() 89 s->host = NULL; in static_host_new() 105 avahi_free(s->host); in static_host_free() 110 static StaticHost *static_host_find(const char *host, const AvahiAddress *a) { in static_host_find() argument 113 assert(host); in static_host_find() 117 if (!strcmp(h->host, host) && !avahi_address_cmp(a, &h->address)) in static_host_find() 141 …if ((err = avahi_server_add_address(avahi_server, h->group, AVAHI_IF_UNSPEC, p, 0, h->host, &h->ad… in add_static_host_to_server() [all …]
|
/external/jetty/src/java/org/eclipse/jetty/client/ |
D | Address.java | 28 private final String host; field in Address 33 String host; in from() local 38 host = hostAndPort.substring(0, colon); in from() 43 host = hostAndPort; in from() 46 return new Address(host, port); in from() 49 public Address(String host, int port) in Address() argument 51 if (host == null) in Address() 54 this.host = host.trim(); in Address() 64 if (!host.equals(that.host)) return false; in equals() 71 int result = host.hashCode(); in hashCode() [all …]
|