/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/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) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/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 * 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); 102 assertEquals("HostName", init.getHostName(), desr.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); 152 assertEquals("some host", hasHostname.getHostName()); 154 // between getHostString and getHostName... 158 assertEquals("localhost", noHostname.getHostName());
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/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()
|
/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 | 78 CloudPrintTestsDelegate::instance()->GetHostName() : 79 net::GetHostName()));
|
cloud_print_private_apitest.cc | 71 MOCK_METHOD0(GetHostName, std::string()); 104 EXPECT_CALL(cloud_print_mock, 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_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) {
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
SocketChannelTest.java | 193 assertEquals(bindAddr.getHostName(), actualAddr.getHostName()); 219 assertEquals(bindAddr.getHostName(), actualAddr.getHostName());
|
/external/apache-harmony/luni/src/test/resources/net.resources/HTTP/html/testres231/UCL/ |
UCL.jar | |
/external/lldb/source/Plugins/Platform/gdb-server/ |
PlatformRemoteGDBServer.cpp | 203 GetHostname()); 246 PlatformRemoteGDBServer::GetHostname () 248 m_gdb_client.GetHostname (m_name); 367 error.SetErrorStringWithFormat ("unable to launch a GDB server on '%s'", GetHostname ()); 400 GetHostname (),
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
SSLSocketTest.java | 141 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost().getHostName(), sport); 154 getSSLSocket(InetAddress.getLocalHost().getHostName(), invalidPort[i]); 175 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost().getHostName(), sport, 181 getSSLSocket(InetAddress.getLocalHost().getHostName(), 8081, InetAddress.getLocalHost(), 8082); 188 getSSLSocket(InetAddress.getLocalHost().getHostName(), invalidPort[i], 194 getSSLSocket(InetAddress.getLocalHost().getHostName(), sport,
|
/libcore/luni/src/main/java/java/net/ |
InetSocketAddress.java | 152 public final String getHostName() { 153 return (addr != null) ? addr.getHostName() : hostname; 158 * Unlike {@link #getHostName}, this method will never cause a DNS lookup.
|
/ndk/sources/host-tools/make-3.81/ |
acinclude.m4 | 49 AC_CHECK_FUNCS(gethostname,,[ 50 CF_RECHECK_FUNC(gethostname,nsl,cf_cv_netlibs,[ 51 CF_RECHECK_FUNC(gethostname,socket,cf_cv_netlibs)])])
|
/external/bison/lib/ |
unistd.in.h | 25 are completely included before we replace gethostname. */ 45 /* Get all possible declarations of gethostname(). */ 102 NonStop Kernel declares gethostname in <netdb.h>, not in <unistd.h>. */ 718 # undef gethostname 719 # define gethostname rpl_gethostname 721 _GL_FUNCDECL_RPL (gethostname, int, (char *name, size_t len) 723 _GL_CXXALIAS_RPL (gethostname, int, (char *name, size_t len)); 726 _GL_FUNCDECL_SYS (gethostname, int, (char *name, size_t len) 732 _GL_CXXALIAS_SYS_CAST (gethostname, int, (char *name, size_t len)); 734 _GL_CXXALIASWARN (gethostname); [all...] |
/external/chromium_org/chrome/common/extensions/api/ |
cloud_print_private.json | 73 "name": "getHostName",
|