/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 29 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/ |
D | ConnectivityManagerTest.java | 25 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/ |
D | TelephonyNetworkFactoryTest.java | 87 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()
|
D | ApnContextTest.java | 127 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in testNetworkRequestNormal() 154 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in testNetworkRequestDetach()
|
D | DcTrackerTest.java | 1163 .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/ |
D | UpstreamNetworkMonitor.java | 27 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()
|
D | TetheringService.java | 321 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in makeTetheringDependencies()
|
/frameworks/base/core/java/android/net/ |
D | NetworkCapabilities.java | 160 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/ |
D | EthernetTracker.java | 186 return nc != null && !nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in isRestrictedInterface() 465 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in createDefaultNetworkCapabilities()
|
D | EthernetNetworkFactory.java | 394 return !mCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in isRestricted()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TestNetworkService.java | 251 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED);
|
D | ConnectivityService.java | 44 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/ |
D | networkcapabilities.proto | 92 NET_CAPABILITY_NOT_RESTRICTED = 13; enumerator
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | TelephonyNetworkFactory.java | 146 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in makeNetworkFilter()
|
D | ApnContext.java | 466 NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)) { in hasRestrictedRequests()
|
D | DataConnection.java | 1421 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/ |
D | SecurityControllerImpl.java | 73 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CaptivePortalLoginActivity.java | 284 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in requestNetworkForCaptivePortal()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PhoneSwitcher.java | 404 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in PhoneSwitcher() 1016 && netRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in phoneIdForRequest()
|
D | DeviceStateMonitor.java | 103 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneSwitcherTest.java | 1241 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/ |
D | VendorPhoneSwitcher.java | 396 && netRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in phoneIdForRequest()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareDataPathStateManager.java | 153 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in start()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 58 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/ |
D | ClientModeImpl.java | 846 mNetworkCapabilitiesFilter.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in ClientModeImpl()
|