Home
last modified time | relevance | path

Searched refs:mNetworkCapabilities (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkCapabilities.java41 mNetworkCapabilities = DEFAULT_CAPABILITIES; in NetworkCapabilities()
46 mNetworkCapabilities = nc.mNetworkCapabilities; in NetworkCapabilities()
61 mNetworkCapabilities = mTransportTypes = 0; in clearAll()
71 private long mNetworkCapabilities; field in NetworkCapabilities
265 mNetworkCapabilities |= 1 << capability; in addCapability()
280 mNetworkCapabilities &= ~(1 << capability); in removeCapability()
292 return enumerateBits(mNetworkCapabilities); in getCapabilities()
305 return ((mNetworkCapabilities & (1 << capability)) != 0); in hasCapability()
322 this.mNetworkCapabilities |= nc.mNetworkCapabilities; in combineNetCapabilities()
337 if ((mNetworkCapabilities & NON_REQUESTABLE_CAPABILITIES) != 0) { in describeFirstNonRequestableCapability()
[all …]
DNetworkRequest.java132 private final NetworkCapabilities mNetworkCapabilities = new NetworkCapabilities(); field in NetworkRequest.Builder
147 final NetworkCapabilities nc = new NetworkCapabilities(mNetworkCapabilities); in build()
165 mNetworkCapabilities.addCapability(capability); in addCapability()
176 mNetworkCapabilities.removeCapability(capability); in removeCapability()
188 mNetworkCapabilities.clearAll(); in clearCapabilities()
203 mNetworkCapabilities.addTransportType(transportType); in addTransportType()
214 mNetworkCapabilities.removeTransportType(transportType); in removeTransportType()
222 mNetworkCapabilities.setLinkUpstreamBandwidthKbps(upKbps); in setLinkUpstreamBandwidthKbps()
229 mNetworkCapabilities.setLinkDownstreamBandwidthKbps(downKbps); in setLinkDownstreamBandwidthKbps()
252 mNetworkCapabilities.setNetworkSpecifier(networkSpecifier); in setNetworkSpecifier()
[all …]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java88 private NetworkCapabilities mNetworkCapabilities; field in EthernetNetworkFactory
267 mNetworkCapabilities + ", " + in updateAgent()
271 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in updateAgent()
366 NETWORK_TYPE, mNetworkInfo, mNetworkCapabilities, mLinkProperties, in onRequestNetwork()
424 mFactory.setCapabilityFilter(mNetworkCapabilities); in start()
483 mNetworkCapabilities = new NetworkCapabilities(); in initNetworkCapabilities()
484 mNetworkCapabilities.addTransportType(NetworkCapabilities.TRANSPORT_ETHERNET); in initNetworkCapabilities()
485 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in initNetworkCapabilities()
486 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED); in initNetworkCapabilities()
488 mNetworkCapabilities.setLinkUpstreamBandwidthKbps(100 * 1000); in initNetworkCapabilities()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java131 private final NetworkCapabilities mNetworkCapabilities; field in Vpn
227 mNetworkCapabilities = new NetworkCapabilities(); in Vpn()
228 mNetworkCapabilities.addTransportType(NetworkCapabilities.TRANSPORT_VPN); in Vpn()
229 mNetworkCapabilities.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN); in Vpn()
645 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in agentConnect()
647 mNetworkCapabilities.removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in agentConnect()
658 mNetworkInfo, mNetworkCapabilities, lp, 0, networkMisc) { in agentConnect()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DConnectivityServiceTest.java235 private final NetworkCapabilities mNetworkCapabilities; field in ConnectivityServiceTest.MockNetworkAgent
253 mNetworkCapabilities = new NetworkCapabilities(); in MockNetworkAgent()
254 mNetworkCapabilities.addTransportType(transport); in MockNetworkAgent()
271 "Mock-" + typeName, mNetworkInfo, mNetworkCapabilities, in MockNetworkAgent()
321 mNetworkCapabilities.addCapability(capability); in addCapability()
322 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in addCapability()
326 mNetworkCapabilities.removeCapability(capability); in removeCapability()
327 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in removeCapability()
331 mNetworkCapabilities.setSignalStrength(signalStrength); in setSignalStrength()
332 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setSignalStrength()
[all …]