commit | 00e0f5af3e61758057037b9cff7e6572056fc4cd | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Thu Dec 10 00:32:04 2020 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Thu Dec 10 00:41:06 2020 +0900 |
tree | ae89a4c1ade2f58908c592c0f676ecb4f8bdd8e5 | |
parent | 39b4c5b2dae9e4cb16a0c9f0fadbb325baefe57a [diff] |
Add a convenience method to update a network's capabilities. Almost all calls to ConnectivityService#updateCapabilities use all the current data in the network, and thus call the method like this: updateCapabilities(nai.getCurrentScore(), nai, nai.networkCapabilities); Introduce a convenience method to simplify this frequent use case. Bug: 173331190 Test: passes existing ConnectivityService tests Change-Id: I6eb6d92bd159f2575d10a929bd59f6dd1b7a4b4e