/external/chromium_org/sync/util/ |
get_session_name_linux.cc | 8 #include <unistd.h> // for gethostname() 15 std::string GetHostname() { 17 if (gethostname(hostname, HOST_NAME_MAX) == 0) // Success.
|
get_session_name_linux.h | 13 std::string GetHostname();
|
/system/extras/tests/bionic/libc/common/ |
test_gethostname.c | 39 ret = gethostname(hostname, sizeof(hostname)); 41 printf("gethostname() returned error %d: %s\n", errno, strerror(errno)); 45 printf("gethostname() returned '%s'\n", hostname);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
InetAddressThreadTest.java | 35 * the gethostbyname function to be called. getHostName will cause the 67 String correctName = testAddress.getHostName(); 86 String hostName = ia.getHostName(); 96 + ": getHostName() returned " 106 + ": getHostName() returned " 122 * @tests java.net.InetAddress#getHostName() 125 // Test for method java.lang.String java.net.InetAddress.getHostName() 139 lookup1.getHostName(), lookup1, 0); 141 lookup2.getHostName(), lookup2, 0);
|
InetSocketAddressTest.java | 35 String localhostName = address.getHostName(); 53 assertEquals(isa.getHostName(), legalHostPortPairs[i].host); 100 assertEquals("HostName", init.getHostName(), desr.getHostName());
|
/external/chromium-libpac/src/ |
proxy_resolver_js_bindings.cc | 50 std::string my_hostname = GetHostName(); 57 std::string my_hostname = GetHostName(); 94 std::string GetHostName() { 96 if (gethostname(buffer, 256) != 0) {
|
/external/chromium_org/chrome/browser/extensions/api/cloud_print_private/ |
cloud_print_private_api.h | 36 virtual std::string GetHostName() = 0; 67 DECLARE_EXTENSION_FUNCTION("cloudPrintPrivate.getHostName",
|
cloud_print_private_api.cc | 76 CloudPrintTestsDelegate::instance()->GetHostName() : 77 net::GetHostName()));
|
cloud_print_private_apitest.cc | 70 MOCK_METHOD0(GetHostName, std::string()); 103 EXPECT_CALL(cloud_print_mock, GetHostName())
|
/libcore/luni/src/test/java/libcore/java/net/ |
InetSocketAddressTest.java | 62 //assertEquals(results[i], isa.getHostName()); 66 assertEquals("0.0.0.0", isa.getHostName()); 83 assertEquals("0.0.0.0", isa.getHostName()); 107 isa1 = new InetSocketAddress(localhost.getHostName(), 80); 131 InetSocketAddress isa1 = new InetSocketAddress(localhost.getHostName(), 8080); 151 assertEquals("some host", hasHostname.getHostName()); 153 // between getHostString and getHostName... 157 assertEquals("localhost", noHostname.getHostName());
|
/libcore/luni/src/test/java/tests/api/javax/net/ |
SocketFactoryTest.java | 63 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport); 75 sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i]); 82 sf.createSocket(InetAddress.getLocalHost().getHostName(), s.getLocalPort()); 89 f.createSocket(InetAddress.getLocalHost().getHostName(), 8082); 177 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport, 190 sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i], 196 sf.createSocket(InetAddress.getLocalHost().getHostName(), sport, 204 sf.createSocket(InetAddress.getLocalHost().getHostName(), 8081, InetAddress.getLocalHost(), 8082); 217 s = sf.createSocket(InetAddress.getLocalHost().getHostName(), 8082); 222 s = sf.createSocket(InetAddress.getLocalHost().getHostName(), 8081, InetAddress.getLocalHost(), 8082) [all...] |
/development/tools/axl/ |
udpServer.py | 13 # hostname = socket.gethostname()
|
udpEater.py | 33 hostname = socket.gethostname()
|
/ndk/sources/host-tools/sed-4.2.1/lib/ |
unistd.in.h | 49 /* Get all possible declarations of gethostname(). */ 339 # undef gethostname macro 340 # define gethostname rpl_gethostname macro 343 extern int gethostname(char *name, size_t len); 346 # undef gethostname macro 347 # define gethostname gethostname_used_without_requesting_gnulib_module_gethostname macro 349 # undef gethostname macro 350 # define gethostname(n,l) \ macro 351 (GL_LINK_WARNING ("gethostname is unportable - " \ 352 "use gnulib module gethostname for portability"), [all...] |
/external/chromium/chrome/browser/policy/ |
policy_path_parser_posix.cc | 36 if (gethostname(machinename, 255) == 0) {
|
/external/chromium/third_party/libjingle/source/talk/base/ |
host.h | 36 std::string GetHostName();
|
host.cc | 38 std::string GetHostName() {
|
/external/chromium/net/http/ |
http_auth_handler_ntlm.h | 81 // GetHostName functions. 133 // For unit tests to override the GenerateRandom and GetHostName functions.
|
/external/chromium_org/net/http/ |
http_auth_handler_ntlm.h | 79 // GetHostName functions. 130 // For unit tests to override the GenerateRandom and GetHostName functions.
|
/bionic/libc/bionic/ |
gethostname.c | 33 int gethostname(char* buff, size_t buflen) function
|
/external/chromium_org/chrome/browser/policy/ |
policy_path_parser_linux.cc | 47 if (gethostname(machinename, 255) == 0) {
|
/external/okhttp/src/test/java/com/squareup/okhttp/internal/mockspdyserver/ |
MockSpdyServer.java | 68 public String getHostName() { 70 return InetAddress.getLocalHost().getHostName(); 85 return new URL("https://" + getHostName() + ":" + getPort() + path); 97 String hostName = getHostName();
|
/external/apache-harmony/luni/src/test/resources/net.resources/HTTP/html/testres231/UCL/ |
UCL.jar | |
/frameworks/base/core/java/android/net/ |
Proxy.java | 139 return ((InetSocketAddress)(proxy.address())).getHostName(); 213 return new HttpHost(sa.getHostName(), sa.getPort(), "http"); 285 return getProxy(mContext, target.getHostName()); 291 return getPreferredHttpHost(mContext, target.getHostName()); 297 HttpHost proxy = getPreferredHttpHost(mContext, target.getHostName());
|
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
MockWebServer.java | 86 public String getHostName() { 88 return InetAddress.getLocalHost().getHostName(); 95 return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(getHostName(), getPort())); 106 ? new URL("https://" + getHostName() + ":" + getPort() + path) 107 : new URL("http://" + getHostName() + ":" + getPort() + path); 119 String hostName = getHostName();
|