[Nexus 4 Original Android Development] anandbibek:
I probably found the culprit for systemUI battery drain. It's caused by KeyguardTestActivity. I don't know what it is, probably smthng related to Lockscreen Notification?

Most of the time it hangs probably going into infinite loops for some reason.. I get ANRs and logcat also shows this.

build.board: MAKO
build.bootloader: MAKOZ30d
build.brand: google
build.cpu_abi: armeabi-v7a
build.cpu_abi2: armeabi
build.device: mako
build.display: KTU84M
build.fingerprint: google/occam/mako:4.4.2/KOT49H/937116:user/release-keys
build.hardware: mako
build.host: mahdi-linux
build.id: KTU84M
build.manufacturer: LGE
build.model: Nexus 4
build.product: occam
build.radio: unknown
build.serial: 01befd16e1c9a3cc
build.tags: release-keys
build.time: 1401985576000
build.type: userdebug
build.user: mahdi
version.codename: REL
version.incremental: eng.mahdi.20140605.172047
version.release: 4.4.3
version.sdk_int: 19

06-11 15:25:31.163 I/StatusBarManagerService(531): binder died for pkg=com.android.keyguard
06-11 15:25:31.173 W/KeyguardServiceWrapper(531): Remote Exception
06-11 15:25:31.173 W/KeyguardServiceWrapper(531): android.os.DeadObjectException
06-11 15:25:31.173 W/KeyguardServiceWrapper(531): at android.os.BinderProxy.transact(Native Method)
06-11 15:25:31.173 W/KeyguardServiceWrapper(531): at com.android.internal.policy.IKeyguardService$Stub$Proxy.setHidden(IKeyguardService.java:373)
06-11 15:25:31.173 W/KeyguardServiceWrapper(531): at com.android.internal.policy.impl.keyguard.KeyguardServiceWrapper.setHidden(KeyguardServiceWrapper.java:106)
06-11 15:25:31.173 W/KeyguardServiceWrapper(531): at com.android.internal.policy.impl.keyguard.KeyguardServiceDelegate.setHidden(KeyguardServiceDelegate.java:177)
06-11 15:25:31.173 W/KeyguardServiceWrapper(531): at com.android.internal.policy.impl.PhoneWindowManager.finishPostLayoutPolicyLw(PhoneWindowManager.java:4485)
06-11 15:25:31.173 W/KeyguardServiceWrapper(531): at com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner(WindowManagerService.java:9205)
06-11 15:25:31.173 W/KeyguardServiceWrapper(531): at com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedLoop(WindowManagerService.java:8349)
06-11 15:25:31.173 W/KeyguardServiceWrapper(531): at com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLocked(WindowManagerService.java:8291)
06-11 15:25:31.173 W/KeyguardServiceWrapper(531): at com.android.server.wm.WindowManagerService.removeWindowInnerLocked(WindowManagerService.java:2670)
06-11 15:25:31.173 W/KeyguardServiceWrapper(531): at com.android.server.wm.WindowManagerService.removeWindowLocked(WindowManagerService.java:2566)
06-11 15:25:31.173 W/KeyguardServiceWrapper(531): at com.android.server.wm.WindowManagerService.removeWindowLocked(WindowManagerService.java:2493)
06-11 15:25:31.173 W/KeyguardServiceWrapper(531): at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1068)
06-11 15:25:31.173 W/KeyguardServiceWrapper(531): at android.os.BinderProxy.sendDeathNotice(Binder.java:493)
06-11 15:25:31.183 V/WindowManager(531): Removing keyguard window (Did it crash?)
06-11 15:25:31.183 W/KeyguardServiceWrapper(531): Remote Exception
06-11 15:25:31.183 W/KeyguardServiceWrapper(531): android.os.DeadObjectException
06-11 15:25:31.183 W/KeyguardServiceWrapper(531): at android.os.BinderProxy.transact(Native Method)
06-11 15:25:31.183 W/KeyguardServiceWrapper(531): at com.android.internal.policy.IKeyguardService$Stub$Proxy.setHidden(IKeyguardService.java:373)
06-11 15:25:31.183 W/KeyguardServiceWrapper(531): at com.android.internal.policy.impl.keyguard.KeyguardServiceWrapper.setHidden(KeyguardServiceWrapper.java:106)
06-11 15:25:31.183 W/KeyguardServiceWrapper(531): at com.android.internal.policy.impl.keyguard.KeyguardServiceDelegate.setHidden(KeyguardServiceDelegate.java:177)
06-11 15:25:31.183 W/KeyguardServiceWrapper(531): at com.android.internal.policy.impl.PhoneWindowManager.finishPostLayoutPolicyLw(PhoneWindowManager.java:4485)
06-11 15:25:31.183 W/KeyguardServiceWrapper(531): at com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner(WindowManagerService.java:9205)
06-11 15:25:31.183 W/KeyguardServiceWrapper(531): at com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedLoop(WindowManagerService.java:8349)
06-11 15:25:31.183 W/KeyguardServiceWrapper(531): at com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLocked(WindowManagerService.java:8291)
06-11 15:25:31.183 W/KeyguardServiceWrapper(531): at com.android.server.wm.WindowManagerService.removeWindowInnerLocked(WindowManagerService.java:2670)
06-11 15:25:31.183 W/KeyguardServiceWrapper(531): at com.android.server.wm.WindowManagerService.removeWindowLocked(WindowManagerService.java:2566)
06-11 15:25:31.183 W/KeyguardServiceWrapper(531): at com.android.server.wm.WindowManagerService.removeWindowLocked(WindowManagerService.java:2493)
06-11 15:25:31.183 W/KeyguardServiceWrapper(531): at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1068)
06-11 15:25:31.183 W/KeyguardServiceWrapper(531): at android.os.BinderProxy.sendDeathNotice(Binder.java:493)
06-11 15:25:31.183 I/WindowState(531): WIN DEATH: Window{657ca770 u0 Keyguard}
06-11 15:25:32.074 W/ActivityManager(531): Scheduling restart of crashed service com.android.keyguard/.KeyguardService in 0ms
06-11 15:25:32.955 V/KeyguardService(15366): onCreate()
06-11 15:25:36.629 V/KeyguardTouchDelegate(15366): Connected to keyguard
06-11 15:27:42.439 W/ActivityManager(531): Scheduling restart of crashed service com.android.keyguard/.KeyguardService in 0ms
06-11 15:27:42.439 I/WindowState(531): WIN DEATH: Window{65c9a548 u0 Keyguard}
06-11 15:27:42.449 V/WindowManager(531): Removing keyguard window (Did it crash?)
06-11 15:27:42.669 V/KeyguardService(15573): onCreate()
06-11 15:27:44.992 V/KeyguardTouchDelegate(15573): Connected to keyguard