Move WSM.updateWifiMetrics into WifiMetrics

Made this functionality internal to WifiMetrics. WSM passes it a list of
Saved Networks, and WifiMetrics does all the counting.

While I was here, cleaned up an unreachable code path in WSM.dump, that
gets preempted by WifiServiceImpl.dump (The part that dumps the raw
proto bytes).

Bug: 35675572
Test: new unit tests
Change-Id: Id0a2b71d08679410931a01c3e958aa1ba5558e6a
5 files changed
tree: e43714500a95482f5e22d41c8033316e361cf669
  1. libwifi_hal/
  2. libwifi_system/
  3. service/
  4. tests/
  5. PREUPLOAD.cfg