/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkUtilsTest.java | 42 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/ |
D | NetworkUtilsTest.java | 46 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/ |
D | MultinetworkApiTest.java | 26 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/ |
D | TcpKeepaliveController.java | 34 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/ |
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 | IpPrefix.java | 116 Pair<InetAddress, Integer> ipAndMask = NetworkUtils.legacyParseIpAndMask(prefix); in IpPrefix()
|
D | ConnectivityManager.java | 2220 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()
|
D | NetworkUtils.java | 44 public class NetworkUtils { class
|
D | LinkAddress.java | 328 Pair<InetAddress, Integer> ipAndMask = NetworkUtils.legacyParseIpAndMask(address); in LinkAddress()
|
D | Network.java | 437 final int err = NetworkUtils.bindSocketToNetwork(fd, netId); in bindSocket()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | NetworkUtils.java | 29 public class NetworkUtils { class 60 private NetworkUtils() {} in NetworkUtils() method in NetworkUtils
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataUsageFragment.java | 27 import com.android.car.settings.network.NetworkUtils; 46 return NetworkUtils.hasMobileNetwork(
|
D | DataUsageEntryPreferenceController.java | 30 import com.android.car.settings.network.NetworkUtils; 50 if (!NetworkUtils.hasMobileNetwork( in getAvailabilityStatus()
|
D | DataWarningAndLimitFragment.java | 32 import com.android.car.settings.network.NetworkUtils; 103 return NetworkUtils.hasMobileNetwork(
|
D | DataUsageSummaryPreferenceController.java | 44 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/ |
D | WifiTetherFragment.java | 26 import com.android.car.settings.network.NetworkUtils; 50 return NetworkUtils.hasMobileNetwork(
|
/packages/apps/Car/Settings/src/com/android/car/settings/network/ |
D | NetworkUtils.java | 30 public final class NetworkUtils { class 32 private NetworkUtils() { in NetworkUtils() method in NetworkUtils
|
D | MobileNetworkListFragment.java | 48 return NetworkUtils.hasMobileNetwork(
|
D | NetworkAndInternetFragment.java | 48 if (!NetworkUtils.hasMobileNetwork(
|
D | MobileNetworkEntryPreferenceController.java | 73 if (!NetworkUtils.hasMobileNetwork(mConnectivityManager)) { in getAvailabilityStatus()
|
D | MobileNetworkFragment.java | 140 return NetworkUtils.hasMobileNetwork(
|
D | MobileDataTogglePreferenceController.java | 162 NetworkUtils.setMobileDataEnabled(getContext(), mSubId, enabled, disableOtherSubscriptions); in setMobileDataEnabled()
|
/packages/modules/Connectivity/Tethering/apex/hiddenapi/ |
D | hiddenapi-max-target-o-low-priority.txt | 1135 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/ |
D | TunableTvView.java | 82 import com.android.tv.util.NetworkUtils; 1440 return NetworkUtils.isNetworkAvailable(mConnectivityManager);
|