Add APIs to manage WriteBooster buffer
Five new APIs are introduced to manage and flush
UFS WriteBooster buffer.
Bug: 349648148
Test: StorageManager.*WriteBooster*
Change-Id: I2f82a2d8b08d83a63cbc3da4d9512792b0d472ba
Signed-off-by: Daniel Lee <chullee@google.com>
diff --git a/binder/android/os/IVold.aidl b/binder/android/os/IVold.aidl
index 810fdad..15213ea 100644
--- a/binder/android/os/IVold.aidl
+++ b/binder/android/os/IVold.aidl
@@ -143,6 +143,12 @@
// on failure.
int getStorageRemainingLifetime();
+ int getWriteBoosterBufferSize();
+ int getWriteBoosterBufferAvailablePercent();
+ boolean setWriteBoosterBufferFlush(boolean enable);
+ boolean setWriteBoosterBufferOn(boolean enable);
+ int getWriteBoosterLifeTimeEstimate();
+
const int FSTRIM_FLAG_DEEP_TRIM = 1;
const int MOUNT_FLAG_PRIMARY = 1;