/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
H A D | resource_manager_test.cpp | 65 void AddResource(const char *language, const char *script, const char *region); 103 void ResourceManagerTest::AddResource(const char *language, const char *script, const char *region) in AddResource() function in __anon301::ResourceManagerTest 115 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in AddResource() 172 * @tc.desc: Test AddResource function, file case. 178 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in HWTEST_F() 184 * @tc.desc: Test AddResource function, file case. 191 bool ret = rm->AddResource("/data/test/do_not_exist.resources"); in HWTEST_F() 197 * @tc.desc: Test AddResource function, file case. 204 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in HWTEST_F() 206 ret = rm->AddResource(FormatFullPat in HWTEST_F() [all...] |
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | resource_manager_test.cpp | 74 * @tc.desc: Test AddResource function, file case. 80 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in HWTEST_F() 86 * @tc.desc: Test AddResource function, file case. 93 bool ret = rm->AddResource("/data/test/do_not_exist.resources"); in HWTEST_F() 99 * @tc.desc: Test AddResource function, file case. 106 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in HWTEST_F() 108 ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in HWTEST_F() 114 * @tc.desc: Test AddResource function, file case. 121 bool ret = ((ResourceManagerImpl *)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayPaths); in HWTEST_F() 132 rmc->AddResource("z in HWTEST_F() [all...] |
H A D | resource_manager_test_string.cpp | 73 rmc->AddResource("en", nullptr, nullptr); in HWTEST_F() 91 rmc->AddResource("zh", nullptr, nullptr); in HWTEST_F() 109 rmc->AddResource("zh", nullptr, nullptr); in HWTEST_F() 123 rmc->AddResource("en", nullptr, nullptr); in HWTEST_F() 127 bool ret = ((ResourceManagerImpl*)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayPaths); in HWTEST_F() 139 rmc->AddResource("zh", nullptr, nullptr); in HWTEST_F() 143 bool ret = ((ResourceManagerImpl*)rm)->AddResource(FormatFullPath(g_resFilePath).c_str(), overlayPaths); in HWTEST_F() 155 rmc->AddResource("en", nullptr, nullptr); in HWTEST_F() 173 rmc->AddResource("zh", nullptr, nullptr); in HWTEST_F() 191 rmc->AddResource("z in HWTEST_F() [all...] |
H A D | resource_manager_test_hap.cpp | 70 * @tc.desc: Test AddResource function 78 bool ret = rm->AddResource("/data/test/do_not_exist.hap"); in HWTEST_F() 800 * @tc.desc: Test GetRawFileFromHap & AddResource function, file case. 806 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str()); in HWTEST_F() 825 * @tc.desc: Test GetRawFileFromHap & AddResource function, file case. 831 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str()); in HWTEST_F() 854 * @tc.desc: Test GetRawFileFromHap & AddResource function, file case. 860 rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in HWTEST_F() 871 * @tc.desc: Test GetRawFileDescriptorFromHap & AddResource function, file case. 877 rm->AddResource(FormatFullPat in HWTEST_F() [all...] |
H A D | resource_manager_test_media.cpp | 73 rmc->AddResource("zh", nullptr, "CN"); in HWTEST_F() 87 rmc->AddResource("zh", nullptr, "CN"); in HWTEST_F() 102 rmc->AddResource("en", nullptr, "US"); in HWTEST_F() 116 rmc->AddResource("en", nullptr, "US"); in HWTEST_F() 152 rmc->AddResource("en", nullptr, "US"); in HWTEST_F() 188 rmc->AddResource("en", nullptr, "US"); in HWTEST_F() 224 rmc->AddResource("en", nullptr, "US"); in HWTEST_F() 260 rmc->AddResource("en", nullptr, "US"); in HWTEST_F() 296 rmc->AddResource("en", nullptr, "US"); in HWTEST_F() 322 rmc->AddResource("e in HWTEST_F() [all...] |
H A D | theme_manager_test.cpp | 81 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str()); in HWTEST_F() 97 * @tc.desc: Test AddResource function, file case. 103 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str()); in HWTEST_F() 126 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str()); in HWTEST_F() 151 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str()); in HWTEST_F() 175 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str()); in HWTEST_F() 200 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str()); in HWTEST_F() 221 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str()); in HWTEST_F() 244 bool ret = rm->AddResource(FormatFullPath(g_hapPath).c_str()); in HWTEST_F()
|
H A D | resource_manager_test_common.cpp | 86 void ResourceManagerTestCommon::AddResource(const char *language, const char *script, const char *region) in AddResource() function in ResourceManagerTestCommon 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() 413 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in TestGetStringFormatById() 425 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in TestGetStringFormatByIdWithVaArgs() 441 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in TestGetStringFormatByName() 451 bool ret = rm->AddResource(FormatFullPath(g_resFilePath).c_str()); in TestGetStringFormatByNameWithVaArgs()
|
H A D | resource_manager_test_common.h | 71 void AddResource(const char *language, const char *script, const char *region);
|
/base/global/resource_management/frameworks/resmgr/src/ |
H A D | system_resource_manager.cpp | 113 return impl->AddResource(sysPkgNamePath.c_str(), overlayPaths); in LoadSystemResource() 115 return impl->AddResource(sysPkgNamePath.c_str()); in LoadSystemResource() 123 result = impl->AddResource(sysHapNamePath.c_str(), overlayPaths); in LoadSystemResource() 125 result = impl->AddResource(sysHapNamePath.c_str()); in LoadSystemResource() 128 result = impl->AddResource(sysHapExtNamePath.c_str()); in LoadSystemResource()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
H A D | hap_manager.h | 60 bool AddResource(const char *path);
|
H A D | resource_manager.h | 31 virtual bool AddResource(const char *path) = 0;
|
H A D | resource_manager_impl.h | 40 virtual bool AddResource(const char *path);
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
H A D | global.cpp | 167 bool ret = hapManager.AddResource(path); in GLOBAL_GetValueById() 169 HILOG_ERROR("GLOBAL_GetValueById AddResource error %s", path); in GLOBAL_GetValueById() 200 bool ret = hapManager.AddResource(path); in GLOBAL_GetValueByName() 202 HILOG_ERROR("GLOBAL_GetValueByName AddResource error %s", path); in GLOBAL_GetValueByName()
|
H A D | resource_manager_impl.cpp | 597 bool ResourceManagerImpl::AddResource(const char *path) in AddResource() function in OHOS::Global::Resource::ResourceManagerImpl 599 return this->hapManager_->AddResource(path); in AddResource()
|
H A D | hap_manager.cpp | 202 bool HapManager::AddResource(const char *path) in AddResource() function in OHOS::Global::Resource::HapManager
|
/base/global/resource_management/frameworks/resmgr/include/ |
H A D | hap_manager.h | 80 bool AddResource(const char *path, const uint32_t &selectedTypes); 90 bool AddResource(const std::string &path, const std::vector<std::string> &overlayPaths);
|
H A D | resource_manager_impl.h | 63 virtual bool AddResource(const char *path, const uint32_t &selectedTypes = SELECT_ALL); 73 virtual bool AddResource(const std::string &path, const std::vector<std::string> &overlayPaths);
|
/base/global/resource_management/interfaces/cj/src/ |
H A D | resource_manager_interface.h | 59 virtual int32_t AddResource(const char *path) = 0;
|
H A D | resource_manager_impl.h | 61 int32_t AddResource(const char *path) override;
|
/base/global/resource_management/interfaces/inner_api/include/ |
H A D | resource_manager.h | 78 virtual bool AddResource(const char *path, const uint32_t &selectedTypes = SELECT_ALL) = 0; 179 virtual bool AddResource(const std::string &path, const std::vector<std::string> &overlayPaths) = 0;
|
/base/global/resource_management/interfaces/js/innerkits/core/src/ |
H A D | resource_manager_addon.cpp | 160 DECLARE_NAPI_FUNCTION("addResource", AddResource), 422 napi_value ResourceManagerAddon::AddResource(napi_env env, napi_callback_info info) in AddResource() function in OHOS::Global::Resource::ResourceManagerAddon 424 return AddonGetResource(env, info, "AddResource", FunctionType::SYNC); in AddResource()
|
/base/global/resource_management/interfaces/js/innerkits/core/include/ |
H A D | resource_manager_addon.h | 163 static napi_value AddResource(napi_env env, napi_callback_info info);
|
H A D | resource_manager_napi_sync_impl.h | 63 static napi_value AddResource(napi_env env, napi_callback_info info);
|
/base/usb/usb_manager/services/native/src/ |
H A D | usb_mass_storage_notification.cpp | 84 if (!resourceManager->AddResource(HAP_PATH.c_str())) { in GetHapString() 85 USB_HILOGE(MODULE_USB_SERVICE, "AddResource failed"); in GetHapString()
|
/base/telephony/core_service/frameworks/native/src/ |
H A D | resource_utils.cpp | 397 beSourceAdd_ = resourceManager_->AddResource(hapPath.c_str()); in Init() 401 beSourceAdd_ = resourceManager_->AddResource(resPath.c_str()); in Init()
|