Statsd logs directly from Wifi & add Multicast tag
Track the Wifi Multicast Lock tag in statsd.
Also moves some statsd Wifi logging calls out of BatteryStats in
preparation for more detailed statsd wifi logging, namely:
WIFI_MULTICAST_LOCK_STATE_CHANGED
WIFI_SCAN_STATE_CHANGED
WIFI_SIGNAL_STRENGTH_CHANGED
It makes more sense to get these directly from Wifi (instead of
the fairly arbitrary intermediate of BatteryStats) so that we can
easily add useful information to these atoms that BatteryStats doesn't
get (such as the Multicast tag name, in this cl).
Bug: 68943452
Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases -t android.cts.statsd.atom.UidAtomTests#testWifiMulticastLock
Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases -t android.cts.statsd.atom.UidAtomTests#testWifiScan
Change-Id: I73b79d5476ac4c9b63b1a3e99abd02ccd43be8b8
3 files changed