Home
last modified time | relevance | path

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

12

/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java29 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
117 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
124 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
129 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
137 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
143 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
150 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
155 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
163 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
169 assertFalse(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
[all …]
/frameworks/base/tests/net/java/android/net/
DConnectivityManagerTest.java25 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
101 NET_CAPABILITY_NOT_RESTRICTED, in verifyUnrestrictedNetworkCapabilities()
115 assertFalse(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in verifyRestrictedMobileNetworkCapabilities()
189 NET_CAPABILITY_NOT_RESTRICTED, NET_CAPABILITY_NOT_VPN, in testNetworkCapabilitiesForTypeWifiP2p()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java87 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED). in makeSubSpecificInternetRequest()
101 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in makeDefaultInternetRequest()
113 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED). in makeSubSpecificMmsRequest()
DApnContextTest.java127 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in testNetworkRequestNormal()
154 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in testNetworkRequestDetach()
DDcTrackerTest.java1163 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in testTrySetupRestrictedDataDisabled()
1191 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in testTrySetupRestrictedRoamingDisabled()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java27 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
224 .removeCapability(NET_CAPABILITY_NOT_RESTRICTED) in registerMobileNetworkRequest()
601 builder.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in networkCapabilitiesForType()
DTetheringService.java321 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in makeTetheringDependencies()
/frameworks/base/core/java/android/net/
DNetworkCapabilities.java160 NET_CAPABILITY_NOT_RESTRICTED,
259 public static final int NET_CAPABILITY_NOT_RESTRICTED = 13; field in NetworkCapabilities
382 (1 << NET_CAPABILITY_NOT_RESTRICTED) |
438 | (1 << NET_CAPABILITY_NOT_RESTRICTED)
671 removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in maybeMarkCapabilitiesRestricted()
1904 case NET_CAPABILITY_NOT_RESTRICTED: return "NOT_RESTRICTED"; in capabilityNameOf()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetTracker.java186 return nc != null && !nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in isRestrictedInterface()
465 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in createDefaultNetworkCapabilities()
DEthernetNetworkFactory.java394 return !mCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in isRestricted()
/frameworks/base/services/core/java/com/android/server/
DTestNetworkService.java251 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED);
DConnectivityService.java44 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
5549 if (networkCapabilities.hasCapability(NET_CAPABILITY_NOT_RESTRICTED) == false) { in enforceNetworkRequestPermissions()
6226 if (!nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)) { in getNetworkPermission()
/frameworks/base/core/proto/android/net/
Dnetworkcapabilities.proto92 NET_CAPABILITY_NOT_RESTRICTED = 13; enumerator
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactory.java146 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in makeNetworkFilter()
DApnContext.java466 NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)) { in hasRestrictedRequests()
DDataConnection.java1421 result.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in getNetworkCapabilities()
1426 result.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in getNetworkCapabilities()
1469 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in isValidationRequired()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java73 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java284 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in requestNetworkForCaptivePortal()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java404 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in PhoneSwitcher()
1016 && netRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in phoneIdForRequest()
DDeviceStateMonitor.java103 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSwitcherTest.java1241 netCap.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in addInternetNetworkRequest()
1267 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in addMmsNetworkRequest()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/
DVendorPhoneSwitcher.java396 && netRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in phoneIdForRequest()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java153 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in start()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java58 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED;
2340 assertFalse(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in tryNetworkFactoryRequests()
2342 assertTrue(nc.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in tryNetworkFactoryRequests()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DClientModeImpl.java846 mNetworkCapabilitiesFilter.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in ClientModeImpl()

12