/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
D | res_desc_test.cpp | 72 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); 75 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); 78 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); 81 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); 84 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); 87 EXPECT_TRUE(IdItem::IsRef(str, resType, id)); 91 EXPECT_TRUE(IdItem::IsRef(str, resType, id)); 95 EXPECT_TRUE(IdItem::IsRef(str, resType, id)); 99 EXPECT_TRUE(IdItem::IsRef(str, resType, id)); 103 EXPECT_TRUE(IdItem::IsRef(str, resType, id)); [all …]
|
D | resource_manager_test.cpp | 1638 const IdItem *idItem; 1671 IdItem *item = new IdItem;
|
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
D | res_desc_test.cpp | 72 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); 75 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); 78 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); 81 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); 84 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); 87 EXPECT_TRUE(IdItem::IsRef(str, resType, id)); 91 EXPECT_TRUE(IdItem::IsRef(str, resType, id)); 95 EXPECT_TRUE(IdItem::IsRef(str, resType, id)); 99 EXPECT_TRUE(IdItem::IsRef(str, resType, id)); 103 EXPECT_TRUE(IdItem::IsRef(str, resType, id)); [all …]
|
D | resource_manager_test.cpp | 1753 const IdItem *idItem; 1781 IdItem *item = new IdItem;
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
D | resource_manager_impl.cpp | 73 const IdItem *idItem = hapManager_->FindResourceById(id); in GetStringById() 79 const IdItem *idItem = hapManager_->FindResourceByName(name, ResType::STRING); in GetStringByName() 85 const IdItem *idItem = hapManager_->FindResourceById(id); in GetStringFormatById() 100 const IdItem *idItem = hapManager_->FindResourceByName(name, ResType::STRING); in GetStringFormatByName() 113 RState ResourceManagerImpl::GetString(const IdItem *idItem, std::string &outValue) in GetString() 128 const IdItem *idItem = hapManager_->FindResourceById(id); in GetStringArrayById() 134 const IdItem *idItem = hapManager_->FindResourceByName(name, ResType::STRINGARRAY); in GetStringArrayByName() 138 RState ResourceManagerImpl::GetStringArray(const IdItem *idItem, std::vector<std::string> &outValue) in GetStringArray() 160 const IdItem *idItem = hapManager_->FindResourceById(id); in GetPatternById() 166 const IdItem *idItem = hapManager_->FindResourceByName(name, ResType::PATTERN); in GetPatternByName() [all …]
|
D | res_desc.cpp | 126 std::map<ResType, std::string> IdItem::resTypeStrList; 128 bool IdItem::sInit = IdItem::Init(); 130 bool IdItem::Init() in Init() 143 bool IdItem::HaveParent() const in HaveParent() 153 bool IdItem::IsRef(const std::string &value, ResType &resType, int &id) in IsRef() 188 std::string IdItem::ToString() const in ToString()
|
D | global.c | 130 static void FreeIdItem(IdItem *idItem) in FreeIdItem() 170 IdItem idItem = {0, INVALID_RES_TYPE, 0, 0, NULL, 0, NULL}; in GLOBAL_GetValueByIdInternal() 238 IdItem idItem = {0, INVALID_RES_TYPE, 0, 0, NULL, 0, NULL}; in GLOBAL_GetValueByNameInternal()
|
D | global.cpp | 121 int32_t GetValue(const IdItem *idItem, char **value) in GetValue() 206 const IdItem *idItem = nullptr; in GLOBAL_GetValueByName()
|
D | hap_manager.cpp | 101 const IdItem *HapManager::FindResourceById(uint32_t id) in FindResourceById() 110 const IdItem *HapManager::FindResourceByName(const char *name, const ResType resType) in FindResourceByName()
|
D | hap_resource.cpp | 34 …UnderQualifierDir::ValueUnderQualifierDir(const std::vector<KeyParam *> &keyParams, IdItem *idItem, in ValueUnderQualifierDir()
|
D | global_utils.c | 52 static int32_t GetIdItem(int32_t file, uint32_t offset, IdItem *idItem); 425 static int32_t GetIdItem(int32_t file, uint32_t offset, IdItem *idItem) in GetIdItem()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
D | resource_manager_impl.h | 284 RState GetString(const IdItem *idItem, std::string &outValue); 286 RState GetStringArray(const IdItem *idItem, std::vector<std::string> &outValue); 288 RState GetPattern(const IdItem *idItem, std::map<std::string, std::string> &outValue); 290 RState GetTheme(const IdItem *idItem, std::map<std::string, std::string> &outValue); 296 RState GetBoolean(const IdItem *idItem, bool &outValue); 298 RState GetFloat(const IdItem *idItem, float &outValue); 300 RState GetInteger(const IdItem *idItem, int &outValue); 302 RState GetColor(const IdItem *idItem, uint32_t &outValue); 304 RState GetIntArray(const IdItem *idItem, std::vector<int> &outValue); 308 … RState ResolveParentReference(const IdItem *idItem, std::map<std::string, std::string> &outValue);
|
D | hap_resource.h | 82 inline const IdItem *GetIdItem() const in GetIdItem() 97 ValueUnderQualifierDir(const std::vector<KeyParam *> &keyParams, IdItem *idItem, 117 IdItem *idItem_;
|
D | global_utils.h | 88 typedef struct IdItem { struct 96 } IdItem; argument 102 int32_t (*GetIdItem)(int32_t file, uint32_t offset, IdItem *idItem);
|
D | hap_manager.h | 67 const IdItem *FindResourceById(uint32_t id); 75 const IdItem *FindResourceByName(const char *name, const ResType resType);
|
D | res_desc.h | 47 class IdItem { 111 IdItem *idItem_;
|
/base/global/resource_management/frameworks/resmgr/src/ |
D | resource_manager_impl.cpp | 81 const IdItem *idItem = hapManager_->FindResourceById(id); in GetStringById() 95 const IdItem *idItem = hapManager_->FindResourceByName(name, ResType::STRING); in GetStringByName() 109 const IdItem *idItem = hapManager_->FindResourceById(id); in GetStringFormatById() 124 const IdItem *idItem = hapManager_->FindResourceByName(name, ResType::STRING); in GetStringFormatByName() 137 RState ResourceManagerImpl::GetString(const IdItem *idItem, std::string &outValue) in GetString() 158 const IdItem *idItem = hapManager_->FindResourceById(id); in GetStringArrayById() 172 const IdItem *idItem = hapManager_->FindResourceByName(name, ResType::STRINGARRAY); in GetStringArrayByName() 184 RState ResourceManagerImpl::GetStringArray(const IdItem *idItem, std::vector<std::string> &outValue) in GetStringArray() 216 const IdItem *idItem = hapManager_->FindResourceById(id); in GetPatternById() 222 const IdItem *idItem = hapManager_->FindResourceByName(name, ResType::PATTERN); in GetPatternByName() [all …]
|
D | res_desc.cpp | 193 std::map<ResType, std::string> IdItem::resTypeStrList; 195 bool IdItem::sInit = IdItem::Init(); 197 bool IdItem::Init() in Init() 210 bool IdItem::HaveParent() const in HaveParent() 218 bool IdItem::IsRef(const std::string &value, ResType &resType, int &id) in IsRef() 252 std::string IdItem::ToString() const in ToString()
|
D | hap_manager.cpp | 149 const IdItem *HapManager::FindResourceById(uint32_t id) in FindResourceById() 158 const IdItem *HapManager::FindResourceByName(const char *name, const ResType resType) in FindResourceByName() 519 const IdItem *idItem = qd->GetIdItem(); in GetFilePathFromHap() 757 const IdItem *idItem = vuqd->GetIdItem(); in GetFilePath()
|
/base/global/resource_management/frameworks/resmgr/include/ |
D | resource_manager_impl.h | 539 RState GetString(const IdItem *idItem, std::string &outValue); 541 RState GetStringArray(const IdItem *idItem, std::vector<std::string> &outValue); 543 RState GetPattern(const IdItem *idItem, std::map<std::string, std::string> &outValue); 545 RState GetTheme(const IdItem *idItem, std::map<std::string, std::string> &outValue); 551 RState GetBoolean(const IdItem *idItem, bool &outValue); 557 RState GetFloat(const IdItem *idItem, float &outValue, std::string &unit); 559 RState GetInteger(const IdItem *idItem, int &outValue); 561 RState GetColor(const IdItem *idItem, uint32_t &outValue); 563 RState GetIntArray(const IdItem *idItem, std::vector<int> &outValue); 567 … RState ResolveParentReference(const IdItem *idItem, std::map<std::string, std::string> &outValue);
|
D | hap_resource.h | 151 inline const IdItem *GetIdItem() const in GetIdItem() 185 ValueUnderQualifierDir(const ResKey *resKey, IdItem *idItem, 202 IdItem *idItem_;
|
D | res_desc.h | 48 class IdItem { 112 IdItem *idItem_;
|
D | hap_manager.h | 111 const IdItem *FindResourceById(uint32_t id); 119 const IdItem *FindResourceByName(const char *name, const ResType resType);
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
D | hap_parser.cpp | 215 int32_t ParseIdItem(const char *buffer, uint32_t &offset, IdItem *idItem) in ParseIdItem() 217 errno_t eret = memcpy_s(idItem, sizeof(IdItem), buffer + offset, IdItem::HEADER_LEN); in ParseIdItem() 221 offset += IdItem::HEADER_LEN; in ParseIdItem() 270 IdItem *idItem = new (std::nothrow) IdItem(); in ParseId()
|
/base/global/resource_management/frameworks/resmgr/src/utils/ |
D | hap_parser.cpp | 403 int32_t ParseIdItem(const char *buffer, uint32_t &offset, IdItem *idItem) in ParseIdItem() 405 errno_t eret = memcpy_s(idItem, sizeof(IdItem), buffer + offset, IdItem::HEADER_LEN); in ParseIdItem() 409 offset += IdItem::HEADER_LEN; in ParseIdItem() 458 IdItem *idItem = new (std::nothrow) IdItem(); in ParseId()
|