Merge "Add comments to the process*FromAgent methods." am: 522180e236
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519518 Change-Id: Ia90b3ae008561b2ec3723770802815b46937022e
This commit is contained in:
@@ -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
|
* 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
|
* LinkProperties by ConnectivityService itself. This ensures that the data provided by the
|
||||||
* agent is not lost when updateLinkProperties is called.
|
* 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) {
|
private void processLinkPropertiesFromAgent(NetworkAgentInfo nai, LinkProperties lp) {
|
||||||
lp.ensureDirectlyConnectedRoutes();
|
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
|
* 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
|
* NetworkCapabilities by ConnectivityService itself. This ensures that the data provided by the
|
||||||
* agent is not lost when updateCapabilities is called.
|
* 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) {
|
private void processCapabilitiesFromAgent(NetworkAgentInfo nai, NetworkCapabilities nc) {
|
||||||
nai.declaredMetered = !nc.hasCapability(NET_CAPABILITY_NOT_METERED);
|
nai.declaredMetered = !nc.hasCapability(NET_CAPABILITY_NOT_METERED);
|
||||||
|
|||||||
Reference in New Issue
Block a user