Searched refs:idValues (Results 1 – 11 of 11) sorted by relevance
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
D | hap_manager_test.cpp | 79 std::vector<const HapResource::IdValues *> idValues = hapManager->GetResourceList(id); variable 80 if (idValues.size() == 0) { 86 PrintIdValues(idValues[0]); 118 std::vector<const HapResource::IdValues *> idValues = hapManager->GetResourceList(id); variable 119 if (idValues.size() == 0) { 126 EXPECT_EQ(static_cast<size_t>(2), idValues[0]->GetLimitPathsConst().size()); 127 PrintIdValues(idValues[0]); 142 idValues = hapManager->GetResourceList(id); 143 if (idValues.size() == 0) { 148 EXPECT_EQ(static_cast<size_t>(2), idValues[0]->GetLimitPathsConst().size()); [all …]
|
D | hap_resource_test.cpp | 69 auto idValues = pResource->GetIdValuesByName(name, ResType::STRING); in TestGetIdValuesByName() local 72 EXPECT_EQ(static_cast<size_t>(3), idValues->GetLimitPathsConst().size()); in TestGetIdValuesByName() 74 PrintIdValues(idValues); in TestGetIdValuesByName() 76 auto limitPath = idValues->GetLimitPathsConst()[0]; in TestGetIdValuesByName() 82 auto limitPath = idValues->GetLimitPathsConst()[1]; in TestGetIdValuesByName() 88 auto limitPath = idValues->GetLimitPathsConst()[2]; in TestGetIdValuesByName() 115 auto idValues = pResource->GetIdValues(id); variable 117 EXPECT_EQ(static_cast<size_t>(3), idValues->GetLimitPathsConst().size()); 119 PrintIdValues(idValues); 121 auto limitPath = idValues->GetLimitPathsConst()[0]; [all …]
|
D | test_common.cpp | 42 void PrintIdValues(const HapResource::IdValues *idValues) in PrintIdValues() argument 44 if (idValues == nullptr) { in PrintIdValues() 47 for (size_t i = 0; i < idValues->GetLimitPathsConst().size(); ++i) { in PrintIdValues() 48 auto limitPath = idValues->GetLimitPathsConst()[i]; in PrintIdValues()
|
D | test_common.h | 38 void PrintIdValues(const HapResource::IdValues *idValues);
|
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
D | hap_manager_test.cpp | 78 const HapResource::IdValues *idValues = hapManager->GetResourceList(id); variable 79 if (idValues == nullptr) { 85 PrintIdValues(idValues); 117 const HapResource::IdValues *idValues = hapManager->GetResourceList(id); variable 118 if (idValues == nullptr) { 125 EXPECT_EQ(static_cast<size_t>(1), idValues->GetLimitPathsConst().size()); 126 PrintIdValues(idValues); 141 idValues = hapManager->GetResourceList(id); 142 if (idValues == nullptr) { 147 EXPECT_EQ(static_cast<size_t>(2), idValues->GetLimitPathsConst().size()); [all …]
|
D | hap_resource_test.cpp | 86 auto idValues = pResource->GetIdValues(id); variable 88 EXPECT_EQ(static_cast<size_t>(3), idValues->GetLimitPathsConst().size()); 90 PrintIdValues(idValues); 92 auto limitPath = idValues->GetLimitPathsConst()[0]; 98 auto limitPath = idValues->GetLimitPathsConst()[1]; 104 auto limitPath = idValues->GetLimitPathsConst()[2]; 116 PrintIdValues(idValues); 118 auto limitPath = idValues->GetLimitPathsConst()[0]; 124 auto limitPath = idValues->GetLimitPathsConst()[1]; 130 auto limitPath = idValues->GetLimitPathsConst()[2]; [all …]
|
D | test_common.cpp | 42 void PrintIdValues(const HapResource::IdValues *idValues) in PrintIdValues() argument 44 for (size_t i = 0; i < idValues->GetLimitPathsConst().size(); ++i) { in PrintIdValues() 45 auto limitPath = idValues->GetLimitPathsConst()[i]; in PrintIdValues()
|
D | test_common.h | 34 void PrintIdValues(const HapResource::IdValues *idValues);
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
D | hap_resource.cpp | 179 auto idValues = new (std::nothrow) HapResource::IdValues(); in InitIdList() local 180 if (idValues == nullptr) { in InitIdList() 188 delete (idValues); in InitIdList() 191 idValues->AddLimitPath(limitPath); in InitIdList() 192 idValuesMap_.insert(std::make_pair(id, idValues)); in InitIdList() 194 … idValuesNameMap_[idParam->idItem_->resType_]->insert(std::make_pair(name, idValues)); in InitIdList() 196 HapResource::IdValues *idValues = iter->second; in InitIdList() local 203 idValues->AddLimitPath(limitPath); in InitIdList()
|
D | hap_manager.cpp | 122 const HapResource::IdValues *idValues = this->GetResourceListByName(name, resType); in FindQualifierValueByName() local 123 if (idValues == nullptr) { in FindQualifierValueByName() 126 const std::vector<HapResource::ValueUnderQualifierDir *> paths = idValues->GetLimitPathsConst(); in FindQualifierValueByName() 154 const HapResource::IdValues *idValues = this->GetResourceList(id); in FindQualifierValueById() local 155 if (idValues == nullptr) { in FindQualifierValueById() 158 const std::vector<HapResource::ValueUnderQualifierDir *> paths = idValues->GetLimitPathsConst(); in FindQualifierValueById()
|
/base/global/resource_management/frameworks/resmgr/src/ |
D | hap_resource.cpp | 367 auto idValues = new (std::nothrow) HapResource::IdValues(); in InitIdList() local 368 if (idValues == nullptr) { in InitIdList() 376 delete (idValues); in InitIdList() 379 idValues->AddLimitPath(limitPath); in InitIdList() 380 idValuesMap_.insert(std::make_pair(id, idValues)); in InitIdList() 382 … idValuesNameMap_[idParam->idItem_->resType_]->insert(std::make_pair(name, idValues)); in InitIdList() 384 HapResource::IdValues *idValues = iter->second; in InitIdList() local 391 idValues->AddLimitPath(limitPath); in InitIdList()
|