OSDN Git Service

Statsd atoms: Add comment about Wifi
authorBookatz <bookatz@google.com>
Mon, 17 Dec 2018 20:28:32 +0000 (12:28 -0800)
committerBookatz <bookatz@google.com>
Mon, 17 Dec 2018 20:33:12 +0000 (12:33 -0800)
Add comment explaining caveats about the Wifi atoms.

Bug: 115639456
Test: It is just a comment.
Change-Id: I0882ccbe21c59439c4a6a61fb665bc0bf4695006

cmds/statsd/src/atoms.proto

index 5df47cd..5899e0c 100644 (file)
@@ -874,6 +874,7 @@ message KernelWakeupReported {
 
 /**
  * Logs when Wifi is toggled on/off.
+ * Note that Wifi may still perform certain functions (e.g. location scanning) even when disabled.
  *
  * Logged from:
  *   frameworks/base/services/core/java/com/android/server/am/BatteryStatsService.java
@@ -888,7 +889,8 @@ message WifiEnabledStateChanged {
 
 /**
  * Logs when an app causes Wifi to run. In this context, 'to run' means to use Wifi Client Mode.
- * TODO: Include support for Hotspot.
+ * TODO: Include support for Hotspot, perhaps by using an extra field to denote 'mode'.
+ * Note that Wifi Scanning is monitored separately in WifiScanStateChanged.
  *
  * Logged from:
  *   frameworks/base/services/core/java/com/android/server/am/BatteryStatsService.java