Home
last modified time | relevance | path

Searched refs:FormatFullPath (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dresource_manager_test_hap.cpp806 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str());
831 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str());
860 rm->AddResource(FormatFullPath(g_resFilePath).c_str());
877 rm->AddResource(FormatFullPath(g_resFilePath).c_str());
1026 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str());
1093 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str());
1109 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str());
1125 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str());
1141 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str());
1157 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str());
[all …]
H A Dresource_manager_test_string.cpp126 overlayPaths.push_back(FormatFullPath(g_overlayResFilePath).c_str());
142 overlayPaths.push_back(FormatFullPath(g_overlayResFilePath).c_str());
335 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
355 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
447 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
466 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
485 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
504 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
523 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
557 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
[all …]
H A Dresource_manager_test_media.cpp75 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr);
104 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr);
118 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr);
154 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr);
190 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr);
226 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr);
262 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr);
346 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr);
382 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr);
418 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr);
[all …]
H A Dresource_manager_test.cpp80 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
106 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
108 ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
234 ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
1705 rm->AddResource(FormatFullPath(g_resFilePath).c_str());
1765 rm->AddResource(FormatFullPath(g_resFilePath).c_str());
1803 rm->AddResource(FormatFullPath(g_resFilePath).c_str());
1841 rm->AddResource(FormatFullPath(g_resFilePath).c_str());
1869 rm->AddResource(FormatFullPath(g_resFilePath).c_str());
1973 std::string fullPath = FormatFullPath(g_hapPath);
[all …]
H A Dtheme_manager_test.cpp81 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str());
103 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str());
126 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str());
150 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str());
171 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str());
194 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str());
H A Dhap_manager_test.cpp74 bool ret = hapManager->AddResourcePath(FormatFullPath(g_resFilePath).c_str());
104 std::string resPath = FormatFullPath(g_resFilePath);
177 bool ret = hapManager->AddResourcePath(FormatFullPath(g_hapPath).c_str());
219 bool ret = hapManager->AddResourcePath(FormatFullPath(g_hapPath).c_str());
H A Dhap_resource_test.cpp106 auto pResource = HapResource::LoadFromIndex(FormatFullPath(g_resFilePath).c_str(), rc);
178 std::string resPath = FormatFullPath(g_resFilePath);
225 auto pResource = HapResource::LoadFromIndex(FormatFullPath(g_resFilePath).c_str(), rc);
294 ResDesc *resDesc = LoadFromHap(FormatFullPath("all.hap").c_str(), nullptr);
298 resDesc = LoadFromHap(FormatFullPath("err-config.json-1.hap").c_str(), nullptr);
302 resDesc = LoadFromHap(FormatFullPath("err-config.json-2.hap").c_str(), nullptr);
H A Dresource_manager_test_common.cpp98 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in AddResource()
114 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str()); in AddHapResource()
132 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in AddColorModeResource()
391 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in TestGetStringFormatById()
403 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in TestGetStringFormatByIdWithVaArgs()
419 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in TestGetStringFormatByName()
429 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in TestGetStringFormatByNameWithVaArgs()
H A Dtest_common.h39 std::string FormatFullPath(const char *fileRelativePath);
H A Dtest_common.cpp33 std::string FormatFullPath(const char *fileRelativePath) in FormatFullPath() function
H A Dresource_manager_performance_test.cpp99 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in SetUp()
157 std::string pstr = FormatFullPath(filePath); in TestLoadFromIndex()
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dglobal_test.cpp67 std::string resPath = FormatFullPath(g_resFilePath); in GetResId()
135 int32_t ret = GLOBAL_GetValueByName("app_name", FormatFullPath(g_resFilePath).c_str(), &values);
153 …int32_t ret = GLOBAL_GetValueById(static_cast<uint32_t>(id), FormatFullPath(g_resFilePath).c_str()…
171 …int32_t ret = GLOBAL_GetValueById(static_cast<uint32_t>(id), FormatFullPath(g_resFilePath).c_str()…
H A Dhap_resource_test.cpp74 …const HapResource *pResource = HapResource::LoadFromIndex(FormatFullPath(g_resFilePath).c_str(), n…
149 std::string resPath = FormatFullPath(g_resFilePath);
221 …const HapResource *pResource = HapResource::LoadFromIndex(FormatFullPath(g_resFilePath).c_str(), n…
294 ResDesc *resDesc = LoadFromHap(FormatFullPath("all.hap").c_str(), nullptr);
298 resDesc = LoadFromHap(FormatFullPath("err-config.json-1.hap").c_str(), nullptr);
302 resDesc = LoadFromHap(FormatFullPath("err-config.json-2.hap").c_str(), nullptr);
H A Dhap_manager_test.cpp73 bool ret = hapManager->AddResourcePath(FormatFullPath(g_resFilePath).c_str());
103 std::string resPath = FormatFullPath(g_resFilePath);
H A Dresource_manager_test.cpp115 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in AddResource()
178 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
204 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
206 ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
289 ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str());
1396 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr, nullptr);
1435 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr, nullptr);
1472 HapResource *tmp = new HapResource(FormatFullPath(g_resFilePath).c_str(), 0, nullptr, nullptr);
1554 rm->AddResource(FormatFullPath(g_resFilePath).c_str());
1635 rm->AddResource(FormatFullPath(g_resFilePath).c_str());
[all …]
H A Dtest_common.h32 std::string FormatFullPath(const char *fileRelativePath);
H A Dtest_common.cpp33 std::string FormatFullPath(const char *fileRelativePath) in FormatFullPath() function
H A Dresource_manager_performance_test.cpp99 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in SetUp()
118 std::string pstr = FormatFullPath(filePath); in TestLoadFromIndex()