Home
last modified time | relevance | path

Searched refs:NET_CAPABILITY_NOT_RESTRICTED (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java29 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
110 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
117 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
122 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
130 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
136 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
143 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
148 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
156 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
162 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
[all …]
/packages/modules/NetworkStack/common/moduleutils/src/android/net/shared/
DNetworkMonitorUtils.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
74 final boolean isDefaultCapable = nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED) in isPrivateDnsValidationRequired()
91 if (nc.hasTransport(TRANSPORT_TEST) && nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED) && ( in isPrivateDnsValidationRequired()
/packages/modules/Connectivity/tests/unit/java/android/net/
DConnectivityManagerTest.java26 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
112 NET_CAPABILITY_NOT_RESTRICTED, in verifyUnrestrictedNetworkCapabilities()
126 assertFalse(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in verifyRestrictedMobileNetworkCapabilities()
200 NET_CAPABILITY_NOT_RESTRICTED, NET_CAPABILITY_NOT_VPN, in testNetworkCapabilitiesForTypeWifiP2p()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkCapabilities.java246 NET_CAPABILITY_NOT_RESTRICTED,
352 public static final int NET_CAPABILITY_NOT_RESTRICTED = 13; field in NetworkCapabilities
547 (1 << NET_CAPABILITY_NOT_RESTRICTED)
569 | (1 << NET_CAPABILITY_NOT_RESTRICTED)
812 removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in maybeMarkCapabilitiesRestricted()
831 if (0 != (originalCapabilities & NET_CAPABILITY_NOT_RESTRICTED)) { in restrictCapabilitesForTestNetwork()
2121 case NET_CAPABILITY_NOT_RESTRICTED: return "NOT_RESTRICTED"; in capabilityNameOf()
DNetworkRequest.java25 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
192 NET_CAPABILITY_NOT_RESTRICTED,
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java27 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
260 .removeCapability(NET_CAPABILITY_NOT_RESTRICTED) in registerMobileNetworkRequest()
684 builder.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in networkCapabilitiesForType()
/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/
DConnectivityManagerShimImpl.java84 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in registerSystemDefaultNetworkCallback()
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DBluetoothTetheringNetworkFactory.java251 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in initNetworkCapabilities()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DMultinetworkApiTest.java83 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in getTestableNetworks()
DNetworkScoreTest.kt117 removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in <lambda>()
DConnectivityManagerTest.java53 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
691 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in makeDefaultRequest()
1799 if (nc != null && !nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)) {
2910 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
2933 NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED));
DDnsResolverTest.java141 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in getTestableNetworks()
/packages/apps/Settings/src/com/android/settings/network/
DVpnPreferenceController.java61 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
/packages/modules/Connectivity/service/src/com/android/server/
DTestNetworkService.java250 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in registerTestNetworkAgent()
DConnectivityService.java66 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
1942 && nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED) in getDefaultNetworkCapabilitiesForUser()
6161 if (networkCapabilities.hasCapability(NET_CAPABILITY_NOT_RESTRICTED) == false) { in enforceNetworkRequestPermissions()
7186 if (!nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)) { in getNetworkPermission()
9820 if (!nai.networkCapabilities.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)) { in registerQosCallbackInternal()
9875 nc.removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in setProfileNetworkPreference()
10302 .removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in createOemPaidNetworkRequest()
10310 .removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in createOemPrivateNetworkRequest()
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnSettings.java89 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java275 sCapabilityNames.put(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED, "[NOT RESTRICTED]"); in sCapabilityNames.put() argument
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java31 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
330 .removeCapability(NET_CAPABILITY_NOT_RESTRICTED);
1809 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiInjector.java113 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
DClientModeImpl.java3927 builder.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED);
3933 builder.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED);
4011 if (!vcnCapability.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)) {
4015 builder.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED);
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java36 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
741 if (!mNetworkCapabilities.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)) { in suppressNotificationIfNetworkRestricted()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java5819 .NET_CAPABILITY_NOT_RESTRICTED)); in testOemPaidNetworkCapability()
5832 .NET_CAPABILITY_NOT_RESTRICTED)); in testNotOemPaidNetworkCapability()
5846 .NET_CAPABILITY_NOT_RESTRICTED)); in testOemPrivateNetworkCapability()
5860 .NET_CAPABILITY_NOT_RESTRICTED)); in testNotOemPrivateNetworkCapability()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java87 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
3209 assertFalse(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in tryNetworkFactoryRequests()
3211 assertTrue(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in tryNetworkFactoryRequests()
11454 mEthernetNetworkAgent.removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in startOemManagedNetwork()
11698 mEthernetNetworkAgent.removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in testMultiDefaultIsActiveNetworkMeteredIsCorrect()
12489 .removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in testNetworkFactoryRequestsWithMultilayerRequest()
12511 oemPaidNc.removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in testNetworkFactoryRequestsWithMultilayerRequest()
12998 workNc.removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in makeEnterpriseNetworkAgent()
13159 && !nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testPreferenceForUserNetworkUpDown()
/packages/modules/Connectivity/framework/api/
Dcurrent.txt320 field public static final int NET_CAPABILITY_NOT_RESTRICTED = 13; // 0xd
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java140 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in makeNetworkCapabilitiesFilter()

12