Battery optimizations for proactive sync

* Only run local syncs in response to MediaProvider file events.
* Proactive syncs should only run when the device is charging and idle.

Bug: b/311851723
Test: atest PickerSyncManagerTest

Change-Id: I6c13d9caabb9602d6f6946f63a33b6a59573ec2d
4 files changed