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/VoldNativeService.h b/VoldNativeService.h
index a5253c0..2d0613c 100644
--- a/VoldNativeService.h
+++ b/VoldNativeService.h
@@ -165,6 +165,12 @@
binder::Status destroyDsuMetadataKey(const std::string& dsuSlot) override;
binder::Status getStorageSize(int64_t* storageSize) override;
+
+ binder::Status getWriteBoosterBufferSize(int32_t* _aidl_return);
+ binder::Status getWriteBoosterBufferAvailablePercent(int32_t* _aidl_return);
+ binder::Status setWriteBoosterBufferFlush(bool enable, bool* _aidl_return);
+ binder::Status setWriteBoosterBufferOn(bool enable, bool* _aidl_return);
+ binder::Status getWriteBoosterLifeTimeEstimate(int32_t* _aidl_return);
};
} // namespace vold