This should have been longer to start with. This oversight is due to a poor API in TestNetworkCallback that was made that way for backwards compatibility ; b/157405399 tracks improving this API. Test: this Bug: 160660082 Original-Change: https://android-review.googlesource.com/1358064 Merged-In: If0587a2a91977427a2f679a502d838fbecdd82f2 Change-Id: If0587a2a91977427a2f679a502d838fbecdd82f2