Home
last modified time | relevance | path

Searched refs:NetworkUtils (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/tests/net/java/android/net/
DNetworkUtilsTest.java50 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/
DNetworkUtilsForAppProc.cpp27 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()
DNetworkUtils.cpp28 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()
DARTSPConnection.cpp64 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 …]
DNetworkUtils.h22 struct NetworkUtils { struct
DMyHandler.h767 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 …]
DAndroid.bp56 srcs: ["NetworkUtils.cpp"],
/frameworks/base/core/java/android/net/
DIpPrefix.java62 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()
DDnsResolver.java19 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;
DDhcpInfo.java67 buf.append(NetworkUtils.intToInetAddress(addr).getHostAddress()); in putAddress()
DIpSecTransform.java316 NetworkUtils.numericToInetAddress(mConfig.getSourceAddress()), in startNattKeepalive()
318 NetworkUtils.numericToInetAddress(mConfig.getDestinationAddress())); in startNattKeepalive()
DProxy.java207 if (NetworkUtils.numericToInetAddress(host).isLoopbackAddress()) { in isLocalHost()
DNetworkUtils.java47 public class NetworkUtils { class
/frameworks/base/core/java/android/net/util/
DSocketUtils.java26 import android.net.NetworkUtils;
56 NetworkUtils.protectFromVpn(socket); in bindSocketToInterface()
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java23 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/
DIpConfigStoreTest.java27 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/
DTcpKeepaliveController.java34 import android.net.NetworkUtils;
196 trw = NetworkUtils.getTcpRepairWindow(fd); in switchToRepairMode()
332 NetworkUtils.attachDropAllBPFFilter(fd); in dropAllIncomingPackets()
334 NetworkUtils.detachBPFFilter(fd); in dropAllIncomingPackets()
DDnsManager.java37 import android.net.NetworkUtils;
372 NetworkUtils.makeStrings(lp.getDnsServers()); in sendDnsConfigurationForNetwork()
376 strictMode ? NetworkUtils.makeStrings( in sendDnsConfigurationForNetwork()
DKeepaliveTracker.java46 import android.net.NetworkUtils;
610 srcAddress = NetworkUtils.numericToInetAddress(srcAddrString); in startNattKeepalive()
611 dstAddress = NetworkUtils.numericToInetAddress(dstAddrString); in startNattKeepalive()
DNetworkDiagnostics.java26 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/
DLinkAddressTest.java71 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/
DFormatter.java27 import android.net.NetworkUtils;
210 return NetworkUtils.intToInetAddress(ipv4Address).getHostAddress(); in formatIpAddress()
/frameworks/base/media/java/android/media/
DMediaHTTPConnection.java22 import android.net.NetworkUtils;
217 if (NetworkUtils.numericToInetAddress(host).isLoopbackAddress()) { in isLocalHost()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DWifiEntry.java29 import android.net.NetworkUtils;
663 mConnectedInfo.subnetMask = NetworkUtils.getNetworkPart( in updateLinkProperties()
/frameworks/base/core/java/com/android/internal/os/
DZygote.java27 import android.net.NetworkUtils;
355 NetworkUtils.setAllowNetworkingForProcess(containsInetGid(gids)); in forkAndSpecialize()

12