diff options
author | 2020-09-12 16:12:36 -0700 | |
---|---|---|
committer | 2020-09-21 12:40:56 -0700 | |
commit | b39d13ed7f15d0c2d0a29f55e925318f44d31fa7 (patch) | |
tree | 5dc8ca839d6b5512d542fb6f8505fa73cf78aef3 /services/incremental/IncrementalService.h | |
parent | b4ada7780762f6f450ce153217da9f4bbc08700b (diff) |
Installer digests for Incremental installations.
Bug: 160605420
Test: atest ChecksumsTest
Change-Id: I9d46c218cccf87781e9b33711c4d02d94bf824f5
Diffstat (limited to 'services/incremental/IncrementalService.h')
-rw-r--r-- | services/incremental/IncrementalService.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/services/incremental/IncrementalService.h b/services/incremental/IncrementalService.h index a49e0f36c9bc..d820417e73ed 100644 --- a/services/incremental/IncrementalService.h +++ b/services/incremental/IncrementalService.h @@ -127,7 +127,7 @@ public: int setStorageParams(StorageId storage, bool enableReadLogs); int makeFile(StorageId storage, std::string_view path, int mode, FileId id, - incfs::NewFileParams params); + incfs::NewFileParams params, std::span<const uint8_t> data); int makeDir(StorageId storage, std::string_view path, int mode = 0755); int makeDirs(StorageId storage, std::string_view path, int mode = 0755); @@ -349,13 +349,16 @@ private: int isFileFullyLoadedFromPath(const IncFsMount& ifs, std::string_view filePath) const; float getLoadingProgressFromPath(const IncFsMount& ifs, std::string_view path) const; + int setFileContent(const IfsMountPtr& ifs, const incfs::FileId& fileId, + std::string_view debugFilePath, std::span<const uint8_t> data) const; + void registerAppOpsCallback(const std::string& packageName); bool unregisterAppOpsCallback(const std::string& packageName); void onAppOpChanged(const std::string& packageName); void runJobProcessing(); void extractZipFile(const IfsMountPtr& ifs, ZipArchiveHandle zipFile, ZipEntry& entry, - const incfs::FileId& libFileId, std::string_view targetLibPath, + const incfs::FileId& libFileId, std::string_view debugLibPath, Clock::time_point scheduledTs); void runCmdLooper(); |