commit | a07cabc065c5b00c6937b8fd8e357957e2cd15a5 | [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 | 104e216d8061184ec32eeb4ec28ee9fae264fca9 | |
parent | e4e9d1f97e1d1ba7424eaef94623970e6600d8c1 [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