diff options
| author | 2020-12-07 21:13:40 +0000 | |
|---|---|---|
| committer | 2020-12-07 21:13:40 +0000 | |
| commit | 5afa152f95216f711adef983a1ef19ee85744d97 (patch) | |
| tree | 748fd5c22b6f39ffaf237458d6374f9ba4a71234 | |
| parent | 10902afb00919acd928146d80bce472e4e1298d8 (diff) | |
| parent | 901d550d91e57b53ba29b61f5465bacb3e122bb0 (diff) | |
Merge "Add comments to the process*FromAgent methods." am: c779768dbc am: 5ce4c6d229 am: 901d550d91
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519518
Change-Id: I8de245bb78f39cd9c99d2e5f44dc1ade3c229c15
| -rw-r--r-- | services/core/java/com/android/server/ConnectivityService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index ee9d49244d7e..0d0f0dd60d0e 100644 --- a/services/core/java/com/android/server/ConnectivityService.java +++ b/services/core/java/com/android/server/ConnectivityService.java @@ -6052,6 +6052,7 @@ public class ConnectivityService extends IConnectivityManager.Stub * Stores into |nai| any data coming from the agent that might also be written to the network's * LinkProperties by ConnectivityService itself. This ensures that the data provided by the * agent is not lost when updateLinkProperties is called. + * This method should never alter the agent's LinkProperties, only store data in |nai|. */ private void processLinkPropertiesFromAgent(NetworkAgentInfo nai, LinkProperties lp) { lp.ensureDirectlyConnectedRoutes(); @@ -6353,6 +6354,7 @@ public class ConnectivityService extends IConnectivityManager.Stub * Stores into |nai| any data coming from the agent that might also be written to the network's * NetworkCapabilities by ConnectivityService itself. This ensures that the data provided by the * agent is not lost when updateCapabilities is called. + * This method should never alter the agent's NetworkCapabilities, only store data in |nai|. */ private void processCapabilitiesFromAgent(NetworkAgentInfo nai, NetworkCapabilities nc) { nai.declaredMetered = !nc.hasCapability(NET_CAPABILITY_NOT_METERED); |