/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | resource_manager_test_hap.cpp | 806 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 D | resource_manager_test_string.cpp | 126 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 D | resource_manager_test_media.cpp | 75 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 D | resource_manager_test.cpp | 80 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 D | theme_manager_test.cpp | 81 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 D | hap_manager_test.cpp | 74 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 D | hap_resource_test.cpp | 106 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 D | resource_manager_test_common.cpp | 98 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 D | test_common.h | 39 std::string FormatFullPath(const char *fileRelativePath);
|
H A D | test_common.cpp | 33 std::string FormatFullPath(const char *fileRelativePath) in FormatFullPath() function
|
H A D | resource_manager_performance_test.cpp | 99 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 D | global_test.cpp | 67 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 D | hap_resource_test.cpp | 74 …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 D | hap_manager_test.cpp | 73 bool ret = hapManager->AddResourcePath(FormatFullPath(g_resFilePath).c_str()); 103 std::string resPath = FormatFullPath(g_resFilePath);
|
H A D | resource_manager_test.cpp | 115 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 D | test_common.h | 32 std::string FormatFullPath(const char *fileRelativePath);
|
H A D | test_common.cpp | 33 std::string FormatFullPath(const char *fileRelativePath) in FormatFullPath() function
|
H A D | resource_manager_performance_test.cpp | 99 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in SetUp() 118 std::string pstr = FormatFullPath(filePath); in TestLoadFromIndex()
|