/external/autotest/site_utils/ |
D | server_manager_utils.py | 49 hostname=exclude_server.hostname) 54 (role, exclude_server.hostname, role)) 58 def get_servers(hostname=None, role=None, status=None): argument 68 if hostname: 69 filters['hostname'] = hostname 110 server_dicts.append({'hostname': server.hostname, 126 return '\n'.join(s.hostname for s in servers) 151 '%s(%s)' % (server.hostname, server.status) 156 def check_server(hostname, role): argument 171 infra.execute_command(hostname, 'true') [all …]
|
D | server_manager.py | 55 'Server %s already has role %s.' % (server.hostname, role)) 58 if not server_manager_utils.check_server(server.hostname, role): 60 'Server %s is not ready for role %s.' % (server.hostname, role)) 69 (role, servers[0].hostname, role)) 77 print 'Role %s is added to server %s.' % (role, server.hostname) 93 'Server %s does not have role %s.' % (server.hostname, role)) 103 print 'Deleting role %s from server %s...' % (role, server.hostname) 115 print 'Role %s is deleted from server %s.' % (role, server.hostname) 132 (server.hostname, status)) 137 'be in status primary.' % server.hostname) [all …]
|
/external/nist-sip/java/gov/nist/core/ |
D | Host.java | 74 protected String hostname; field in Host 124 if (addressType == IPV6ADDRESS && !isIPv6Reference(hostname)) { in encode() 125 buffer.append('[').append(hostname).append(']'); in encode() 127 buffer.append(hostname); in encode() 145 return otherHost.hostname.equals(hostname); in equals() 153 return hostname; in getHostname() 160 return hostname; in getAddress() 170 if (hostname == null) in getIpAddress() 175 inetAddress = InetAddress.getByName(hostname); in getIpAddress() 181 rawIpAddress = hostname; in getIpAddress() [all …]
|
/external/ltp/testcases/kernel/containers/utsname/ |
D | utstest.c | 118 char hostname[HLEN], newhostname[HLEN], rhostname[HLEN]; in P1() local 130 gethostname(hostname, HLEN); in P1() 133 if (strcmp(hostname, rhostname) == 0) { in P1() 139 tsttype, hostname, rhostname); in P1() 141 gethostname(hostname, HLEN); in P1() 142 picknewhostname(hostname, newhostname); in P1() 160 gethostname(hostname, HLEN); in P1() 161 picknewhostname(hostname, newhostname); in P1() 178 if (strcmp(hostname, rhostname) == 0) { in P1() 185 tsttype, hostname, rhostname); in P1() [all …]
|
/external/autotest/server/hosts/ |
D | factory.py | 66 hostname, afe_host = server_utils.get_host_info_from_machine(machine) 83 hostname, user, password, port = server_utils.parse_machine(hostname, user, 87 'hostname': hostname, 100 def _detect_host(connectivity_class, hostname, **args): argument 117 with closing(connectivity_class(hostname, **args)) as host: 129 def _choose_connectivity_class(hostname, ssh_port): argument 137 if (hostname == 'localhost' and ssh_port == DEFAULT_SSH_PORT): 143 def _verify_connectivity(connectivity_class, hostname, **args): argument 153 with closing(ssh_host.SSHHost(hostname, **args)) as host: 188 hostname = detected_args.pop('hostname') [all …]
|
/external/curl/lib/ |
D | hostcheck.c | 65 static int hostmatch(char *hostname, char *pattern) in hostmatch() argument 76 size_t len = strlen(hostname); in hostmatch() 77 if(hostname[len-1]=='.') in hostmatch() 78 hostname[len-1] = 0; in hostmatch() 85 return strcasecompare(pattern, hostname) ? in hostmatch() 89 if(Curl_inet_pton(AF_INET, hostname, &ignored) > 0) in hostmatch() 92 if(Curl_inet_pton(AF_INET6, hostname, &si6.sin6_addr) > 0) in hostmatch() 106 return strcasecompare(pattern, hostname) ? in hostmatch() 109 hostname_label_end = strchr(hostname, '.'); in hostmatch() 117 if(hostname_label_end - hostname < pattern_label_end - pattern) in hostmatch() [all …]
|
D | asyn-thread.c | 154 const char *hostname, int port, 163 char *hostname; /* hostname to resolve, Curl_async.hostname member 195 free(tsd->hostname); in destroy_thread_sync_data() 206 const char *hostname, in init_thread_sync_data() argument 238 tsd->hostname = strdup(hostname); in init_thread_sync_data() 239 if(!tsd->hostname) in init_thread_sync_data() 282 rc = Curl_getaddrinfo_ex(tsd->hostname, service, &tsd->hints, &tsd->res); in getaddrinfo_thread() 318 tsd->res = Curl_ipv4_resolve_r(tsd->hostname, tsd->port); in gethostbyname_thread() 375 free(async->hostname); in destroy_async_data() 376 async->hostname = NULL; in destroy_async_data() [all …]
|
D | hostip4.c | 93 const char *hostname, in Curl_getaddrinfo() argument 105 ai = Curl_ipv4_resolve_r(hostname, port); in Curl_getaddrinfo() 107 infof(conn->data, "Curl_ipv4_resolve_r failed for %s\n", hostname); in Curl_getaddrinfo() 123 Curl_addrinfo *Curl_ipv4_resolve_r(const char *hostname, argument 134 if(Curl_inet_pton(AF_INET, hostname, &in) > 0) 136 return Curl_ip2addr(AF_INET, &in, hostname, port); 152 (void)Curl_getaddrinfo_ex(hostname, sbufptr, &hints, &ai); 174 h = gethostbyname_r(hostname, 193 (void)gethostbyname_r(hostname, 260 res = gethostbyname_r(hostname, [all …]
|
/external/autotest/cli/ |
D | server.py | 107 if (not self.hostname and self.hostname_required): 112 len(self.hostname) > 1): 116 if self.hostname: 120 self.hostname = self.hostname[0] 197 hostname=self.hostname, 214 ' inventory.', item=self.hostname, fatal=True) 218 hostname=self.hostname, 224 item=self.hostname, fatal=True) 247 item=self.hostname, fatal=True) 286 for hostname in self.hostname: [all …]
|
/external/toybox/toys/lsb/ |
D | hostname.c | 33 char *hostname = *toys.optargs, *dot; local 36 if (TT.F && (hostname = xreadfile(TT.F, 0, 0))) { 37 if (!*chomp(hostname)) { 38 if (CFG_TOYBOX_FREE) free(hostname); 40 hostname = 0; 45 if (!hostname && FLAG(b)) 47 hostname = "localhost"; 50 if (hostname) { 51 if (sethostname(hostname, strlen(hostname))) 52 perror_exit("set '%s'", hostname);
|
/external/apache-http/src/org/apache/http/ |
D | HttpHost.java | 61 protected final String hostname; field in HttpHost 85 public HttpHost(final String hostname, int port, final String scheme) { in HttpHost() argument 87 if (hostname == null) { in HttpHost() 90 this.hostname = hostname; in HttpHost() 91 this.lcHostname = hostname.toLowerCase(Locale.ENGLISH); in HttpHost() 107 public HttpHost(final String hostname, int port) { in HttpHost() argument 108 this(hostname, port, null); in HttpHost() 116 public HttpHost(final String hostname) { in HttpHost() argument 117 this(hostname, -1, null); in HttpHost() 126 this(httphost.hostname, httphost.port, httphost.schemeName); in HttpHost() [all …]
|
/external/autotest/server/ |
D | profilers.py | 68 if host.hostname not in self.job.machines: 75 in_use_hosts[host.hostname] = host 82 profiler_hosts.add(host.hostname) 86 host.hostname, profiler_dir) 87 del self.installed_hosts[host.hostname] 92 for hostname in set(in_use_hosts) - profiler_hosts: 93 host = in_use_hosts[hostname] 97 self.installed_hosts[host.hostname] = (host, at, tmp_dir) 100 for hostname in profiler_hosts - set(in_use_hosts): 101 del self.installed_hosts[hostname] [all …]
|
/external/toolchain-utils/automation/common/ |
D | machine.py | 11 def __init__(self, hostname, label, cpu, cores, os, username): argument 12 self.hostname = hostname 40 self.hostname) 44 ['Machine Information:', 'Hostname: %s' % self.hostname, 'Label: %s' % 52 def __init__(self, hostname='*', label='*', os='*', lock_required=False): argument 53 self.hostname = hostname 64 return all([not machine.locked, fnmatch(machine.hostname, self.hostname), 68 def AddPreferredMachine(self, hostname): argument 69 if hostname not in self.preferred_machines: 70 self.preferred_machines.append(hostname)
|
/external/autotest/scheduler/ |
D | drones.py | 40 self.hostname = None 91 logging.info("Running drone_utility on %s", self.hostname) 105 subject = 'Warning from drone %s' % self.hostname 174 self.hostname = 'localhost' 180 if drone.hostname == self.hostname: 184 self.queue_call('send_file_to', drone.hostname, source_path, 189 def __init__(self, hostname, timestamp_remote_calls=True): argument 192 self.hostname = hostname 193 self._host = drone_utility.create_host(hostname) 195 logging.error('Drone %s is unpingable, kicking out', hostname) [all …]
|
D | rdb_hosts_unittest.py | 79 hostname = 'h1' 81 self.db_helper.create_host(hostname)) 83 host = self.db_helper.get_host(hostname=hostname)[0] 115 hostname = 'h1' 116 db_host = self.db_helper.create_host(hostname, leased=True) 120 host_data = {'hostname': hostname, 'id': db_host.id} 138 self.db_helper.get_host(hostname=hostname)[0]).wire_format() 149 hostname = 'h1' 150 db_host = self.db_helper.create_host(hostname, dirty=False) 159 self.db_helper.get_host(hostname=hostname)[0].dirty == True and [all …]
|
D | drone_manager.py | 70 def __init__(self, hostname, pid, ppid=None): argument 71 self.hostname = hostname 76 return (self.hostname, self.pid) 80 return '%s/%s' % (self.hostname, self.pid) 205 for hostname in drone_hostnames: 206 self._add_drone(hostname) 232 fields={'drone': drone.hostname}): 253 def _add_drone(self, hostname): argument 262 logging.info('Adding drone %s' % hostname) 263 drone = drones.get_drone(hostname) [all …]
|
/external/libcups/cups/ |
D | testcreds.c | 33 hostname[HTTP_MAX_URI], /* Hostname from URI */ in main() local 63 …T, argv[1], scheme, sizeof(scheme), username, sizeof(username), hostname, sizeof(hostname), &port,… in main() 69 …if ((http = httpConnect2(hostname, port, NULL, AF_UNSPEC, HTTP_ENCRYPTION_ALWAYS, 1, 30000, NULL))… in main() 71 …printf("ERROR: Unable to connect to \"%s\" on port %d: %s\n", hostname, port, cupsLastErrorString(… in main() 78 trust = httpCredentialsGetTrust(hcreds, hostname); in main() 88 printf(" IsValidName: %d\n", httpCredentialsAreValidForName(hcreds, hostname)); in main() 104 strlcpy(hostname, argv[1], sizeof(hostname)); in main() 107 printf("Trust Store for \"%s\":\n", hostname); in main() 109 if (!httpLoadCredentials(NULL, &tcreds, hostname)) in main() 115 printf(" IsValidName: %d\n", httpCredentialsAreValidForName(tcreds, hostname)); in main()
|
D | ppd-util.c | 140 hostname[HTTP_MAX_URI], /* Hostname */ in cupsGetPPD3() local 180 httpGetHostname(http, hostname, sizeof(hostname)); in cupsGetPPD3() 183 strlcpy(hostname, cupsServer(), sizeof(hostname)); in cupsGetPPD3() 184 if (hostname[0] == '/') in cupsGetPPD3() 185 strlcpy(hostname, "localhost", sizeof(hostname)); in cupsGetPPD3() 188 if (!_cups_strcasecmp(hostname, "localhost")) in cupsGetPPD3() 311 if (!cups_get_printer_uri(http, name, hostname, sizeof(hostname), &port, in cupsGetPPD3() 315 DEBUG_printf(("2cupsGetPPD3: Printer hostname=\"%s\", port=%d", hostname, in cupsGetPPD3() 318 if (cupsServer()[0] == '/' && !_cups_strcasecmp(hostname, "localhost") && port == ippPort()) in cupsGetPPD3() 324 strlcpy(hostname, cupsServer(), sizeof(hostname)); in cupsGetPPD3() [all …]
|
D | testhttp.c | 33 *hostname, /* Hostname string */ member 236 hostname[HTTP_MAX_URI], /* Hostname from URI */ in main() local 384 if (httpGetHostname(NULL, hostname, sizeof(hostname))) in main() 385 printf("PASS (%s)\n", hostname); in main() 396 printf("httpAddrGetList(%s): ", hostname); in main() 398 addrlist = httpAddrGetList(hostname, AF_UNSPEC, NULL); in main() 412 printf("FAIL (bad address for %s)\n", hostname); in main() 414 printf("PASS (%d address(es) for %s)\n", i, hostname); in main() 418 else if (isdigit(hostname[0] & 255)) in main() 438 hostname, sizeof(hostname), &port, in main() [all …]
|
/external/autotest/site_utils/deployment/ |
D | install.py | 257 def _create_host(hostname, afe, afe_host): argument 269 'hostname': hostname, 271 'host_info_store': afe_store.AfeStore(hostname, afe), 315 def _update_host_attributes(afe, hostname, host_attrs): argument 323 s_hostname, s_port, s_serial = _extract_servo_attributes(hostname, 327 hostname=hostname) 330 hostname=hostname) 334 hostname=hostname) 337 def _extract_servo_attributes(hostname, host_attrs): argument 348 servo_host.make_servo_hostname(hostname)) [all …]
|
/external/libevent/sample/ |
D | hostcheck.c | 163 static int hostmatch(const char *hostname, const char *pattern) in hostmatch() argument 170 return Curl_raw_equal(pattern, hostname) ? in hostmatch() 183 return Curl_raw_equal(pattern, hostname) ? in hostmatch() 186 hostname_label_end = strchr(hostname, '.'); in hostmatch() 194 if(hostname_label_end - hostname < pattern_label_end - pattern) in hostmatch() 199 return Curl_raw_nequal(pattern, hostname, prefixlen) && in hostmatch() 205 int Curl_cert_hostcheck(const char *match_pattern, const char *hostname) in Curl_cert_hostcheck() argument 208 !hostname || !*hostname) /* sanity check */ in Curl_cert_hostcheck() 211 if(Curl_raw_equal(hostname, match_pattern)) /* trivial case */ in Curl_cert_hostcheck() 214 if(hostmatch(hostname,match_pattern) == CURL_HOST_MATCH) in Curl_cert_hostcheck()
|
/external/autotest/server/cros/network/ |
D | chaos_clique_utils.py | 24 def allocate_packet_capturer(lock_manager, hostname, prefix): argument 36 if hostname is not None: 37 return hosts.SSHHost(hostname) 43 pcap_prefix = pcap.hostname.split('-')[0] 46 if lock_manager.lock([pcap.hostname]): 47 return hosts.SSHHost(pcap.hostname + '.cros') 49 logging.info('Unable to lock %s', pcap.hostname) 66 hostname = '%s.cros' % site_utils.lock_host_with_labels( 68 webdriver_host = hosts.SSHHost(hostname) 83 hostname = instance.hostname.split('.')[0] [all …]
|
/external/grpc-grpc/src/php/lib/Grpc/ |
D | BaseStub.php | 28 private $hostname; variable in Grpc\\BaseStub 37 * @param string $hostname 44 public function __construct($hostname, $opts, $channel = null) argument 51 $this->hostname = $hostname; 67 $this->channel = $this->call_invoker->createChannelFactory($hostname, $channel_opts); 82 $this->channel = static::getDefaultChannel($hostname, $opts); 113 public static function getDefaultChannel($hostname, array $opts) argument 116 return new Channel($hostname, $opts); 211 $hostname = $this->hostname_override; 213 $hostname = $this->hostname;
|
/external/selinux/python/sepolgen/tests/ |
D | audit.txt | 33 …em_r:unconfined_t:s0 msg='PAM: setcred acct=root : exe="/usr/bin/sudo" (hostname=?, addr=?, termin… 34 …unconfined_t:s0 msg='PAM: session open acct=root : exe="/usr/bin/sudo" (hostname=?, addr=?, termin… 35 …nconfined_t:s0 msg='PAM: session close acct=root : exe="/usr/bin/sudo" (hostname=?, addr=?, termin… 36 …t:s0-s0:c0.c255 msg='PAM: accounting acct=root : exe="/usr/sbin/crond" (hostname=?, addr=?, termin… 38 …s0-s0:c0.c255 msg='PAM: session open acct=root : exe="/usr/sbin/crond" (hostname=?, addr=?, termin… 39 …nd_t:s0-s0:c0.c255 msg='PAM: setcred acct=root : exe="/usr/sbin/crond" (hostname=?, addr=?, termin… 40 …nd_t:s0-s0:c0.c255 msg='PAM: setcred acct=root : exe="/usr/sbin/crond" (hostname=?, addr=?, termin… 41 …0-s0:c0.c255 msg='PAM: session close acct=root : exe="/usr/sbin/crond" (hostname=?, addr=?, termin… 42 …em_r:unconfined_t:s0 msg='PAM: setcred acct=root : exe="/usr/bin/sudo" (hostname=?, addr=?, termin… 43 …unconfined_t:s0 msg='PAM: session open acct=root : exe="/usr/bin/sudo" (hostname=?, addr=?, termin… [all …]
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | CertificatePinner.java | 150 public void check(String hostname, List<Certificate> peerCertificates) in check() argument 153 Set<ByteString> pins = findMatchingPins(hostname); in check() 171 message.append("\n Pinned certificates for ").append(hostname).append(":"); in check() 179 public void check(String hostname, Certificate... peerCertificates) in check() argument 181 check(hostname, Arrays.asList(peerCertificates)); in check() 188 Set<ByteString> findMatchingPins(String hostname) { in findMatchingPins() argument 189 Set<ByteString> directPins = hostnameToPins.get(hostname); in findMatchingPins() 192 int indexOfFirstDot = hostname.indexOf('.'); in findMatchingPins() 193 int indexOfLastDot = hostname.lastIndexOf('.'); in findMatchingPins() 200 wildcardPins = hostnameToPins.get("*." + hostname.substring(indexOfFirstDot + 1)); in findMatchingPins() [all …]
|