Add a first NetworkAgent CTS test

This is a basic test that only tests register(), markConnected(),
unregister and onNetworkUnwanted. It provides the backbone for
the tests, a harness to test callbacks on NetworkAgent, and
demonstrates how the instrumentation in
ConnectivityService can be used to test this API.

Test: this
Bug: 139268426
Change-Id: I859208f381ccc22a85d6bccb44c0d5d84c3380c6
Merged-In: I022c9e237fdaec27338047c171c04e5a96cf89e3
(cherry picked from commit 723b519dc2de077c37db510850a590188591a80b, aosp/1253423)
3 files changed
tree: 2ed9a0f80c79dddfb7ce9ac70608b03f25213745
  1. tests/