Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DConnectivityManager.java904 NetworkCapabilities netCap = networkCapabilitiesForFeature(networkType, feature); in startUsingNetworkFeature() local
905 if (netCap == null) { in startUsingNetworkFeature()
913 LegacyRequest l = sLegacyRequests.get(netCap); in startUsingNetworkFeature()
924 request = requestNetworkForFeatureLocked(netCap); in startUsingNetworkFeature()
954 NetworkCapabilities netCap = networkCapabilitiesForFeature(networkType, feature); in stopUsingNetworkFeature() local
955 if (netCap == null) { in stopUsingNetworkFeature()
961 if (removeRequestForFeature(netCap)) { in stopUsingNetworkFeature()
987 NetworkCapabilities netCap = new NetworkCapabilities(); in networkCapabilitiesForFeature() local
988 netCap.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR).addCapability(cap); in networkCapabilitiesForFeature()
989 netCap.maybeMarkCapabilitiesRestricted(); in networkCapabilitiesForFeature()
[all …]
DNetworkCapabilities.java617 NetworkCapabilities netCap = new NetworkCapabilities();
619 netCap.mNetworkCapabilities = in.readLong();
620 netCap.mTransportTypes = in.readLong();
621 netCap.mLinkUpBandwidthKbps = in.readInt();
622 netCap.mLinkDownBandwidthKbps = in.readInt();
623 netCap.mNetworkSpecifier = in.readString();
624 return netCap;
DNetworkFactory.java200 private void handleSetFilter(NetworkCapabilities netCap) { in handleSetFilter() argument
201 mCapabilityFilter = netCap; in handleSetFilter()
282 public void setCapabilityFilter(NetworkCapabilities netCap) { in setCapabilityFilter() argument
283 sendMessage(obtainMessage(CMD_SET_FILTER, new NetworkCapabilities(netCap))); in setCapabilityFilter()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java770 NetworkCapabilities netCap = new NetworkCapabilities(); in createInternetRequestForTransport() local
771 netCap.addCapability(NET_CAPABILITY_INTERNET); in createInternetRequestForTransport()
772 netCap.addCapability(NET_CAPABILITY_NOT_RESTRICTED); in createInternetRequestForTransport()
774 netCap.addTransportType(transportType); in createInternetRequestForTransport()
776 return new NetworkRequest(netCap, TYPE_NONE, nextNetworkRequestId()); in createInternetRequestForTransport()