Home
last modified time | relevance | path

Searched refs:fileMap (Results 1 - 6 of 6) sorted by relevance

/base/update/sys_installer/services/module_update/src/
H A Dmodule_file_repository.cpp42 auto& fileMap = moduleFileMap_[hmpName]; in InitRepository() local
48 ProcessFile(hmpName, path, file, fileMap, timer); in InitRepository()
86 std::unordered_map<std::string, ModuleFile> &fileMap, const Timer &timer) const in ProcessFile()
118 fileMap.insert(std::make_pair(path, std::move(*moduleFile))); in ProcessFile()
129 std::unordered_map<std::string, ModuleFile> fileMap = mapIter->second; in GetModuleFile() local
130 auto fileIter = fileMap.find(pathPrefix); in GetModuleFile()
131 if (fileIter == fileMap.end()) { in GetModuleFile()
165 std::unordered_map<std::string, ModuleFile> &fileMap = mapIter->second; in Clear() local
166 for (auto fileIter = fileMap.begin(); fileIter != fileMap in Clear()
85 ProcessFile(const string &hmpName, const string &path, const string &file, std::unordered_map<std::string, ModuleFile> &fileMap, const Timer &timer) const ProcessFile() argument
[all...]
/base/web/webview/ohos_adapter/ohos_resource_adapter/src/
H A Dohos_resource_adapter_impl.cpp243 OhosFileMapperImpl::OhosFileMapperImpl(std::unique_ptr<OHOS::AbilityBase::FileMapper> fileMap, in OhosFileMapperImpl() argument
244 const std::shared_ptr<Extractor>& extractor): extractor_(extractor), fileMap_(std::move(fileMap)) in OhosFileMapperImpl()
506 std::unique_ptr<OHOS::AbilityBase::FileMapper> fileMap; in GetRawFileMapper() local
509 fileMap = manager->GetMmapData(rawFile); in GetRawFileMapper()
511 fileMap = manager->GetData(rawFile); in GetRawFileMapper()
513 if (fileMap == nullptr) { in GetRawFileMapper()
516 bool isCompressed = fileMap->IsCompressed(); in GetRawFileMapper()
517 return std::make_shared<OhosFileMapperImpl>(std::move(fileMap), isCompressed ? manager: nullptr); in GetRawFileMapper()
/base/update/sys_installer/services/module_update/include/
H A Dmodule_file_repository.h42 std::unordered_map<std::string, ModuleFile> &fileMap, const Timer &timer) const;
/base/update/updater/test/unittest/script/script_instruction/
H A Dscript_instructionhelper_unittest.cpp96 const static std::unordered_map<std::string, FileInfo> fileMap {
100 if (auto it = fileMap.find(fileId); it != fileMap.end()) {
/base/web/webview/test/unittest/ohos_adapter/ohos_resource_adapter_test/
H A Dohos_resource_adapter_test.cpp183 std::unique_ptr<OHOS::AbilityBase::FileMapper> fileMap = std::make_unique<OHOS::AbilityBase::FileMapper>(); in HWTEST_F() local
184 EXPECT_NE(fileMap, nullptr); in HWTEST_F()
185 fileMap->CreateFileMapper(fileReader, hapPath, 0, hapPath.size(), true); in HWTEST_F()
186 OhosFileMapperImpl apperImpl(std::move(fileMap), extractor); in HWTEST_F()
/base/web/webview/ohos_adapter/ohos_resource_adapter/include/
H A Dohos_resource_adapter_impl.h26 OhosFileMapperImpl(std::unique_ptr<OHOS::AbilityBase::FileMapper> fileMap,

Completed in 5 milliseconds