Move WakelockStateChanged atom logging closer to event source

Previous logging was downstream in BatteryStats on a different thread.
By moving this close to where the event happens, we should eliminate
most of the scheduling delay.

Flag: com.android.server.power.feature.flags.move_wsc_logging_to_notifier
Bug: 352602149
Bug: 323029997
Test: atest PowerServiceTests:NotifierTest
Change-Id: If8f0ad01e43fea97da3e7192e0b1c55c4339d5a1
9 files changed