Integrate testNetworkService and Manager with Connectivity stack
This change adds TestAPIs for tests to retrive an instance of ConnectivityManager, allowing it to build test TUN interfaces, as well as test networks. This also integrates the TestNetwork types with ConnectivityManager, creating virtual networks if the network agent is a test agent. Bug: 72950854 Test: Compiles, CTS tests using this passing correctly Change-Id: Ic1a04aa66014d1c66a74e65dbace3218437403ae Merged-In: I741ef9cdf4bd4125d9129af3a030edf32f438e4f
This commit is contained in:
parent
dce527fbd6
commit
493e04b932
1 changed files with 29 additions and 0 deletions
|
|
@ -219,4 +219,6 @@ interface IConnectivityManager
|
|||
|
||||
void registerTetheringEventCallback(ITetheringEventCallback callback, String callerPkg);
|
||||
void unregisterTetheringEventCallback(ITetheringEventCallback callback, String callerPkg);
|
||||
|
||||
IBinder startOrGetTestNetworkService();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue