Home
last modified time | relevance | path

Searched refs:FileId (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/incremental/
DServiceWrappers.h78 using FileId = incfs::FileId; variable
90 using FileCallback = android::base::function_ref<bool(const Control& control, FileId fileId)>;
92 static std::string toString(FileId fileId);
100 virtual ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId id,
106 virtual incfs::RawMetadata getMetadata(const Control& control, FileId fileid) const = 0;
108 virtual FileId getFileId(const Control& control, std::string_view path) const = 0;
113 virtual incfs::LoadingState isFileFullyLoaded(const Control& control, FileId id) const = 0;
118 virtual UniqueFd openForSpecialOps(const Control& control, FileId id) const = 0;
120 virtual ErrorCode reserveSpace(const Control& control, FileId id, IncFsSize size) const = 0;
DServiceWrappers.cpp140 std::string IncFsWrapper::toString(FileId fileId) { in toString()
160 ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId id, in makeFile()
174 incfs::RawMetadata getMetadata(const Control& control, FileId fileid) const final { in getMetadata()
180 FileId getFileId(const Control& control, std::string_view path) const final { in getFileId()
218 incfs::LoadingState isFileFullyLoaded(const Control& control, FileId id) const final { in isFileFullyLoaded()
230 incfs::UniqueFd openForSpecialOps(const Control& control, FileId id) const final { in openForSpecialOps()
236 ErrorCode reserveSpace(const Control& control, FileId id, IncFsSize size) const final { in reserveSpace()
260 [&](auto& control, FileId id) { return cb(control, id); }); in forEachFile()
263 return incfs::forEachIncompleteFile(control, [&](auto& control, FileId id) { in forEachIncompleteFile()
DIncrementalService.h60 using FileId = incfs::FileId; variable
145 static FileId idFromMetadata(std::span<const uint8_t> metadata);
146 static inline FileId idFromMetadata(std::span<const char> metadata) { in idFromMetadata()
175 int makeFile(StorageId storage, std::string_view path, int mode, FileId id,
194 RawMetadata getMetadata(StorageId storage, FileId node) const;
452 int setFileContent(const IfsMountPtr& ifs, const incfs::FileId& fileId,
461 const incfs::FileId& libFileId, std::string_view debugLibPath,
DBinderIncrementalService.cpp190 static std::tuple<int, incfs::FileId, incfs::NewFileParams> toMakeFileParams( in toMakeFileParams()
192 incfs::FileId id; in toMakeFileParams()
286 static FileId toFileId(const std::vector<uint8_t>& id) { in toFileId()
287 FileId fid = {}; in toFileId()
295 if (id.size() != sizeof(incfs::FileId)) { in getMetadataById()
DIncrementalService.cpp1163 int IncrementalService::makeFile(StorageId storage, std::string_view path, int mode, FileId id, in makeFile()
1359 RawMetadata IncrementalService::getMetadata(StorageId storage, FileId node) const { in getMetadata()
1911 incfs::FileId sourceId; in configureNativeBinaries()
1991 incfs::FileId libFileId = idFromMetadata(targetLibPath); in configureNativeBinaries()
2056 ZipEntry& entry, const incfs::FileId& libFileId, in extractZipFile()
2121 int IncrementalService::setFileContent(const IfsMountPtr& ifs, const incfs::FileId& fileId, in setFileContent()
3196 FileId IncrementalService::idFromMetadata(std::span<const uint8_t> metadata) { in idFromMetadata()
/frameworks/base/services/core/jni/
Dcom_android_server_pm_PackageManagerShellCommandDataLoader.cpp665 const android::dataloader::FileId& fileId = pendingRead.id; in onPendingReadsWithUid()
687 android::dataloader::FileId fileId;
835 const android::dataloader::FileId fileId = convertFileIndexToFileId(mode, fileIdx); in receiver()
881 FileIdx convertFileIdToFileIndex(android::dataloader::FileId fileId) { in convertFileIdToFileIndex()
900 android::dataloader::FileId convertFileIndexToFileId(MetadataMode mode, FileIdx fileIdx) { in convertFileIndexToFileId()
/frameworks/base/services/incremental/test/
DIncrementalServiceTest.cpp386 ErrorCode(const Control& control, std::string_view path, int mode, FileId id,
394 MOCK_CONST_METHOD2(getMetadata, RawMetadata(const Control& control, FileId fileid));
396 MOCK_CONST_METHOD2(getFileId, FileId(const Control& control, std::string_view path));
402 MOCK_CONST_METHOD2(isFileFullyLoaded, incfs::LoadingState(const Control& control, FileId id));
408 MOCK_CONST_METHOD2(openForSpecialOps, UniqueFd(const Control& control, FileId id));
410 MOCK_CONST_METHOD3(reserveSpace, ErrorCode(const Control& control, FileId id, IncFsSize size));