/base/global/resource_management/frameworks/resmgr/include/ |
D | hap_resource.h | 46 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…
|
D | hap_parser.h | 130 const ResConfigImpl *defaultConfig = nullptr);
|
/base/global/resource_management/frameworks/resmgr/src/ |
D | hap_resource.cpp | 99 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/ |
D | hap_resource.cpp | 64 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/ |
D | hap_resource.h | 44 …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…
|
D | hap_parser.h | 63 const ResConfigImpl *defaultConfig = nullptr);
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
D | hap_parser.cpp | 290 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/ |
D | hap_parser.cpp | 478 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/ |
D | hap_resource_test.cpp | 258 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/ |
D | hap_resource_test.cpp | 263 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()
|