Home
last modified time | relevance | path

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

/frameworks/base/tests/net/integration/util/com/android/server/
DNetworkAgentWrapper.java59 private final NetworkCapabilities mNetworkCapabilities; field in NetworkAgentWrapper
77 mNetworkCapabilities = new NetworkCapabilities(); in NetworkAgentWrapper()
78 mNetworkCapabilities.addCapability(NET_CAPABILITY_NOT_SUSPENDED); in NetworkAgentWrapper()
79 mNetworkCapabilities.addTransportType(transport); in NetworkAgentWrapper()
94 mNetworkCapabilities.removeCapability(NET_CAPABILITY_NOT_VPN); in NetworkAgentWrapper()
97 mNetworkCapabilities.removeCapability(NET_CAPABILITY_NOT_SUSPENDED); in NetworkAgentWrapper()
121 wrapper.mNetworkInfo, wrapper.mNetworkCapabilities, lp, wrapper.mScore, in InstrumentedNetworkAgent()
175 mNetworkCapabilities.addCapability(capability); in addCapability()
176 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in addCapability()
180 mNetworkCapabilities.removeCapability(capability); in removeCapability()
[all …]
/frameworks/base/core/java/android/net/
DNetworkRequest.java147 private final NetworkCapabilities mNetworkCapabilities; field in NetworkRequest.Builder
156 mNetworkCapabilities = new NetworkCapabilities(); in Builder()
157 mNetworkCapabilities.setSingleUid(Process.myUid()); in Builder()
168 final NetworkCapabilities nc = new NetworkCapabilities(mNetworkCapabilities); in build()
185 mNetworkCapabilities.addCapability(capability); in addCapability()
196 mNetworkCapabilities.removeCapability(capability); in removeCapability()
209 mNetworkCapabilities.set(nc); in setCapabilities()
222 mNetworkCapabilities.setUids(uids); in setUids()
241 mNetworkCapabilities.addUnwantedCapability(capability); in addUnwantedCapability()
253 mNetworkCapabilities.clearAll(); in clearCapabilities()
[all …]
DConnectivityDiagnosticsManager.java227 @NonNull private final NetworkCapabilities mNetworkCapabilities; field in ConnectivityDiagnosticsManager.ConnectivityReport
256 mNetworkCapabilities = new NetworkCapabilities(networkCapabilities); in ConnectivityReport()
296 return new NetworkCapabilities(mNetworkCapabilities); in getNetworkCapabilities()
321 && mNetworkCapabilities.equals(that.mNetworkCapabilities) in equals()
331 mNetworkCapabilities, in hashCode()
347 dest.writeParcelable(mNetworkCapabilities, flags); in writeToParcel()
447 @NonNull private final NetworkCapabilities mNetworkCapabilities; field in ConnectivityDiagnosticsManager.DataStallReport
478 mNetworkCapabilities = new NetworkCapabilities(networkCapabilities); in DataStallReport()
527 return new NetworkCapabilities(mNetworkCapabilities); in getNetworkCapabilities()
557 && mNetworkCapabilities.equals(that.mNetworkCapabilities) in equals()
[all …]
DNetworkCapabilities.java81 mNetworkCapabilities = DEFAULT_CAPABILITIES; in NetworkCapabilities()
96 mNetworkCapabilities = mTransportTypes = mUnwantedNetworkCapabilities = 0; in clearAll()
115 mNetworkCapabilities = nc.mNetworkCapabilities; in set()
137 private long mNetworkCapabilities; field in NetworkCapabilities
459 mNetworkCapabilities |= 1 << capability; in addCapability()
480 mNetworkCapabilities &= ~(1 << capability); // remove from requested capabilities in addUnwantedCapability()
495 mNetworkCapabilities &= mask; in removeCapability()
524 return BitUtils.unpackBits(mNetworkCapabilities); in getCapabilities()
546 mNetworkCapabilities = BitUtils.packBits(capabilities); in setCapabilities()
567 && ((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.java138 NetworkCapabilities mNetworkCapabilities; field in WifiNetworkFactoryTest
169 mNetworkCapabilities = new NetworkCapabilities(); in setUp()
170 mNetworkCapabilities.addTransportType(NetworkCapabilities.TRANSPORT_WIFI); in setUp()
192 mNetworkCapabilities, mActivityManager, mAlarmManager, mAppOpsManager, mClock, in setUp()
214 .setCapabilities(mNetworkCapabilities) in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcNetworkAgent.java73 private NetworkCapabilities mNetworkCapabilities; field in DcNetworkAgent
95 mNetworkCapabilities = dc.getNetworkCapabilities(); in DcNetworkAgent()
234 if (!networkCapabilities.equals(mNetworkCapabilities)) { in sendNetworkCapabilities()
235 String logStr = "Changed from " + mNetworkCapabilities + " to " in sendNetworkCapabilities()
243 if (mNetworkCapabilities == null in sendNetworkCapabilities()
246 != mNetworkCapabilities.hasCapability( in sendNetworkCapabilities()
252 mNetworkCapabilities = networkCapabilities; in sendNetworkCapabilities()
364 + " mNetworkCapabilities=" + mNetworkCapabilities; in toString()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetTracker.java83 private final ConcurrentHashMap<String, NetworkCapabilities> mNetworkCapabilities = field in EthernetTracker
185 final NetworkCapabilities nc = mNetworkCapabilities.get(iface); in isRestrictedInterface()
298 NetworkCapabilities nc = mNetworkCapabilities.get(iface); in addInterface()
301 nc = mNetworkCapabilities.get(hwAddress); in addInterface()
455 mNetworkCapabilities.put(name, nc); in parseEthernetConfig()
649 for (String iface : mNetworkCapabilities.keySet()) { in dump()
650 pw.println(iface + ": " + mNetworkCapabilities.get(iface)); in dump()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java212 protected final NetworkCapabilities mNetworkCapabilities; field in Vpn
284 mNetworkCapabilities = new NetworkCapabilities(); in Vpn()
285 mNetworkCapabilities.addTransportType(NetworkCapabilities.TRANSPORT_VPN); in Vpn()
286 mNetworkCapabilities.removeCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN); in Vpn()
339 mNetworkCapabilities, in updateCapabilities() local
342 return new NetworkCapabilities(mNetworkCapabilities); in updateCapabilities()
842 mNetworkCapabilities.setUids(null); in prepareInternal()
1102 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
1109 mNetworkCapabilities.setOwnerUid(mOwnerUID);
1110 mNetworkCapabilities.setAdministratorUids(new int[] {mOwnerUID});
[all …]
DMultipathPolicyTracker.java195 private NetworkCapabilities mNetworkCapabilities; field in MultipathPolicyTracker.MultipathTracker
199 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.java1041 mNetworkCapabilities.set(agent.getNetworkCapabilities()); in setNetworkAgent()
1045 mNetworkCapabilities.setUids(uids); in setUids()
1077 mNetworkCapabilities.set(mMockNetworkAgent.getNetworkCapabilities()); in connect()
1098 return new NetworkCapabilities(mNetworkCapabilities); in updateCapabilities()
1103 mMockNetworkAgent.setNetworkCapabilities(mNetworkCapabilities, in copyCapabilitiesToNetworkAgent()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt44575 Landroid/net/NetworkRequest$Builder;->mNetworkCapabilities:Landroid/net/NetworkCapabilities;