Home
last modified time | relevance | path

Searched refs:resConfig (Results 1 – 17 of 17) sorted by relevance

/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dhap_manager.h35 explicit HapManager(ResConfigImpl *resConfig);
47 RState UpdateResConfig(ResConfig &resConfig);
53 void GetResConfig(ResConfig &resConfig);
100 void UpdateResConfigImpl(ResConfigImpl &resConfig);
102 void GetResConfigImpl(ResConfigImpl &resConfig);
Dresource_manager.h33 virtual RState UpdateResConfig(ResConfig &resConfig) = 0;
35 virtual void GetResConfig(ResConfig &resConfig) = 0;
Dresource_manager_impl.h47 virtual RState UpdateResConfig(ResConfig &resConfig);
53 virtual void GetResConfig(ResConfig &resConfig);
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dhap_manager.cpp29 HapManager::HapManager(ResConfigImpl *resConfig) in HapManager() argument
30 : resConfig_(resConfig) in HapManager()
135 const ResConfigImpl *resConfig = path->GetResConfig(); in FindQualifierValueByName() local
136 if (!this->resConfig_->Match(resConfig)) { in FindQualifierValueByName()
141 bestResConfig = resConfig; in FindQualifierValueByName()
144 if (!bestResConfig->IsMoreSuitable(resConfig, currentResConfig)) { in FindQualifierValueByName()
145 bestResConfig = resConfig; in FindQualifierValueByName()
167 const ResConfigImpl *resConfig = path->GetResConfig(); in FindQualifierValueById() local
168 if (!this->resConfig_->Match(resConfig)) { in FindQualifierValueById()
173 bestResConfig = resConfig; in FindQualifierValueById()
[all …]
Dglobal_utils.c46 static uint32_t FindOffsetByLangWithScriptOrRegion(char **resConfig, const Key *keys, uint32_t conf…
47 static uint32_t FindOffsetByAllParam(char **resConfig, const Key *keys, uint32_t configNum);
48 static uint32_t GetIdHeaderOffsetByCount(char **resConfig, const Key *keys, uint32_t configNum, int…
176 static uint32_t FindOffsetByLangWithScriptOrRegion(char **resConfig, const Key *keys, uint32_t conf… in FindOffsetByLangWithScriptOrRegion() argument
178 if (resConfig == NULL || keys == NULL) { in FindOffsetByLangWithScriptOrRegion()
182 uint32_t languageValue = GetValueFromLocale(resConfig[LANGUAGE_INDEX]); in FindOffsetByLangWithScriptOrRegion()
183 uint32_t secondValue = GetValueFromLocale(resConfig[1]); // secondValue may be script or region in FindOffsetByLangWithScriptOrRegion()
184 uint32_t len = strlen(resConfig[1]); in FindOffsetByLangWithScriptOrRegion()
211 static uint32_t FindOffsetByAllParam(char **resConfig, const Key *keys, uint32_t configNum) in FindOffsetByAllParam() argument
213 if (resConfig == NULL || keys == NULL) { in FindOffsetByAllParam()
[all …]
Dglobal.cpp157 ResConfigImpl *resConfig = new(std::nothrow) ResConfigImpl; in GLOBAL_GetValueById() local
158 if (resConfig == nullptr) { in GLOBAL_GetValueById()
162 HapManager hapManager(resConfig); in GLOBAL_GetValueById()
190 ResConfigImpl *resConfig = new(std::nothrow) ResConfigImpl; in GLOBAL_GetValueByName() local
191 if (resConfig == nullptr) { in GLOBAL_GetValueByName()
195 HapManager hapManager(resConfig); in GLOBAL_GetValueByName()
Dresource_manager_impl.cpp57 ResConfigImpl *resConfig = new (std::nothrow) ResConfigImpl; in Init() local
58 if (resConfig == nullptr) { in Init()
62 hapManager_ = new (std::nothrow) HapManager(resConfig); in Init()
64 delete (resConfig); in Init()
602 RState ResourceManagerImpl::UpdateResConfig(ResConfig &resConfig) in UpdateResConfig() argument
604 if (resConfig.GetLocaleInfo() == nullptr) { in UpdateResConfig()
607 if (resConfig.GetLocaleInfo()->GetLanguage() == nullptr) { in UpdateResConfig()
610 return this->hapManager_->UpdateResConfig(resConfig); in UpdateResConfig()
613 void ResourceManagerImpl::GetResConfig(ResConfig &resConfig) in GetResConfig() argument
615 this->hapManager_->GetResConfig(resConfig); in GetResConfig()
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dtest_common.cpp71 ResConfig *resConfig = CreateResConfig(); in CreateResConfig() local
72 if (resConfig == nullptr) { in CreateResConfig()
75 resConfig->SetLocaleInfo(language, script, region); in CreateResConfig()
76 return resConfig; in CreateResConfig()
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dtest_common.cpp74 ResConfig *resConfig = CreateResConfig(); in CreateResConfig() local
75 if (resConfig == nullptr) { in CreateResConfig()
78 resConfig->SetLocaleInfo(language, script, region); in CreateResConfig()
79 return resConfig; in CreateResConfig()
/base/global/resource_management/frameworks/resmgr/include/
Dhap_manager.h40 HapManager(ResConfigImpl *resConfig, bool isSystem = false);
52 RState UpdateResConfig(ResConfig &resConfig);
58 void GetResConfig(ResConfig &resConfig);
310 void UpdateResConfigImpl(ResConfigImpl &resConfig);
312 void GetResConfigImpl(ResConfigImpl &resConfig);
Dresource_manager_impl.h93 virtual RState UpdateResConfig(ResConfig &resConfig);
99 virtual void GetResConfig(ResConfig &resConfig);
/base/global/resource_management/frameworks/resmgr/src/
Dresource_manager.cpp55 ResConfig &resConfig) in CreateResourceManagerDef() argument
85 resourceManagerImpl->UpdateResConfig(resConfig); in CreateResourceManagerDef()
108 …const std::string &hapPath, const std::vector<std::string> &overlayPath, ResConfig &resConfig, int… in CreateResourceManager() argument
111 return CreateResourceManagerDef(bundleName, moduleName, hapPath, overlayPath, resConfig); in CreateResourceManager()
Dhap_manager.cpp55 HapManager::HapManager(ResConfigImpl *resConfig, bool isSystem) in HapManager() argument
56 : resConfig_(resConfig), isSystem_(isSystem) in HapManager()
204 const ResConfigImpl *resConfig = path->GetResConfig(); in GetBestMatchResource() local
205 if (!this->resConfig_->Match(resConfig)) { in GetBestMatchResource()
210 bestOverlayResConfig = resConfig; in GetBestMatchResource()
214 if (!bestOverlayResConfig->IsMoreSuitable(resConfig, currentResConfig, density)) { in GetBestMatchResource()
215 bestOverlayResConfig = resConfig; in GetBestMatchResource()
220 bestResConfig = resConfig; in GetBestMatchResource()
224 if (!bestResConfig->IsMoreSuitable(resConfig, currentResConfig, density)) { in GetBestMatchResource()
225 bestResConfig = resConfig; in GetBestMatchResource()
[all …]
Dresource_manager_impl.cpp65 ResConfigImpl *resConfig = new (std::nothrow) ResConfigImpl; in Init() local
66 if (resConfig == nullptr) { in Init()
70 hapManager_ = new (std::nothrow) HapManager(resConfig, isSystem); in Init()
72 delete (resConfig); in Init()
839 RState ResourceManagerImpl::UpdateResConfig(ResConfig &resConfig) in UpdateResConfig() argument
845 if (resConfig.GetLocaleInfo() == nullptr) { in UpdateResConfig()
848 if (resConfig.GetLocaleInfo()->getLanguage() == nullptr) { in UpdateResConfig()
851 const char* language = resConfig.GetLocaleInfo()->getLanguage(); in UpdateResConfig()
852 const char* region = resConfig.GetLocaleInfo()->getCountry(); in UpdateResConfig()
868 return this->hapManager_->UpdateResConfig(resConfig); in UpdateResConfig()
[all …]
/base/global/resource_management/frameworks/resmgr/src/utils/
Dhap_parser.cpp583 ResConfigImpl *resConfig = new (std::nothrow) ResConfigImpl; in CreateResConfigFromKeyParams() local
584 if (resConfig == nullptr) { in CreateResConfigFromKeyParams()
591 resConfig->SetColorMode(COLOR_MODE_NOT_SET); in CreateResConfigFromKeyParams()
592 return resConfig; in CreateResConfigFromKeyParams()
594 delete resConfig; in CreateResConfigFromKeyParams()
635 ResConfigImpl *resConfig = new (std::nothrow) ResConfigImpl; in BuildResConfig() local
636 if (resConfig == nullptr) { in BuildResConfig()
640 resConfig->SetDeviceType(configKey->deviceType); in BuildResConfig()
641 resConfig->SetDirection(configKey->direction); in BuildResConfig()
642 resConfig->SetColorMode(configKey->colorMode); in BuildResConfig()
[all …]
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dhap_parser.cpp398 ResConfigImpl *resConfig = new (std::nothrow) ResConfigImpl; in CreateResConfigFromKeyParams() local
399 if (resConfig == nullptr) { in CreateResConfigFromKeyParams()
406 return resConfig; in CreateResConfigFromKeyParams()
436 resConfig->SetDeviceType(deviceType); in CreateResConfigFromKeyParams()
437 resConfig->SetDirection(direction); in CreateResConfigFromKeyParams()
438 resConfig->SetScreenDensity(screenDensity); in CreateResConfigFromKeyParams()
439 RState r = resConfig->SetLocaleInfo(language, script, region); in CreateResConfigFromKeyParams()
445 return resConfig; in CreateResConfigFromKeyParams()
/base/global/resource_management/interfaces/inner_api/include/
Dresource_manager.h66 virtual RState UpdateResConfig(ResConfig &resConfig) = 0;
68 virtual void GetResConfig(ResConfig &resConfig) = 0;
213 ResConfig &resConfig, int32_t appType = 0);