/base/global/resource_management/frameworks/resmgr/src/ |
H A D | hap_resource.cpp | 79 std::shared_ptr<ResConfigImpl> &defaultConfig, bool isSystem, bool isOverlay, const uint32_t &selectedTypes) in Load() 82 if (selectedTypes == SELECT_ALL) { in Load() 89 pResource = LoadFromHap(path, defaultConfig, isSystem, isOverlay, selectedTypes); in Load() 91 pResource = LoadFromIndex(path, defaultConfig, isSystem, isOverlay, selectedTypes); in Load() 93 if (pResource != nullptr && selectedTypes == SELECT_ALL) { in Load() 100 std::shared_ptr<ResConfigImpl> &defaultConfig, bool isSystem, bool isOverlay, const uint32_t &selectedTypes) in LoadFromIndex() 133 int32_t out = HapParser::ParseResHex(static_cast<char *>(buf), bufLen, *resDesc, defaultConfig, selectedTypes); in LoadFromIndex() 189 std::shared_ptr<ResConfigImpl> &defaultConfig, bool isSystem, bool isOverlay, const uint32_t &selectedTypes) in LoadFromHap() 204 reinterpret_cast<char *>(tmpBuf.get()), tmpLen, *resDesc, defaultConfig, selectedTypes); in LoadFromHap() 78 Load(const char *path, std::shared_ptr<ResConfigImpl> &defaultConfig, bool isSystem, bool isOverlay, const uint32_t &selectedTypes) Load() argument 99 LoadFromIndex(const char *path, std::shared_ptr<ResConfigImpl> &defaultConfig, bool isSystem, bool isOverlay, const uint32_t &selectedTypes) LoadFromIndex() argument 188 LoadFromHap(const char *path, std::shared_ptr<ResConfigImpl> &defaultConfig, bool isSystem, bool isOverlay, const uint32_t &selectedTypes) LoadFromHap() argument
|
H A D | hap_manager.cpp | 375 bool HapManager::AddResource(const char *path, const uint32_t &selectedTypes) in AddResource() argument 378 return this->AddResourcePath(path, selectedTypes); in AddResource() 504 bool HapManager::AddResourcePath(const char *path, const uint32_t &selectedTypes) in AddResourcePath() argument 512 std::shared_ptr<HapResource> pResource = HapResource::Load(path, resConfig_, isSystem_, false, selectedTypes); in AddResourcePath()
|
H A D | resource_manager_impl.cpp | 1087 bool ResourceManagerImpl::AddResource(const char *path, const uint32_t &selectedTypes) in AddResource() argument 1092 return this->hapManager_->AddResource(path, selectedTypes); in AddResource()
|
/base/global/resource_management/frameworks/resmgr/include/ |
H A D | hap_resource.h | 49 bool isSystem = false, bool isOverlay = false, const uint32_t &selectedTypes = SELECT_ALL); 65 bool isSystem = false, bool isOverlay = false, const uint32_t &selectedTypes = SELECT_ALL); 81 bool isSystem = false, bool isOverlay = false, const uint32_t &selectedTypes = SELECT_ALL);
|
H A D | hap_manager.h | 80 bool AddResource(const char *path, const uint32_t &selectedTypes); 399 bool AddResourcePath(const char *path, const uint32_t &selectedTypes = SELECT_ALL);
|
H A D | hap_parser.h | 143 const std::shared_ptr<ResConfigImpl> defaultConfig = nullptr, const uint32_t &selectedTypes = SELECT_ALL);
|
H A D | resource_manager_impl.h | 63 virtual bool AddResource(const char *path, const uint32_t &selectedTypes = SELECT_ALL);
|
/base/global/resource_management/frameworks/resmgr/src/utils/ |
H A D | hap_parser.cpp | 481 int32_t ParseIdItem(const char *buffer, uint32_t &offset, std::shared_ptr<IdItem> idItem, const uint32_t &selectedTypes) in ParseIdItem() argument 487 if (selectedTypes != SELECT_ALL && (selectedTypes & ConvertType(idItem->resType_)) == 0) { in ParseIdItem() 512 int32_t ParseId(const char *buffer, uint32_t &offset, std::shared_ptr<ResId> id, const uint32_t &selectedTypes) in ParseId() argument 540 int32_t ret = ParseIdItem(buffer, ipOffset, idItem, selectedTypes); in ParseId() 552 const std::shared_ptr<ResConfigImpl> defaultConfig, const std::string &deviceType, const uint32_t &selectedTypes) in ParseKey() 585 (selectedTypes != SELECT_ALL && defaultConfig && !defaultConfig->Match(key->resConfig_, false))) { in ParseKey() 596 int32_t ret = ParseId(buffer, idOffset, id, selectedTypes); in ParseKey() 606 const std::shared_ptr<ResConfigImpl> defaultConfig, const uint32_t &selectedTypes) in ParseResHex() 630 int32_t ret = ParseKey(buffer, offset, key, match, defaultConfig, deviceType, selectedTypes); in ParseResHex() 551 ParseKey(const char *buffer, uint32_t &offset, std::shared_ptr<ResKey> key, bool &match, const std::shared_ptr<ResConfigImpl> defaultConfig, const std::string &deviceType, const uint32_t &selectedTypes) ParseKey() argument 605 ParseResHex(const char *buffer, const size_t bufLen, ResDesc &resDesc, const std::shared_ptr<ResConfigImpl> defaultConfig, const uint32_t &selectedTypes) ParseResHex() argument [all...] |
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | hap_resource_test.cpp | 263 const uint32_t &selectedTypes = SELECT_ALL) in LoadFromHap() 275 out = HapParser::ParseResHex(reinterpret_cast<char *>(buf.get()), bufLen, *resDesc, defaultConfig, selectedTypes); in LoadFromHap()
|
/base/global/resource_management/interfaces/inner_api/include/ |
H A D | resource_manager.h | 71 * @param selectedTypes If this param is setted, will only add resource of types specified by this param, 78 virtual bool AddResource(const char *path, const uint32_t &selectedTypes = SELECT_ALL) = 0;
|