Home
last modified time | relevance | path

Searched refs:defaultConfig (Results 1 – 10 of 10) sorted by relevance

/base/global/resource_management/frameworks/resmgr/include/
Dhap_resource.h46 static const HapResource *LoadFromIndex(const char *path, const ResConfigImpl *defaultConfig,
61 static const HapResource *LoadFromHap(const char *path, const ResConfigImpl *defaultConfig,
76 static const HapResource *Load(const char* path, const ResConfigImpl* defaultConfig,
88 …const std::vector<std::string> &overlayPath, const ResConfigImpl *defaultConfig, bool isSystem = f…
Dhap_parser.h130 const ResConfigImpl *defaultConfig = nullptr);
/base/global/resource_management/frameworks/resmgr/src/
Dhap_resource.cpp99 const HapResource* HapResource::Load(const char *path, const ResConfigImpl* defaultConfig, in Load() argument
103 return LoadFromHap(path, defaultConfig, isSystem, isOverlay); in Load()
105 return LoadFromIndex(path, defaultConfig, isSystem, isOverlay); in Load()
109 const HapResource* HapResource::LoadFromIndex(const char *path, const ResConfigImpl *defaultConfig, in LoadFromIndex() argument
143 int32_t out = HapParser::ParseResHex(static_cast<char *>(buf), bufLen, *resDesc, defaultConfig); in LoadFromIndex()
199 const HapResource* HapResource::LoadFromHap(const char *path, const ResConfigImpl *defaultConfig, in LoadFromHap() argument
214 … = HapParser::ParseResHex(reinterpret_cast<char *>(tmpBuf.get()), tmpLen, *resDesc, defaultConfig); in LoadFromHap()
235 const std::vector<std::string> &overlayPaths, const ResConfigImpl *defaultConfig, bool isSystem) in LoadOverlays() argument
239 const HapResource *targetResource = Load(path.c_str(), defaultConfig, isSystem); in LoadOverlays()
250 const HapResource *overlayResource = Load(iter->c_str(), defaultConfig, isSystem, true); in LoadOverlays()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dhap_resource.cpp64 HapResource::HapResource(const std::string path, time_t lastModTime, const ResConfig *defaultConfig in HapResource() argument
65 : indexPath_(path), lastModTime_(lastModTime), resDesc_(resDes), defaultConfig_(defaultConfig) in HapResource()
86 const HapResource *HapResource::LoadFromIndex(const char *path, const ResConfigImpl *defaultConfig,… in LoadFromIndex() argument
117 int32_t out = HapParser::ParseResHex(static_cast<char *>(buf), bufLen, *resDesc, defaultConfig); in LoadFromIndex()
128 …HapResource *pResource = new (std::nothrow) HapResource(std::string(path), 0, defaultConfig, resDe… in LoadFromIndex()
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dhap_resource.h44 …static const HapResource *LoadFromIndex(const char *path, const ResConfigImpl *defaultConfig, bool…
174 …HapResource(const std::string path, time_t lastModTime, const ResConfig *defaultConfig, ResDesc *r…
Dhap_parser.h63 const ResConfigImpl *defaultConfig = nullptr);
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dhap_parser.cpp290 bool IsLocaleMatch(const ResConfigImpl *defaultConfig, const std::vector<KeyParam *> &keyParams) in IsLocaleMatch() argument
292 if (defaultConfig != nullptr) { in IsLocaleMatch()
297 if (!LocaleMatcher::Match(defaultConfig->GetResLocale(), config->GetResLocale())) { in IsLocaleMatch()
308 bool &match, const ResConfigImpl *defaultConfig) in ParseKey() argument
334 match = IsLocaleMatch(defaultConfig, key->keyParams_); in ParseKey()
355 const ResConfigImpl *defaultConfig) in ParseResHex() argument
382 int32_t ret = ParseKey(buffer, offset, key, match, defaultConfig); in ParseResHex()
/base/global/resource_management/frameworks/resmgr/src/utils/
Dhap_parser.cpp478 bool IsLocaleMatch(const ResConfigImpl *defaultConfig, const std::vector<KeyParam *> &keyParams) in IsLocaleMatch() argument
480 if (defaultConfig == nullptr) { in IsLocaleMatch()
487 if (LocaleMatcher::Match(defaultConfig->GetResLocale(), config->GetResLocale())) { in IsLocaleMatch()
497 bool &match, const ResConfigImpl *defaultConfig) in ParseKey() argument
540 const ResConfigImpl *defaultConfig) in ParseResHex() argument
567 int32_t ret = ParseKey(buffer, offset, key, match, defaultConfig); in ParseResHex()
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dhap_resource_test.cpp258 ResDesc *LoadFromHap(const char *hapPath, const ResConfigImpl *defaultConfig) in LoadFromHap() argument
272 out = HapParser::ParseResHex((char *)buf, bufLen, *resDesc, defaultConfig); in LoadFromHap()
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dhap_resource_test.cpp263 ResDesc *LoadFromHap(const char *hapPath, const ResConfigImpl *defaultConfig) in LoadFromHap() argument
275 …out = HapParser::ParseResHex(reinterpret_cast<char *>(buf.get()), bufLen, *resDesc, defaultConfig); in LoadFromHap()