/frameworks/base/services/incremental/ |
D | ServiceWrappers.cpp | 141 return incfs::toString(fileId); in toString() 148 Features features() const final { return incfs::features(); } in features() 150 for (auto mount : incfs::defaultMountRegistry().copyMounts()) { in listExistingMounts() 155 Control openMount(std::string_view path) const final { return incfs::open(path); } in openMount() 158 return incfs::createControl(cmd, pendingReads, logs, blocksWritten); in createControl() 161 incfs::NewFileParams params) const final { in makeFile() 162 return incfs::makeFile(control, path, mode, id, params); in makeFile() 165 incfs::NewMappedFileParams params) const final { in makeMappedFile() 166 return incfs::makeMappedFile(control, path, mode, params); in makeMappedFile() 169 return incfs::makeDir(control, path, mode); in makeDir() [all …]
|
D | ServiceWrappers.h | 77 using Control = incfs::Control; 78 using FileId = incfs::FileId; 79 using ErrorCode = incfs::ErrorCode; 80 using UniqueFd = incfs::UniqueFd; 81 using WaitResult = incfs::WaitResult; 82 using Features = incfs::Features; 83 using Metrics = incfs::Metrics; 84 using LastReadError = incfs::LastReadError; 101 incfs::NewFileParams params) const = 0; 103 incfs::NewMappedFileParams params) const = 0; [all …]
|
D | IncrementalService.h | 60 using FileId = incfs::FileId; 61 using BlockIndex = incfs::BlockIndex; 62 using RawMetadata = incfs::RawMetadata; 176 incfs::NewFileParams params, std::span<const uint8_t> data); 184 incfs::LoadingState isFileFullyLoaded(StorageId storage, std::string_view filePath) const; 185 incfs::LoadingState isMountFullyLoaded(StorageId storage) const; 279 const incfs::UniqueControl& initializeHealthControl(); 315 incfs::UniqueControl mHealthControl; 321 std::vector<incfs::ReadInfoWithUid> mLastPendingReads; 337 using Control = incfs::UniqueControl; [all …]
|
D | BinderIncrementalService.cpp | 49 return incfs::enabled(); in incFsEnabled() 190 static std::tuple<int, incfs::FileId, incfs::NewFileParams> toMakeFileParams( in toMakeFileParams() 192 incfs::FileId id; in toMakeFileParams() 203 incfs::NewFileParams nfp; in toMakeFileParams() 298 if (id.size() != sizeof(incfs::FileId)) { in getMetadataById()
|
D | IncrementalService.cpp | 208 static ProtoMessage parseFromIncfs(const IncFsWrapper* incfs, const Control& control, in parseFromIncfs() argument 210 auto md = incfs->getMetadata(control, path); in parseFromIncfs() 422 static const char* loadingStateToString(incfs::LoadingState state) { in loadingStateToString() 424 case (incfs::LoadingState::Full): in loadingStateToString() 426 case (incfs::LoadingState::MissingBlocks): in loadingStateToString() 434 dprintf(fd, "Incremental is %s\n", incfs::enabled() ? "ENABLED" : "DISABLED"); in onDump() 547 return mIncFs->isEverythingFullyLoaded(ifs.control) == incfs::LoadingState::MissingBlocks; in needStartDataLoaderLocked() 1151 const IncFsMount& incfs, IncFsMount::StorageMap::const_iterator storageIt, in normalizePathToStorageLocked() argument 1161 const auto bindIt = findParentPath(incfs.bindPoints, normPath); in normalizePathToStorageLocked() 1162 if (bindIt == incfs.bindPoints.end()) { in normalizePathToStorageLocked() [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | Asset.h | 106 virtual incfs::map_ptr<void> getIncFsBuffer(bool aligned) = 0; 216 static std::unique_ptr<Asset> createFromUncompressedMap(incfs::IncFsFileMap&& dataMap, 226 static std::unique_ptr<Asset> createFromCompressedMap(incfs::IncFsFileMap&& dataMap, 269 status_t openChunk(incfs::IncFsFileMap&& dataMap, base::unique_fd fd); 278 incfs::map_ptr<void> getIncFsBuffer(bool aligned) override; 285 incfs::map_ptr<void> ensureAlignment(const incfs::IncFsFileMap& map); 302 std::optional<incfs::IncFsFileMap> mMap; // for memory map 327 status_t openChunk(incfs::IncFsFileMap&& dataMap, size_t uncompressedLen); 336 virtual incfs::map_ptr<void> getIncFsBuffer(bool aligned); 351 std::optional<incfs::IncFsFileMap> mMap; // for memory-mapped input
|
D | Chunk.h | 39 explicit Chunk(incfs::verified_map_ptr<ResChunk_header> chunk) : device_chunk_(chunk) {} in Chunk() 52 inline incfs::map_ptr<T> header() const { in header() 56 inline incfs::map_ptr<void> data_ptr() const { in data_ptr() 63 const incfs::verified_map_ptr<ResChunk_header> device_chunk_; 84 ChunkIterator(incfs::map_ptr<void> data, size_t len) in ChunkIterator() 113 incfs::map_ptr<ResChunk_header> next_chunk_;
|
D | LoadedArsc.h | 52 incfs::verified_map_ptr<ResTable_type> type; 61 incfs::verified_map_ptr<ResTable_typeSpec> type_spec; 175 static base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError> 176 GetEntry(incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index); 179 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index); 181 static base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError> 182 GetEntryFromOffset(incfs::verified_map_ptr<ResTable_type> type_chunk, uint32_t offset); 320 static std::unique_ptr<LoadedArsc> Load(incfs::map_ptr<void> data,
|
D | StreamingZipInflater.h | 39 StreamingZipInflater(const incfs::IncFsFileMap* dataMap, size_t uncompSize); 59 const incfs::IncFsFileMap* mDataMap;
|
D | ResourceTypes.h | 523 status_t setTo(incfs::map_ptr<void> data, size_t size, bool copyData = false); 543 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> styleAt( 545 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> styleAt(size_t idx) const; 552 incfs::map_ptr<void> data() const; 560 incfs::verified_map_ptr<ResStringPool_header> mHeader; 563 incfs::map_ptr<uint32_t> mEntries; 564 incfs::map_ptr<uint32_t> mEntryStyles; 565 incfs::map_ptr<void> mStrings; 568 incfs::map_ptr<uint32_t> mStyles; 576 size_t idx, incfs::map_ptr<uint8_t> str, size_t encLen) const;
|
D | ZipUtils.h | 45 static bool inflateToBuffer(incfs::map_ptr<void> in, void* buf,
|
D | ZipFileRO.h | 172 std::optional<incfs::IncFsFileMap> createEntryIncFsFileMap(ZipEntryRO entry) const;
|
D | Util.h | 104 inline bool IsFourByteAligned(const incfs::map_ptr<T>& data) { in IsFourByteAligned()
|
/frameworks/base/libs/androidfw/ |
D | LoadedArsc.cpp | 54 explicit TypeSpecBuilder(incfs::verified_map_ptr<ResTable_typeSpec> header) : header_(header) { in TypeSpecBuilder() 58 void AddType(incfs::verified_map_ptr<ResTable_type> type) { in AddType() 72 incfs::verified_map_ptr<ResTable_typeSpec> header_; 80 static bool VerifyResTableType(incfs::map_ptr<ResTable_type> header) { in VerifyResTableType() 116 static base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError> 117 VerifyResTableEntry(incfs::verified_map_ptr<ResTable_type> type, uint32_t entry_offset) { in VerifyResTableEntry() 242 base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError> LoadedPackage::GetEntry( in GetEntry() 243 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index) { in GetEntry() 252 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index) { in GetEntryOffset() 265 [&error](const incfs::map_ptr<ResTable_sparseTypeEntry>& entry, in GetEntryOffset() [all …]
|
D | ZipUtils.cpp | 84 BufferReader(incfs::map_ptr<void> input, size_t inputSize) : Reader(), in BufferReader() 94 const incfs::map_ptr<uint8_t> pos = mInput.offset(offset); in ReadAtOffset() 104 const incfs::map_ptr<uint8_t> mInput; 146 /*static*/ bool ZipUtils::inflateToBuffer(incfs::map_ptr<void> in, void* buf, in inflateToBuffer()
|
D | Asset.cpp | 301 /*static*/ std::unique_ptr<Asset> Asset::createFromUncompressedMap(incfs::IncFsFileMap&& dataMap, in createFromUncompressedMap() 320 /*static*/ std::unique_ptr<Asset> Asset::createFromCompressedMap(incfs::IncFsFileMap&& dataMap, in createFromCompressedMap() 454 status_t _FileAsset::openChunk(incfs::IncFsFileMap&& dataMap, base::unique_fd fd) in openChunk() 605 incfs::map_ptr<void> _FileAsset::getIncFsBuffer(bool aligned) in getIncFsBuffer() 652 incfs::IncFsFileMap map; in getIncFsBuffer() 700 incfs::map_ptr<void> _FileAsset::ensureAlignment(const incfs::IncFsFileMap& map) in ensureAlignment() 799 status_t _CompressedAsset::openChunk(incfs::IncFsFileMap&& dataMap, size_t uncompressedLen) in openChunk() 955 incfs::map_ptr<void> _CompressedAsset::getIncFsBuffer(bool aligned) { in getIncFsBuffer() 956 return incfs::map_ptr<void>(getBuffer(aligned)); in getIncFsBuffer()
|
D | ChunkIterator.cpp | 27 const incfs::map_ptr<ResChunk_header> this_chunk = next_chunk_; in Next()
|
D | ZipFileRO.cpp | 261 std::optional<incfs::IncFsFileMap> ZipFileRO::createEntryIncFsFileMap(ZipEntryRO entry) const in createEntryIncFsFileMap() 274 incfs::IncFsFileMap newMap; in createEntryIncFsFileMap()
|
D | StreamingZipInflater.cpp | 73 StreamingZipInflater::StreamingZipInflater(const incfs::IncFsFileMap* dataMap, size_t uncompSize) { in StreamingZipInflater()
|
D | AssetsProvider.cpp | 62 incfs::IncFsFileMap file_map; in CreateAssetFromFd() 175 incfs::IncFsFileMap asset_map; in OpenInternal()
|
D | AssetManager2.cpp | 45 using EntryValue = std::variant<Res_value, incfs::verified_map_ptr<ResTable_map_entry>>; 51 incfs::verified_map_ptr<ResTable_entry> table_entry) { in GetEntryValue() 830 incfs::verified_map_ptr<ResTable_type> best_type; in FindEntryInternal() 1054 auto entry_map = std::get_if<incfs::verified_map_ptr<ResTable_map_entry>>(&entry->entry); in GetParentThemeResourceId() 1097 auto result_map_entry = std::get_if<incfs::verified_map_ptr<ResTable_map_entry>>(&result->entry); in GetResource() 1222 auto entry_map = std::get_if<incfs::verified_map_ptr<ResTable_map_entry>>(&entry->entry); in GetBag()
|
D | ResourceTypes.cpp | 114 static status_t validate_chunk(const incfs::map_ptr<ResChunk_header>& chunk, in validate_chunk() 116 const incfs::map_ptr<uint8_t> dataEnd, in validate_chunk() 500 status_t ResStringPool::setTo(incfs::map_ptr<void> data, size_t size, bool copyData) in setTo() 753 static inline base::expected<size_t, IOError> decodeLength(incfs::map_ptr<uint16_t>* str) in decodeLength() 781 static inline base::expected<size_t, IOError> decodeLength(incfs::map_ptr<uint8_t>* str) in decodeLength() 987 size_t idx, incfs::map_ptr<uint8_t> str, size_t encLen) const in stringDecodeAt() 1039 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> ResStringPool::styleAt( in styleAt() 1045 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> ResStringPool::styleAt( in styleAt() 1244 incfs::map_ptr<void> ResStringPool::data() const in data()
|
/frameworks/base/libs/androidfw/fuzz/resxmlparser_fuzzer/ |
D | Android.bp | 46 "system/incremental_delivery/incfs/util/include/",
|
/frameworks/base/services/incremental/test/ |
D | IncrementalServiceTest.cpp | 44 using namespace android::incfs; 401 incfs::LoadingState(const Control& control, std::string_view path)); 402 MOCK_CONST_METHOD2(isFileFullyLoaded, incfs::LoadingState(const Control& control, FileId id)); 403 MOCK_CONST_METHOD1(isEverythingFullyLoaded, incfs::LoadingState(const Control& control)); 413 std::vector<incfs::ReadInfoWithUid>* pendingReadsBuffer)); 455 std::vector<incfs::ReadInfoWithUid>* pendingReadsBuffer) { in waitForPendingReadsSuccess() 457 return android::incfs::WaitResult::HaveData; in waitForPendingReadsSuccess() 463 .WillByDefault(Return(android::incfs::WaitResult::Timeout)); in waitForPendingReadsTimeout() 681 std::unique_ptr<MockIncFs> incfs, in MockServiceManager() argument 690 mIncFs(std::move(incfs)), in MockServiceManager() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_pm_PackageManagerShellCommandDataLoader.cpp | 671 android::incfs::toString(fileId).c_str()); in onPendingReadsWithUid() 834 if (!android::incfs::isValidFileId(fileId)) { in receiver()
|