Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkRequest.java146 private final NetworkCapabilities mNetworkCapabilities; field in NetworkRequest.Builder
155 mNetworkCapabilities = new NetworkCapabilities(); in Builder()
156 mNetworkCapabilities.setSingleUid(Process.myUid()); in Builder()
167 final NetworkCapabilities nc = new NetworkCapabilities(mNetworkCapabilities); in build()
184 mNetworkCapabilities.addCapability(capability); in addCapability()
195 mNetworkCapabilities.removeCapability(capability); in removeCapability()
208 mNetworkCapabilities.set(nc); in setCapabilities()
221 mNetworkCapabilities.setUids(uids); in setUids()
240 mNetworkCapabilities.addUnwantedCapability(capability); in addUnwantedCapability()
253 mNetworkCapabilities.clearAll(); in clearCapabilities()
[all …]
DNetworkCapabilities.java66 mNetworkCapabilities = DEFAULT_CAPABILITIES; in NetworkCapabilities()
81 mNetworkCapabilities = mTransportTypes = mUnwantedNetworkCapabilities = 0; in clearAll()
96 mNetworkCapabilities = nc.mNetworkCapabilities; in set()
114 private long mNetworkCapabilities; field in NetworkCapabilities
411 mNetworkCapabilities |= 1 << capability; in addCapability()
432 mNetworkCapabilities &= ~(1 << capability); // remove from requested capabilities in addUnwantedCapability()
449 mNetworkCapabilities &= mask; in removeCapability()
478 return BitUtils.unpackBits(mNetworkCapabilities); in getCapabilities()
500 mNetworkCapabilities = BitUtils.packBits(capabilities); in setCapabilities()
521 && ((mNetworkCapabilities & (1 << capability)) != 0); in hasCapability()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DUntrustedWifiNetworkFactoryTest.java41 NetworkCapabilities mNetworkCapabilities; field in UntrustedWifiNetworkFactoryTest
55 mNetworkCapabilities = new NetworkCapabilities(); in setUp()
56 mNetworkCapabilities.addTransportType(NetworkCapabilities.TRANSPORT_WIFI); in setUp()
57 mNetworkCapabilities.removeCapability(NetworkCapabilities.NET_CAPABILITY_TRUSTED); in setUp()
61 mNetworkCapabilities, mWifiConnectivityManager); in setUp()
64 .setCapabilities(mNetworkCapabilities) in setUp()
DWifiNetworkFactoryTest.java128 NetworkCapabilities mNetworkCapabilities; field in WifiNetworkFactoryTest
158 mNetworkCapabilities = new NetworkCapabilities(); in setUp()
159 mNetworkCapabilities.addTransportType(NetworkCapabilities.TRANSPORT_WIFI); in setUp()
179 mNetworkCapabilities, mActivityManager, mAlarmManager, mAppOpsManager, mClock, in setUp()
203 .setCapabilities(mNetworkCapabilities) in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcNetworkAgent.java60 private NetworkCapabilities mNetworkCapabilities; field in DcNetworkAgent
78 mNetworkCapabilities = dc.getNetworkCapabilities(); in DcNetworkAgent()
195 if (!networkCapabilities.equals(mNetworkCapabilities)) { in sendNetworkCapabilities()
196 String logStr = "Changed from " + mNetworkCapabilities + " to " in sendNetworkCapabilities()
202 mNetworkCapabilities = networkCapabilities; in sendNetworkCapabilities()
295 + " mNetworkCapabilities=" + mNetworkCapabilities; in toString()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetTracker.java71 private final ConcurrentHashMap<String, NetworkCapabilities> mNetworkCapabilities = field in EthernetTracker
158 final NetworkCapabilities nc = mNetworkCapabilities.get(iface); in isRestrictedInterface()
193 NetworkCapabilities nc = mNetworkCapabilities.get(iface); in addInterface()
196 nc = mNetworkCapabilities.get(hwAddress); in addInterface()
311 mNetworkCapabilities.put(name, nc); in parseEthernetConfig()
481 for (String iface : mNetworkCapabilities.keySet()) { in dump()
482 pw.println(iface + ": " + mNetworkCapabilities.get(iface)); in dump()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java182 protected final NetworkCapabilities mNetworkCapabilities; field in Vpn
241 mNetworkCapabilities = new NetworkCapabilities(); in Vpn()
242 mNetworkCapabilities.addTransportType(NetworkCapabilities.TRANSPORT_VPN); in Vpn()
243 mNetworkCapabilities.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN); in Vpn()
297 mNetworkCapabilities, in updateCapabilities() local
300 return new NetworkCapabilities(mNetworkCapabilities); in updateCapabilities()
731 mNetworkCapabilities.setUids(null); in prepareInternal()
970 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in agentConnect()
977 mNetworkCapabilities.setEstablishingVpnAppUid(Binder.getCallingUid()); in agentConnect()
978 mNetworkCapabilities.setUids(createUserAndRestrictedProfilesRanges(mUserHandle, in agentConnect()
[all …]
DMultipathPolicyTracker.java196 private NetworkCapabilities mNetworkCapabilities; field in MultipathPolicyTracker.MultipathTracker
200 this.mNetworkCapabilities = new NetworkCapabilities(nc); in MultipathTracker()
238 mNetworkCapabilities = new NetworkCapabilities(nc); in setNetworkCapabilities()
293 mNetworkCapabilities); in getUserPolicyOpportunisticQuotaBytes()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java479 private final NetworkCapabilities mNetworkCapabilities; field in ConnectivityServiceTest.MockNetworkAgent
531 mNetworkCapabilities = new NetworkCapabilities(); in MockNetworkAgent()
532 mNetworkCapabilities.addTransportType(transport); in MockNetworkAgent()
547 mNetworkCapabilities.removeCapability(NET_CAPABILITY_NOT_VPN); in MockNetworkAgent()
578 "Mock-" + typeName, mNetworkInfo, mNetworkCapabilities, in MockNetworkAgent()
668 mNetworkCapabilities.addCapability(capability); in addCapability()
669 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in addCapability()
673 mNetworkCapabilities.removeCapability(capability); in removeCapability()
674 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in removeCapability()
678 mNetworkCapabilities.setUids(uids); in setUids()
[all …]
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt47834 Landroid/net/NetworkRequest$Builder;->mNetworkCapabilities:Landroid/net/NetworkCapabilities;