Home
last modified time | relevance | path

Searched refs:AddResource (Results 1 - 25 of 35) sorted by relevance

12

/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dresource_manager_test.cpp65 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 Dresource_manager_test.cpp74 * @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 Dresource_manager_test_string.cpp73 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 Dresource_manager_test_hap.cpp70 * @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 Dresource_manager_test_media.cpp73 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 Dtheme_manager_test.cpp81 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 Dresource_manager_test_common.cpp86 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 Dresource_manager_test_common.h71 void AddResource(const char *language, const char *script, const char *region);
/base/global/resource_management/frameworks/resmgr/src/
H A Dsystem_resource_manager.cpp113 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 Dhap_manager.h60 bool AddResource(const char *path);
H A Dresource_manager.h31 virtual bool AddResource(const char *path) = 0;
H A Dresource_manager_impl.h40 virtual bool AddResource(const char *path);
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dglobal.cpp167 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 Dresource_manager_impl.cpp597 bool ResourceManagerImpl::AddResource(const char *path) in AddResource() function in OHOS::Global::Resource::ResourceManagerImpl
599 return this->hapManager_->AddResource(path); in AddResource()
H A Dhap_manager.cpp202 bool HapManager::AddResource(const char *path) in AddResource() function in OHOS::Global::Resource::HapManager
/base/global/resource_management/frameworks/resmgr/include/
H A Dhap_manager.h80 bool AddResource(const char *path, const uint32_t &selectedTypes);
90 bool AddResource(const std::string &path, const std::vector<std::string> &overlayPaths);
H A Dresource_manager_impl.h63 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 Dresource_manager_interface.h59 virtual int32_t AddResource(const char *path) = 0;
H A Dresource_manager_impl.h61 int32_t AddResource(const char *path) override;
/base/global/resource_management/interfaces/inner_api/include/
H A Dresource_manager.h78 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 Dresource_manager_addon.cpp160 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 Dresource_manager_addon.h163 static napi_value AddResource(napi_env env, napi_callback_info info);
H A Dresource_manager_napi_sync_impl.h63 static napi_value AddResource(napi_env env, napi_callback_info info);
/base/usb/usb_manager/services/native/src/
H A Dusb_mass_storage_notification.cpp84 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 Dresource_utils.cpp397 beSourceAdd_ = resourceManager_->AddResource(hapPath.c_str()); in Init()
401 beSourceAdd_ = resourceManager_->AddResource(resPath.c_str()); in Init()

Completed in 20 milliseconds

12