OSDN Git Service

Trim both internal and adopted private storage.
authorJeff Sharkey <jsharkey@android.com>
Fri, 26 Jun 2015 21:02:09 +0000 (14:02 -0700)
committerJeff Sharkey <jsharkey@android.com>
Wed, 1 Jul 2015 22:53:51 +0000 (15:53 -0700)
commitc86ab6f538bec63638c168d6c843fe7cf73add3b
tree528f2ce9a138356824723f7268cd1191f1666c94
parentc7b5b570bd05ed3bc921b0c2dc346416a52b4e3e
Trim both internal and adopted private storage.

Refactor fstrim code to be encapsulated in unique task object, and
give it option of benchmarking when finished.  Trimming now includes
both storage from fstab and adopted private volumes.  Cleaner timing
stats are logged for each unique volume.

Add wakelock during ongoing async move tasks.  Push disk sysfs path
to framework so it can parse any SD card registers as desired.

Bug: 21831325
Change-Id: I76577685f5cae4929c251ad314ffdaeb5eb1c8bf
17 files changed:
Android.mk
Benchmark.cpp
Benchmark.h
CommandListener.cpp
Disk.cpp
Disk.h
MoveTask.cpp
ResponseCode.h
TrimTask.cpp [new file with mode: 0644]
TrimTask.h [new file with mode: 0644]
Utils.cpp
Utils.h
VolumeManager.cpp
VolumeManager.h
fstrim.c [deleted file]
fstrim.h [deleted file]
main.cpp