Home
last modified time | relevance | path

Searched refs:selectedTypes (Results 1 - 10 of 10) sorted by relevance

/base/global/resource_management/frameworks/resmgr/src/
H A Dhap_resource.cpp79 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 Dhap_manager.cpp375 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 Dresource_manager_impl.cpp1087 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 Dhap_resource.h49 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 Dhap_manager.h80 bool AddResource(const char *path, const uint32_t &selectedTypes);
399 bool AddResourcePath(const char *path, const uint32_t &selectedTypes = SELECT_ALL);
H A Dhap_parser.h143 const std::shared_ptr<ResConfigImpl> defaultConfig = nullptr, const uint32_t &selectedTypes = SELECT_ALL);
H A Dresource_manager_impl.h63 virtual bool AddResource(const char *path, const uint32_t &selectedTypes = SELECT_ALL);
/base/global/resource_management/frameworks/resmgr/src/utils/
H A Dhap_parser.cpp481 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 Dhap_resource_test.cpp263 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 Dresource_manager.h71 * @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;

Completed in 11 milliseconds