Home
last modified time | relevance | path

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

12

/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkUtilsTest.java42 assertEquals(0, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
45 assertEquals(1l << 32, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
51 assertEquals(1l << 32, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
57 assertEquals(1l << 24, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
61 assertEquals((1l << 24) + (1 << 7), NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
68 assertEquals(1l, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
77 assertEquals(7l, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
83 assertEquals(7l - 4 + 4 + 16 + 65536, NetworkUtils.routedIPv4AddressCount(set)); in testRoutedIPv4AddressCount()
90 assertEquals(BigInteger.ZERO, NetworkUtils.routedIPv6AddressCount(set)); in testRoutedIPv6AddressCount()
93 assertEquals(BigInteger.ONE.shiftLeft(128), NetworkUtils.routedIPv6AddressCount(set)); in testRoutedIPv6AddressCount()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DNetworkUtilsTest.java46 assertThat(NetworkUtils.hasMobileNetwork(connectivityManager)).isTrue(); in hasMobileNetwork_hasCellularCapabilities_returnsTrue()
59 assertThat(NetworkUtils.hasMobileNetwork(connectivityManager)).isFalse(); in hasMobileNetwork_hasNoCellularCapabilities_returnsFalse()
67 assertThat(NetworkUtils.hasSim(telephonyManager)).isFalse(); in hasSim_simAbsent_returnsFalse()
75 assertThat(NetworkUtils.hasSim(telephonyManager)).isFalse(); in hasSim_simUnknown_returnsFalse()
83 assertThat(NetworkUtils.hasSim(telephonyManager)).isTrue(); in hasSim_otherStatus_returnsTrue()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DMultinetworkApiTest.java26 import android.net.NetworkUtils;
110 assertEquals(0, NetworkUtils.getBoundNetworkForProcess()); in testSetprocnetwork()
132 NetworkUtils.bindProcessToNetwork(0); in testSetprocnetwork()
145 NetworkUtils.bindProcessToNetwork(0); in testSetprocnetwork()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DTcpKeepaliveController.java34 import android.net.NetworkUtils;
196 trw = NetworkUtils.getTcpRepairWindow(fd); in switchToRepairMode()
330 NetworkUtils.attachDropAllBPFFilter(fd); in dropAllIncomingPackets()
332 NetworkUtils.detachBPFFilter(fd); in dropAllIncomingPackets()
/packages/modules/Connectivity/framework/src/android/net/
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()
DIpPrefix.java116 Pair<InetAddress, Integer> ipAndMask = NetworkUtils.legacyParseIpAndMask(prefix); in IpPrefix()
DConnectivityManager.java2220 return requestRouteToHostAddress(networkType, NetworkUtils.intToInetAddress(hostAddress)); in requestRouteToHost()
4931 boolean isSameNetId = (netId == NetworkUtils.getBoundNetworkForProcess()); in setProcessDefaultNetwork()
4937 if (!NetworkUtils.bindProcessToNetwork(netId)) { in setProcessDefaultNetwork()
4985 int netId = NetworkUtils.getBoundNetworkForProcess(); in getProcessDefaultNetwork()
5027 return NetworkUtils.bindProcessToNetworkForHostResolution( in setProcessDefaultNetworkForHostResolution()
DNetworkUtils.java44 public class NetworkUtils { class
DLinkAddress.java328 Pair<InetAddress, Integer> ipAndMask = NetworkUtils.legacyParseIpAndMask(address); in LinkAddress()
DNetwork.java437 final int err = NetworkUtils.bindSocketToNetwork(fd, netId); in bindSocket()
/packages/apps/TV/src/com/android/tv/util/
DNetworkUtils.java29 public class NetworkUtils { class
60 private NetworkUtils() {} in NetworkUtils() method in NetworkUtils
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageFragment.java27 import com.android.car.settings.network.NetworkUtils;
46 return NetworkUtils.hasMobileNetwork(
DDataUsageEntryPreferenceController.java30 import com.android.car.settings.network.NetworkUtils;
50 if (!NetworkUtils.hasMobileNetwork( in getAvailabilityStatus()
DDataWarningAndLimitFragment.java32 import com.android.car.settings.network.NetworkUtils;
103 return NetworkUtils.hasMobileNetwork(
DDataUsageSummaryPreferenceController.java44 import com.android.car.settings.network.NetworkUtils;
111 return NetworkUtils.hasSim(mTelephonyManager) ? AVAILABLE : CONDITIONALLY_UNAVAILABLE; in getAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherFragment.java26 import com.android.car.settings.network.NetworkUtils;
50 return NetworkUtils.hasMobileNetwork(
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DNetworkUtils.java30 public final class NetworkUtils { class
32 private NetworkUtils() { in NetworkUtils() method in NetworkUtils
DMobileNetworkListFragment.java48 return NetworkUtils.hasMobileNetwork(
DNetworkAndInternetFragment.java48 if (!NetworkUtils.hasMobileNetwork(
DMobileNetworkEntryPreferenceController.java73 if (!NetworkUtils.hasMobileNetwork(mConnectivityManager)) { in getAvailabilityStatus()
DMobileNetworkFragment.java140 return NetworkUtils.hasMobileNetwork(
DMobileDataTogglePreferenceController.java162 NetworkUtils.setMobileDataEnabled(getContext(), mSubId, enabled, disableOtherSubscriptions); in setMobileDataEnabled()
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt1135 Landroid/net/NetworkUtils;-><init>()V
1136 Landroid/net/NetworkUtils;->addressTypeMatches(Ljava/net/InetAddress;Ljava/net/InetAddress;)Z
1137 Landroid/net/NetworkUtils;->bindProcessToNetwork(I)Z
1138 Landroid/net/NetworkUtils;->bindProcessToNetworkForHostResolution(I)Z
1139 Landroid/net/NetworkUtils;->bindSocketToNetwork(II)I
1140 Landroid/net/NetworkUtils;->deduplicatePrefixSet(Ljava/util/TreeSet;)Ljava/util/TreeSet;
1141 Landroid/net/NetworkUtils;->getBoundNetworkForProcess()I
1142 Landroid/net/NetworkUtils;->getNetworkPart(Ljava/net/InetAddress;I)Ljava/net/InetAddress;
1143 Landroid/net/NetworkUtils;->hexToInet6Address(Ljava/lang/String;)Ljava/net/InetAddress;
1144 Landroid/net/NetworkUtils;->inetAddressToInt(Ljava/net/Inet4Address;)I
[all …]
/packages/apps/TV/src/com/android/tv/ui/
DTunableTvView.java82 import com.android.tv.util.NetworkUtils;
1440 return NetworkUtils.isNetworkAvailable(mConnectivityManager);

12