Home
last modified time | relevance | path

Searched refs:removeCapability (Results 1 – 25 of 55) sorted by relevance

123

/packages/modules/NetworkStack/apishim/29/com/android/networkstack/apishim/api29/
DConnectivityManagerShimImpl.java90 .removeCapability(NET_CAPABILITY_NOT_RESTRICTED) in makeEmptyCapabilitiesRequest()
91 .removeCapability(NET_CAPABILITY_TRUSTED) in makeEmptyCapabilitiesRequest()
92 .removeCapability(NET_CAPABILITY_NOT_VPN); in makeEmptyCapabilitiesRequest()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkProviderTest.kt145 .removeCapability(NET_CAPABILITY_TRUSTED) in <lambda>()
159 removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED) in <lambda>()
160 removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>()
261 .removeCapability(NET_CAPABILITY_TRUSTED) in <lambda>()
283 .removeCapability(NET_CAPABILITY_TRUSTED) in <lambda>()
308 removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED) in <lambda>()
DNetworkCapabilitiesTest.java146 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
160 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
172 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
186 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
219 .removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in testDescribeImmutableDifferences()
488 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testPrioritizeLatencyAndBandwidth()
499 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testPrioritizeLatencyAndBandwidth()
557 network.removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in testForbiddenCapabilities()
577 nc.removeCapability(NET_CAPABILITY_CAPTIVE_PORTAL); in testConnectivityManagedCapabilities()
580 nc.removeCapability(NET_CAPABILITY_FOREGROUND); in testConnectivityManagedCapabilities()
[all …]
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DNetworkCapabilitiesUtilsTest.kt88 nc.removeCapability(NET_CAPABILITY_OEM_PAID) in testInferRestrictedCapability()
93 nc.removeCapability(NET_CAPABILITY_INTERNET) in testInferRestrictedCapability()
98 nc.removeCapability(NET_CAPABILITY_CBS) in testInferRestrictedCapability()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkScoreTest.kt134 removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED) in <lambda>()
135 removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>()
136 removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in <lambda>()
139 removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in <lambda>()
DNetworkRequestTest.java108 assertFalse(new NetworkRequest.Builder().removeCapability(NET_CAPABILITY_MMS).build() in testCapabilities()
139 .removeCapability(NET_CAPABILITY_TEMPORARILY_NOT_METERED).build() in testTemporarilyNotMeteredCapability()
366 builder.removeCapability(ConstantsShim.NET_CAPABILITY_NOT_VCN_MANAGED); in testSetIncludeOtherUidNetworks()
371 otherUidsBuilder.removeCapability(ConstantsShim.NET_CAPABILITY_NOT_VCN_MANAGED); in testSetIncludeOtherUidNetworks()
432 .removeCapability(ConstantsShim.NET_CAPABILITY_NOT_VCN_MANAGED).build(); in testBypassingVcn()
451 .removeCapability(ConstantsShim.NET_CAPABILITY_NOT_VCN_MANAGED).build(); in testBypassingVcn()
549 .removeCapability(NET_CAPABILITY_MMS) in testBuildRequestFromExistingRequestWithBuilder()
DNetworkAgentTest.kt306 removeCapability(NET_CAPABILITY_TRUSTED) in makeTestNetworkRequest()
307 removeCapability(NET_CAPABILITY_INTERNET) in makeTestNetworkRequest()
320 if (transports.size > 0) removeCapability(NET_CAPABILITY_NOT_RESTRICTED) in makeTestNetworkRequest()
592 removeCapability(NET_CAPABILITY_NOT_RESTRICTED) in doTestAllowedUids()
910 .removeCapability(NET_CAPABILITY_NOT_VPN) in testSetUnderlyingNetworksAndVpnSpecifier()
911 .removeCapability(NET_CAPABILITY_TRUSTED) // TODO: add to VPN! in testSetUnderlyingNetworksAndVpnSpecifier()
919 removeCapability(NET_CAPABILITY_NOT_VPN) in testSetUnderlyingNetworksAndVpnSpecifier()
1082 .removeCapability(NET_CAPABILITY_TEMPORARILY_NOT_METERED) in testTemporarilyUnmeteredCapability()
1214 ncAgent1.removeCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in testRegisterBestMatchingNetworkCallback()
DEthernetNetworkUpdateRequestTest.java47 .removeCapability(NET_CAPABILITY_NOT_RESTRICTED).build();
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DTestNetworkUtils.java73 .removeCapability(NET_CAPABILITY_TRUSTED) in setupAndGetTestNetwork()
74 .removeCapability(NET_CAPABILITY_NOT_VPN) in setupAndGetTestNetwork()
/packages/modules/Connectivity/tests/integration/util/com/android/server/
DNetworkAgentWrapper.java152 mNetworkCapabilities.removeCapability(NET_CAPABILITY_NOT_VPN); in NetworkAgentWrapper()
155 mNetworkCapabilities.removeCapability(NET_CAPABILITY_NOT_SUSPENDED); in NetworkAgentWrapper()
312 public void removeCapability(int capability) { in removeCapability() method in NetworkAgentWrapper
313 mNetworkCapabilities.removeCapability(capability); in removeCapability()
358 removeCapability(NET_CAPABILITY_NOT_SUSPENDED); in suspend()
/packages/apps/Settings/src/com/android/settings/network/
DVpnPreferenceController.java61 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN)
62 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
63 .removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED)
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DTestNetworkTracker.kt127 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN)
128 .removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED)
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConference.java178 removeCapability(Connection.CAPABILITY_MANAGE_CONFERENCE); in onConnectionAdded()
211 removeCapability(Connection.CAPABILITY_HOLD); in setHoldable()
DTelephonyConferenceBase.java214 public void removeCapability(int capability) { in removeCapability() method in TelephonyConferenceBase
/packages/modules/Connectivity/thread/tests/utils/src/android/net/thread/utils/
DTapTestNetworkTracker.java139 .removeCapability(NET_CAPABILITY_TRUSTED) in newNetworkRequest()
147 .removeCapability(NET_CAPABILITY_TRUSTED) in newNetworkCapabilities()
/packages/services/Telecomm/src/com/android/server/telecom/
DParcelableCallUtils.java174 capabilities = removeCapability( in toParcelableCall()
179 capabilities = removeCapability(capabilities, in toParcelableCall()
181 capabilities = removeCapability(capabilities, in toParcelableCall()
592 private static int removeCapability(int capabilities, int capability) { in removeCapability() method in ParcelableCallUtils
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSSatelliteNetworkTest.kt222 removeCapability(NET_CAPABILITY_NOT_RESTRICTED) in satelliteNc()
224 removeCapability(NET_CAPABILITY_NOT_BANDWIDTH_CONSTRAINED) in satelliteNc()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiShellCommandTest.java917 .removeCapability(NET_CAPABILITY_INTERNET) in testAddNetworkRequest()
932 .removeCapability(NET_CAPABILITY_INTERNET) in testAddNetworkRequest()
948 .removeCapability(NET_CAPABILITY_INTERNET) in testAddNetworkRequest()
964 .removeCapability(NET_CAPABILITY_INTERNET) in testAddNetworkRequest()
980 .removeCapability(NET_CAPABILITY_INTERNET) in testAddNetworkRequest()
996 .removeCapability(NET_CAPABILITY_INTERNET) in testAddNetworkRequest()
DUntrustedWifiNetworkFactoryTest.java58 mNetworkCapabilities.removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED); in setUp()
DRestrictedWifiNetworkFactoryTest.java63 mNetworkCapabilities.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in setUp()
/packages/services/Mms/src/com/android/mms/service/
DMmsNetworkManager.java306 builder.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in MmsNetworkManager()
310 builder.removeCapability(NetworkCapabilities in MmsNetworkManager()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkRequest.java361 public Builder removeCapability(@NetworkCapabilities.NetCapability int capability) { in removeCapability() method in NetworkRequest.Builder
362 mNetworkCapabilities.removeCapability(capability); in removeCapability()
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnSettings.java95 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN)
96 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
97 .removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED)
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DCarrierPrivilegeAuthenticatorTest.java335 ncBuilder.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in testNetworkCapabilitiesContainOneSubId()
351 ncBuilder.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in testNetworkCapabilitiesContainTwoSubIds()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java431 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in startVpn()
432 .removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in startVpn()
465 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in stopVpn()
466 .removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in stopVpn()
875 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in makeVpnNetworkRequest()
1953 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in doTestDropPacketToVpnAddress()
1954 .removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED) in doTestDropPacketToVpnAddress()

123