platform_system_vold/binder/android/os
Jin Qian a370c14f75 Add functions to handle idle maintenance
runIdleMaint is equivalent with:

1. echo 1 > /sys/fs/f2fs/sdX/gc_urgent
2. wait until /sys/fs/f2fs/sdX/dirty_segments
     <= threshold or timeout
3. echo 0 > /sys/fs/f2fs/sdX/gc_urgent
4. fstrim

abortIdleMaint forces the wait loop above to exit and
skips fstrim. However, if fstrim is already running,
abortIdleMaint will just leave it run to completion.

Test: adb shell sm idle-maint [run|abort]
Bug: 67776637
Change-Id: I4adff8d9b6bbd63bce41368cea55dc9e9b117eb6
2017-11-14 15:12:30 -08:00
..
IVold.aidl Add functions to handle idle maintenance 2017-11-14 15:12:30 -08:00
IVoldListener.aidl Move unsolicited vold events to Binder. 2017-09-13 11:52:53 -06:00
IVoldTaskListener.aidl Move long-running calls to async with listeners. 2017-09-15 14:18:00 -06:00