Move onWakelockChanging updates to the Notifier thread

As both acquire and release wakelock calls are being notified to the BatteryStats via the notifier thread, wakelock changes should also follow the same pattern.

Bug: 354303438
Flag: com.android.server.power.feature.flags.improve_wakelock_latency
Test: atest NotifierTest
Change-Id: Ie383e485482a4d09c4570469e5b74ef10ea08693
2 files changed