ClientModeImpl: make WifiP2pChannel a singleton instead of per-instance
Create a WifiP2pConnection class to encapsulate the logic for
setting up the connection to P2pService.
Note: this may need further refinement down the line as P2pService
may not play well with multiple concurrent instances of ClientModeImpl.
Bug: 159060934
Test: atest FrameworksWifiTests
Test: atest android.net.wifi.p2p.cts
Test: connect to a few networks using Wifi Picker
Test: ACTS continuous P2P tests
Change-Id: Ibddf756da97f77d1dd9ca9adaa75c6091015d0f9
11 files changed