DO NOT MERGE: ConnectivityManager: a simpler CallbackHandler
This patch simplifies CallbackHandler in the following way:
- CallbackHandler directly uses the static references to
sNetworkCallback and sCallbackRefCount. This allows to remove
instance fields in CallbackHandler.
- CallbackHandler does not have a reference to ConnectivityManager
anymore
- CallbackHandler.getObject() is now generic in a type-safe way.
Test: ConnectivityServiceTest passes
Bug: 28537383
Bug: 32130437
(cherry picked from commit d42650faaa33ec6274278c65a6042228555ddd4f)
(cherry picked from commit 4983e55853db9f9d1cc5720970c439b976480c52)
Change-Id: I4d0b2441b6af76bc56b19218210a2a381532a3c4
1 file changed