/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
NetworkInterfaceTest.java | 22 import java.net.NetworkInterface; 31 Enumeration<NetworkInterface> theInterfaces = null; 37 private NetworkInterface networkInterface1 = null; 39 private NetworkInterface sameAsNetworkInterface1 = null; 41 private NetworkInterface networkInterface2 = null; 44 * @tests java.net.NetworkInterface#getName() 62 * @tests java.net.NetworkInterface#getInetAddresses() 160 "validate we cannot get the NetworkInterface with an address for which we have no privs", 161 NetworkInterface 170 "validate we cannot get the NetworkInterface with an address fro which we have no privs" [all...] |
InterfaceAddressTest.java | 24 import java.net.NetworkInterface; 132 Enumeration<NetworkInterface> netifs = NetworkInterface 134 NetworkInterface theInterface = null; 155 NetworkInterface anotherNetworkInter = NetworkInterface
|
DatagramSocketImplTest.java | 25 import java.net.NetworkInterface; 94 protected void joinGroup(SocketAddress addr, NetworkInterface netInterface) 105 protected void leaveGroup(SocketAddress addr, NetworkInterface netInterface)
|
MulticastSocketTest.java | 28 import java.net.NetworkInterface; 41 private NetworkInterface networkInterface1 = null; 43 private NetworkInterface networkInterface2 = null; 45 private NetworkInterface IPV6networkInterface1 = null; 77 private NetworkInterface groupNI = null; 124 public MulticastServer(SocketAddress anAddress, int aPort, NetworkInterface netInterface) throws java.io.IOException { 179 assertEquals("getInterface did not return interface set by setNetworkInterface", networkInterface1, NetworkInterface.getByInetAddress(mss.getInterface())); 190 NetworkInterface theInterface = mss.getNetworkInterface(); 364 NetworkInterface loopbackInterface = NetworkInterface.getByInetAddress(InetAddress.getByName("127.0.0.1")) [all...] |
InetAddressTest.java | 25 import java.net.NetworkInterface; 359 Enumeration<NetworkInterface> nif = NetworkInterface.getNetworkInterfaces(); 360 NetworkInterface netif; 389 NetworkInterface loopbackInterface = null; 391 Enumeration<NetworkInterface> networkInterfaces = NetworkInterface 394 NetworkInterface networkInterface = networkInterfaces.nextElement(); 395 Enumeration<InetAddress> addresses = networkInterface [all...] |
/libcore/luni/src/main/java/java/net/ |
NetworkInterface.java | 43 public final class NetworkInterface extends Object { 49 private final List<NetworkInterface> children = new LinkedList<NetworkInterface>(); 51 private NetworkInterface parent = null; 53 private NetworkInterface(String name, int interfaceIndex, 61 static NetworkInterface forUnboundMulticastSocket() { 64 return new NetworkInterface(null, -1, 100 * Returns the {@code NetworkInterface} corresponding to the named network interface, or null 106 public static NetworkInterface getByName(String interfaceName) throws SocketException { 120 return new NetworkInterface(interfaceName, interfaceIndex, addresses, interfaceAddresses) [all...] |
MulticastSocket.java | 86 NetworkInterface theInterface = getNetworkInterface(); 107 public NetworkInterface getNetworkInterface() throws SocketException { 111 return NetworkInterface.getByIndex(index); 113 return NetworkInterface.forUnboundMulticastSocket(); 167 public void joinGroup(SocketAddress groupAddress, NetworkInterface netInterface) throws IOException { 200 public void leaveGroup(SocketAddress groupAddress, NetworkInterface netInterface) throws IOException { 205 private void checkJoinOrLeave(SocketAddress groupAddress, NetworkInterface netInterface) throws IOException { 274 NetworkInterface networkInterface = NetworkInterface.getByInetAddress(address) [all...] |
DatagramSocketImpl.java | 151 NetworkInterface netInterface) throws IOException; 176 NetworkInterface netInterface) throws IOException;
|
Inet6Address.java | 116 NetworkInterface nif) throws UnknownHostException { 237 public NetworkInterface getScopedInterface() { 239 return (scope_ifname_set && ifname != null) ? NetworkInterface.getByName(ifname) : null;
|
PlainDatagramSocketImpl.java | 27 import java.net.NetworkInterface; 119 private static StructGroupReq makeGroupReq(InetAddress gr_group, NetworkInterface networkInterface) { 120 int gr_interface = (networkInterface != null) ? networkInterface.getIndex() : 0; 130 public void joinGroup(SocketAddress addr, NetworkInterface netInterface) throws IOException { 143 public void leaveGroup(SocketAddress addr, NetworkInterface netInterface) throws IOException {
|
/external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/net/ |
UnixNetworkInterfaceTest.java | 19 import java.net.NetworkInterface; 30 private Enumeration<NetworkInterface> netifs = null; 35 * @tests java.net.NetworkInterface#isUp() 41 NetworkInterface netif = netifs.nextElement(); 61 * @tests java.net.NetworkInterface#supportsMulticast() 67 NetworkInterface netif = netifs.nextElement(); 89 * @tests java.net.NetworkInterface#getHardwareAddress() 95 NetworkInterface netif = netifs.nextElement(); 121 * @tests java.net.NetworkInterface#getMTU() 127 NetworkInterface netif = netifs.nextElement() [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_NetworkInterface.java | 20 import java.net.NetworkInterface; 29 public static boolean useInterface(NetworkInterface theInterface) {
|
/libcore/luni/src/test/java/libcore/java/net/ |
NetworkInterfaceTest.java | 29 NetworkInterface lo = NetworkInterface.getByName("lo"); 41 NetworkInterface lo = NetworkInterface.getByName("lo"); 48 NetworkInterface eth0 = NetworkInterface.getByName("eth0"); 62 for (NetworkInterface nif : Collections.list(NetworkInterface.getNetworkInterfaces())) {
|
OldDatagramSocketImplFactoryTest.java | 26 import java.net.NetworkInterface; 161 protected void joinGroup(SocketAddress arg0, NetworkInterface arg1) throws IOException { 169 protected void leaveGroup(SocketAddress arg0, NetworkInterface arg1) throws IOException {
|
InetAddressTest.java | 22 import java.net.NetworkInterface; 143 for (NetworkInterface nif 144 : Collections.list(NetworkInterface.getNetworkInterfaces())) {
|
/external/jmdns/src/javax/jmdns/impl/ |
NetworkTopologyDiscoveryImpl.java | 8 import java.net.NetworkInterface; 37 isUp = NetworkInterface.class.getMethod("isUp", (Class<?>[]) null); 45 supportsMulticast = NetworkInterface.class.getMethod("supportsMulticast", (Class<?>[]) null); 62 for (Enumeration<NetworkInterface> nifs = NetworkInterface.getNetworkInterfaces(); nifs.hasMoreElements();) { 63 NetworkInterface nif = nifs.nextElement(); 67 logger.finest("Found NetworkInterface/InetAddress: " + nif + " -- " + interfaceAddress); 82 * @see javax.jmdns.JmmDNS.NetworkTopologyDiscovery#useInetAddress(java.net.NetworkInterface, java.net.InetAddress) 85 public boolean useInetAddress(NetworkInterface networkInterface, InetAddress interfaceAddress) [all...] |
HostInfo.java | 12 import java.net.NetworkInterface; 39 protected NetworkInterface _interfaze; 128 _interfaze = NetworkInterface.getByInetAddress(address); 157 public NetworkInterface getInterface() {
|
/external/jmdns/src/javax/jmdns/ |
NetworkTopologyDiscovery.java | 4 import java.net.NetworkInterface; 24 * public boolean useInetAddress(NetworkInterface networkInterface, InetAddress interfaceAddress) { 144 * @param networkInterface 148 public boolean useInetAddress(NetworkInterface networkInterface, InetAddress interfaceAddress);
|
/external/chromium/net/base/ |
net_util.h | 478 struct NetworkInterface { 479 NetworkInterface(); 480 NetworkInterface(const std::string& name, const IPAddressNumber& address); 481 ~NetworkInterface(); 487 typedef std::list<NetworkInterface> NetworkInterfaceList;
|
net_util_posix.cc | 77 networks->push_back(NetworkInterface(name, address.address()));
|
net_util_win.cc | 117 networks->push_back(NetworkInterface(name, endpoint.address()));
|
/external/chromium/third_party/libjingle/source/talk/session/phone/ |
mediachannel.h | 70 class NetworkInterface { 77 virtual ~NetworkInterface() {} 84 NetworkInterface *network_interface() { return network_interface_; } 85 virtual void SetInterface(NetworkInterface *iface) { 105 NetworkInterface *network_interface_;
|
/development/apps/Development/src/com/android/development/ |
Connectivity.java | 66 import java.net.NetworkInterface; 438 NetworkInterface networkInterface = null; 440 networkInterface = NetworkInterface.getByName("rmnet0"); 441 Log.d(TAG, "networkInterface is " + networkInterface); 446 if (networkInterface != null) { 447 Enumeration inetAddressess = networkInterface.getInetAddresses(); 454 if (networkInterface != null) [all...] |
/frameworks/base/core/java/android/net/ |
DnsPinger.java | 33 import java.net.NetworkInterface; 154 newActivePing.socket.setNetworkInterface(NetworkInterface.getByName(
|
/frameworks/base/services/java/com/android/server/display/ |
WifiDisplayController.java | 51 import java.net.NetworkInterface; 788 NetworkInterface iface; 790 iface = NetworkInterface.getByName(info.getInterface()); [all...] |