Home
last modified time | relevance | path

Searched refs:NetworkStackUtils (Results 1 – 17 of 17) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/util/
DNetworkStackUtilsTest.java20 import static android.net.util.NetworkStackUtils.isIPv6ULA;
100 assertEquals(TEST_DEFAULT_FLAG_VALUE, NetworkStackUtils.getDeviceConfigPropertyInt( in testGetDeviceConfigPropertyInt_Null()
109 assertEquals(TEST_FLAG_VALUE, NetworkStackUtils.getDeviceConfigPropertyInt( in testGetDeviceConfigPropertyInt_NotNull()
118 assertEquals(TEST_FLAG_VALUE, NetworkStackUtils.getDeviceConfigPropertyInt( in testGetDeviceConfigPropertyInt_NormalValue()
128 assertEquals(TEST_DEFAULT_FLAG_VALUE, NetworkStackUtils.getDeviceConfigPropertyInt( in testGetDeviceConfigPropertyInt_NullValue()
138 assertEquals(TEST_DEFAULT_FLAG_VALUE, NetworkStackUtils.getDeviceConfigPropertyInt( in testGetDeviceConfigPropertyInt_OverMaximumValue()
148 assertEquals(TEST_DEFAULT_FLAG_VALUE, NetworkStackUtils.getDeviceConfigPropertyInt( in testGetDeviceConfigPropertyInt_BelowMinimumValue()
158 assertFalse(NetworkStackUtils.getDeviceConfigPropertyBoolean( in testGetDeviceConfigPropertyBoolean_Null()
167 assertTrue(NetworkStackUtils.getDeviceConfigPropertyBoolean( in testGetDeviceConfigPropertyBoolean_NotNull()
176 assertTrue(NetworkStackUtils.isFeatureEnabled(mContext, TEST_NAME_SPACE, in testFeatureIsEnabledWithExceptionsEnabled()
[all …]
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java59 import static android.net.util.NetworkStackUtils.CAPTIVE_PORTAL_FALLBACK_PROBE_SPECS;
60 import static android.net.util.NetworkStackUtils.CAPTIVE_PORTAL_FALLBACK_URL;
61 import static android.net.util.NetworkStackUtils.CAPTIVE_PORTAL_HTTPS_URL;
62 import static android.net.util.NetworkStackUtils.CAPTIVE_PORTAL_HTTP_URL;
63 import static android.net.util.NetworkStackUtils.CAPTIVE_PORTAL_MODE;
64 import static android.net.util.NetworkStackUtils.CAPTIVE_PORTAL_MODE_IGNORE;
65 import static android.net.util.NetworkStackUtils.CAPTIVE_PORTAL_MODE_PROMPT;
66 import static android.net.util.NetworkStackUtils.CAPTIVE_PORTAL_OTHER_FALLBACK_URLS;
67 import static android.net.util.NetworkStackUtils.CAPTIVE_PORTAL_OTHER_HTTPS_URLS;
68 import static android.net.util.NetworkStackUtils.CAPTIVE_PORTAL_OTHER_HTTP_URLS;
[all …]
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
DNetworkValidationMetrics.java33 import android.net.util.NetworkStackUtils;
198 int latencyUs = NetworkStackUtils.saturatedCast(durationUs); in addProbeEvent()
209 .setRemainingTtlSecs(NetworkStackUtils.saturatedCast(secondsRemaining)) in addProbeEvent()
212 NetworkStackUtils.saturatedCast(capportData.getByteLimit() / 1000)) in addProbeEvent()
237 mStatsBuilder.setLatencyMicros(NetworkStackUtils.saturatedCast(mWatch.stop())); in maybeStopCollectionAndSend()
DIpProvisioningMetrics.java19 import android.net.util.NetworkStackUtils;
73 mStatsBuilder.setIpv4LatencyMicros(NetworkStackUtils.saturatedCast(mIpv4Watch.stop())); in setIPv4ProvisionedLatencyOnFirstTime()
82 mStatsBuilder.setIpv6LatencyMicros(NetworkStackUtils.saturatedCast(mIpv6Watch.stop())); in setIPv6ProvisionedLatencyOnFirstTime()
DDataStallDetectionStats.java19 import android.net.util.NetworkStackUtils;
300 NetworkStackUtils.convertToIntArray(mDnsReturnCode), in build()
301 NetworkStackUtils.convertToLongArray(mDnsTimeStamp), in build()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java33 import static android.net.util.NetworkStackUtils.DHCP_INIT_REBOOT_VERSION;
34 import static android.net.util.NetworkStackUtils.DHCP_IP_CONFLICT_DETECT_VERSION;
35 import static android.net.util.NetworkStackUtils.DHCP_RAPID_COMMIT_VERSION;
36 import static android.net.util.NetworkStackUtils.closeSocketQuietly;
74 import android.net.util.NetworkStackUtils;
428 return NetworkStackUtils.isFeatureEnabled(context, NAMESPACE_CONNECTIVITY, name, in isFeatureEnabled()
437 return NetworkStackUtils.getDeviceConfigPropertyInt(NAMESPACE_CONNECTIVITY, in getIntDeviceConfig()
645 NetworkStackUtils.attachDhcpFilter(mPacketSock); in createFd()
DDhcpServer.java26 import static android.net.util.NetworkStackUtils.DHCP_RAPID_COMMIT_VERSION;
51 import android.net.util.NetworkStackUtils;
229 NetworkStackUtils.addArpEntry(ipv4Addr, ethAddr, ifname, fd); in addArpEntry()
234 return NetworkStackUtils.isFeatureEnabled(context, NAMESPACE_CONNECTIVITY, name); in isFeatureEnabled()
/packages/modules/NetworkStack/src/android/net/ip/
DConnectivityPacketTracker.java28 import android.net.util.NetworkStackUtils;
113 NetworkStackUtils.attachControlPacketFilter(s, ARPHRD_ETHER); in createFd()
DIpClient.java54 import android.net.util.NetworkStackUtils;
544 return NetworkStackUtils.getDeviceConfigPropertyInt(NAMESPACE_CONNECTIVITY, name, in getDeviceConfigPropertyInt()
/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java52 import android.net.util.NetworkStackUtils;
212 NetworkStackUtils.closeSocketQuietly(mSocket); in halt()
487 NetworkStackUtils.attachRaFilter(socket, mApfCapabilities.apfPacketFormat); in maybeStartFilter()
1030 NetworkStackUtils.addressAndPortToString( in toString()
1032 NetworkStackUtils.addressAndPortToString( in toString()
1085 NetworkStackUtils.addressAndPortToString( in toString()
1087 NetworkStackUtils.addressAndPortToString( in toString()
1366 final boolean haveKeepaliveResponses = NetworkStackUtils.any(mKeepalivePackets, in generateKeepaliveFilters()
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java49 import android.net.util.NetworkStackUtils;
271 NetworkStackUtils.closeSocketQuietly(fd); in pollSocketsInfo()
572 return NetworkStackUtils.getDeviceConfigPropertyInt(namespace, name, defaultValue); in getDeviceConfigPropertyInt()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java43 import static android.net.util.NetworkStackUtils.CAPTIVE_PORTAL_FALLBACK_PROBE_SPECS;
44 import static android.net.util.NetworkStackUtils.CAPTIVE_PORTAL_OTHER_FALLBACK_URLS;
45 import static android.net.util.NetworkStackUtils.CAPTIVE_PORTAL_USE_HTTPS;
46 import static android.net.util.NetworkStackUtils.DEFAULT_CAPTIVE_PORTAL_DNS_PROBE_TIMEOUT;
47 import static android.net.util.NetworkStackUtils.DISMISS_PORTAL_IN_VALIDATED_NETWORK;
48 import static android.net.util.NetworkStackUtils.DNS_PROBE_PRIVATE_IP_NO_INTERNET_VERSION;
49 import static android.net.util.NetworkStackUtils.TEST_CAPTIVE_PORTAL_HTTPS_URL;
50 import static android.net.util.NetworkStackUtils.TEST_CAPTIVE_PORTAL_HTTP_URL;
51 import static android.net.util.NetworkStackUtils.TEST_URL_EXPIRATION_TIME;
/packages/modules/NetworkStack/tests/integration/
DAndroid.bp24 // For NetworkStackUtils included in NetworkStackBase
/packages/modules/NetworkStack/src/android/net/util/
DNetworkStackUtils.java42 public class NetworkStackUtils { class
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java118 import android.net.util.NetworkStackUtils;
329 case NetworkStackUtils.DHCP_RAPID_COMMIT_VERSION: in getDhcpClientDependencies()
331 case NetworkStackUtils.DHCP_INIT_REBOOT_VERSION: in getDhcpClientDependencies()
333 case NetworkStackUtils.DHCP_IP_CONFLICT_DETECT_VERSION: in getDhcpClientDependencies()
/packages/modules/NetworkStack/src/com/android/server/
DNetworkStackService.java22 import static android.net.util.NetworkStackUtils.getResBooleanConfig;
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServerTest.java26 import static android.net.util.NetworkStackUtils.DHCP_RAPID_COMMIT_VERSION;