WifiNetworkFactory: Refactor to a new class
Move WifiNetworkFactory & UntrustedWifiNetworkFactory to separate
classes out of ClientModeImpl. Also, simplify the existing auto-join
enable mechanism (WifiConnectivityManager.enable()).
Also added a new |mRunning| flag in WifiConnectivityManager to avoid
multiple calls to start/stop being processed. There was no functional
problem without |mRunning| flag, but it makes the unit tests cleaner.
Bug: 116210817
Test: Unit tests
Test: Device boots up & auto-connects to wifi networks
Change-Id: I24038fe554ab7343e8884ded9ff60d26f2549ff7
8 files changed