OSDN Git Service

More strictly check NetworkCapabilities callbacks.
authorLorenzo Colitti <lorenzo@google.com>
Fri, 12 Jan 2018 07:22:21 +0000 (16:22 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Mon, 15 Jan 2018 15:25:13 +0000 (00:25 +0900)
commit273345499b0eab5610dc223e52507bf06a37b955
treeba3ac7dd5f5bfb2c0d6054911267617a299015c0
parent639fe64ce0d6daac8698d8ed2db5d526f3a3b015
More strictly check NetworkCapabilities callbacks.

This change more strictly accounts for onCapabilitiesChanged
callbaks and their values. It exposes several cases where we the
callbacks we send are spurious.

Test: ConnectivityServiceTest continues to pass
Change-Id: Ifb9b00b6f0cae48f8ed41a525100d1744b5f429b
tests/net/java/com/android/server/ConnectivityServiceTest.java