WifiConfigManagerNew: Implement enable/disableNetwork

Implement the |enableNetwork| & |disableNetwork| public methods
used to modify the network status from WifiManager API's.
Added unit-tests for verifying the new public methods.

While there,
1. Fixed a permission check bug in |updateLastConnectUid| and
added a unit test.
2. Handle invalid networkId's in all the public methods and add unit
tests for verification.

BUG: 29606491
Change-Id: I2c907ba19e50d7684befa3e24fbb4e232cd89ae7
TEST: Unit tests
2 files changed
tree: 6d10b5f1a7bb257e7906cb8b08c13eceb441fa67
  1. libwifi_hal/
  2. libwifi_system/
  3. service/
  4. tests/