/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 115 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 121 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 122 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted() 126 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 133 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 134 netCap.addCapability(NET_CAPABILITY_EIMS); in testMaybeMarkCapabilitiesRestricted() 135 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted() 139 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 140 netCap.addCapability(NET_CAPABILITY_EIMS); in testMaybeMarkCapabilitiesRestricted() 147 netCap.addCapability(NET_CAPABILITY_EIMS); in testMaybeMarkCapabilitiesRestricted() [all …]
|
D | NetworkProviderTest.kt | 119 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) in <lambda>() 120 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in <lambda>() 121 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in <lambda>()
|
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/ |
D | EthernetTrackerTest.java | 155 .addCapability(12) in createNetworkCapabilities() 156 .addCapability(13) in createNetworkCapabilities() 157 .addCapability(14) in createNetworkCapabilities() 158 .addCapability(15) in createNetworkCapabilities() 182 .addCapability(11) in createNetworkCapabilities() 183 .addCapability(12) in createNetworkCapabilities() 251 .addCapability(12) in createNetworkCapabilities() 252 .addCapability(13) in createNetworkCapabilities() 253 .addCapability(14) in createNetworkCapabilities() 254 .addCapability(15) in createNetworkCapabilities() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | TelephonyNetworkFactory.java | 136 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in makeNetworkFilter() 137 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL); in makeNetworkFilter() 138 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in makeNetworkFilter() 139 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA); in makeNetworkFilter() 140 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in makeNetworkFilter() 141 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_CBS); in makeNetworkFilter() 142 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_IA); in makeNetworkFilter() 143 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_RCS); in makeNetworkFilter() 144 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_XCAP); in makeNetworkFilter() 145 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_EIMS); in makeNetworkFilter() [all …]
|
D | DataConnection.java | 1356 result.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in getNetworkCapabilities() 1357 result.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in getNetworkCapabilities() 1358 result.addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL); in getNetworkCapabilities() 1359 result.addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA); in getNetworkCapabilities() 1360 result.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in getNetworkCapabilities() 1361 result.addCapability(NetworkCapabilities.NET_CAPABILITY_CBS); in getNetworkCapabilities() 1362 result.addCapability(NetworkCapabilities.NET_CAPABILITY_IA); in getNetworkCapabilities() 1363 result.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in getNetworkCapabilities() 1367 result.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in getNetworkCapabilities() 1371 result.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in getNetworkCapabilities() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CellularNetworkValidatorTest.java | 113 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testValidateSuccess() 250 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testNetworkCachingOfMultipleSub() 257 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testNetworkCachingOfMultipleSub() 261 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testNetworkCachingOfMultipleSub() 303 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testNetworkCachingOfMultipleNetworks() 334 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testNetworkCachingOverflow() 368 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testReleaseRequestAfterValidation_shouldReleaseImmediately() 379 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testDoNotReleaseRequestAfterValidation_shouldReleaseLater() 416 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testDoNotReleaseRequestAfterValidation_BackToBackRequest() 425 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testDoNotReleaseRequestAfterValidation_BackToBackRequest() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | DcRequestTest.java | 56 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in whenNetworkRequestInternetThenPriorityZero() 73 .addCapability(NetworkCapabilities.NET_CAPABILITY_MCX) in whenNetworkRequestMcxThenApnConfigTypeMcxPriorityReturned() 87 .addCapability(NetworkCapabilities.NET_CAPABILITY_MCX) in whenNetworkRequestNotCellularThenDcRequestIsNull() 100 .addCapability(NetworkCapabilities.NET_CAPABILITY_MCX) in whenNetworkRequestHasNoTransportThenPriorityStays()
|
D | TelephonyNetworkFactoryTest.java | 86 addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET). in makeSubSpecificInternetRequest() 87 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED). in makeSubSpecificInternetRequest() 100 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in makeDefaultInternetRequest() 101 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in makeDefaultInternetRequest() 112 addCapability(NetworkCapabilities.NET_CAPABILITY_MMS). in makeSubSpecificMmsRequest() 113 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED). in makeSubSpecificMmsRequest()
|
D | ApnContextTest.java | 126 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testNetworkRequestNormal() 153 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testNetworkRequestDetach()
|
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetTracker.java | 465 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in createDefaultNetworkCapabilities() 466 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in createDefaultNetworkCapabilities() 467 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING); in createDefaultNetworkCapabilities() 468 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED); in createDefaultNetworkCapabilities() 469 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED); in createDefaultNetworkCapabilities() 474 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in createDefaultNetworkCapabilities() 544 nc.addCapability(Integer.valueOf(strNetworkCapability)); in createNetworkCapabilities() 556 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING); in createNetworkCapabilities() 557 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED); in createNetworkCapabilities() 558 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED); in createNetworkCapabilities()
|
/frameworks/base/tests/net/integration/util/com/android/server/ |
D | NetworkAgentWrapper.java | 78 mNetworkCapabilities.addCapability(NET_CAPABILITY_NOT_SUSPENDED); in NetworkAgentWrapper() 174 public void addCapability(int capability) { in addCapability() method in NetworkAgentWrapper 175 mNetworkCapabilities.addCapability(capability); in addCapability() 218 addCapability(NET_CAPABILITY_NOT_SUSPENDED); in resume()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PhoneSwitcher.java | 394 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in PhoneSwitcher() 395 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL); in PhoneSwitcher() 396 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in PhoneSwitcher() 397 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA); in PhoneSwitcher() 398 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in PhoneSwitcher() 399 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_CBS); in PhoneSwitcher() 400 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_IA); in PhoneSwitcher() 401 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_RCS); in PhoneSwitcher() 402 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_XCAP); in PhoneSwitcher() 403 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_EIMS); in PhoneSwitcher() [all …]
|
/frameworks/base/tests/net/integration/src/com/android/server/net/integrationtests/ |
D | ConnectivityServiceIntegrationTest.kt | 195 .addCapability(NET_CAPABILITY_INTERNET) in testValidation() 206 na.addCapability(NET_CAPABILITY_INTERNET) in testValidation() 217 .addCapability(NET_CAPABILITY_INTERNET) in testCapportApi() 244 na.addCapability(NET_CAPABILITY_INTERNET) in testCapportApi()
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | TetheringService.java | 321 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in makeTetheringDependencies() 322 .addCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED) in makeTetheringDependencies() 323 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in makeTetheringDependencies() 324 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in makeTetheringDependencies()
|
D | UpstreamNetworkMonitor.java | 223 .addCapability(NET_CAPABILITY_DUN) in registerMobileNetworkRequest() 228 .addCapability(NET_CAPABILITY_INTERNET) in registerMobileNetworkRequest() 599 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in networkCapabilitiesForType() 603 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in networkCapabilitiesForType()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TestNetworkService.java | 250 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED); 251 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); 255 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED);
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | MultipathPolicyTrackerTest.java | 234 .addCapability(NET_CAPABILITY_INTERNET) in testGetMultipathPreference() 238 capabilities.addCapability(NET_CAPABILITY_NOT_ROAMING); in testGetMultipathPreference() 246 .addCapability(NET_CAPABILITY_INTERNET) in testGetMultipathPreference() 251 capabilities.addCapability(NET_CAPABILITY_NOT_ROAMING); in testGetMultipathPreference()
|
D | NetworkNotificationManagerTest.java | 68 CELL_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); 71 WIFI_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); 76 VPN_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
|
D | VpnTest.java | 601 .addCapability(NET_CAPABILITY_INTERNET) in testCapabilities() 602 .addCapability(NET_CAPABILITY_NOT_CONGESTED) in testCapabilities() 608 .addCapability(NET_CAPABILITY_INTERNET) in testCapabilities() 609 .addCapability(NET_CAPABILITY_NOT_METERED) in testCapabilities() 610 .addCapability(NET_CAPABILITY_NOT_ROAMING) in testCapabilities() 611 .addCapability(NET_CAPABILITY_NOT_CONGESTED) in testCapabilities() 612 .addCapability(NET_CAPABILITY_NOT_SUSPENDED) in testCapabilities()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | ConnectivityControllerTest.java | 163 .addCapability(NET_CAPABILITY_NOT_CONGESTED); in testCongestion() 194 .addCapability(NET_CAPABILITY_NOT_CONGESTED) in testRelaxed() 195 .addCapability(NET_CAPABILITY_NOT_METERED); in testRelaxed() 206 .addCapability(NET_CAPABILITY_NOT_CONGESTED); in testRelaxed() 226 .addCapability(NET_CAPABILITY_NOT_METERED); in testUpdates() 553 return new NetworkCapabilities().addCapability(NET_CAPABILITY_INTERNET) in createCapabilities() 554 .addCapability(NET_CAPABILITY_VALIDATED); in createCapabilities()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 724 addCapability(NET_CAPABILITY_INTERNET); in connect() 1435 mCellNetworkAgent.addCapability(NET_CAPABILITY_SUPL); in testNetworkFeature() 1444 legacyCaps.addCapability(NET_CAPABILITY_SUPL); in testNetworkFeature() 1931 .clearCapabilities().addCapability(NET_CAPABILITY_NOT_METERED) in testMultipleLingering() 1943 mCellNetworkAgent.addCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering() 1944 mWiFiNetworkAgent.addCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering() 1945 mEthernetNetworkAgent.addCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering() 2233 .clearCapabilities().addCapability(NET_CAPABILITY_INTERNET) in testExplicitlySelected() 2334 final NetworkCapabilities nc = new NetworkRequest.Builder().addCapability(capability) in tryNetworkFactoryRequests() 2346 filter.addCapability(capability); in tryNetworkFactoryRequests() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkRequest.java | 184 public Builder addCapability(@NetworkCapabilities.NetCapability int capability) { in addCapability() method in NetworkRequest.Builder 185 mNetworkCapabilities.addCapability(capability); in addCapability()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssNetworkConnectivityHandler.java | 184 networkRequestBuilder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in registerNetworkCallbacks() 185 networkRequestBuilder.addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in registerNetworkCallbacks() 468 networkRequestBuilder.addCapability(getNetworkCapability(mAGpsType));
|
/frameworks/base/core/java/android/app/job/ |
D | JobInfo.java | 1126 builder.addCapability(NET_CAPABILITY_INTERNET); in setRequiredNetworkType() 1127 builder.addCapability(NET_CAPABILITY_VALIDATED); in setRequiredNetworkType() 1133 builder.addCapability(NET_CAPABILITY_NOT_METERED); in setRequiredNetworkType() 1135 builder.addCapability(NET_CAPABILITY_NOT_ROAMING); in setRequiredNetworkType()
|
/frameworks/base/tests/net/java/android/net/ |
D | ConnectivityDiagnosticsManagerTest.java | 96 networkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in createSampleConnectivityReport() 213 networkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in createSampleDataStallReport()
|