Home
last modified time | relevance | path

Searched refs:resType (Results 1 – 25 of 36) sorted by relevance

12

/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dres_desc_test.cpp70 ResType resType; variable
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));
88 EXPECT_EQ(ResType::STRING, resType);
91 EXPECT_TRUE(IdItem::IsRef(str, resType, id));
92 EXPECT_EQ(ResType::BOOLEAN, resType);
[all …]
Dglobal_test.cpp63 int GetResId(const std::string &name, ResType resType) in GetResId() argument
72 int ret = pResource->GetIdByName(name.c_str(), resType); in GetResId()
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dres_desc_test.cpp70 ResType resType; variable
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));
88 EXPECT_EQ(ResType::STRING, resType);
91 EXPECT_TRUE(IdItem::IsRef(str, resType, id));
92 EXPECT_EQ(ResType::BOOLEAN, resType);
[all …]
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dhap_manager.h75 const IdItem *FindResourceByName(const char *name, const ResType resType);
90 …esource::ValueUnderQualifierDir *FindQualifierValueByName(const char *name, const ResType resType);
106 … const HapResource::IdValues *GetResourceListByName(const char *name, const ResType resType) const;
Dhap_resource.h158 const IdValues *GetIdValuesByName(const std::string name, const ResType resType) const;
166 int GetIdByName(const char *name, const ResType resType) const;
Dglobal_utils.h90 ResType resType; member
Dres_desc.h86 static bool IsRef(const std::string &value, ResType &resType, int &id);
Dresource_manager_impl.h306 …RState GetRawFile(const HapResource::ValueUnderQualifierDir *vuqd, const ResType resType, std::str…
/base/global/resource_management/frameworks/resmgr/include/
Dhap_manager.h84 const IdItem *FindResourceByName(const char *name, const ResType resType);
101 …Resource::ValueUnderQualifierDir *FindQualifierValueByName(const char *name, const ResType resType,
172 …onst HapResource::IdValues *> GetResourceListByName(const char *name, const ResType resType) const;
Dhap_resource.h213 const IdValues *GetIdValuesByName(const std::string name, const ResType resType) const;
221 int GetIdByName(const char *name, const ResType resType) const;
Dres_desc.h86 static bool IsRef(const std::string &value, ResType &resType, int &id);
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dhap_manager.cpp110 const IdItem *HapManager::FindResourceByName(const char *name, const ResType resType) in FindResourceByName() argument
112 auto qualifierValue = FindQualifierValueByName(name, resType); in FindResourceByName()
120 const char *name, const ResType resType) in FindQualifierValueByName() argument
122 const HapResource::IdValues *idValues = this->GetResourceListByName(name, resType); in FindQualifierValueByName()
237 …esource::IdValues *HapManager::GetResourceListByName(const char *name, const ResType resType) const in GetResourceListByName()
242 const HapResource::IdValues *out = pResource->GetIdValuesByName(std::string(name), resType); in GetResourceListByName()
Dhap_resource.cpp222 const std::string name, const ResType resType) const in GetIdValuesByName()
224 const std::map<std::string, IdValues *> *map = idValuesNameMap_[resType]; in GetIdValuesByName()
233 int HapResource::GetIdByName(const char *name, const ResType resType) const in GetIdByName()
238 const std::map<std::string, IdValues *> *map = idValuesNameMap_[resType]; in GetIdByName()
250 if (ids->GetLimitPathsConst()[0]->GetIdItem()->resType_ != resType) { in GetIdByName()
Dresource_manager_impl.cpp274 ResType resType; in ResolveReference() local
279 isRef = IdItem::IsRef(refStr, resType, id); in ResolveReference()
285 if (IdItem::IsArrayOfType(resType)) { in ResolveReference()
296 if (resType != idItem->resType_) { in ResolveReference()
353 ResType resType; in ResolveParentReference() local
354 bool isRef = IdItem::IsRef(currItem->values_[0], resType, id); in ResolveParentReference()
574 …urceManagerImpl::GetRawFile(const HapResource::ValueUnderQualifierDir *vuqd, const ResType resType, in GetRawFile() argument
582 if (idItem == nullptr || idItem->resType_ != resType) { in GetRawFile()
Dres_desc.cpp153 bool IdItem::IsRef(const std::string &value, ResType &resType, int &id) in IsRef() argument
180 resType = type; in IsRef()
/base/global/resource_management/frameworks/resmgr/src/
Dhap_manager.cpp156 const IdItem *HapManager::FindResourceByName(const char *name, const ResType resType) in FindResourceByName() argument
158 auto qualifierValue = FindQualifierValueByName(name, resType); in FindResourceByName()
166 const char *name, const ResType resType, uint32_t density) in FindQualifierValueByName() argument
169 …std::vector<const HapResource::IdValues *> candidates = this->GetResourceListByName(name, resType); in FindQualifierValueByName()
367 const ResType resType) const in GetResourceListByName()
373 const HapResource::IdValues *out = pResource->GetIdValuesByName(std::string(name), resType); in GetResourceListByName()
476 …ring GetFilePath(const HapResource::ValueUnderQualifierDir *qd, unzFile &uf, const ResType resType) in GetFilePath() argument
483 if (idItem == nullptr || idItem->resType_ != resType) { in GetFilePath()
Dhap_resource.cpp416 const std::string name, const ResType resType) const in GetIdValuesByName()
418 const std::map<std::string, IdValues *> *map = idValuesNameMap_[resType]; in GetIdValuesByName()
427 int HapResource::GetIdByName(const char *name, const ResType resType) const in GetIdByName()
432 const std::map<std::string, IdValues *> *map = idValuesNameMap_[resType]; in GetIdByName()
444 if (ids->GetLimitPathsConst()[0]->GetIdItem()->resType_ != resType) { in GetIdByName()
Dresource_manager_impl.cpp365 ResType resType; in ResolveReference() local
370 isRef = IdItem::IsRef(refStr, resType, id); in ResolveReference()
376 if (IdItem::IsArrayOfType(resType)) { in ResolveReference()
387 if (resType != idItem->resType_) { in ResolveReference()
443 ResType resType; in ResolveParentReference() local
444 bool isRef = IdItem::IsRef(currItem->values_[0], resType, id); in ResolveParentReference()
847 …urceManagerImpl::GetRawFile(const HapResource::ValueUnderQualifierDir *vuqd, const ResType resType, in GetRawFile() argument
855 if (idItem == nullptr || idItem->resType_ != resType) { in GetRawFile()
Dres_desc.cpp218 bool IdItem::IsRef(const std::string &value, ResType &resType, int &id) in IsRef() argument
244 resType = type; in IsRef()
/base/update/updater/interfaces/kits/include/package/
Dpackage.h96 uint8_t resType; member
/base/update/updater/services/package/pkg_package/
Dpkg_upgradefile.cpp59 fileInfo_.resType = info->resType; in Init()
393 comp.resType = fileInfo_.resType; in EncodeHeader()
473 fileInfo_.resType = info->resType; in DecodeHeader()
Dpkg_upgradefile.h45 uint8_t resType; member
/base/update/updater/interfaces/kits/packages/
Dpackage.cpp69 info->resType = compInfo[i].resType; in GetUpgradePkgInfo()
/base/update/updater/test/unittest/updater_binary/
Dupdater_binary_unittest.cpp195 comp.resType = 1; in BuildCompnentInfo()
/base/update/updater/test/fuzztest/UpdaterStartUpdaterProc_fuzzer/
DUpdaterStartUpdaterProc_fuzzer.cpp120 comp[i].resType = 1; in CreatePackageZip()

12