Add metrics for Adaptive Connectivity toggle

Add a new UserActionEvent to track the state change of Adaptive
Connectivity and attach its state to StaEvent.

Bug: 166644305

Test: atest com.android.server.wifi

Updated-PDD: TRUE
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Change-Id: If33df01ec4292afae29eae61f129923ec82bd0ae
Merged-In: If33df01ec4292afae29eae61f129923ec82bd0ae
(cherry picked from commit 58204ef96bd4f8c0765b60ff6c03a5d68d3540a1)
(cherry picked from commit 3fea51b9c78f768bb5f4242c75284d93fe307bba)
4 files changed
tree: feea8ac082e810abc56352bd5344ffd636d7847a
  1. apex/
  2. service/
  3. metrics_pdd_hook.py
  4. PREUPLOAD.cfg