b1f04f372c42114e864d52f4206ff07d9264c5b9 |
|
19-May-2017 |
Bookatz <bookatz@google.com> |
Batterystats track background bad ble scan time Allows tracking ble scan time (total and background) for unoptimized scans. Whether the scan is unoptimized is provided by the bluetooth code when calling batterystats. Bug: 38461344 Test: runtest -x frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java Test: run cts-dev -m CtsIncidentHostTestCases -t com.android.server.cts.BatteryStatsValidationTest#testUnoptimizedBleScans Test: cts-tradefed run cts-dev -m CtsDumpsysHostTestCases -t android.dumpsys.cts.BatteryStatsDumpsysTest Change-Id: I814482ff663424170eac4b413464d24c14a5cf91
/frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsNoteTest.java
|
c8c44960c0051dacac0a6cb6c65ddfafc9d1cb84 |
|
11-May-2017 |
Bookatz <bookatz@google.com> |
Cumulative wakelock time per uid Currently, the time for each partial wakelock was tracked. If one wants the total time that a uid held partial wakelocks (over all of its wakelocks), they could sum over all the uid's partial wakelock totalTimes, but this would underestimate the value because totalTimes are pooled amongst all uids. Alternatively, they could sum over all the uid's partial wakelock totalDurations, but this would overestimate the value because totalDurations are not pooled within the uid (so there will be double-counting if two wakelocks are held simultaneously). This cl adds a new timer that specifically tracks the actual total time that the uid spent holding wakelocks, and also provides the ability to see how much time the uid was in the background when doing so. Bug: 38198272 Test: runtest -x frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java Change-Id: I20ea3546338c44ffdf06859bc840d9059fb18321
/frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsNoteTest.java
|
4ebc064c30e5322e8f479f6732dfd44f72bfec77 |
|
11-May-2017 |
Bookatz <bookatz@google.com> |
Batterystats BLE results counter takes in count There would likely be too many BLE scan result calls for batterystats to be healthy. Therefore, the caller can supply a count by which to increase the counter, instead of doing it one result at a time. Bug: 37720787 Test: runtest -x frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java Change-Id: Ib8b2e8d250036be24c6c3dac477bc8d34fe498a6
/frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsNoteTest.java
|
956f36bfe2bcb16080336572e6042ae1ab66c5be |
|
28-Apr-2017 |
Bookatz <bookatz@google.com> |
Add BLE results counter to batterystats Batterystats provides an API to count the number of BLE scan results. Bug: 37720787 Test: runtest -x frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java Change-Id: Idcb7494b39e88dcbfbb3da1ebe90b8a2f8f4d55c
/frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsNoteTest.java
|