p2p: gate WiFi P2P by location settings
1. Move WifiInjector to constructor for unit test
2. Move FrameworkFacade to global for unit test and simply code
3. Add location mode listen to gate WiFi P2P by location settings
4. Add WifiP2pServiceImpTest unit test for feature: gate WiFi P2P by location settings
Bug: 118384563
Manual Test: disable/enable location and check P2P state
Test: local ACTS test to verify p2p function
-tc WifiP2pLocalServiceTest
-tc WifiP2pManagerTest
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Id96ace009d6d168583e7ced77ee3a2ec87696bdd
6 files changed