OSDN Git Service

Make NET_CAPABILITY_VALIDATED (almost) a first-class citizen.
authorLorenzo Colitti <lorenzo@google.com>
Thu, 14 May 2015 08:28:27 +0000 (17:28 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Tue, 19 May 2015 09:29:02 +0000 (18:29 +0900)
commit76f67797032981ccb63e12e808ebc8bda636a740
tree3aeb71ce9bd1d9852616184a425d1e13a704e3e4
parentc6767354c5c2e32648c7404b73878a8ae66dd3c8
Make NET_CAPABILITY_VALIDATED (almost) a first-class citizen.

1. Always keep ConnectivityService's validated bits current:
   - Apply the validated bit whenever a NetworkAgent updates its
     NetworkCapabilities.
   - Set or clear the validated bit whenever lastValidated changes.
2. Send callbacks when the validation state of a network changes.
3. Delete getNetworkCapabilitiesAndValidation, removing code
   duplication with getNetworkCapabilities.
4. Add the validated bit to NetworkCapabilities#toString.

Bug: 18591282
Bug: 20081183
Change-Id: I6aa53b61c15cc137f203f9fc6bbd4c16894be750
core/java/android/net/NetworkCapabilities.java
services/core/java/com/android/server/ConnectivityService.java