summaryrefslogtreecommitdiffstats
path: root/tests/BatteryWaster
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue #3022508: Crash during media scanDianne Hackborn2010-09-231-15/+13
| | | | | | | | | | | | | | | | | | | | | | Don't kill processes for excessive wake lock use, even if they are in the background, as long as they have running services. Also fix some problems with this, such as not noting the kill in battery stats. And add killing of processes for cpu usage as well, along with some optimizations to computing CPU usage. And fix BatteryWaster to be better behaving for testing these cases. Add new "monitor" command to am to watch as the activity manager does stuff (so we can catch things at the point of ANR). Finally some miscellaneous debug output for the stuff here, as well as in progress debugging of an ANR. Change-Id: Ib32f55ca50fb7486b4be4eb5e695f8f60c882cd1
* Fix problems with determining when to kill apps for wake usage.Dianne Hackborn2010-08-152-1/+18
| | | | | | Also improve debug printing of various times. Change-Id: Ifcc288fd1bcbf44c069875ba97925b9e7ffe9a48
* Various battery info things:Dianne Hackborn2010-08-133-12/+67
| | | | | | | | | | | | | | | | - Now track wake locks in battery history. - Now track sensors in battery history. - Some filtering of sensory data. - Fixes to some data that wasn't cleared when resetting battery stats. - Print amount discharged since last charge. And the big part -- keep track of wake locks held per process, and kill processes that hold wake locks too much while they are in the background. This includes information in the battery stats about the process being killed, which will be available to the developer if the app is reported. Change-Id: I97202e94d00aafe0526ba2db74a03212e7539c54
* Deprecate fill_parent and introduce match_parent.Romain Guy2010-01-081-5/+5
| | | | Bug: #2361749.
* Add a test app that will drain the battery. NOT IN BUILD.Joe Onorato2009-11-255-0/+243