| commit | e4d1e526e17aead8b2a02a06ea9582dd5d38636d | [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 | 93401340261848ab0545fdf85dc79b16b39277da [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