WifiConnectivityManager: stop caching ClientModeManagers

Instead, get it from ActiveModeWarden directly,
so that they don't accidentally go out of sync.

Also, call onActiveModeManagerRemoved callbacks
when a mode manager fails to start (onStartFailure).
If a failure occurs while switching roles, the
mode manager would have already been added, so
need to notify listeners of the removal.

Bug: 169772923
Test: atest FrameworksWifiTests
Test: toggle wifi a few times
Change-Id: I67c07f6cb3ab69d92302b7aaa623357c59486bbf
7 files changed
tree: 3fe4c0ee29b2076b7f4ff38cd4cdfb6430050e33
  1. apex/
  2. service/
  3. metrics_pdd_hook.py
  4. PREUPLOAD.cfg