WifiConnectivityManager: Refactor for automotive STA + STA (Part 1)

Changes:
i) Split the 3 types for connection attempt to separate methods:
 - (a) Connect when disconnected.
 - (b) Connected when connected to something else.
 - (c) Roam when connected to the same network.
ii) Add a interface for the 3 types of connection attempts.
iii) For the primary connection, use make before break for case (b)
if available.

For the automotive use-case, case (b) will connect using the same CMM
(will not trigger make before break)

Bug: 169413079
Test: atest com.android.server.wifi
Change-Id: I73d70b019cc3a68e672cd7d1d2561ef3fffe0151
1 file changed
tree: 609ebf823c6f730be530549e304adab318199cf4
  1. apex/
  2. service/
  3. metrics_pdd_hook.py
  4. PREUPLOAD.cfg