WifiDiagnostics: Move logcat collection to a worker thread

Diagnostics triggered internal bugreport/alert data capture tries to
take a snapshot of logcat. This can cause the wifi thread to hang for
sometime. Since these are just used for debugging offload this operation
to a new worker thread.

Also,
i) Remove the now unused async channel thread in WifiInjector.
ii) Remove unused captureAlertData() in WifiDiagnostics.

Bug: 161418636
Bug: 160446833
Test: atest com.android.server.wifi
Change-Id: I8b286cd02165a91e06f2ed3bf74eac92df0dd1a2
9 files changed
tree: 8ac0e0ea3b483b30fcdde296479dba54a1dba6a4
  1. apex/
  2. service/
  3. metrics_pdd_hook.py
  4. PREUPLOAD.cfg