Home
last modified time | relevance | path

Searched refs:addCapability (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DTelephonyNetworkRequestTest.java126 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testGetNativeRequest()
137 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testPriority()
141 .addCapability(NetworkCapabilities.NET_CAPABILITY_IMS) in testPriority()
155 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testGetNetworkSpecifier()
166 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testGetCapabilities()
167 .addCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED) in testGetCapabilities()
168 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VCN_MANAGED) in testGetCapabilities()
169 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in testGetCapabilities()
187 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testGetApnTypeNetworkCapability()
188 .addCapability(NetworkCapabilities.NET_CAPABILITY_MMS) in testGetApnTypeNetworkCapability()
[all …]
DCellularNetworkValidatorTest.java121 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testValidateSuccess()
258 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testNetworkCachingOfMultipleSub()
265 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testNetworkCachingOfMultipleSub()
269 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testNetworkCachingOfMultipleSub()
311 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testNetworkCachingOfMultipleNetworks()
342 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testNetworkCachingOverflow()
376 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testReleaseRequestAfterValidation_shouldReleaseImmediately()
387 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testDoNotReleaseRequestAfterValidation_shouldReleaseLater()
424 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testDoNotReleaseRequestAfterValidation_BackToBackRequest()
433 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)); in testDoNotReleaseRequestAfterValidation_BackToBackRequest()
[all …]
DDataProfileManagerTest.java889 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testGetDataProfileForNetworkRequest()
899 .addCapability(NetworkCapabilities.NET_CAPABILITY_MMS) in testGetDataProfileForNetworkRequest()
900 .addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL) in testGetDataProfileForNetworkRequest()
910 .addCapability(NetworkCapabilities.NET_CAPABILITY_IMS) in testGetDataProfileForNetworkRequest()
919 .addCapability(NetworkCapabilities.NET_CAPABILITY_DUN) in testGetDataProfileForNetworkRequest()
932 .addCapability(NetworkCapabilities.NET_CAPABILITY_DUN) in testGetDataProfileForNetworkRequest()
944 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testGetDataProfileForNetworkRequestNoCompatibleRat()
957 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testGetDataProfileForNetworkRequestRotation()
975 .addCapability(NetworkCapabilities.NET_CAPABILITY_ENTERPRISE) in testGetDataProfileForEnterpriseNetworkRequest()
987 .addCapability(NetworkCapabilities.NET_CAPABILITY_ENTERPRISE) in testGetDataProfileForEnterpriseNetworkRequest()
[all …]
DTelephonyNetworkFactoryTest.java88 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in makeSubSpecificInternetRequest()
89 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in makeSubSpecificInternetRequest()
102 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in makeDefaultInternetRequest()
103 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in makeDefaultInternetRequest()
114 .addCapability(NetworkCapabilities.NET_CAPABILITY_MMS) in makeSubSpecificMmsRequest()
115 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in makeSubSpecificMmsRequest()
DDataRetryManagerTest.java293 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testDataSetupRetryNetworkSuggestedRetry()
317 .addCapability(NetworkCapabilities.NET_CAPABILITY_IMS) in testDataSetupRetryNetworkSuggestedNeverRetry()
346 .addCapability(NetworkCapabilities.NET_CAPABILITY_IMS) in testDataSetupUnthrottling()
433 .addCapability(NetworkCapabilities.NET_CAPABILITY_ENTERPRISE) in testEnterpriseUnthrottling()
511 .addCapability(NetworkCapabilities.NET_CAPABILITY_IMS) in testCancellingRetries()
557 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testDataSetupRetryPermanentFailure()
590 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testDataSetupRetryMaximumRetries()
669 .addCapability(NetworkCapabilities.NET_CAPABILITY_IMS) in testDataSetupRetryMaximumRetriesReset()
731 .addCapability(NetworkCapabilities.NET_CAPABILITY_IMS) in testDataSetupRetryBackOffTimer()
820 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testDataRetryLongTimer()
[all …]
DDataUtilsTest.java81 .addCapability(NetworkCapabilities.NET_CAPABILITY_ENTERPRISE) in testGetGroupedNetworkRequestList()
89 .addCapability(netCap).build(), -1, requestId++, in testGetGroupedNetworkRequestList()
96 .addCapability(netCap).build(), -1, requestId++, in testGetGroupedNetworkRequestList()
DDataNetworkTest.java470 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testCreateDataNetwork()
581 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testCreateDataNetworkWhenOos()
692 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testRilCrash()
781 .addCapability(NetworkCapabilities.NET_CAPABILITY_ENTERPRISE) in testCreateDataNetworkOnEnterpriseSlice()
816 .addCapability(NetworkCapabilities.NET_CAPABILITY_PRIORITIZE_LATENCY) in testCreateDataNetworkOnUrllcSlice()
849 .addCapability(NetworkCapabilities.NET_CAPABILITY_PRIORITIZE_BANDWIDTH) in testCreateDataNetworkOnEmbbSlice()
882 .addCapability(NetworkCapabilities.NET_CAPABILITY_CBS) in testCreateDataNetworkOnCbsSlice()
916 .addCapability(NetworkCapabilities.NET_CAPABILITY_CBS) in testSlicingDataNetworkHasSlicingCapabilitiesBeforeConnected()
1001 .addCapability(NetworkCapabilities.NET_CAPABILITY_IMS) in testCreateDataNetworkOnIwlan()
1222 .addCapability(NetworkCapabilities.NET_CAPABILITY_IMS) in testNetworkRequestDetachedBeforePduSessionIdAllocated()
[all …]
DDataNetworkControllerTest.java763 networkCapabilities.addCapability( in setVcnManagerPolicy()
1142 netCaps.addCapability(networkCapability); in createNetworkRequest()
1414 netCaps.addCapability(NetworkCapabilities.NET_CAPABILITY_ENTERPRISE); in testSetupEnterpriseDataNetwork()
1732 netCaps.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in testIsNetworkRequestSatisfiedByTransportCellularTransportRequest()
1771 netCaps.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in testMobileDataDisabledIsValidRestrictedRequestWithSatelliteInternetRequest()
1807 netCaps.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in testMobileDataDisabledIsValidRestrictedRequestWithTransportSatelliteMMSRequest()
1842 netCaps.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in testOnMmsAlwaysALlowedIsValidRestrictedRequestWithTransportSatelliteMMSRequest()
1860 netCaps.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in testIsNetworkRequestSatisfiedByTransportSatelliteTransportRequest_Terrestrial()
1884 netCaps.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in testIsNetworkRequestSatisfiedByTransportSatelliteTransportRequest()
1907 netCaps.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in testIsNetworkRequestSatisfiedByTransportNoTransportRequest()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DTelephonyNetworkFactory.java141 .addCapability(NetworkCapabilities.NET_CAPABILITY_MMS) in makeNetworkFilter()
142 .addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL) in makeNetworkFilter()
143 .addCapability(NetworkCapabilities.NET_CAPABILITY_DUN) in makeNetworkFilter()
144 .addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA) in makeNetworkFilter()
145 .addCapability(NetworkCapabilities.NET_CAPABILITY_IMS) in makeNetworkFilter()
146 .addCapability(NetworkCapabilities.NET_CAPABILITY_CBS) in makeNetworkFilter()
147 .addCapability(NetworkCapabilities.NET_CAPABILITY_IA) in makeNetworkFilter()
148 .addCapability(NetworkCapabilities.NET_CAPABILITY_RCS) in makeNetworkFilter()
149 .addCapability(NetworkCapabilities.NET_CAPABILITY_MMTEL) in makeNetworkFilter()
150 .addCapability(NetworkCapabilities.NET_CAPABILITY_XCAP) in makeNetworkFilter()
[all …]
DPhoneSwitcher.java601 .addCapability(NetworkCapabilities.NET_CAPABILITY_MMS) in PhoneSwitcher()
602 .addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL) in PhoneSwitcher()
603 .addCapability(NetworkCapabilities.NET_CAPABILITY_DUN) in PhoneSwitcher()
604 .addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA) in PhoneSwitcher()
605 .addCapability(NetworkCapabilities.NET_CAPABILITY_IMS) in PhoneSwitcher()
606 .addCapability(NetworkCapabilities.NET_CAPABILITY_CBS) in PhoneSwitcher()
607 .addCapability(NetworkCapabilities.NET_CAPABILITY_IA) in PhoneSwitcher()
608 .addCapability(NetworkCapabilities.NET_CAPABILITY_RCS) in PhoneSwitcher()
609 .addCapability(NetworkCapabilities.NET_CAPABILITY_MMTEL) in PhoneSwitcher()
610 .addCapability(NetworkCapabilities.NET_CAPABILITY_XCAP) in PhoneSwitcher()
[all …]
DTelephonyNetworkAgent.java161 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) in TelephonyNetworkAgent()
173 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) in TelephonyNetworkAgent()
DDataNetwork.java2333 .forEach(builder::addCapability);
2335 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
2344 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_MMTEL);
2349 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_MMTEL);
2384 builder.addCapability(networkCapability);
2386 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
2392 builder.addCapability(networkCapability);
2404 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED);
2408 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_TEMPORARILY_NOT_METERED);
2413 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VCN_MANAGED);
[all …]
/frameworks/base/services/core/java/com/android/server/vcn/
DVcnNetworkProvider.java116 .addCapability(NET_CAPABILITY_TRUSTED) in buildCapabilityFilter()
117 .addCapability(NET_CAPABILITY_NOT_RESTRICTED) in buildCapabilityFilter()
118 .addCapability(NET_CAPABILITY_NOT_VPN) in buildCapabilityFilter()
119 .addCapability(NET_CAPABILITY_NOT_VCN_MANAGED); in buildCapabilityFilter()
122 builder.addCapability(cap); in buildCapabilityFilter()
/frameworks/base/tests/vcn/java/com/android/server/vcn/routeselection/
DUnderlyingNetworkControllerTest.java105 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
115 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
121 .addCapability(NetworkCapabilities.NET_CAPABILITY_DUN)
122 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)
129 .addCapability(NetworkCapabilities.NET_CAPABILITY_CBS)
130 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)
436 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in getWifiRequest()
445 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in getWifiEntryRssiThresholdRequest()
455 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in getWifiExitRssiThresholdRequest()
469 nqBuilder.addCapability(cap); in getCellRequestForSubId()
[all …]
DNetworkEvaluationTestBase.java85 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
96 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
97 .addCapability(NetworkCapabilities.NET_CAPABILITY_DUN)
/frameworks/base/services/tests/VpnTests/java/com/android/server/net/
DLockdownVpnTrackerTest.java71 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED)
72 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VCN_MANAGED)
295 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) in testDefaultNetworkChanged()
296 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VCN_MANAGED) in testDefaultNetworkChanged()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java264 createCapabilitiesBuilder().addCapability(NET_CAPABILITY_NOT_METERED) in testUsable()
296 createCapabilitiesBuilder().addCapability(NET_CAPABILITY_NOT_METERED) in testUsable()
343 .addCapability(NET_CAPABILITY_NOT_CONGESTED).build(); in testCongestion()
372 .addCapability(NET_CAPABILITY_NOT_CONGESTED) in testMeteredAllowed()
373 .addCapability(NET_CAPABILITY_NOT_METERED) in testMeteredAllowed()
382 .addCapability(NET_CAPABILITY_NOT_CONGESTED) in testMeteredAllowed()
383 .addCapability(NET_CAPABILITY_TEMPORARILY_NOT_METERED) in testMeteredAllowed()
401 .addCapability(NET_CAPABILITY_NOT_CONGESTED) in testMeteredAllowed()
427 .addCapability(NET_CAPABILITY_NOT_CONGESTED) in testMeteredAllowed()
437 .addCapability(NET_CAPABILITY_NOT_CONGESTED) in testMeteredAllowed()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/
DDeviceCapabilityInfo.java585 addCapability(presenceBuilder, presDescription.getTupleBuilder(), uri); in getPresenceCapabilities()
598 addCapability(presenceBuilder, descToUse.getTupleBuilder() in getPresenceCapabilities()
607 addCapability(presenceBuilder, composerDescription.getTupleBuilder(), uri); in getPresenceCapabilities()
614 addCapability(presenceBuilder, capability.getTupleBuilder(), uri); in getPresenceCapabilities()
647 private void addCapability(RcsContactUceCapability.PresenceBuilder presenceBuilder, in addCapability() method in DeviceCapabilityInfo
/frameworks/base/services/core/java/com/android/server/vcn/routeselection/
DUnderlyingNetworkController.java293 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in getRouteSelectionRequest()
294 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED) in getRouteSelectionRequest()
302 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in getBaseWifiNetworkRequestBuilder()
370 nrBuilder.addCapability(cap); in getCellNetworkRequestForSubId()
/frameworks/base/tests/vcn/java/com/android/server/vcn/
DVcnGatewayConnectionTest.java136 capBuilder.addCapability(NET_CAPABILITY_NOT_VCN_MANAGED); in verifyBuildNetworkCapabilitiesCommon()
137 capBuilder.addCapability(NET_CAPABILITY_NOT_METERED); in verifyBuildNetworkCapabilitiesCommon()
138 capBuilder.addCapability(NET_CAPABILITY_NOT_ROAMING); in verifyBuildNetworkCapabilitiesCommon()
DVcnNetworkProviderTest.java132 new NetworkRequest.Builder().clearCapabilities().addCapability(i).build(); in testCachedRequestsPassedOnRegister()
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DConnectivitySetupRule.java84 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED).build(),
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssNetworkConnectivityHandler.java313 networkRequestBuilder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in registerNetworkCallbacks()
314 networkRequestBuilder.addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in registerNetworkCallbacks()
612 networkRequestBuilder.addCapability(getNetworkCapability(mAGpsType));
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiStatusTrackerTest.java95 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in testWifiInfoClearedOnPrimaryNetworkLost()
115 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in testWifiInfoClearedOnPrimaryNetworkLost()
/frameworks/base/tests/vcn/java/com/android/server/
DVcnManagementServiceTest.java1050 .addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in getNetworkCapabilitiesBuilderForTransport()
1344 .addCapability(NET_CAPABILITY_NOT_RESTRICTED) in testGetUnderlyingNetworkPolicyForRestrictedImsWhenUnrestrictingCell()
1353 .addCapability(NET_CAPABILITY_IMS) in testGetUnderlyingNetworkPolicyForRestrictedImsWhenUnrestrictingCell()
1367 .addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in testGetUnderlyingNetworkPolicyNonVcnNetwork()
1391 .addCapability(NET_CAPABILITY_NOT_VCN_MANAGED) in testGetUnderlyingNetworkPolicySimilarNetworks()
1392 .addCapability(NET_CAPABILITY_INTERNET) in testGetUnderlyingNetworkPolicySimilarNetworks()
1398 .addCapability(NET_CAPABILITY_ENTERPRISE) in testGetUnderlyingNetworkPolicySimilarNetworks()

123