Home
last modified time | relevance | path

Searched refs:IdItem (Results 1 – 25 of 26) sorted by relevance

12

/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dres_desc_test.cpp72 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 …]
Dresource_manager_test.cpp1638 const IdItem *idItem;
1671 IdItem *item = new IdItem;
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dres_desc_test.cpp72 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 …]
Dresource_manager_test.cpp1753 const IdItem *idItem;
1781 IdItem *item = new IdItem;
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dresource_manager_impl.cpp73 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 …]
Dres_desc.cpp126 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()
Dglobal.c130 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()
Dglobal.cpp121 int32_t GetValue(const IdItem *idItem, char **value) in GetValue()
206 const IdItem *idItem = nullptr; in GLOBAL_GetValueByName()
Dhap_manager.cpp101 const IdItem *HapManager::FindResourceById(uint32_t id) in FindResourceById()
110 const IdItem *HapManager::FindResourceByName(const char *name, const ResType resType) in FindResourceByName()
Dhap_resource.cpp34 …UnderQualifierDir::ValueUnderQualifierDir(const std::vector<KeyParam *> &keyParams, IdItem *idItem, in ValueUnderQualifierDir()
Dglobal_utils.c52 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/
Dresource_manager_impl.h284 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);
Dhap_resource.h82 inline const IdItem *GetIdItem() const in GetIdItem()
97 ValueUnderQualifierDir(const std::vector<KeyParam *> &keyParams, IdItem *idItem,
117 IdItem *idItem_;
Dglobal_utils.h88 typedef struct IdItem { struct
96 } IdItem; argument
102 int32_t (*GetIdItem)(int32_t file, uint32_t offset, IdItem *idItem);
Dhap_manager.h67 const IdItem *FindResourceById(uint32_t id);
75 const IdItem *FindResourceByName(const char *name, const ResType resType);
Dres_desc.h47 class IdItem {
111 IdItem *idItem_;
/base/global/resource_management/frameworks/resmgr/src/
Dresource_manager_impl.cpp81 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 …]
Dres_desc.cpp193 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()
Dhap_manager.cpp149 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/
Dresource_manager_impl.h539 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);
Dhap_resource.h151 inline const IdItem *GetIdItem() const in GetIdItem()
185 ValueUnderQualifierDir(const ResKey *resKey, IdItem *idItem,
202 IdItem *idItem_;
Dres_desc.h48 class IdItem {
112 IdItem *idItem_;
Dhap_manager.h111 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/
Dhap_parser.cpp215 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/
Dhap_parser.cpp403 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()

12