Home
last modified time | relevance | path

Searched refs:newNc (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitor.java297 private void handleNetCap(Network network, NetworkCapabilities newNc) { in handleNetCap() argument
299 if (prev == null || newNc.equals(prev.networkCapabilities)) { in handleNetCap()
308 network, newNc)); in handleNetCap()
312 if (network.equals(mTetheringUpstreamNetwork) && newNc.hasSignalStrength()) { in handleNetCap()
313 final int newSignal = newNc.getSignalStrength(); in handleNetCap()
319 null, prev.linkProperties, newNc, network, null, null)); in handleNetCap()
417 public void onCapabilitiesChanged(Network network, NetworkCapabilities newNc) { in onCapabilitiesChanged() argument
420 final boolean newIsCellular = isCellular(newNc); in onCapabilitiesChanged()
428 handleNetCap(network, newNc); in onCapabilitiesChanged()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1573 final NetworkCapabilities newNc = new NetworkCapabilities(nc); in networkCapabilitiesRestrictedForCallerPermissions() local
1575 newNc.setUids(null); in networkCapabilitiesRestrictedForCallerPermissions()
1576 newNc.setSSID(null); in networkCapabilitiesRestrictedForCallerPermissions()
1578 if (newNc.getNetworkSpecifier() != null) { in networkCapabilitiesRestrictedForCallerPermissions()
1579 newNc.setNetworkSpecifier(newNc.getNetworkSpecifier().redact()); in networkCapabilitiesRestrictedForCallerPermissions()
1581 return newNc; in networkCapabilitiesRestrictedForCallerPermissions()
5760 NetworkCapabilities newNc = new NetworkCapabilities(nc); in mixInCapabilities() local
5762 newNc.addCapability(NET_CAPABILITY_VALIDATED); in mixInCapabilities()
5764 newNc.removeCapability(NET_CAPABILITY_VALIDATED); in mixInCapabilities()
5767 newNc.addCapability(NET_CAPABILITY_CAPTIVE_PORTAL); in mixInCapabilities()
[all …]