diff options
author | Yurii Zubrytskyi <zyy@google.com> | 2020-01-10 11:53:24 -0800 |
---|---|---|
committer | Yurii Zubrytskyi <zyy@google.com> | 2020-01-28 12:10:17 -0800 |
commit | 4a25dfb2de3cf0f6dd81f4add3fd905db0834a38 (patch) | |
tree | fb36a044655007025be9e3fa8fb189281ac9698c /services/incremental/BinderIncrementalService.h | |
parent | 092993a72d710b7f5cb0f53aed736fd2675345e3 (diff) |
Port the current code to new IncFS
Bug: 146080380
Test: manual, "cmd incremental install-start"
Change-Id: I6761c3f0e58b6d4de1ae3c4b31c23204fba9f740
Diffstat (limited to 'services/incremental/BinderIncrementalService.h')
-rw-r--r-- | services/incremental/BinderIncrementalService.h | 63 |
1 files changed, 32 insertions, 31 deletions
diff --git a/services/incremental/BinderIncrementalService.h b/services/incremental/BinderIncrementalService.h index 37c9661db28d..a94a75a26875 100644 --- a/services/incremental/BinderIncrementalService.h +++ b/services/incremental/BinderIncrementalService.h @@ -37,38 +37,39 @@ public: void onSystemReady(); void onInvalidStorage(int mountId); - binder::Status openStorage(const std::string &path, int32_t *_aidl_return) final; - binder::Status createStorage( - const std::string &path, - const ::android::content::pm::DataLoaderParamsParcel ¶ms, - int32_t createMode, int32_t *_aidl_return) final; - binder::Status createLinkedStorage(const std::string &path, int32_t otherStorageId, - int32_t createMode, int32_t *_aidl_return) final; - binder::Status makeBindMount(int32_t storageId, const std::string &pathUnderStorage, - const std::string &targetFullPath, int32_t bindType, - int32_t *_aidl_return) final; - binder::Status deleteBindMount(int32_t storageId, const std::string &targetFullPath, - int32_t *_aidl_return) final; + binder::Status openStorage(const std::string& path, int32_t* _aidl_return) final; + binder::Status createStorage(const std::string& path, + const ::android::content::pm::DataLoaderParamsParcel& params, + int32_t createMode, int32_t* _aidl_return) final; + binder::Status createLinkedStorage(const std::string& path, int32_t otherStorageId, + int32_t createMode, int32_t* _aidl_return) final; + binder::Status makeBindMount(int32_t storageId, const std::string& sourcePath, + const std::string& targetFullPath, int32_t bindType, + int32_t* _aidl_return) final; + binder::Status deleteBindMount(int32_t storageId, const std::string& targetFullPath, + int32_t* _aidl_return) final; + binder::Status makeDirectory(int32_t storageId, const std::string& path, + int32_t* _aidl_return) final; + binder::Status makeDirectories(int32_t storageId, const std::string& path, + int32_t* _aidl_return) final; + binder::Status makeFile(int32_t storageId, const std::string& path, + const ::android::os::incremental::IncrementalNewFileParams& params, + int32_t* _aidl_return) final; + binder::Status makeFileFromRange(int32_t storageId, const std::string& targetPath, + const std::string& sourcePath, int64_t start, int64_t end, + int32_t* _aidl_return) final; + binder::Status makeLink(int32_t sourceStorageId, const std::string& sourcePath, + int32_t destStorageId, const std::string& destPath, + int32_t* _aidl_return) final; + binder::Status unlink(int32_t storageId, const std::string& path, int32_t* _aidl_return) final; + binder::Status isFileRangeLoaded(int32_t storageId, const std::string& path, int64_t start, + int64_t end, bool* _aidl_return) final; + binder::Status getMetadataByPath(int32_t storageId, const std::string& path, + std::vector<uint8_t>* _aidl_return) final; + binder::Status getMetadataById(int32_t storageId, const std::vector<uint8_t>& id, + std::vector<uint8_t>* _aidl_return) final; + binder::Status startLoading(int32_t storageId, bool* _aidl_return) final; binder::Status deleteStorage(int32_t storageId) final; - binder::Status makeDirectory(int32_t storageId, const std::string &pathUnderStorage, - int32_t *_aidl_return) final; - binder::Status makeDirectories(int32_t storageId, const std::string &pathUnderStorage, - int32_t *_aidl_return) final; - binder::Status makeFile(int32_t storageId, const std::string &pathUnderStorage, int64_t size, - const std::vector<uint8_t> &metadata, int32_t *_aidl_return) final; - binder::Status makeFileFromRange(int32_t storageId, const std::string &pathUnderStorage, - const std::string &sourcePathUnderStorage, int64_t start, - int64_t end, int32_t *_aidl_return); - binder::Status makeLink(int32_t sourceStorageId, const std::string &relativeSourcePath, - int32_t destStorageId, const std::string &relativeDestPath, - int32_t *_aidl_return) final; - binder::Status unlink(int32_t storageId, const std::string &pathUnderStorage, - int32_t *_aidl_return) final; - binder::Status isFileRangeLoaded(int32_t storageId, const std::string &relativePath, - int64_t start, int64_t end, bool *_aidl_return) final; - binder::Status getFileMetadata(int32_t storageId, const std::string &relativePath, - std::vector<uint8_t> *_aidl_return) final; - binder::Status startLoading(int32_t storageId, bool *_aidl_return) final; private: android::incremental::IncrementalService mImpl; |