Home
last modified time | relevance | path

Searched refs:overlayPaths (Results 1 - 11 of 11) sorted by relevance

/base/global/resource_management/frameworks/resmgr/src/
H A Dsystem_resource_manager.cpp111 vector<string> overlayPaths; in LoadSystemResource() local
112 overlayPaths.push_back(SYSTEM_RESOURCE_OVERLAY_PATH_COMPRESSED); in LoadSystemResource()
113 return impl->AddResource(sysPkgNamePath.c_str(), overlayPaths); in LoadSystemResource()
121 vector<string> overlayPaths; in LoadSystemResource() local
122 overlayPaths.push_back(SYSTEM_RESOURCE_OVERLAY_PATH_COMPRESSED); in LoadSystemResource()
123 result = impl->AddResource(sysHapNamePath.c_str(), overlayPaths); in LoadSystemResource()
H A Dhap_manager.cpp387 bool HapManager::AddResource(const std::string &path, const std::vector<std::string> &overlayPaths) in AddResource() argument
391 if (!targetOverlay.empty() && targetOverlay == overlayPaths) { in AddResource()
396 std::unordered_map<std::string, std::shared_ptr<HapResource>> result = HapResource::LoadOverlays(path, overlayPaths, in AddResource()
407 for (auto iter = overlayPaths.rbegin(); iter != overlayPaths.rend(); iter++) { in AddResource()
412 loadedHapPaths_[path] = overlayPaths; in AddResource()
439 std::vector<std::string> overlayPaths; in AddAppOverlay() local
440 overlayPaths.emplace_back(outPath); in AddAppOverlay()
442 return AddResource(appPath, overlayPaths); in AddAppOverlay()
454 std::vector<std::string> overlayPaths; in RemoveAppOverlay() local
544 std::vector<std::string> &overlayPaths = iter->second; ReloadAll() local
980 RemoveResource(const std::string &path, const std::vector<std::string> &overlayPaths) RemoveResource() argument
1046 const std::vector<std::string> &overlayPaths = iter->second; AddSystemResource() local
[all...]
H A Dhap_resource.cpp222 const std::vector<std::string> &overlayPaths, std::shared_ptr<ResConfigImpl> &defaultConfig, bool isSystem) in LoadOverlays()
235 for (auto iter = overlayPaths.begin(); iter != overlayPaths.end(); iter++) { in LoadOverlays()
221 LoadOverlays(const std::string &path, const std::vector<std::string> &overlayPaths, std::shared_ptr<ResConfigImpl> &defaultConfig, bool isSystem) LoadOverlays() argument
H A Dresource_manager_impl.cpp1100 bool ResourceManagerImpl::AddResource(const std::string &path, const std::vector<std::string> &overlayPaths) in AddResource() argument
1102 return this->hapManager_->AddResource(path, overlayPaths); in AddResource()
1105 bool ResourceManagerImpl::RemoveResource(const std::string &path, const std::vector<std::string> &overlayPaths) in RemoveResource() argument
1107 return this->hapManager_->RemoveResource(path, overlayPaths); in RemoveResource()
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dresource_manager_test_hap.cpp894 std::vector<std::string> overlayPaths; in HWTEST_F() local
895 overlayPaths.push_back(FormatFullPath(g_overlayResFilePath).c_str()); in HWTEST_F()
896 bool ret = ((ResourceManagerImpl *)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayPaths); in HWTEST_F()
918 std::vector<std::string> overlayPaths; in HWTEST_F() local
919 overlayPaths.push_back(FormatFullPath(g_overlayResFilePath).c_str()); in HWTEST_F()
920 bool ret = ((ResourceManagerImpl*)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayPaths); in HWTEST_F()
922 ret = ((ResourceManagerImpl*)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayPaths); in HWTEST_F()
923 // repeat add the same overlayPaths in HWTEST_F()
933 ret = ((ResourceManagerImpl*)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayPaths); in HWTEST_F()
947 std::vector<std::string> overlayPaths; in HWTEST_F() local
971 std::vector<std::string> overlayPaths; HWTEST_F() local
1041 std::vector<std::string> overlayPaths; HWTEST_F() local
[all...]
H A Dresource_manager_test_string.cpp125 std::vector<std::string> overlayPaths; in HWTEST_F() local
126 overlayPaths.push_back(FormatFullPath(g_overlayResFilePath).c_str()); in HWTEST_F()
127 bool ret = ((ResourceManagerImpl*)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayPaths); in HWTEST_F()
141 std::vector<std::string> overlayPaths; in HWTEST_F() local
142 overlayPaths.push_back(FormatFullPath(g_overlayResFilePath).c_str()); in HWTEST_F()
143 bool ret = ((ResourceManagerImpl*)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayPaths); in HWTEST_F()
214 std::vector<std::string> overlayPaths; in HWTEST_F() local
215 overlayPaths.push_back(FormatFullPath(g_overlayResFilePath).c_str()); in HWTEST_F()
216 bool ret = ((ResourceManagerImpl *)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayPaths); in HWTEST_F()
231 std::vector<std::string> overlayPaths; in HWTEST_F() local
[all...]
H A Dresource_manager_test.cpp119 std::vector<std::string> overlayPaths; in HWTEST_F() local
120 overlayPaths.push_back(FormatFullPath(g_overlayResFilePath).c_str()); in HWTEST_F()
121 bool ret = ((ResourceManagerImpl *)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayPaths); in HWTEST_F()
134 std::vector<std::string> overlayPaths; in HWTEST_F() local
135 overlayPaths.push_back(FormatFullPath(g_overlayResFilePath).c_str()); in HWTEST_F()
136 bool ret = ((ResourceManagerImpl*)rm)->AddResource("notexist/resources.index", overlayPaths); in HWTEST_F()
149 std::vector<std::string> overlayPaths; in HWTEST_F() local
150 overlayPaths.push_back(FormatFullPath("notexist/resources.index")); in HWTEST_F()
151 bool ret = ((ResourceManagerImpl*)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayPaths); in HWTEST_F()
/base/global/resource_management/frameworks/resmgr/include/
H A Dhap_manager.h87 * @param overlayPaths the exist overlay resource path
90 bool AddResource(const std::string &path, const std::vector<std::string> &overlayPaths);
95 * @param overlayPaths the exist overlay resource path
98 bool RemoveResource(const std::string &path, const std::vector<std::string> &overlayPaths);
H A Dresource_manager_impl.h70 * @param overlayPaths the exist overlay resource path
73 virtual bool AddResource(const std::string &path, const std::vector<std::string> &overlayPaths);
78 * @param overlayPaths the exist overlay resource path
81 virtual bool RemoveResource(const std::string &path, const std::vector<std::string> &overlayPaths);
/base/global/resource_management/interfaces/inner_api/include/
H A Dresource_manager.h179 virtual bool AddResource(const std::string &path, const std::vector<std::string> &overlayPaths) = 0;
181 virtual bool RemoveResource(const std::string &path, const std::vector<std::string> &overlayPaths) = 0;
/base/global/resource_management/test/fuzztest/resmgr_fuzzer/
H A Dresmgr_fuzzer.cpp46 std::vector<std::string> overlayPaths; in RemoveResourceFuzzTest() local
49 result = rm->RemoveResource(testName.c_str(), overlayPaths); in RemoveResourceFuzzTest()

Completed in 16 milliseconds