/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 108 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 114 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 115 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted() 119 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 126 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 127 netCap.addCapability(NET_CAPABILITY_EIMS); in testMaybeMarkCapabilitiesRestricted() 128 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted() 132 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 133 netCap.addCapability(NET_CAPABILITY_EIMS); in testMaybeMarkCapabilitiesRestricted() 140 netCap.addCapability(NET_CAPABILITY_EIMS); in testMaybeMarkCapabilitiesRestricted() [all …]
|
D | NetworkProviderTest.kt | 160 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) in <lambda>() 161 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in <lambda>() 162 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in <lambda>() 223 .addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in <lambda>() 281 .addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in <lambda>() 293 ncFilter3.addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in <lambda>() 296 ncFilter4.addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in <lambda>() 309 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VCN_MANAGED) in <lambda>() 310 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) in <lambda>() 311 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in <lambda>() [all …]
|
D | ConnectivityDiagnosticsManagerTest.java | 99 networkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in createSampleConnectivityReport() 216 networkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in createSampleDataStallReport()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkRequestTest.java | 97 assertTrue(new NetworkRequest.Builder().addCapability(NET_CAPABILITY_MMS).build() in testCapabilities() 110 .addCapability(NET_CAPABILITY_TEMPORARILY_NOT_METERED).build() in testTemporarilyNotMeteredCapability() 174 nc.addCapability(ConstantsShim.NET_CAPABILITY_NOT_VCN_MANAGED); in addNotVcnManagedCapability() 188 .addCapability(NET_CAPABILITY_MMS) in testCanBeSatisfiedBy() 189 .addCapability(NET_CAPABILITY_INTERNET); in testCanBeSatisfiedBy() 198 .addCapability(NET_CAPABILITY_INTERNET) in testCanBeSatisfiedBy() 213 .addCapability(NET_CAPABILITY_INTERNET) in testCanBeSatisfiedBy() 229 .addCapability(NET_CAPABILITY_INTERNET) in testCanBeSatisfiedBy() 255 .addCapability(NET_CAPABILITY_INTERNET) in testInvariantInCanBeSatisfiedBy() 278 .addCapability(NET_CAPABILITY_INTERNET).build(); in testInvariantInCanBeSatisfiedBy() [all …]
|
D | NetworkAgentTest.kt | 407 addCapability(NET_CAPABILITY_NOT_SUSPENDED) in createNetworkAgent() 408 addCapability(NET_CAPABILITY_NOT_ROAMING) in createNetworkAgent() 409 addCapability(NET_CAPABILITY_NOT_VPN) in createNetworkAgent() 411 addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in createNetworkAgent() 484 nc.addCapability(NET_CAPABILITY_NOT_METERED) in testSetLegacySubtypeInNetworkAgent() 606 nc.addCapability(NET_CAPABILITY_NOT_METERED) in agent() 669 addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in testSetUnderlyingNetworksAndVpnSpecifier() 820 .addCapability(NET_CAPABILITY_TEMPORARILY_NOT_METERED) in testTemporarilyUnmeteredCapability() 934 .addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in testRegisterBestMatchingNetworkCallback() 949 ncAgent1.addCapability(NET_CAPABILITY_TEMPORARILY_NOT_METERED) in testRegisterBestMatchingNetworkCallback() [all …]
|
D | NetworkScoreTest.kt | 111 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) in <lambda>() 112 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in <lambda>() 123 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VCN_MANAGED) in <lambda>()
|
D | ConnectivityManagerTest.java | 691 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in makeDefaultRequest() 692 .addCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED) in makeDefaultRequest() 693 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in makeDefaultRequest() 694 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in makeDefaultRequest() 701 .addCapability(NET_CAPABILITY_INTERNET) in makeWifiNetworkRequest() 708 .addCapability(NET_CAPABILITY_INTERNET) in makeCellNetworkRequest() 985 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testRequestNetworkCallback() 1058 .addCapability(NET_CAPABILITY_INTERNET).build(); in testRestrictedNetworks() 1063 request = new NetworkRequest.Builder().addCapability(NET_CAPABILITY_IMS).build(); in testRestrictedNetworks() 2906 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | OemWifiNetworkFactoryTest.java | 92 mNetworkRequest.networkCapabilities.addCapability( in testOemPaidHandleNetworkRequest() 111 mNetworkRequest.networkCapabilities.addCapability( in testHandleOemPaidNetworkRelease() 132 mNetworkRequest.networkCapabilities.addCapability( in testOemPrivateHandleNetworkRequest() 151 mNetworkRequest.networkCapabilities.addCapability( in testHandleOemPrivateNetworkRelease() 172 mNetworkRequest.networkCapabilities.addCapability( in testHandleOemPaidAndOemPrivateNetworkRequestAndRelease() 174 mNetworkRequest.networkCapabilities.addCapability( in testHandleOemPaidAndOemPrivateNetworkRequestAndRelease()
|
/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/ |
D | ConnectivityManagerShimImpl.java | 84 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in registerSystemDefaultNetworkCallback() 85 .addCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED) in registerSystemDefaultNetworkCallback() 86 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in registerSystemDefaultNetworkCallback() 87 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in registerSystemDefaultNetworkCallback()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
D | BluetoothTetheringNetworkFactory.java | 250 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in initNetworkCapabilities() 251 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in initNetworkCapabilities() 252 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in initNetworkCapabilities() 253 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) in initNetworkCapabilities() 254 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VCN_MANAGED) in initNetworkCapabilities()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/ |
D | NetworkMonitorTest.java | 124 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in testWaitForValidated_NetworkChange() 137 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in testWaitForValidated_NetworkChange() 154 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in testWaitForValidated_NoCallbackOnCapabilitiesChange() 180 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in testWaitForValidated_ToggleBlocked()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | ConnectivityServiceTest.java | 957 addCapability(NET_CAPABILITY_INTERNET); in connect() 1327 if (!isAlwaysMetered) mNetworkCapabilities.addCapability(NET_CAPABILITY_NOT_METERED); in registerAgent() 2046 mCellNetworkAgent.addCapability(NET_CAPABILITY_SUPL); in testNetworkFeature() 2054 legacyCaps.addCapability(NET_CAPABILITY_SUPL); in testNetworkFeature() 2191 .addCapability(NET_CAPABILITY_FOREGROUND).build(), fgMobileListenCallback); in testNewNetworkInactive_bgNetwork() 2697 agentCapabilities.addCapability(NET_CAPABILITY_NOT_CONGESTED); in testOwnerUidCannotChange() 2720 .clearCapabilities().addCapability(NET_CAPABILITY_NOT_METERED) in testMultipleLingering() 2732 mCellNetworkAgent.addCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering() 2733 mWiFiNetworkAgent.addCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering() 2734 mEthernetNetworkAgent.addCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering() [all …]
|
/packages/modules/Connectivity/tests/integration/util/com/android/server/ |
D | NetworkAgentWrapper.java | 89 mNetworkCapabilities.addCapability(NET_CAPABILITY_NOT_SUSPENDED); in NetworkAgentWrapper() 90 mNetworkCapabilities.addCapability(NET_CAPABILITY_NOT_VCN_MANAGED); in NetworkAgentWrapper() 227 public void addCapability(int capability) { in addCapability() method in NetworkAgentWrapper 228 mNetworkCapabilities.addCapability(capability); in addCapability() 282 addCapability(NET_CAPABILITY_NOT_SUSPENDED); in resume()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiInjector.java | 96 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in makeBaseNetworkCapatibilitiesFilterBuilder() 97 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in makeBaseNetworkCapatibilitiesFilterBuilder() 98 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in makeBaseNetworkCapatibilitiesFilterBuilder() 99 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED) in makeBaseNetworkCapatibilitiesFilterBuilder() 100 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) in makeBaseNetworkCapatibilitiesFilterBuilder() 105 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VCN_MANAGED); in makeBaseNetworkCapatibilitiesFilterBuilder() 113 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) 119 .addCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PAID); in makeOemNetworkCapatibilitiesFilter() 122 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_OEM_PRIVATE); in makeOemNetworkCapatibilitiesFilter()
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | TestNetworkService.java | 249 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED); in registerTestNetworkAgent() 250 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in registerTestNetworkAgent() 251 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VCN_MANAGED); in registerTestNetworkAgent() 255 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in registerTestNetworkAgent()
|
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/ |
D | ConnectivityServiceIntegrationTest.kt | 230 .addCapability(NET_CAPABILITY_INTERNET) in <lambda>() 242 na.addCapability(NET_CAPABILITY_INTERNET) in <lambda>() 253 .addCapability(NET_CAPABILITY_INTERNET) in <lambda>() 280 na.addCapability(NET_CAPABILITY_INTERNET) in <lambda>()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | InternetUpdaterTest.java | 122 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in updateInternetAvailable_wifiConnectedAndNoValidated_internetUnavailable() 134 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in updateInternetAvailable_wifiConnectedAndValidated_internetAvailable() 135 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in updateInternetAvailable_wifiConnectedAndValidated_internetAvailable()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | MultipathPolicyTrackerTest.java | 248 .addCapability(NET_CAPABILITY_INTERNET) in testGetMultipathPreference() 252 capabilities.addCapability(NET_CAPABILITY_NOT_ROAMING); in testGetMultipathPreference() 260 .addCapability(NET_CAPABILITY_INTERNET) in testGetMultipathPreference() 265 capabilities.addCapability(NET_CAPABILITY_NOT_ROAMING); in testGetMultipathPreference()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitor.java | 259 .addCapability(NET_CAPABILITY_DUN) in registerMobileNetworkRequest() 264 .addCapability(NET_CAPABILITY_INTERNET) in registerMobileNetworkRequest() 682 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in networkCapabilitiesForType() 686 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in networkCapabilitiesForType()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | NetworkRequest.java | 255 public Builder addCapability(@NetworkCapabilities.NetCapability int capability) { in addCapability() method in NetworkRequest.Builder 256 mNetworkCapabilities.addCapability(capability); in addCapability() 508 nc.addCapability(NET_CAPABILITY_NOT_VCN_MANAGED); in deduceNotVcnManagedCapability()
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | FakeSystemFacade.java | 101 if (!mIsMetered) builder.addCapability(NET_CAPABILITY_NOT_METERED); in getNetworkCapabilities() 102 if (!mIsRoaming) builder.addCapability(NET_CAPABILITY_NOT_ROAMING); in getNetworkCapabilities()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ |
D | NetworkMonitorTest.java | 307 .addCapability(NET_CAPABILITY_INTERNET); 312 .addCapability(NET_CAPABILITY_INTERNET) 313 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); 318 .addCapability(NET_CAPABILITY_INTERNET) 319 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); 327 .addCapability(NET_CAPABILITY_INTERNET) 328 .addCapability(NET_CAPABILITY_NOT_METERED) 329 .addCapability(NET_CAPABILITY_OEM_PAID) 712 nc.addCapability(NET_CAPABILITY_NOT_METERED); in testNeedEvaluatingBandwidth() 732 nc.addCapability(NET_CAPABILITY_NOT_METERED); in testNeedEvaluatingBandwidth() [all …]
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitorTest.java | 89 .addTransportType(TRANSPORT_CELLULAR).addCapability(NET_CAPABILITY_INTERNET).build(); 91 .addTransportType(TRANSPORT_CELLULAR).addCapability(NET_CAPABILITY_DUN).build(); 93 .addTransportType(TRANSPORT_WIFI).addCapability(NET_CAPABILITY_INTERNET).build(); 428 dunAgent.networkCapabilities.addCapability(NET_CAPABILITY_DUN); in testGetCurrentPreferredUpstream()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareDataPathStateManager.java | 136 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in makeNetworkCapabilitiesFilter() 137 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in makeNetworkCapabilitiesFilter() 138 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in makeNetworkCapabilitiesFilter() 139 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED) in makeNetworkCapabilitiesFilter() 140 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in makeNetworkCapabilitiesFilter() 141 .addCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED) in makeNetworkCapabilitiesFilter() 147 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VCN_MANAGED); in makeNetworkCapabilitiesFilter()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/ |
D | TestableNetworkCallbackTest.kt | 109 val unmeteredNc = NetworkCapabilities().addCapability(NOT_METERED) in <lambda>() 152 val netCaps = NetworkCapabilities().addCapability(NOT_METERED).addTransportType(WIFI) in <lambda>()
|