Home
last modified time | relevance | path

Searched refs:TRANSPORT_VPN (Results 1 – 25 of 58) sorted by relevance

123

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DNetworkCapabilitiesUtilsTest.kt30 import android.net.NetworkCapabilities.TRANSPORT_VPN
60 assertEquals(TRANSPORT_VPN, getDisplayTransport( in testGetAccountingTransport()
61 intArrayOf(TRANSPORT_VPN, TRANSPORT_WIFI))) in testGetAccountingTransport()
62 assertEquals(TRANSPORT_VPN, getDisplayTransport( in testGetAccountingTransport()
63 intArrayOf(TRANSPORT_CELLULAR, TRANSPORT_VPN))) in testGetAccountingTransport()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSIngressDiscardRuleTests.kt26 import android.net.NetworkCapabilities.TRANSPORT_VPN
53 .addTransportType(TRANSPORT_VPN) in vpnNc()
75 if (transport != TRANSPORT_VPN) { in vpnNc()
113 val nr = nr(TRANSPORT_VPN) in testVpnIngressDiscardRule_UpdateVpnAddress()
146 val nr = nr(TRANSPORT_VPN) in testVpnIngressDiscardRule_UpdateInterfaceName()
186 val nr = nr(TRANSPORT_VPN) in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateVpnAddress()
301 val nr = nr(TRANSPORT_VPN) in testVpnIngressDiscardRule_FeatureDisabled()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/
DNetworkValidationMetricsTest.java22 import static android.net.NetworkCapabilities.TRANSPORT_VPN;
112 nc.addTransportType(TRANSPORT_VPN); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
120 nc.addTransportType(TRANSPORT_VPN); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
126 nc.addTransportType(TRANSPORT_VPN); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
132 nc.addTransportType(TRANSPORT_VPN); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DFullScore.java22 import static android.net.NetworkCapabilities.TRANSPORT_VPN;
174 everValidated, caps.hasTransport(TRANSPORT_VPN), in fromNetworkScore()
205 final boolean vpn = caps.hasTransport(TRANSPORT_VPN); in makeProspectiveScore()
248 everValidated, caps.hasTransport(TRANSPORT_VPN), in mixInScore()
/packages/modules/Connectivity/tests/integration/util/com/android/server/
DConnectivityServiceTestUtils.kt32 import android.net.NetworkCapabilities.TRANSPORT_VPN
40 TRANSPORT_VPN -> TYPE_VPN in transportToLegacyType()
/packages/modules/DnsResolver/tests/
Dresolv_unit_test.cpp1880 IDnsResolver::TRANSPORT_VPN}; in TEST_F()
1895 {android::net::NT_VPN, {IDnsResolver::TRANSPORT_VPN}}, in TEST_F()
1900 {IDnsResolver::TRANSPORT_CELLULAR, IDnsResolver::TRANSPORT_VPN}}, in TEST_F()
1902 {IDnsResolver::TRANSPORT_VPN, IDnsResolver::TRANSPORT_CELLULAR}}, in TEST_F()
1904 {IDnsResolver::TRANSPORT_WIFI, IDnsResolver::TRANSPORT_VPN}}, in TEST_F()
1906 {IDnsResolver::TRANSPORT_VPN, IDnsResolver::TRANSPORT_WIFI}}, in TEST_F()
1908 {IDnsResolver::TRANSPORT_BLUETOOTH, IDnsResolver::TRANSPORT_VPN}}, in TEST_F()
1910 {IDnsResolver::TRANSPORT_VPN, IDnsResolver::TRANSPORT_BLUETOOTH}}, in TEST_F()
1912 {IDnsResolver::TRANSPORT_ETHERNET, IDnsResolver::TRANSPORT_VPN}}, in TEST_F()
1914 {IDnsResolver::TRANSPORT_VPN, IDnsResolver::TRANSPORT_ETHERNET}}, in TEST_F()
[all …]
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DNetworkCapabilitiesUtils.java44 import static android.net.NetworkCapabilities.TRANSPORT_VPN;
67 TRANSPORT_VPN,
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkScoreTest.kt137 if (optionalTransports.contains(NetworkCapabilities.TRANSPORT_VPN)) { in <lambda>()
138 addTransportType(NetworkCapabilities.TRANSPORT_VPN) in <lambda>()
184 val agent2 = createTestNetworkAgent(intArrayOf(NetworkCapabilities.TRANSPORT_VPN)) in <lambda>()
/packages/modules/Connectivity/tests/unit/java/android/net/util/
DKeepaliveUtilsTest.kt25 import android.net.NetworkCapabilities.TRANSPORT_VPN
128 nc.transportTypes = intArrayOf(TRANSPORT_WIFI, TRANSPORT_VPN) in testGetSupportedKeepalivesForNetworkCapabilities()
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
DNetworkValidationMetrics.java23 import static android.net.NetworkCapabilities.TRANSPORT_VPN;
98 boolean hasVpn = nc.hasTransport(TRANSPORT_VPN); in getTransportTypeFromNC()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java60 import static android.net.NetworkCapabilities.TRANSPORT_VPN;
900 nc.addTransportType(TRANSPORT_VPN); in testGetTransportTypes()
907 assertEquals(TRANSPORT_VPN, transportTypes[2]); in testGetTransportTypes()
1172 assertFalse(nc.hasTransport(TRANSPORT_VPN)); in testMultipleTransportTypes()
1173 nc.addTransportType(TRANSPORT_VPN); in testMultipleTransportTypes()
1175 assertTrue(nc.hasTransport(TRANSPORT_VPN)); in testMultipleTransportTypes()
1178 assertTrue(nc.hasTransport(TRANSPORT_VPN)); in testMultipleTransportTypes()
1179 nc.removeTransportType(TRANSPORT_VPN); in testMultipleTransportTypes()
1181 assertFalse(nc.hasTransport(TRANSPORT_VPN)); in testMultipleTransportTypes()
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/4/android/net/
DIDnsResolver.aidl59 const int TRANSPORT_VPN = 4; field
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/5/android/net/
DIDnsResolver.aidl60 const int TRANSPORT_VPN = 4; field
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/7/android/net/
DIDnsResolver.aidl62 const int TRANSPORT_VPN = 4; field
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/6/android/net/
DIDnsResolver.aidl60 const int TRANSPORT_VPN = 4; field
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/8/android/net/
DIDnsResolver.aidl62 const int TRANSPORT_VPN = 4; field
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/10/android/net/
DIDnsResolver.aidl63 const int TRANSPORT_VPN = 4; field
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/9/android/net/
DIDnsResolver.aidl63 const int TRANSPORT_VPN = 4; field
/packages/modules/DnsResolver/binder/android/net/
DIDnsResolver.aidl196 const int TRANSPORT_VPN = 4; field
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/12/android/net/
DIDnsResolver.aidl63 const int TRANSPORT_VPN = 4; field
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/current/android/net/
DIDnsResolver.aidl63 const int TRANSPORT_VPN = 4; field
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/15/android/net/
DIDnsResolver.aidl63 const int TRANSPORT_VPN = 4; field
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/14/android/net/
DIDnsResolver.aidl63 const int TRANSPORT_VPN = 4; field
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/11/android/net/
DIDnsResolver.aidl63 const int TRANSPORT_VPN = 4; field
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/13/android/net/
DIDnsResolver.aidl63 const int TRANSPORT_VPN = 4; field

123