Home
last modified time | relevance | path

Searched refs:netCap (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/android/net/
DConnectivityManager.java1159 NetworkCapabilities netCap = networkCapabilitiesForFeature(networkType, feature); in startUsingNetworkFeature() local
1160 if (netCap == null) { in startUsingNetworkFeature()
1168 LegacyRequest l = sLegacyRequests.get(netCap); in startUsingNetworkFeature()
1179 request = requestNetworkForFeatureLocked(netCap); in startUsingNetworkFeature()
1214 NetworkCapabilities netCap = networkCapabilitiesForFeature(networkType, feature); in stopUsingNetworkFeature() local
1215 if (netCap == null) { in stopUsingNetworkFeature()
1221 if (removeRequestForFeature(netCap)) { in stopUsingNetworkFeature()
1247 NetworkCapabilities netCap = new NetworkCapabilities(); in networkCapabilitiesForFeature() local
1248 netCap.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR).addCapability(cap); in networkCapabilitiesForFeature()
1249 netCap.maybeMarkCapabilitiesRestricted(); in networkCapabilitiesForFeature()
[all …]
DNetworkCapabilities.java819 NetworkCapabilities netCap = new NetworkCapabilities();
821 netCap.mNetworkCapabilities = in.readLong();
822 netCap.mTransportTypes = in.readLong();
823 netCap.mLinkUpBandwidthKbps = in.readInt();
824 netCap.mLinkDownBandwidthKbps = in.readInt();
825 netCap.mNetworkSpecifier = in.readString();
826 netCap.mSignalStrength = in.readInt();
827 return netCap;
DNetworkFactory.java202 private void handleSetFilter(NetworkCapabilities netCap) { in handleSetFilter() argument
203 mCapabilityFilter = netCap; in handleSetFilter()
284 public void setCapabilityFilter(NetworkCapabilities netCap) { in setCapabilityFilter() argument
285 sendMessage(obtainMessage(CMD_SET_FILTER, new NetworkCapabilities(netCap))); in setCapabilityFilter()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java137 NetworkCapabilities netCap = new NetworkCapabilities(); in PhoneSwitcher() local
138 netCap.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR); in PhoneSwitcher()
139 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS); in PhoneSwitcher()
140 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_SUPL); in PhoneSwitcher()
141 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_DUN); in PhoneSwitcher()
142 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_FOTA); in PhoneSwitcher()
143 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_IMS); in PhoneSwitcher()
144 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_CBS); in PhoneSwitcher()
145 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_IA); in PhoneSwitcher()
146 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_RCS); in PhoneSwitcher()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java117 NetworkCapabilities netCap = (new NetworkCapabilities()). in makeSubSpecificDefaultRequest() local
121 netCap.setNetworkSpecifier(Integer.toString(subId)); in makeSubSpecificDefaultRequest()
122 return ts.connectivityServiceMock.requestNetwork(netCap, null, 0, new Binder(), -1); in makeSubSpecificDefaultRequest()
125 NetworkCapabilities netCap = (new NetworkCapabilities()). in makeSubSpecificMmsRequest() local
129 netCap.setNetworkSpecifier(Integer.toString(subId)); in makeSubSpecificMmsRequest()
130 return ts.connectivityServiceMock.requestNetwork(netCap, null, 0, new Binder(), -1); in makeSubSpecificMmsRequest()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSwitcherTest.java158 NetworkCapabilities netCap = (new NetworkCapabilities()). in makeSubSpecificDefaultRequest() local
162 netCap.setNetworkSpecifier(Integer.toString(subId)); in makeSubSpecificDefaultRequest()
163 return cs.requestNetwork(netCap, null, 0, new Binder(), -1); in makeSubSpecificDefaultRequest()
167 NetworkCapabilities netCap = (new NetworkCapabilities()). in makeSubSpecificMmsRequest() local
171 netCap.setNetworkSpecifier(Integer.toString(subId)); in makeSubSpecificMmsRequest()
172 return cs.requestNetwork(netCap, null, 0, new Binder(), -1); in makeSubSpecificMmsRequest()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java1037 NetworkCapabilities netCap = new NetworkCapabilities(); in addDefaultRequest()
1038 netCap.addCapability(NET_CAPABILITY_INTERNET); in addDefaultRequest()
1039 netCap.addCapability(NET_CAPABILITY_NOT_RESTRICTED); in addDefaultRequest()
1040 defaultRequest = requestNetwork(netCap, null, 0, new Binder(), in addDefaultRequest()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java872 NetworkCapabilities netCap = new NetworkCapabilities(); in createInternetRequestForTransport() local
873 netCap.addCapability(NET_CAPABILITY_INTERNET); in createInternetRequestForTransport()
874 netCap.addCapability(NET_CAPABILITY_NOT_RESTRICTED); in createInternetRequestForTransport()
876 netCap.addTransportType(transportType); in createInternetRequestForTransport()
878 return new NetworkRequest(netCap, TYPE_NONE, nextNetworkRequestId(), type); in createInternetRequestForTransport()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DConnectivityServiceTest.java1838 public void onCapabilitiesChanged(Network network, NetworkCapabilities netCap) { in onCapabilitiesChanged() argument
1839 setLastCallback(CallbackState.NETWORK_CAPABILITIES, network, netCap); in onCapabilitiesChanged()