3c0eb618a6398926893508f9d05fa39a99cf4894 |
|
03-Feb-2017 |
Sohani Rao <sohanirao@google.com> |
Note WifiState in BatteryStats BatteryStats has APIs which can be used to keep it posted about the WifiStateMachine state . This can help correlate power usage with different WifiStates. A helper class WifiStateTracker will convert WifiStateMachine states to the states of interest in BatteryStats. Bug: 28908455 Test: Unit tests Change-Id: I18db4496c1d7388f57e249d7dbdc0115134c1b3b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiStateTracker.java
|