/frameworks/base/core/java/android/net/ |
D | ConnectivityManager.java | 1159 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 …]
|
D | NetworkCapabilities.java | 819 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;
|
D | NetworkFactory.java | 202 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/ |
D | PhoneSwitcher.java | 137 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/ |
D | TelephonyNetworkFactoryTest.java | 117 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/ |
D | PhoneSwitcherTest.java | 158 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/ |
D | ConnectivityServiceMock.java | 1037 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/ |
D | ConnectivityService.java | 872 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/ |
D | ConnectivityServiceTest.java | 1838 public void onCapabilitiesChanged(Network network, NetworkCapabilities netCap) { in onCapabilitiesChanged() argument 1839 setLastCallback(CallbackState.NETWORK_CAPABILITIES, network, netCap); in onCapabilitiesChanged()
|