OSDN Git Service

Remove unwanted capability code per API council feedback.
authorLorenzo Colitti <lorenzo@google.com>
Fri, 6 Apr 2018 08:35:33 +0000 (17:35 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Fri, 6 Apr 2018 14:02:51 +0000 (23:02 +0900)
commit4c6f4a65b678c82bee81839f79f211acc725243e
tree80144b40a473999a4d7bc77b98e7b6ed3df8913d
parent54b8750b06027cbd6909271423cef83750e1c302
Remove unwanted capability code per API council feedback.

The addition of hasUnwantedCapability was late in the release
cycle and does not simplify the API enough to be worth it. The
recommendation is, in a future release, to do something more
complete: not just add something like addUnwantedCapability, but
also deprecate all the NET_CAPABILITY_NOT_xxx constants and add
opposite NET_CAPABILITY_xxx constants for use with it.

Fix: 77601789
Test: builds, boots
Test: atest android.net.cts.NetworkRequestTest
Test: atest android.net.cts.ConnectivityManagerTest
Change-Id: Ib98fb01da4a4a0bae464787b589ad88f45002eb8
api/current.txt
api/removed.txt
core/java/android/net/NetworkRequest.java