Route KernelWakelockReader's userspace native wakelock stats
collection to SystemSuspend (ISuspendControl::getWakeLockStats()) Native wakelocks obatined via SystemSuspend when useSuspendCounter is enabled, will not be reflected in the information available from /d/wakeup_sources or proc/wakelocks. This information has been made available via the ISuspendControl AIDL interface of SystemSuspend. Kernelwakelock stats however are still being collected in the /d/wakeup_sources. Change-Id: I208d004aa0fabcf367016faae77ad51388cdf0ea Bug: 135680393 Test: Observe SystemSuspend service wakelocks in dumpsys batterystats (for instance, "PowerManager.SuspendLockout"): `dumpsys batterystats --checkin | grep wl | grep PowerManager.SuspendLockout`
Showing
- Android.bp 1 addition, 0 deletionsAndroid.bp
- core/java/com/android/internal/os/KernelWakelockReader.java 80 additions, 11 deletionscore/java/com/android/internal/os/KernelWakelockReader.java
- core/tests/coretests/src/com/android/internal/os/KernelWakelockReaderTest.java 273 additions, 4 deletions...src/com/android/internal/os/KernelWakelockReaderTest.java
Please register or sign in to comment