/external/autotest/server/hosts/ |
D | servo_host_unittest.py | 26 self.hostname = "chromeos1-row1-rack1-host1" 27 self._dut_hostname = 'dut-' + self.hostname 94 hostname = 'chromeos1-rack1-row1-host1-servo' 95 self.assertTrue(servo_host.is_servo_host_information_valid(hostname, port)) 96 hostname = 'CHROMEOS1-RACK1-ROW1-host1-SERVO' 97 self.assertTrue(servo_host.is_servo_host_information_valid(hostname, port)) 98 hostname = '96.120.0.567' 99 self.assertTrue(servo_host.is_servo_host_information_valid(hostname, port)) 100 hostname = 'locathost' 101 self.assertTrue(servo_host.is_servo_host_information_valid(hostname, port)) [all …]
|
D | factory.py | 70 hostname, afe_host = server_utils.get_host_info_from_machine(machine) 87 hostname, user, password, port = server_utils.parse_machine(hostname, user, 91 'hostname': hostname, 104 def _detect_host(connectivity_class, hostname, **args): argument 121 with closing(connectivity_class(hostname, **args)) as host: 133 def _choose_connectivity_class(hostname, ssh_port): argument 141 if (hostname == 'localhost' and ssh_port == DEFAULT_SSH_PORT): 147 def _verify_connectivity(connectivity_class, hostname, **args): argument 157 with closing(ssh_host.SSHHost(hostname, **args)) as host: 192 hostname = detected_args.pop('hostname') [all …]
|
D | teststation_host.py | 23 def create_teststationhost(hostname, **kwargs): argument 32 if hostname == 'localhost': 37 return host_class(hostname, **kwargs) 44 def check_credentials(self, hostname): argument 49 if hostname != 'localhost': 58 def _initialize(self, hostname='localhost', *args, **dargs): argument 67 hostname) 70 super(TestStationHost, self)._initialize(hostname=hostname, *args, 73 self.check_credentials(hostname)
|
/external/autotest/site_utils/ |
D | server_manager_utils.py | 53 hostname=exclude_server.hostname) 58 (role, exclude_server.hostname, role)) 62 def get_servers(hostname=None, role=None, status=None): argument 72 if hostname: 73 filters['hostname'] = hostname 114 server_dicts.append({'hostname': server.hostname, 130 return '\n'.join(s.hostname for s in servers) 133 def check_server(hostname, role): argument 148 infra.execute_command(hostname, 'true') 152 (hostname, e), file=sys.stderr) [all …]
|
D | server_manager.py | 60 'Server %s already has role %s.' % (server.hostname, role)) 63 if not server_manager_utils.check_server(server.hostname, role): 65 'Server %s is not ready for role %s.' % (server.hostname, role)) 74 (role, servers[0].hostname, role)) 82 print('Role %s is added to server %s.' % (role, server.hostname)) 98 'Server %s does not have role %s.' % (server.hostname, role)) 108 print('Deleting role %s from server %s...' % (role, server.hostname)) 120 print('Role %s is deleted from server %s.' % (role, server.hostname)) 137 (server.hostname, status)) 142 '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/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 | hostip.c | 258 const char *hostname, in fetch_addr() argument 267 create_hostcache_id(hostname, port, entry_id, sizeof(entry_id)); in fetch_addr() 315 const char *hostname, in Curl_fetch_addr() argument 324 dns = fetch_addr(conn, hostname, port); in Curl_fetch_addr() 416 const char *hostname, in Curl_cache_addr() argument 440 create_hostcache_id(hostname, port, entry_id, sizeof(entry_id)); in Curl_cache_addr() 484 const char *hostname, in Curl_resolv() argument 500 dns = fetch_addr(conn, hostname, port); in Curl_resolv() 503 infof(data, "Hostname %s was found in DNS cache\n", hostname); in Curl_resolv() 535 if(Curl_inet_pton(AF_INET, hostname, &in) > 0) in Curl_resolv() [all …]
|
/external/toybox/toys/pending/ |
D | wget.c | 29 static unsigned get_hn(const char *url, char *hostname) { 34 hostname[i] = url[i]; 36 hostname[i] = '\0'; 54 static void strip_v6_brackets(char* hostname) { in strip_v6_brackets() argument 55 size_t len = strlen(hostname); in strip_v6_brackets() 59 char * closing_bracket = strchr(hostname, ']'); in strip_v6_brackets() 60 if (closing_bracket && closing_bracket == hostname + len - 1) { in strip_v6_brackets() 61 if (strchr(hostname, '[') == hostname) { in strip_v6_brackets() 62 hostname[len-1] = 0; in strip_v6_brackets() 63 memmove(hostname, hostname + 1, len - 1); in strip_v6_brackets() [all …]
|
/external/autotest/cli/ |
D | server.py | 109 if (not self.hostname and self.hostname_required): 114 len(self.hostname) > 1): 118 if self.hostname: 122 self.hostname = self.hostname[0] 199 hostname=self.hostname, 216 ' inventory.', item=self.hostname, fatal=True) 220 hostname=self.hostname, 226 item=self.hostname, fatal=True) 249 item=self.hostname, fatal=True) 288 for hostname in self.hostname: [all …]
|
/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/libcups/cups/ |
D | testcreds.c | 27 hostname[HTTP_MAX_URI], /* Hostname from URI */ in main() local 57 …T, argv[1], scheme, sizeof(scheme), username, sizeof(username), hostname, sizeof(hostname), &port,… in main() 63 …if ((http = httpConnect2(hostname, port, NULL, AF_UNSPEC, HTTP_ENCRYPTION_ALWAYS, 1, 30000, NULL))… in main() 65 …printf("ERROR: Unable to connect to \"%s\" on port %d: %s\n", hostname, port, cupsLastErrorString(… in main() 72 trust = httpCredentialsGetTrust(hcreds, hostname); in main() 82 printf(" IsValidName: %d\n", httpCredentialsAreValidForName(hcreds, hostname)); in main() 98 strlcpy(hostname, argv[1], sizeof(hostname)); in main() 101 printf("Trust Store for \"%s\":\n", hostname); in main() 103 if (!httpLoadCredentials(NULL, &tcreds, hostname)) in main() 109 printf(" IsValidName: %d\n", httpCredentialsAreValidForName(tcreds, hostname)); in main()
|
D | ppd-util.c | 136 hostname[HTTP_MAX_URI], /* Hostname */ in cupsGetPPD3() local 179 httpGetHostname(http, hostname, sizeof(hostname)); in cupsGetPPD3() 182 strlcpy(hostname, cupsServer(), sizeof(hostname)); in cupsGetPPD3() 183 if (hostname[0] == '/') in cupsGetPPD3() 184 strlcpy(hostname, "localhost", sizeof(hostname)); in cupsGetPPD3() 187 if (!_cups_strcasecmp(hostname, "localhost")) in cupsGetPPD3() 330 …if (!cups_get_printer_uri(http, name, hostname, sizeof(hostname), &port, resource, sizeof(resource… in cupsGetPPD3() 336 DEBUG_printf(("2cupsGetPPD3: Printer hostname=\"%s\", port=%d", hostname, port)); in cupsGetPPD3() 338 if (cupsServer()[0] == '/' && !_cups_strcasecmp(hostname, "localhost") && port == ippPort()) in cupsGetPPD3() 344 strlcpy(hostname, cupsServer(), sizeof(hostname)); in cupsGetPPD3() [all …]
|
D | testhttp.c | 28 *hostname, /* Hostname string */ member 231 hostname[HTTP_MAX_URI], /* Hostname from URI */ in main() local 379 if (httpGetHostname(NULL, hostname, sizeof(hostname))) in main() 380 printf("PASS (%s)\n", hostname); in main() 391 printf("httpAddrGetList(%s): ", hostname); in main() 393 addrlist = httpAddrGetList(hostname, AF_UNSPEC, NULL); in main() 407 printf("FAIL (bad address for %s)\n", hostname); in main() 409 printf("PASS (%d address(es) for %s)\n", i, hostname); in main() 413 else if (isdigit(hostname[0] & 255)) in main() 433 hostname, sizeof(hostname), &port, in main() [all …]
|
/external/toybox/toys/lsb/ |
D | hostname.c | 43 char *hostname = toybuf, *dot; local 47 if (TT.F && (hostname = xreadfile(TT.F, 0, 0))) { 48 if (!*chomp(hostname)) { 49 if (CFG_TOYBOX_FREE) free(hostname); 51 hostname = 0; 53 } else hostname = (FLAG(b) && !*toybuf) ? "localhost" : *toys.optargs; 56 if (hostname) { 57 if (sethostname(hostname, strlen(hostname))) 58 perror_exit("set '%s'", hostname);
|
/external/autotest/server/ |
D | profilers.py | 69 if host.hostname not in self.job.machines: 76 in_use_hosts[host.hostname] = host 83 profiler_hosts.add(host.hostname) 87 host.hostname, profiler_dir) 88 del self.installed_hosts[host.hostname] 93 for hostname in set(in_use_hosts) - profiler_hosts: 94 host = in_use_hosts[hostname] 98 self.installed_hosts[host.hostname] = (host, at, tmp_dir) 101 for hostname in profiler_hosts - set(in_use_hosts): 102 del self.installed_hosts[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/site_utils/deployment/ |
D | install.py | 184 def _create_host(hostname, afe, afe_host): argument 196 'hostname': hostname, 198 'host_info_store': afe_store.AfeStore(hostname, afe), 245 def _update_host_attributes(afe, hostname, host_attrs): argument 253 s_hostname, s_port, s_serial = _extract_servo_attributes(hostname, 257 hostname=hostname) 260 hostname=hostname) 264 hostname=hostname) 268 def _extract_servo_attributes(hostname, host_attrs): argument 279 servo_host.make_servo_hostname(hostname)) [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/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
D | CertificatePinner.java | 152 public void check(String hostname, List<Certificate> peerCertificates) in check() argument 155 Set<ByteString> pins = findMatchingPins(hostname); in check() 173 message.append("\n Pinned certificates for ").append(hostname).append(":"); in check() 181 public void check(String hostname, Certificate... peerCertificates) in check() argument 183 check(hostname, Arrays.asList(peerCertificates)); in check() 190 Set<ByteString> findMatchingPins(String hostname) { in findMatchingPins() argument 191 Set<ByteString> directPins = hostnameToPins.get(hostname); in findMatchingPins() 194 int indexOfFirstDot = hostname.indexOf('.'); in findMatchingPins() 195 int indexOfLastDot = hostname.lastIndexOf('.'); in findMatchingPins() 202 wildcardPins = hostnameToPins.get("*." + hostname.substring(indexOfFirstDot + 1)); in findMatchingPins() [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 …]
|
/external/autotest/server/cros/dynamic_suite/ |
D | fakes.py | 54 def __init__(self, hostname='', status='Ready', locked=False, locked_by=''): argument 55 self.hostname = hostname 63 self.hostname, self.status, 83 hostname=None, subdir='fake_Test.tag.subdir_tag', argument 88 self.hostname = hostname if hostname else 'hostless' 96 if hostname: 97 self.entry['host'] = {'hostname': hostname} 102 self.hostname) 120 self.hostname in status._test_name and
|
/external/webrtc/sdk/objc/api/peerconnection/ |
D | RTCIceServer.mm | 21 @synthesize hostname = _hostname; 48 hostname:nil]; 55 hostname:(NSString *)hostname { 60 hostname:hostname 68 hostname:(NSString *)hostname 74 hostname:hostname 83 hostname:(NSString *)hostname 92 _hostname = [hostname copy]; 126 iceServer.hostname = [NSString stdStringForString:_hostname]; 164 NSString *hostname = [NSString stringForStdString:nativeServer.hostname]; [all …]
|
/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 …]
|