Home
last modified time | relevance | path

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

12

/frameworks/base/tests/net/integration/util/com/android/server/
DNetworkAgentWrapper.java94 mNetworkCapabilities.removeCapability(NET_CAPABILITY_NOT_VPN); in NetworkAgentWrapper()
97 mNetworkCapabilities.removeCapability(NET_CAPABILITY_NOT_SUSPENDED); in NetworkAgentWrapper()
179 public void removeCapability(int capability) { in removeCapability() method in NetworkAgentWrapper
180 mNetworkCapabilities.removeCapability(capability); in removeCapability()
214 removeCapability(NET_CAPABILITY_NOT_SUSPENDED); in suspend()
/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java127 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
141 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
153 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
167 netCap.removeCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
200 .removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in testDescribeImmutableDifferences()
387 network.removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in testUnwantedCapabilities()
407 nc.removeCapability(NET_CAPABILITY_CAPTIVE_PORTAL); in testConnectivityManagedCapabilities()
410 nc.removeCapability(NET_CAPABILITY_FOREGROUND); in testConnectivityManagedCapabilities()
413 nc.removeCapability(NET_CAPABILITY_PARTIAL_CONNECTIVITY); in testConnectivityManagedCapabilities()
437 nc1.removeCapability(NET_CAPABILITY_INTERNET); in testEqualsNetCapabilities()
[all …]
DNetworkProviderTest.kt117 removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED) in <lambda>()
118 removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>()
/frameworks/libs/net/common/devicetests/com/android/testutils/
DTestNetworkTracker.kt69 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN)
70 .removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED)
/frameworks/base/core/java/android/net/
DNetworkRequest.java195 public Builder removeCapability(@NetworkCapabilities.NetCapability int capability) { in removeCapability() method in NetworkRequest.Builder
196 mNetworkCapabilities.removeCapability(capability); in removeCapability()
DNetworkCapabilities.java490 public @NonNull NetworkCapabilities removeCapability(@NetCapability int capability) { in removeCapability() method in NetworkCapabilities
510 removeCapability(capability); in setCapability()
671 removeCapability(NET_CAPABILITY_NOT_RESTRICTED); in maybeMarkCapabilitiesRestricted()
2212 public Builder removeCapability(@NetCapability final int capability) { in removeCapability() method in NetworkCapabilities.Builder
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java72 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN)
73 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
74 .removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED)
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DUntrustedWifiNetworkFactoryTest.java57 mNetworkCapabilities.removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
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.java224 .removeCapability(NET_CAPABILITY_NOT_RESTRICTED) in registerMobileNetworkRequest()
601 builder.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in networkCapabilitiesForType()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java211 .removeCapability(NET_CAPABILITY_TRUSTED) in connect()
/frameworks/base/packages/OsuLogin/src/com/android/hotspot2/osu/
DOsuLoginActivity.java157 NetworkCapabilities.TRANSPORT_WIFI).removeCapability( in onCreate()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneConnection.java313 capabilities = removeCapability(capabilities, in applyLocalCallCapabilities()
333 capabilities = removeCapability(capabilities, in applyRemoteCallCapabilities()
1028 capabilities = removeCapability(capabilities, in updateMediaCapabilities()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java77 VPN_CAPABILITIES.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN);
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitorTest.java410 dunAgent.networkCapabilities.removeCapability(NET_CAPABILITY_INTERNET); in testGetCurrentPreferredUpstream()
481 dunAgent.networkCapabilities.removeCapability(NET_CAPABILITY_INTERNET); in testLocalPrefixes()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java284 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in requestNetworkForCaptivePortal()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java2001 mWiFiNetworkAgent.removeCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering()
4822 mCellNetworkAgent.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in testStatsIfacesChanged()
5208 .removeCapability(NET_CAPABILITY_NOT_VPN).build(); in testVpnNetworkActive()
5212 .removeCapability(NET_CAPABILITY_NOT_VPN) in testVpnNetworkActive()
5435 .removeCapability(NET_CAPABILITY_NOT_VPN) in testVpnStartsWithUnderlyingCaps()
5476 .removeCapability(NET_CAPABILITY_NOT_VPN) in testVpnSetUnderlyingNetworks()
5542 mCellNetworkAgent.removeCapability(NET_CAPABILITY_NOT_SUSPENDED); in testVpnSetUnderlyingNetworks()
5580 mCellNetworkAgent.removeCapability(NET_CAPABILITY_NOT_SUSPENDED); in testVpnSetUnderlyingNetworks()
5632 .removeCapability(NET_CAPABILITY_NOT_VPN) in testNullUnderlyingNetworks()
5709 mCellNetworkAgent.removeCapability(NET_CAPABILITY_NOT_METERED); in testIsActiveNetworkMeteredOverCell()
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DGnssNetworkConnectivityHandler.java186 networkRequestBuilder.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN); in registerNetworkCallbacks()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DDeviceStateMonitor.java103 .removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
DConnection.java925 public static int removeCapability(int capabilities, int capability) { in removeCapability() method in Connection
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java1421 result.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in getNetworkCapabilities()
1426 result.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in getNetworkCapabilities()
1428 result.removeCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in getNetworkCapabilities()
1452 result.removeCapability(NetworkCapabilities.NET_CAPABILITY_TEMPORARILY_NOT_METERED); in getNetworkCapabilities()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerBaseTest.java263 mNetCapabilities.removeCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in setConnectivityCommon()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java382 .removeCapability(NET_CAPABILITY_NOT_METERED); in isRelaxedSatisfied()
/frameworks/base/core/java/android/app/job/
DJobInfo.java1128 builder.removeCapability(NET_CAPABILITY_NOT_VPN); in setRequiredNetworkType()

12