Home
last modified time | relevance | path

Searched refs:limitPath (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dhap_resource_test.cpp77 auto limitPath = idValues->GetLimitPathsConst()[0]; in TestGetIdValuesByName() local
78 EXPECT_TRUE(limitPath->GetFolder() == "default"); in TestGetIdValuesByName()
83 auto limitPath = idValues->GetLimitPathsConst()[1]; in TestGetIdValuesByName() local
84 EXPECT_TRUE(limitPath->GetFolder() == "en_US"); in TestGetIdValuesByName()
90 EXPECT_TRUE(limitPath->GetFolder() == "zh_CN"); in TestGetIdValuesByName()
124 EXPECT_TRUE(limitPath->GetFolder() == "default");
130 EXPECT_TRUE(limitPath->GetFolder() == "en_US");
136 EXPECT_TRUE(limitPath->GetFolder() == "zh_CN");
156 EXPECT_TRUE(limitPath->GetFolder() == "default"); in GetIdValuesByNameFuncTest002()
162 EXPECT_TRUE(limitPath->GetFolder() == "en_US"); in GetIdValuesByNameFuncTest002()
[all …]
H A Dtest_common.cpp48 auto limitPath = idValues->GetLimitPathsConst()[i]; in PrintIdValues() local
49 … RESMGR_HILOGD(RESMGR_TAG, "%zu: folder is: %s, value: %s", i, limitPath->GetFolder().c_str(), in PrintIdValues()
50 limitPath->GetIdItem()->ToString().c_str()); in PrintIdValues()
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dhap_resource_test.cpp92 auto limitPath = idValues->GetLimitPathsConst()[0]; variable
93 EXPECT_TRUE(limitPath->GetFolder() == "en_US");
98 auto limitPath = idValues->GetLimitPathsConst()[1]; variable
99 EXPECT_TRUE(limitPath->GetFolder() == "zh_CN");
105 EXPECT_TRUE(limitPath->GetFolder() == "default");
119 EXPECT_TRUE(limitPath->GetFolder() == "en_US");
125 EXPECT_TRUE(limitPath->GetFolder() == "zh_CN");
131 EXPECT_TRUE(limitPath->GetFolder() == "default");
175 EXPECT_TRUE(limitPath->GetFolder() == "en_US");
182 EXPECT_TRUE(limitPath->GetFolder() == "default");
[all …]
H A Dtest_common.cpp45 auto limitPath = idValues->GetLimitPathsConst()[i]; in PrintIdValues() local
46 HILOG_DEBUG("%zu: folder is: %s, value: %s", i, limitPath->GetFolder().c_str(), in PrintIdValues()
47 limitPath->GetIdItem()->ToString().c_str()); in PrintIdValues()
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dhap_resource.cpp184 auto limitPath = in InitIdList() local
186 if (limitPath == nullptr) { in InitIdList()
191 idValues->AddLimitPath(limitPath); in InitIdList()
197 auto limitPath = in InitIdList() local
199 if (limitPath == nullptr) { in InitIdList()
203 idValues->AddLimitPath(limitPath); in InitIdList()
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/
H A Dhap_resource.cpp338 auto limitPath = std::make_shared<HapResource::ValueUnderQualifierDir>(resKey, in InitMap() local
340 if (limitPath == nullptr) { in InitMap()
344 idValues->AddLimitPath(limitPath); in InitMap()
345 HapResource::IsAppDarkRes(limitPath, defaultConfig); in InitMap()
354 auto limitPath = std::make_shared<HapResource::ValueUnderQualifierDir>(resKey, in InitMap() local
356 if (limitPath == nullptr) { in InitMap()
360 idValues->AddLimitPath(limitPath); in InitMap()
361 HapResource::IsAppDarkRes(limitPath, defaultConfig); in InitMap()
524 …id HapResource::IsAppDarkRes(const std::shared_ptr<HapResource::ValueUnderQualifierDir> &limitPath, in IsAppDarkRes() argument
533 std::string folder = limitPath->GetFolder(); in IsAppDarkRes()
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/src/
H A Dpower_supply_provider.cpp1012 std::string limitPath; in SetChargingLimit() local
1016 limitPath = currentPath; in SetChargingLimit()
1018 limitPath = voltagePath; in SetChargingLimit()
1023 int32_t ret = SetConfigByPath(limitPath, chargeLimitStr); in SetChargingLimit()
/ohos5.0/base/global/resource_management/frameworks/resmgr/include/
H A Dhap_resource.h316 void IsAppDarkRes(const std::shared_ptr<HapResource::ValueUnderQualifierDir> &limitPath,