Home
last modified time | relevance | path

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

/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java345 private void handleNetCap(Network network, NetworkCapabilities newNc) { in handleNetCap() argument
347 if (prev == null || newNc.equals(prev.networkCapabilities)) { in handleNetCap()
356 network, newNc)); in handleNetCap()
360 prev.linkProperties, newNc, network)); in handleNetCap()
448 public void onCapabilitiesChanged(Network network, NetworkCapabilities newNc) { in onCapabilitiesChanged() argument
451 final boolean newIsCellular = isCellular(newNc); in onCapabilitiesChanged()
459 handleNetCap(network, newNc); in onCapabilitiesChanged()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1676 final NetworkCapabilities newNc = new NetworkCapabilities(nc); in networkCapabilitiesRestrictedForCallerPermissions() local
1678 newNc.setUids(null); in networkCapabilitiesRestrictedForCallerPermissions()
1679 newNc.setSSID(null); in networkCapabilitiesRestrictedForCallerPermissions()
1681 if (newNc.getNetworkSpecifier() != null) { in networkCapabilitiesRestrictedForCallerPermissions()
1682 newNc.setNetworkSpecifier(newNc.getNetworkSpecifier().redact()); in networkCapabilitiesRestrictedForCallerPermissions()
1684 newNc.setAdministratorUids(new int[0]); in networkCapabilitiesRestrictedForCallerPermissions()
1686 return newNc; in networkCapabilitiesRestrictedForCallerPermissions()
1696 final NetworkCapabilities newNc = new NetworkCapabilities(nc); in maybeSanitizeLocationInfoForCaller() local
1697 if (callerUid != newNc.getOwnerUid()) { in maybeSanitizeLocationInfoForCaller()
1698 newNc.setOwnerUid(INVALID_UID); in maybeSanitizeLocationInfoForCaller()
[all …]