/frameworks/base/tests/net/java/android/net/ |
D | NetworkUtilsTest.java | 50 assertEquals(0, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount() 53 assertEquals(1l << 32, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount() 59 assertEquals(1l << 32, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount() 65 assertEquals(1l << 24, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount() 69 assertEquals((1l << 24) + (1 << 7), NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount() 76 assertEquals(1l, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount() 85 assertEquals(7l, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount() 91 assertEquals(7l - 4 + 4 + 16 + 65536, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount() 98 assertEquals(BigInteger.ZERO, NetworkUtils.routedIPv6AddressCount(set)); in testRoutedIPv6AddressCount() 101 assertEquals(BigInteger.ONE.shiftLeft(128), NetworkUtils.routedIPv6AddressCount(set)); in testRoutedIPv6AddressCount() [all …]
|
/frameworks/av/media/libstagefright/rtsp/ |
D | NetworkUtilsForAppProc.cpp | 27 void NetworkUtils::RegisterSocketUserTag(int, uid_t, uint32_t) { in RegisterSocketUserTag() 32 void NetworkUtils::UnRegisterSocketUserTag(int) { in UnRegisterSocketUserTag() 37 void NetworkUtils::RegisterSocketUserMark(int, uid_t) { in RegisterSocketUserMark() 42 void NetworkUtils::UnRegisterSocketUserMark(int) { in UnRegisterSocketUserMark()
|
D | NetworkUtils.cpp | 28 void NetworkUtils::RegisterSocketUserTag(int sockfd, uid_t uid, uint32_t kTag) { in RegisterSocketUserTag() 36 void NetworkUtils::UnRegisterSocketUserTag(int sockfd) { in UnRegisterSocketUserTag() 44 void NetworkUtils::RegisterSocketUserMark(int sockfd, uid_t uid) { in RegisterSocketUserMark() 49 void NetworkUtils::UnRegisterSocketUserMark(int sockfd) { in UnRegisterSocketUserMark()
|
D | ARTSPConnection.cpp | 64 NetworkUtils::UnRegisterSocketUserTag(mSocket); in ~ARTSPConnection() 65 NetworkUtils::UnRegisterSocketUserMark(mSocket); in ~ARTSPConnection() 219 NetworkUtils::UnRegisterSocketUserTag(mSocket); in onConnect() 220 NetworkUtils::UnRegisterSocketUserMark(mSocket); in onConnect() 271 NetworkUtils::RegisterSocketUserTag(mSocket, mUID, in onConnect() 273 NetworkUtils::RegisterSocketUserMark(mSocket, mUID); in onConnect() 302 NetworkUtils::UnRegisterSocketUserTag(mSocket); in onConnect() 303 NetworkUtils::UnRegisterSocketUserMark(mSocket); in onConnect() 320 NetworkUtils::UnRegisterSocketUserTag(mSocket); in performDisconnect() 321 NetworkUtils::UnRegisterSocketUserMark(mSocket); in performDisconnect() [all …]
|
D | NetworkUtils.h | 22 struct NetworkUtils { struct
|
D | MyHandler.h | 767 NetworkUtils::UnRegisterSocketUserTag(track->mRTPSocket); in onMessageReceived() 768 NetworkUtils::UnRegisterSocketUserMark(track->mRTPSocket); in onMessageReceived() 769 NetworkUtils::UnRegisterSocketUserTag(track->mRTCPSocket); in onMessageReceived() 770 NetworkUtils::UnRegisterSocketUserMark(track->mRTCPSocket); in onMessageReceived() 896 NetworkUtils::UnRegisterSocketUserTag(info->mRTPSocket); in onMessageReceived() 897 NetworkUtils::UnRegisterSocketUserMark(info->mRTPSocket); in onMessageReceived() 898 NetworkUtils::UnRegisterSocketUserTag(info->mRTCPSocket); in onMessageReceived() 899 NetworkUtils::UnRegisterSocketUserMark(info->mRTCPSocket); in onMessageReceived() 1683 NetworkUtils::RegisterSocketUserTag(info->mRTPSocket, mUID, in setupTrack() 1685 NetworkUtils::RegisterSocketUserTag(info->mRTCPSocket, mUID, in setupTrack() [all …]
|
D | Android.bp | 56 srcs: ["NetworkUtils.cpp"],
|
/frameworks/base/core/java/android/net/ |
D | IpPrefix.java | 62 NetworkUtils.maskRawAddress(address, prefixLength); in checkAndMaskAddressAndPrefixLength() 116 Pair<InetAddress, Integer> ipAndMask = NetworkUtils.parseIpAndMask(prefix); in IpPrefix() 195 NetworkUtils.maskRawAddress(addrBytes, prefixLength); in contains() 209 NetworkUtils.maskRawAddress(otherAddress, prefixLength); in containsPrefix()
|
D | DnsResolver.java | 19 import static android.net.NetworkUtils.getDnsNetwork; 20 import static android.net.NetworkUtils.resNetworkCancel; 21 import static android.net.NetworkUtils.resNetworkQuery; 22 import static android.net.NetworkUtils.resNetworkResult; 23 import static android.net.NetworkUtils.resNetworkSend;
|
D | DhcpInfo.java | 67 buf.append(NetworkUtils.intToInetAddress(addr).getHostAddress()); in putAddress()
|
D | IpSecTransform.java | 316 NetworkUtils.numericToInetAddress(mConfig.getSourceAddress()), in startNattKeepalive() 318 NetworkUtils.numericToInetAddress(mConfig.getDestinationAddress())); in startNattKeepalive()
|
D | Proxy.java | 207 if (NetworkUtils.numericToInetAddress(host).isLoopbackAddress()) { in isLocalHost()
|
D | NetworkUtils.java | 47 public class NetworkUtils { class
|
/frameworks/base/core/java/android/net/util/ |
D | SocketUtils.java | 26 import android.net.NetworkUtils; 56 NetworkUtils.protectFromVpn(socket); in bindSocketToInterface()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | IpConfigStore.java | 23 import android.net.NetworkUtils; 287 NetworkUtils.numericToInetAddress(in.readUTF()), in.readInt()); in readIpConfigurations() 299 gateway = NetworkUtils.numericToInetAddress(in.readUTF()); in readIpConfigurations() 308 NetworkUtils.numericToInetAddress(in.readUTF()), in readIpConfigurations() 312 gateway = NetworkUtils.numericToInetAddress(in.readUTF()); in readIpConfigurations() 324 NetworkUtils.numericToInetAddress(in.readUTF())); in readIpConfigurations()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | IpConfigStoreTest.java | 27 import android.net.NetworkUtils; 82 staticIpConfiguration.dnsServers.add(NetworkUtils.numericToInetAddress(DNS_IP_ADDR_1)); in staticIpMultiNetworks() 83 staticIpConfiguration.dnsServers.add(NetworkUtils.numericToInetAddress(DNS_IP_ADDR_2)); in staticIpMultiNetworks()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | TcpKeepaliveController.java | 34 import android.net.NetworkUtils; 196 trw = NetworkUtils.getTcpRepairWindow(fd); in switchToRepairMode() 332 NetworkUtils.attachDropAllBPFFilter(fd); in dropAllIncomingPackets() 334 NetworkUtils.detachBPFFilter(fd); in dropAllIncomingPackets()
|
D | DnsManager.java | 37 import android.net.NetworkUtils; 372 NetworkUtils.makeStrings(lp.getDnsServers()); in sendDnsConfigurationForNetwork() 376 strictMode ? NetworkUtils.makeStrings( in sendDnsConfigurationForNetwork()
|
D | KeepaliveTracker.java | 46 import android.net.NetworkUtils; 610 srcAddress = NetworkUtils.numericToInetAddress(srcAddrString); in startNattKeepalive() 611 dstAddress = NetworkUtils.numericToInetAddress(dstAddrString); in startNattKeepalive()
|
D | NetworkDiagnostics.java | 26 import android.net.NetworkUtils; 100 private static final InetAddress TEST_DNS4 = NetworkUtils.numericToInetAddress("8.8.8.8"); 101 private static final InetAddress TEST_DNS6 = NetworkUtils.numericToInetAddress(
|
/frameworks/base/tests/net/common/java/android/net/ |
D | LinkAddressTest.java | 71 private static final InetAddress V4_ADDRESS = NetworkUtils.numericToInetAddress(V4); 72 private static final InetAddress V6_ADDRESS = NetworkUtils.numericToInetAddress(V6); 134 assertEquals(NetworkUtils.numericToInetAddress("127.0.0.1"), ipv4Loopback.getAddress()); in testConstructors() 137 assertEquals(NetworkUtils.numericToInetAddress("::1"), ipv6Loopback.getAddress()); in testConstructors()
|
/frameworks/base/core/java/android/text/format/ |
D | Formatter.java | 27 import android.net.NetworkUtils; 210 return NetworkUtils.intToInetAddress(ipv4Address).getHostAddress(); in formatIpAddress()
|
/frameworks/base/media/java/android/media/ |
D | MediaHTTPConnection.java | 22 import android.net.NetworkUtils; 217 if (NetworkUtils.numericToInetAddress(host).isLoopbackAddress()) { in isLocalHost()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | WifiEntry.java | 29 import android.net.NetworkUtils; 663 mConnectedInfo.subnetMask = NetworkUtils.getNetworkPart( in updateLinkProperties()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | Zygote.java | 27 import android.net.NetworkUtils; 355 NetworkUtils.setAllowNetworkingForProcess(containsInetGid(gids)); in forkAndSpecialize()
|