commit | c2baa2947a28277c7b4ef48ce60d9d9d81cfb96f | [log] [tgz] |
---|---|---|
author | jackqdyulei <jackqdyulei@google.com> | Thu Jun 15 10:18:00 2017 -0700 |
committer | jackqdyulei <jackqdyulei@google.com> | Thu Jun 15 11:37:28 2017 -0700 |
tree | 40140aa8ba2fc7ec4b3a491d8f79ff19184d37c1 | |
parent | ea46967c2e0a3b62b56c86d9b94dd2bdb932f7d6 [diff] |
Update wakelock detector 1. Use new API: getSubTimer().getTotalDurationMsLocked(), which returns the wakelock running time in the background. 2. Add code to detect whether app is currently holding wakelocks, by using API: getCurrentDurationMsLocked Bug: 38233034 Test: RunSettingsRoboTests Change-Id: If69b751acf5741ff8df2c905642c008a0a2b32e6