WifiConfigManager: Optimize scan result to config lookup

Use a hashmap to store the configured networks SSID & security type.
This will ease the lookup for networks from the provided scan result and
removed the unnecessary M (num scan results) * N (num saved networks) loop
for lookup.

Bug: 31489297
Test: Manual tests
Test: Existing WifiConfigManager Unit tests for matching passes.
Test: Some new tests in ConfigurationMap.
Change-Id: I73e312fd3c1684981748b11d1e22479d45e9b510
7 files changed
tree: baa06e2bc7eaaf8dcbd2355ab6e9c034c67f5e93
  1. service/
  2. PREUPLOAD.cfg