Home
last modified time | relevance | path

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

123

/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java83 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
89 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
90 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
94 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
101 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
102 netCap.addCapability(NET_CAPABILITY_EIMS); in testMaybeMarkCapabilitiesRestricted()
103 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
107 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
108 netCap.addCapability(NET_CAPABILITY_EIMS); in testMaybeMarkCapabilitiesRestricted()
115 netCap.addCapability(NET_CAPABILITY_EIMS); in testMaybeMarkCapabilitiesRestricted()
[all …]
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/
DEthernetTrackerTest.java155 .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/
DTelephonyNetworkFactory.java127 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in makeNetworkFilter()
128 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL); in makeNetworkFilter()
129 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in makeNetworkFilter()
130 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA); in makeNetworkFilter()
131 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in makeNetworkFilter()
132 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_CBS); in makeNetworkFilter()
133 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_IA); in makeNetworkFilter()
134 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_RCS); in makeNetworkFilter()
135 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_XCAP); in makeNetworkFilter()
136 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_EIMS); in makeNetworkFilter()
[all …]
DDataConnection.java1181 result.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in getNetworkCapabilities()
1182 result.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in getNetworkCapabilities()
1183 result.addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL); in getNetworkCapabilities()
1184 result.addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA); in getNetworkCapabilities()
1185 result.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in getNetworkCapabilities()
1186 result.addCapability(NetworkCapabilities.NET_CAPABILITY_CBS); in getNetworkCapabilities()
1187 result.addCapability(NetworkCapabilities.NET_CAPABILITY_IA); in getNetworkCapabilities()
1188 result.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in getNetworkCapabilities()
1192 result.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in getNetworkCapabilities()
1196 result.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in getNetworkCapabilities()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java395 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in PhoneSwitcher()
396 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL); in PhoneSwitcher()
397 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in PhoneSwitcher()
398 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA); in PhoneSwitcher()
399 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in PhoneSwitcher()
400 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_CBS); in PhoneSwitcher()
401 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_IA); in PhoneSwitcher()
402 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_RCS); in PhoneSwitcher()
403 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_XCAP); in PhoneSwitcher()
404 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_EIMS); in PhoneSwitcher()
[all …]
DCellularNetworkValidator.java172 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in createNetworkRequest()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetTracker.java321 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in createDefaultNetworkCapabilities()
322 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in createDefaultNetworkCapabilities()
323 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED); in createDefaultNetworkCapabilities()
324 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING); in createDefaultNetworkCapabilities()
325 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED); in createDefaultNetworkCapabilities()
394 nc.addCapability(Integer.valueOf(strNetworkCapability)); in createNetworkCapabilities()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java86 addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET). in makeSubSpecificInternetRequest()
87 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED). in makeSubSpecificInternetRequest()
94 addCapability(NetworkCapabilities.NET_CAPABILITY_MMS). in makeSubSpecificMmsRequest()
95 addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED). in makeSubSpecificMmsRequest()
DApnContextTest.java127 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testNetworkRequestNormal()
154 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testNetworkRequestDetach()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java163 .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/
DConnectivityServiceTest.java667 public void addCapability(int capability) { in addCapability() method in ConnectivityServiceTest.MockNetworkAgent
668 mNetworkCapabilities.addCapability(capability); in addCapability()
743 addCapability(NET_CAPABILITY_INTERNET); in connect()
2092 .clearCapabilities().addCapability(NET_CAPABILITY_NOT_METERED) in testMultipleLingering()
2104 mCellNetworkAgent.addCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering()
2105 mWiFiNetworkAgent.addCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering()
2106 mEthernetNetworkAgent.addCapability(NET_CAPABILITY_NOT_METERED); in testMultipleLingering()
2394 .clearCapabilities().addCapability(NET_CAPABILITY_INTERNET) in testExplicitlySelected()
2473 final NetworkCapabilities nc = new NetworkRequest.Builder().addCapability(capability) in tryNetworkFactoryRequests()
2485 filter.addCapability(capability); in tryNetworkFactoryRequests()
[all …]
/frameworks/base/core/java/android/net/
DNetworkRequest.java183 public Builder addCapability(@NetworkCapabilities.NetCapability int capability) { in addCapability() method in NetworkRequest.Builder
184 mNetworkCapabilities.addCapability(capability); in addCapability()
/frameworks/base/services/core/java/com/android/server/location/
DGnssNetworkConnectivityHandler.java184 networkRequestBuilder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in registerNetworkCallbacks()
185 networkRequestBuilder.addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in registerNetworkCallbacks()
464 networkRequestBuilder.addCapability(getNetworkCapability(mAGpsType));
/frameworks/rs/rsov/compiler/spirit/
Dbuilder_test.cpp35 m->addCapability(Capability::Shader); in TEST()
36 m->addCapability(Capability::Addresses); in TEST()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java556 .addCapability(NET_CAPABILITY_INTERNET) in testCapabilities()
557 .addCapability(NET_CAPABILITY_NOT_CONGESTED) in testCapabilities()
563 .addCapability(NET_CAPABILITY_INTERNET) in testCapabilities()
564 .addCapability(NET_CAPABILITY_NOT_METERED) in testCapabilities()
565 .addCapability(NET_CAPABILITY_NOT_ROAMING) in testCapabilities()
566 .addCapability(NET_CAPABILITY_NOT_CONGESTED) in testCapabilities()
DNetworkNotificationManagerTest.java65 CELL_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
68 WIFI_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
DMultipathPolicyTrackerTest.java233 .addCapability(NET_CAPABILITY_INTERNET) in testGetMultipathPreference()
237 capabilities.addCapability(NET_CAPABILITY_NOT_ROAMING); in testGetMultipathPreference()
/frameworks/base/services/core/java/com/android/server/
DTestNetworkService.java245 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED);
246 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED);
/frameworks/base/core/java/android/app/job/
DJobInfo.java1130 builder.addCapability(NET_CAPABILITY_INTERNET); in setRequiredNetworkType()
1131 builder.addCapability(NET_CAPABILITY_VALIDATED); in setRequiredNetworkType()
1137 builder.addCapability(NET_CAPABILITY_NOT_METERED); in setRequiredNetworkType()
1139 builder.addCapability(NET_CAPABILITY_NOT_ROAMING); in setRequiredNetworkType()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java345 dunAgent.networkCapabilities.addCapability(NET_CAPABILITY_DUN); in testSelectPreferredUpstreamType()
409 dunAgent.networkCapabilities.addCapability(NET_CAPABILITY_DUN); in testGetCurrentPreferredUpstream()
480 dunAgent.networkCapabilities.addCapability(NET_CAPABILITY_DUN); in testLocalPrefixes()
717 networkCapabilities.addCapability(NET_CAPABILITY_INTERNET); in TestNetworkAgent()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java597 netCap.addCapability(NET_CAPABILITY_INTERNET); in addDefaultRequest()
598 netCap.addCapability(NET_CAPABILITY_NOT_RESTRICTED); in addDefaultRequest()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java149 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN) in start()
150 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED) in start()
151 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING) in start()
152 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_CONGESTED) in start()
153 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in start()
154 .addCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED); in start()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java56 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneConnection.java288 capabilities = addCapability(capabilities, in applyLocalCallCapabilities()
304 capabilities = addCapability(capabilities, in applyRemoteCallCapabilities()
950 capabilities = addCapability(capabilities, in updateMediaCapabilities()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSwitcherTest.java1107 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in addInternetNetworkRequest()
1133 .addCapability(NetworkCapabilities.NET_CAPABILITY_MMS) in addMmsNetworkRequest()
1134 .addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED) in addMmsNetworkRequest()

123