Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java133 NetworkCapabilities netCap = new NetworkCapabilities(); in testMaybeMarkCapabilitiesRestricted() local
134 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
135 netCap.maybeMarkCapabilitiesRestricted(); in testMaybeMarkCapabilitiesRestricted()
136 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
139 netCap = new NetworkCapabilities(); in testMaybeMarkCapabilitiesRestricted()
140 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
141 netCap.addCapability(NET_CAPABILITY_NOT_METERED); in testMaybeMarkCapabilitiesRestricted()
142 netCap.maybeMarkCapabilitiesRestricted(); in testMaybeMarkCapabilitiesRestricted()
143 assertTrue(netCap.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)); in testMaybeMarkCapabilitiesRestricted()
144 netCap = new NetworkCapabilities(); in testMaybeMarkCapabilitiesRestricted()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DNetworkCapabilities.java2435 NetworkCapabilities netCap = new NetworkCapabilities();
2437 netCap.mNetworkCapabilities = in.readLong() & ALL_VALID_CAPABILITIES;
2438 netCap.mForbiddenNetworkCapabilities = in.readLong() & ALL_VALID_CAPABILITIES;
2439 netCap.mTransportTypes = in.readLong() & ALL_VALID_TRANSPORTS;
2440 netCap.mLinkUpBandwidthKbps = in.readInt();
2441 netCap.mLinkDownBandwidthKbps = in.readInt();
2442 netCap.mNetworkSpecifier = in.readParcelable(null);
2443 netCap.mTransportInfo = in.readParcelable(null);
2444 netCap.mSignalStrength = in.readInt();
2445 netCap.mUids = readParcelableArraySet(in, null /* ClassLoader, null for default */);
[all …]
DConnectivityManager.java2086 NetworkCapabilities netCap = networkCapabilitiesForFeature(networkType, feature); in startUsingNetworkFeature() local
2087 if (netCap == null) { in startUsingNetworkFeature()
2095 LegacyRequest l = sLegacyRequests.get(netCap); in startUsingNetworkFeature()
2106 request = requestNetworkForFeatureLocked(netCap); in startUsingNetworkFeature()
2143 NetworkCapabilities netCap = networkCapabilitiesForFeature(networkType, feature); in stopUsingNetworkFeature() local
2144 if (netCap == null) { in stopUsingNetworkFeature()
2150 if (removeRequestForFeature(netCap)) { in stopUsingNetworkFeature()
2184 private int legacyTypeForNetworkCapabilities(NetworkCapabilities netCap) { in legacyTypeForNetworkCapabilities() argument
2185 if (netCap == null) return TYPE_NONE; in legacyTypeForNetworkCapabilities()
2186 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in legacyTypeForNetworkCapabilities()
[all …]
/packages/modules/Connectivity/staticlibs/device/android/net/
DNetworkFactoryImpl.java268 private void handleSetFilter(@NonNull final NetworkCapabilities netCap) { in handleSetFilter() argument
269 if (netCap.equals(mCapabilityFilter)) return; in handleSetFilter()
270 mCapabilityFilter = netCap; in handleSetFilter()
302 @Override public void setCapabilityFilter(NetworkCapabilities netCap) { in setCapabilityFilter() argument
303 sendMessage(obtainMessage(CMD_SET_FILTER, new NetworkCapabilities(netCap))); in setCapabilityFilter()
DNetworkFactoryLegacyImpl.java246 private void handleSetFilter(NetworkCapabilities netCap) { in handleSetFilter() argument
247 mCapabilityFilter = netCap; in handleSetFilter()
368 @Override public void setCapabilityFilter(NetworkCapabilities netCap) { in setCapabilityFilter() argument
369 sendMessage(obtainMessage(CMD_SET_FILTER, new NetworkCapabilities(netCap))); in setCapabilityFilter()
DNetworkFactory.java186 public void setCapabilityFilter(NetworkCapabilities netCap) { in setCapabilityFilter() argument
187 mImpl.setCapabilityFilter(netCap); in setCapabilityFilter()
DNetworkFactoryShim.java56 void setCapabilityFilter(NetworkCapabilities netCap); in setCapabilityFilter() argument
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinatorTest.java84 final NetworkCapabilities netCap = in createDualStackUpstream() local
95 return new UpstreamNetworkState(linkProp, netCap, network); in createDualStackUpstream()
/packages/modules/Connectivity/tests/cts/tethering/src/android/tethering/cts/
DTetheringManagerTest.java472 final NetworkCapabilities netCap = mCm.getNetworkCapabilities(network); in testTetheringUpstream() local
473 assertTrue(netCap.hasTransport(TRANSPORT_CELLULAR)); in testTetheringUpstream()
474 assertTrue(netCap.hasCapability(expectedCap)); in testTetheringUpstream()
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DQnsUtils.java341 static String networkCapabilityToString(@NetCapability int netCap) { in networkCapabilityToString() argument
342 switch (netCap) { in networkCapabilityToString()
416 return "Unknown(" + netCap + ")"; in networkCapabilityToString()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java629 private static boolean hasCapability(UpstreamNetworkState ns, int netCap) { in hasCapability() argument
631 && ns.networkCapabilities.hasCapability(netCap); in hasCapability()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java2097 final NetworkCapabilities netCap = new NetworkCapabilities();
2098 netCap.addCapability(NET_CAPABILITY_INTERNET);
2099 netCap.addCapability(NET_CAPABILITY_NOT_VCN_MANAGED);
2100 netCap.removeCapability(NET_CAPABILITY_NOT_VPN);
2101 netCap.setUids(UidRange.toIntRanges(uidRangeSet));
2102 return netCap;
2111 final NetworkCapabilities netCap = new NetworkCapabilities.Builder()
2117 netCap.setRequestorUidAndPackageName(Process.myUid(), mContext.getPackageName());
2118 return createNetworkRequest(NetworkRequest.Type.REQUEST, netCap);
2123 final NetworkCapabilities netCap = new NetworkCapabilities();
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java12332 final NetworkCapabilities netCap = new NetworkCapabilities().setOwnerUid(ownerUid);
12335 netCap, includeLocationSensitiveInfo, Process.myUid(), callerUid,
12345 final NetworkCapabilities netCap =
12349 netCap, includeLocationSensitiveInfo, Process.myPid(), callerUid,
12503 final NetworkCapabilities netCap =
12507 netCap, false /* includeLocationSensitiveInfoInTransportInfo */,
12522 final NetworkCapabilities netCap =
12526 netCap, false /* includeLocationSensitiveInfoInTransportInfo */,
12542 final NetworkCapabilities netCap =
12546 netCap, false /* includeLocationSensitiveInfoInTransportInfo */,
[all …]