/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 29 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/ |
D | NetworkMonitorUtils.java | 20 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/ |
D | ConnectivityManagerTest.java | 26 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/ |
D | NetworkCapabilities.java | 246 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()
|
D | NetworkRequest.java | 25 import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED; 192 NET_CAPABILITY_NOT_RESTRICTED,
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitor.java | 27 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/ |
D | ConnectivityManagerShimImpl.java | 84 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in registerSystemDefaultNetworkCallback()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
D | BluetoothTetheringNetworkFactory.java | 251 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in initNetworkCapabilities()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | MultinetworkApiTest.java | 83 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in getTestableNetworks()
|
D | NetworkScoreTest.kt | 117 removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in <lambda>()
|
D | ConnectivityManagerTest.java | 53 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));
|
D | DnsResolverTest.java | 141 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in getTestableNetworks()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | VpnPreferenceController.java | 61 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | TestNetworkService.java | 250 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in registerTestNetworkAgent()
|
D | ConnectivityService.java | 66 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/ |
D | VpnSettings.java | 89 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/ |
D | ConnectivityFragment.java | 275 sCapabilityNames.put(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED, "[NOT RESTRICTED]"); in sCapabilityNames.put() argument
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 31 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/ |
D | WifiInjector.java | 113 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
|
D | ClientModeImpl.java | 3927 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/ |
D | NetworkMonitor.java | 36 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/ |
D | ClientModeImplTest.java | 5819 .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/ |
D | ConnectivityServiceTest.java | 87 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/ |
D | current.txt | 320 field public static final int NET_CAPABILITY_NOT_RESTRICTED = 13; // 0xd
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareDataPathStateManager.java | 140 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in makeNetworkCapabilitiesFilter()
|