Moved BatteryStats and AppOps wakelock updates to the notifier thread

We are moving the tasks performed on AppOpsManager and BatteryStats to
the handler thread to improve the latency of acquiring and releasing
the wakelocks.

Bug: 296508214
Test: atest NotifierTest
Change-Id: I65d81714c69459d5bdc0e278f2f48ad3e87edf14
2 files changed