| /external/autotest/server/hosts/ |
| D | servo_host_unittest.py | 26 self.hostname = "chromeos1-row1-rack1-host1" 27 self._dut_hostname = 'dut-' + self.hostname 97 hostname = 'chromeos1-rack1-row1-host1-servo' 98 self.assertTrue(servo_host.is_servo_host_information_valid(hostname, port)) 99 hostname = 'CHROMEOS1-RACK1-ROW1-host1-SERVO' 100 self.assertTrue(servo_host.is_servo_host_information_valid(hostname, port)) 101 hostname = '96.120.0.567' 102 self.assertTrue(servo_host.is_servo_host_information_valid(hostname, port)) 103 hostname = 'locathost' 104 self.assertTrue(servo_host.is_servo_host_information_valid(hostname, port)) [all …]
|
| D | factory.py | 80 @return: A dictionary containing arguments for host specifically hostname, 84 hostname, afe_host = server_utils.get_host_info_from_machine(machine) 114 hostname, user, password, port = server_utils.parse_machine(hostname, user, 119 'hostname': hostname, 132 def _detect_host(connectivity_class, hostname, **args): argument 142 @param hostname: A string representing the host name of the device. 149 preset_host = _preset_host(hostname) 152 hostname) 154 with closing(connectivity_class(hostname, **args)) as host: 159 os.environ['HOST_%s' % hostname] = str(host_module.__name__) [all …]
|
| D | teststation_host.py | 23 def create_teststationhost(hostname, **kwargs): argument 26 @param hostname: Hostname of the test station. 32 if hostname == 'localhost': 37 return host_class(hostname, **kwargs) 44 def check_credentials(self, hostname): argument 47 @param hostname: Hostname of the machine. 49 if hostname != 'localhost': 58 def _initialize(self, hostname='localhost', *args, **dargs): argument 61 This will create a Test Station Host. Hostname should always refer 64 @param hostname: Hostname of the machine, default to localhost. [all …]
|
| /external/webrtc/pc/ |
| D | ice_server_parsing_unittest.cc | 54 const std::string& hostname) { in ParseUrl() argument 63 server.hostname = hostname; in ParseUrl() 77 EXPECT_TRUE(ParseUrl("stun:hostname")); in TEST_F() 81 EXPECT_TRUE(ParseUrl("stuns:hostname")); in TEST_F() 85 EXPECT_TRUE(ParseTurnUrl("turn:hostname")); in TEST_F() 90 EXPECT_TRUE(ParseTurnUrl("turns:hostname")); in TEST_F() 98 "turns:hostname", "username", "password", in TEST_F() 107 EXPECT_FALSE(ParseUrl("stunn:hostname")); in TEST_F() 108 EXPECT_FALSE(ParseUrl(":hostname")); in TEST_F() 115 EXPECT_TRUE(ParseTurnUrl("turns:hostname")); in TEST_F() [all …]
|
| /external/toybox/toys/lsb/ |
| D | hostname.c | 1 /* hostname.c - Get/Set the hostname 5 * http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/hostname.html 7 USE_HOSTNAME(NEWTOY(hostname, ">1bdsfF:[!bdsf]", TOYFLAG_BIN)) 10 config HOSTNAME 11 bool "hostname" 14 usage: hostname [-bdsf] [-F FILENAME] [newname] 16 Get/set the current hostname. 18 -b Set hostname to 'localhost' if otherwise unset 21 -F Set hostname to contents of FILENAME 30 Show domain this system belongs to (same as hostname -d). [all …]
|
| /external/nist-sip/java/gov/nist/core/ |
| D | Host.java | 43 * Stores hostname. 68 protected static final int HOSTNAME = 1; field in Host 72 /** hostName field 74 protected String hostname; field in Host 86 addressType = HOSTNAME; in Host() 94 public Host(String hostName) throws IllegalArgumentException { in Host() argument 95 if (hostName == null) in Host() 101 setHost(hostName, IPV4ADDRESS); in Host() 124 if (addressType == IPV6ADDRESS && !isIPv6Reference(hostname)) { in encode() 125 buffer.append('[').append(hostname).append(']'); in encode() [all …]
|
| /external/ltp/testcases/kernel/containers/utsname/ |
| D | utstest.c | 115 char hostname[HLEN], newhostname[HLEN], rhostname[HLEN]; in P1() local 127 gethostname(hostname, HLEN); in P1() 130 if (strcmp(hostname, rhostname) == 0) { in P1() 135 "test 1 (%s): hostname 1 %s, hostname 2 %s", in P1() 136 tsttype, hostname, rhostname); in P1() 138 gethostname(hostname, HLEN); in P1() 139 picknewhostname(hostname, newhostname); in P1() 154 "test 2 (%s) hostname 1 %s, hostname 2 %s", in P1() 157 gethostname(hostname, HLEN); in P1() 158 picknewhostname(hostname, newhostname); in P1() [all …]
|
| /external/autotest/server/cros/ |
| D | dnsname_mangler.py | 26 def is_ip_address(hostname): argument 27 """Infers whether |hostname| could be an IP address. 29 @param hostname: string DNS name or IP address. 30 @return True iff hostname is a valid IP address. 34 socket.inet_aton(hostname) 45 """Build a usable hostname for a test companion device from the client name. 50 @param suffix: string suffix to append to the client hostname. 52 given, it overrides the generated client based hostname. 54 if the client hostname is found to be an IP address rather than a 75 """Build a hostname for a WiFi router from the client hostname. [all …]
|
| /external/rust/crates/url/tests/ |
| D | urltestdata.json | 13 "hostname": "example.org", string 28 "hostname": "foo", string 43 "hostname": "test", string 58 "hostname": "test", string 73 "hostname": "test", string 88 "hostname": "test", string 103 "hostname": "example.org", string 118 "hostname": "example.org", string 133 "hostname": "example.org", string 148 "hostname": "", string [all …]
|
| D | setters_tests.json | 497 "hostname": "x" string 506 "hostname": "" string 515 "hostname": "" string 524 "hostname": "" string 533 "hostname": "x" string 542 "hostname": "" string 551 "hostname": "" string 560 "hostname": "" string 569 "hostname": "x" string 578 "hostname": "%C3%9F" string [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 …]
|
| /external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/ |
| D | OkHostnameVerifier.java | 98 * Returns true if {@code certificate} matches {@code hostName}. 100 private boolean verifyHostName(String hostName, X509Certificate certificate) { in verifyHostName() argument 101 hostName = hostName.toLowerCase(Locale.US); in verifyHostName() 106 if (verifyHostName(hostName, altNames.get(i))) { in verifyHostName() 116 return verifyHostName(hostName, cn); in verifyHostName() 162 * Returns {@code true} iff {@code hostName} matches the domain name {@code pattern}. 164 * @param hostName lower-case host name. 168 private boolean verifyHostName(String hostName, String pattern) { in verifyHostName() argument 171 if ((hostName == null) || (hostName.length() == 0) || (hostName.startsWith(".")) in verifyHostName() 172 || (hostName.endsWith(".."))) { in verifyHostName() [all …]
|
| /external/conscrypt/common/src/main/java/org/conscrypt/ |
| D | OkHostnameVerifier.java | 110 * Returns true if {@code certificate} matches {@code hostName}. 113 private boolean verifyHostName(String hostName, X509Certificate certificate) { in verifyHostName() argument 114 hostName = hostName.toLowerCase(Locale.US); in verifyHostName() 119 if (verifyHostName(hostName, altNames.get(i))) { in verifyHostName() 126 // BEGIN Android-removed: Ignore common name in hostname verification. http://b/70278814 133 return verifyHostName(hostName, cn); 137 // END Android-removed: Ignore common name in hostname verification. http://b/70278814 179 * Returns {@code true} iff {@code hostName} matches the domain name {@code pattern}. 181 * @param hostName lower-case host name. 185 private boolean verifyHostName(String hostName, String pattern) { in verifyHostName() argument [all …]
|
| /external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
| D | OkHostnameVerifier.java | 112 * Returns true if {@code certificate} matches {@code hostName}. 115 private boolean verifyHostName(String hostName, X509Certificate certificate) { in verifyHostName() argument 116 hostName = hostName.toLowerCase(Locale.US); in verifyHostName() 121 if (verifyHostName(hostName, altNames.get(i))) { in verifyHostName() 128 // BEGIN Android-removed: Ignore common name in hostname verification. http://b/70278814 135 return verifyHostName(hostName, cn); 139 // END Android-removed: Ignore common name in hostname verification. http://b/70278814 181 * Returns {@code true} iff {@code hostName} matches the domain name {@code pattern}. 183 * @param hostName lower-case host name. 187 private boolean verifyHostName(String hostName, String pattern) { in verifyHostName() argument [all …]
|
| /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/tls/ |
| D | OkHostnameVerifier.java | 107 * Returns true if {@code certificate} matches {@code hostName}. 109 private boolean verifyHostName(String hostName, X509Certificate certificate) { in verifyHostName() argument 111 if (!isPrintableAscii(hostName)) { in verifyHostName() 115 hostName = hostName.toLowerCase(Locale.US); in verifyHostName() 120 if (verifyHostName(hostName, altNames.get(i))) { in verifyHostName() 125 // BEGIN Android-removed: Ignore common name in hostname verification. http://b/70278814 in verifyHostName() 132 return verifyHostName(hostName, cn); in verifyHostName() 136 // END Android-removed: Ignore common name in hostname verification. http://b/70278814 in verifyHostName() 180 * Returns {@code true} iff {@code hostName} matches the domain name {@code pattern}. 182 * @param hostName lower-case host name. [all …]
|
| /external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/tls/ |
| D | OkHostnameVerifier.java | 109 * Returns true if {@code certificate} matches {@code hostName}. 111 private boolean verifyHostName(String hostName, X509Certificate certificate) { in verifyHostName() argument 113 if (!isPrintableAscii(hostName)) { in verifyHostName() 117 hostName = hostName.toLowerCase(Locale.US); in verifyHostName() 122 if (verifyHostName(hostName, altNames.get(i))) { in verifyHostName() 127 // BEGIN Android-removed: Ignore common name in hostname verification. http://b/70278814 in verifyHostName() 134 return verifyHostName(hostName, cn); in verifyHostName() 138 // END Android-removed: Ignore common name in hostname verification. http://b/70278814 in verifyHostName() 182 * Returns {@code true} iff {@code hostName} matches the domain name {@code pattern}. 184 * @param hostName lower-case host name. [all …]
|
| /external/autotest/cli/ |
| D | server.py | 59 @param hostname_required: True to require the command has hostname 81 attribute_name='hostname', use_leftover=True) 93 kwargs['req_items'] = 'hostname' 101 # self.hostname is a list. Action on server only needs one hostname at 103 if (not self.hostname and self.hostname_required): 104 self.invalid_syntax('`server` topic requires hostname. ' 108 len(self.hostname) > 1): 112 if self.hostname: 115 # Override self.hostname with the first hostname in the list. 116 self.hostname = self.hostname[0] [all …]
|
| /external/autotest/site_utils/deployment/ |
| D | install.py | 101 _ReportResult = namedtuple('_ReportResult', ['hostname', 'message']) 184 def _create_host(hostname, afe, afe_host): argument 191 @param hostname Hostname of the target DUT. 196 'hostname': hostname, 198 'host_info_store': afe_store.AfeStore(hostname, afe), 245 def _update_host_attributes(afe, hostname, host_attrs): argument 249 @param hostname Host name of the DUT. 253 s_hostname, s_port, s_serial = _extract_servo_attributes(hostname, 257 hostname=hostname) 260 hostname=hostname) [all …]
|
| /external/autotest/server/ |
| D | profilers.py | 33 # maps hostname to (host object, autotest.Autotest object, Autotest 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): [all …]
|
| /external/curl/lib/vtls/ |
| D | hostcheck.c | 50 static bool pmatch(const char *hostname, size_t hostlen, in pmatch() argument 55 return strncasecompare(hostname, pattern, hostlen); in pmatch() 59 * Match a hostname against a wildcard pattern. 77 static bool hostmatch(const char *hostname, in hostmatch() argument 85 /* normalize pattern and hostname by stripping off trailing dots */ in hostmatch() 87 if(hostname[hostlen-1]=='.') in hostmatch() 94 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch() 96 /* detect IP address as hostname and fail the match if so */ in hostmatch() 97 if(Curl_host_is_ipnum(hostname)) in hostmatch() 106 return pmatch(hostname, hostlen, pattern, patternlen); in hostmatch() [all …]
|
| /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/webrtc/rtc_base/ |
| D | socket_address.h | 37 // literal IP string or a hostname to be resolved later. 39 SocketAddress(absl::string_view hostname, int port); 56 // Determines if this is a nil address (empty hostname, any IP, null port) 65 // Changes the IP of this address to the given one, and clears the hostname 69 // Changes the IP of this address to the given one, and clears the hostname. 72 // Changes the hostname of this address to the given one. 74 void SetIP(absl::string_view hostname); 76 // Sets the IP address while retaining the hostname. Useful for bypassing 81 // Sets the IP address while retaining the hostname. Useful for bypassing 89 // Returns the hostname. [all …]
|
| /external/libcups/cups/ |
| D | testcreds.c | 27 hostname[HTTP_MAX_URI], /* Hostname from URI */ in main() local 46 puts("Usage: ./testcreds hostname"); in main() 47 puts(" ./testcreds https://hostname[:port]"); in main() 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() [all …]
|
| /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
| D | CertificatePinner.java | 55 * String hostname = "publicobject.com"; 57 * .add(hostname, "sha1/AAAAAAAAAAAAAAAAAAAAAAAAAAA=") 63 * .url("https://" + hostname) 95 * Pinning is per-hostname and/or per-wildcard pattern. To pin both 113 * If hostname pinned directly and via wildcard pattern, both 142 * Confirms that at least one of the certificates pinned for {@code hostname} 144 * pinned for {@code hostname}. OkHttp calls this after a successful TLS 148 * the certificates pinned for {@code hostname}. 150 public void check(String hostname, List<Certificate> peerCertificates) in check() argument 153 Set<ByteString> pins = findMatchingPins(hostname); in check() [all …]
|
| /external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
| D | CertificatePinner.java | 56 * String hostname = "publicobject.com"; 58 * .add(hostname, "sha1/AAAAAAAAAAAAAAAAAAAAAAAAAAA=") 64 * .url("https://" + hostname) 96 * Pinning is per-hostname and/or per-wildcard pattern. To pin both 114 * If hostname pinned directly and via wildcard pattern, both 144 * Confirms that at least one of the certificates pinned for {@code hostname} 146 * pinned for {@code hostname}. OkHttp calls this after a successful TLS 150 * the certificates pinned for {@code hostname}. 152 public void check(String hostname, List<Certificate> peerCertificates) in check() argument 155 Set<ByteString> pins = findMatchingPins(hostname); in check() [all …]
|