Home
last modified time | relevance | path

Searched refs:resMgr (Results 1 - 16 of 16) sorted by relevance

/base/global/resource_management/interfaces/js/innerkits/core/src/
H A Dresource_manager_napi_sync_impl.cpp311 std::shared_ptr<ResourceManager> resMgr = nullptr; in ProcessStrResource() local
313 bool ret = ResourceManagerNapiUtils::GetHapResourceManager(dataContext.get(), resMgr, resId); in ProcessStrResource()
315 RESMGR_HILOGE(RESMGR_JS_TAG, "Failed to get resMgr in GetStringSync"); in ProcessStrResource()
324 RState state = resMgr->GetStringFormatById(resId, dataContext->value_, dataContext->jsParams_); in ProcessStrResource()
359 std::shared_ptr<ResourceManager> resMgr = nullptr; in ProcessSymbolResource() local
361 bool ret = ResourceManagerNapiUtils::GetHapResourceManager(dataContext.get(), resMgr, resId); in ProcessSymbolResource()
363 RESMGR_HILOGE(RESMGR_JS_TAG, "Failed to get resMgr in GetSymbol"); in ProcessSymbolResource()
367 RState state = resMgr->GetSymbolById(resId, dataContext->symbolValue_); in ProcessSymbolResource()
401 std::shared_ptr<ResourceManager> resMgr = nullptr; in ProcessColorResource() local
403 bool ret = ResourceManagerNapiUtils::GetHapResourceManager(dataContext.get(), resMgr, resI in ProcessColorResource()
444 std::shared_ptr<ResourceManager> resMgr = nullptr; ProcessNumResource() local
486 std::shared_ptr<ResourceManager> resMgr = nullptr; ProcessBoolResource() local
527 std::shared_ptr<ResourceManager> resMgr = nullptr; ProcesstMediaContentBase64Resource() local
572 std::shared_ptr<ResourceManager> resMgr = nullptr; ProcessMediaContentResource() local
618 std::shared_ptr<ResourceManager> resMgr = nullptr; ProcessPluralStringValueResource() local
671 std::shared_ptr<ResourceManager> resMgr = nullptr; ProcessStringArrayValueResource() local
731 std::shared_ptr<ResourceManager> resMgr = nullptr; GetDrawableDescriptor() local
890 auto resMgr = dataContext->addon_->GetResMgr(); ProcessNumResourceByName() local
970 auto resMgr = dataContext->addon_->GetResMgr(); GetDrawableDescriptorByName() local
1022 auto resMgr = GetNativeResoruceManager(env, info); AddResource() local
1040 auto resMgr = GetNativeResoruceManager(env, info); RemoveResource() local
1282 std::shared_ptr<ResourceManager> resMgr = dataContext->addon_->GetResMgr(); GetOverrideResourceManager() local
1331 std::shared_ptr<ResourceManager> resMgr = dataContext->addon_->GetResMgr(); UpdateOverrideConfiguration() local
[all...]
H A Dresource_manager_napi_async_impl.cpp408 std::shared_ptr<ResourceManager> resMgr = nullptr;
411 bool ret = ResourceManagerNapiUtils::GetHapResourceManager(dataContext, resMgr, resId);
418 RState state = resMgr->GetStringById(resId, dataContext->value_);
470 std::shared_ptr<ResourceManager> resMgr = nullptr;
472 bool ret = ResourceManagerNapiUtils::GetHapResourceManager(dataContext, resMgr, resId);
479 state = resMgr->GetStringArrayById(resId, dataContext->arrayValue_);
525 std::shared_ptr<ResourceManager> resMgr = nullptr;
526 bool ret = ResourceManagerNapiUtils::GetHapResourceManager(dataContext, resMgr, resId);
533 RState state = resMgr->GetMediaDataById(resId, dataContext->len_, dataContext->mediaData,
569 std::shared_ptr<ResourceManager> resMgr
[all...]
H A Dresource_manager_addon.cpp28 napi_env env, const std::string& bundleName, const std::shared_ptr<ResourceManager>& resMgr, in Create()
31 std::shared_ptr<ResourceManagerAddon> addon = std::make_shared<ResourceManagerAddon>(bundleName, resMgr, context); in Create()
35 napi_value ResourceManagerAddon::CreateOverrideAddon(napi_env env, const std::shared_ptr<ResourceManager>& resMgr) in CreateOverrideAddon() argument
37 std::shared_ptr<ResourceManagerAddon> addon = std::make_shared<ResourceManagerAddon>(bundleName_, resMgr, context_); in CreateOverrideAddon()
96 const std::string& bundleName, const std::shared_ptr<ResourceManager>& resMgr, in ResourceManagerAddon()
98 : bundleName_(bundleName), resMgr_(resMgr), context_(context), isSystem_(isSystem) in ResourceManagerAddon()
104 ResourceManagerAddon::ResourceManagerAddon(const std::shared_ptr<ResourceManager>& resMgr, bool isSystem) in ResourceManagerAddon() argument
105 : resMgr_(resMgr), isSystem_(isSystem) in ResourceManagerAddon()
27 Create( napi_env env, const std::string& bundleName, const std::shared_ptr<ResourceManager>& resMgr, std::shared_ptr<AbilityRuntime::Context> context) Create() argument
95 ResourceManagerAddon( const std::string& bundleName, const std::shared_ptr<ResourceManager>& resMgr, const std::shared_ptr<AbilityRuntime::Context>& context, bool isSystem) ResourceManagerAddon() argument
H A Dresource_manager_napi_utils.cpp395 std::shared_ptr<ResourceManager> &resMgr, int32_t &resId) in GetHapResourceManager()
400 resMgr = dataContext->addon_->GetResMgr(); in GetHapResourceManager()
407 resMgr = dataContext->addon_->GetResMgr(); in GetHapResourceManager()
414 resMgr = dataContext->addon_->GetResMgr(); in GetHapResourceManager()
435 resMgr = moduleContext->GetResourceManager(); in GetHapResourceManager()
394 GetHapResourceManager(const ResMgrDataContext* dataContext, std::shared_ptr<ResourceManager> &resMgr, int32_t &resId) GetHapResourceManager() argument
/base/global/resource_management/interfaces/cj/src/
H A Dresource_manager_ffi.cpp73 auto resMgr = FFIData::Create<ResourceManagerImpl>(); in CJ_GetSystemResMgr() local
74 if (resMgr->IsEmpty()) { in CJ_GetSystemResMgr()
78 ret.data = resMgr->GetID(); in CJ_GetSystemResMgr()
198 std::shared_ptr<ResourceManager> resMgr = nullptr; in CJ_GetPluralStringValueByResource() local
200 if (!instance->GetHapResourceManager(res, resMgr, resId)) { in CJ_GetPluralStringValueByResource()
206 ret.code = resMgr->GetPluralStringByIdFormat(value, resId, num, num); in CJ_GetPluralStringValueByResource()
260 std::shared_ptr<ResourceManager> resMgr = nullptr; in CJ_GetStringArrayValueByResource() local
262 if (!instance->GetHapResourceManager(res, resMgr, resId)) { in CJ_GetStringArrayValueByResource()
268 ret.code = resMgr->GetStringArrayById(resId, value); in CJ_GetStringArrayValueByResource()
323 std::shared_ptr<ResourceManager> resMgr in CJ_GetStringByResource() local
390 std::shared_ptr<ResourceManager> resMgr = nullptr; CJ_GetColorByResource() local
420 std::shared_ptr<ResourceManager> resMgr = nullptr; CJ_GetBooleanByResource() local
467 std::shared_ptr<ResourceManager> resMgr = nullptr; CJ_GetNumberByResource() local
572 std::shared_ptr<ResourceManager> resMgr = nullptr; CJ_GetMediaContentByResource() local
618 std::shared_ptr<ResourceManager> resMgr = nullptr; CJ_GetMediaContentBase64ByResource() local
679 std::shared_ptr<ResourceManager> resMgr = nullptr; CJ_GetDrawableDescriptorByResource() local
761 std::shared_ptr<ResourceManager> resMgr = nullptr; CJ_GetSymbolByResource() local
[all...]
H A Dresource_manager_impl.cpp48 std::shared_ptr<Global::Resource::ResourceManager> resMgr(Global::Resource::GetSystemResourceManager()); in ResourceManagerImpl()
49 resMgr_ = resMgr; in ResourceManagerImpl()
388 std::shared_ptr<Global::Resource::ResourceManager> &resMgr, int32_t &resId) in GetHapResourceManager()
392 resMgr = resMgr_; in GetHapResourceManager()
400 resMgr = g_resourceMgr[key]; in GetHapResourceManager()
408 resMgr = moduleContext->GetResourceManager(); in GetHapResourceManager()
409 g_resourceMgr[key] = resMgr; in GetHapResourceManager()
441 std::shared_ptr<Global::Resource::ResourceManager> resMgr, uint32_t density, RState &state) in GetDrawableDescriptorPtr()
444 auto drawableDescriptor = OHOS::Ace::Napi::DrawableDescriptorFactory::Create(id, resMgr, state, drawableType, in GetDrawableDescriptorPtr()
387 GetHapResourceManager(Global::Resource::ResourceManager::Resource resource, std::shared_ptr<Global::Resource::ResourceManager> &resMgr, int32_t &resId) GetHapResourceManager() argument
440 GetDrawableDescriptorPtr(uint32_t id, std::shared_ptr<Global::Resource::ResourceManager> resMgr, uint32_t density, RState &state) GetDrawableDescriptorPtr() argument
H A Dresource_manager_impl.h106 std::shared_ptr<Global::Resource::ResourceManager> &resMgr, int32_t &resId);
125 std::shared_ptr<Global::Resource::ResourceManager> resMgr, uint32_t density, Global::Resource::RState &state);
/base/global/resource_management/frameworks/resmgr/src/
H A Draw_file_manager.cpp67 const NativeResourceManager *resMgr; member
71 pf(nullptr), buffer(nullptr), resMgr(nullptr), actualOffset(std::make_unique<ActualOffset>()) {} in RawFile()
115 void OH_ResourceManager_ReleaseNativeResourceManager(NativeResourceManager *resMgr) in OH_ResourceManager_ReleaseNativeResourceManager() argument
117 if (resMgr != nullptr) { in OH_ResourceManager_ReleaseNativeResourceManager()
118 delete resMgr; in OH_ResourceManager_ReleaseNativeResourceManager()
119 resMgr = nullptr; in OH_ResourceManager_ReleaseNativeResourceManager()
204 result->resMgr = mgr; in LoadRawFileFromHap()
357 RState state = rawFile->resMgr->resManager-> in GetRawFileDescriptorFromHap()
379 if (rawFile->resMgr != nullptr) { in OH_ResourceManager_GetRawFileDescriptorData()
422 const NativeResourceManager *resMgr; member
[all...]
/base/global/resource_management/interfaces/native/resource/include/
H A Draw_file_manager.h80 * @param resMgr Indicates the pointer to {@link RawDir}.
84 void OH_ResourceManager_ReleaseNativeResourceManager(NativeResourceManager *resMgr);
/base/global/resource_management/interfaces/js/kits/src/
H A Dresource_manager_napi.cpp91 std::shared_ptr<ResourceManager> resMgr; in InitAsyncContext() local
94 resMgr = ability->GetResourceManager(); in InitAsyncContext()
98 resMgr = bundleContext->GetResourceManager(); in InitAsyncContext()
103 resMgr = context->GetResourceManager(); in InitAsyncContext()
107 resMgr = bundleContext->GetResourceManager(); in InitAsyncContext()
111 asyncContext.resMgr_ = resMgr; in InitAsyncContext()
113 return resMgr != nullptr; in InitAsyncContext()
/base/global/resource_management/interfaces/js/innerkits/core/include/
H A Dresource_manager_addon.h37 const std::shared_ptr<ResourceManager>& resMgr, std::shared_ptr<AbilityRuntime::Context> context);
43 ResourceManagerAddon(const std::string& bundleName, const std::shared_ptr<ResourceManager>& resMgr,
46 ResourceManagerAddon(const std::shared_ptr<ResourceManager>& resMgr, bool isSystem = false);
67 napi_value CreateOverrideAddon(napi_env env, const std::shared_ptr<ResourceManager>& resMgr);
H A Dresource_manager_napi_utils.h69 std::shared_ptr<ResourceManager> &resMgr, int32_t &resId);
/base/inputmethod/imf/services/src/
H A Dime_info_inquirer.cpp538 auto resMgr = GetResMgr(resPath); in ListInputMethodSubtype() local
558 if (resMgr != nullptr) { in ListInputMethodSubtype()
559 auto errValue = resMgr->GetStringById(subProp.labelId, subProp.label); in ListInputMethodSubtype()
949 std::shared_ptr<ResourceManager> resMgr(CreateResourceManager()); in GetResMgr()
950 if (resMgr == nullptr) { in GetResMgr()
951 IMSA_HILOGE("resMgr is nullptr!"); in GetResMgr()
954 resMgr->AddResource(resourcePath.c_str()); in GetResMgr()
963 resMgr->UpdateResConfig(*resConfig); in GetResMgr()
964 return resMgr; in GetResMgr()
/base/usb/usb_manager/services/native/src/
H A Dusb_right_manager.cpp358 auto resMgr = GetBundleResMgr(); in GetAppName() local
359 if (resMgr == nullptr) { in GetAppName()
365 auto ret = resMgr->GetBundleResourceInfo(bundleName, (uint32_t)ResourceFlag::GET_RESOURCE_INFO_WITH_LABEL, info); in GetAppName()
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dreminder_request.h916 * @param resMgr Indicates the resource manager for get button title
918 void OnLanguageChange(const std::shared_ptr<Global::Resource::ResourceManager> &resMgr);
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dreminder_request.cpp1894 void ReminderRequest::OnLanguageChange(const std::shared_ptr<Global::Resource::ResourceManager> &resMgr) in OnLanguageChange() argument
1896 if (resMgr == nullptr) { in OnLanguageChange()
1905 resMgr->GetStringByName(button.second.resource.c_str(), title); in OnLanguageChange()

Completed in 35 milliseconds