Home
last modified time | relevance | path

Searched refs:KeyParam (Results 1 – 23 of 23) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/base/resource/
H A Dace_res_key_parser.h32 using parse_key_function = std::function<bool(const std::string&, std::vector<KeyParam>&)>;
53 bool ParseMatch(const std::vector<std::string>& keys, std::vector<KeyParam>& keyParams,
55 static bool ParseMcc(const std::string& key, std::vector<KeyParam>& keyParams);
56 static bool ParseMnc(const std::string& key, std::vector<KeyParam>& keyParams);
57 static bool ParseOrientation(const std::string& key, std::vector<KeyParam>& keyParams);
58 static bool ParseColorMode(const std::string& key, std::vector<KeyParam>& keyParams);
59 static bool ParseDeviceType(const std::string& key, std::vector<KeyParam>& keyParams);
60 static bool ParseResolution(const std::string& key, std::vector<KeyParam>& keyParams);
61 static bool ParseDefaults(const std::string& key, std::vector<KeyParam>& keyParams);
62 static bool ParseScreenShape(const std::string& key, std::vector<KeyParam>& keyParams);
[all …]
H A Dace_res_key_parser.cpp153 bool AceResKeyParser::ParseMcc(const std::string& key, std::vector<KeyParam>& keyParams) in ParseMcc()
157 KeyParam keyParam; in ParseMcc()
166 bool AceResKeyParser::ParseMnc(const std::string& key, std::vector<KeyParam>& keyParams) in ParseMnc()
170 KeyParam keyParam; in ParseMnc()
187 KeyParam keyParam; in ParseScreenShape()
200 KeyParam keyParam; in ParseLongScreen()
213 KeyParam keyParam; in ParseOrientation()
226 KeyParam keyParam; in ParseColorMode()
239 KeyParam keyParam; in ParseDeclarativeColorMode()
252 KeyParam keyParam; in ParseDeviceType()
[all …]
H A Dace_res_config.h29 struct KeyParam;
73 bool ParseConfig(const std::vector<KeyParam>& keyParams);
H A Dace_res_data_struct.h38 struct KeyParam { struct
H A Dace_res_config.cpp897 bool AceResConfig::ParseConfig(const std::vector<KeyParam>& keyParams) in ParseConfig()
975 std::vector<KeyParam> keyParams; in ConvertResTagToConfig()
986 std::vector<KeyParam> keyParams; in ConvertDeclarativeResTagToConfig()
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dhap_parser_test.cpp71 auto kp = std::make_shared<KeyParam>();
76 auto kp1 = std::make_shared<KeyParam>();
81 auto kp2 = std::make_shared<KeyParam>();
86 auto kp3 = std::make_shared<KeyParam>();
91 auto kp4 = std::make_shared<KeyParam>();
96 auto kp5 = std::make_shared<KeyParam>();
157 auto kp1 = std::make_shared<KeyParam>();
162 auto kp2 = std::make_shared<KeyParam>();
167 auto kp3 = std::make_shared<KeyParam>();
172 auto kp4 = std::make_shared<KeyParam>();
[all …]
H A Dres_desc_test.cpp118 KeyParam keyParam; in TestKeyParam()
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dhap_parser_test.cpp69 std::vector<KeyParam *> keyParams;
70 auto kp = new KeyParam();
75 kp = new KeyParam();
80 kp = new KeyParam();
85 kp = new KeyParam();
90 kp = new KeyParam();
153 auto kp = new KeyParam();
158 kp = new KeyParam();
163 kp = new KeyParam();
168 kp = new KeyParam();
[all …]
H A Dres_desc_test.cpp118 KeyParam keyParam; in TestKeyParam()
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/
H A Dres_desc.cpp37 std::string KeyParam::GetScreenDensityStr() const in GetScreenDensityStr()
66 std::string KeyParam::GetDeviceTypeStr() const in GetDeviceTypeStr()
99 std::string KeyParam::GetColorModeStr() const in GetColorModeStr()
117 std::string KeyParam::GetInputDeviceStr() const in GetInputDeviceStr()
128 std::string KeyParam::GetMccStr() const in GetMccStr()
137 std::string KeyParam::GetMncStr() const in GetMncStr()
146 const std::string KeyParam::ConvertToStr() const in ConvertToStr()
189 std::string KeyParam::ToString() const in ToString()
H A Dhap_resource.cpp466 const std::vector<std::shared_ptr<KeyParam>> &keyParams = item->keyParams_; in GetLimitPathsKeys()
488 void HapResource::GetKeyParamsLocales(const std::vector<std::shared_ptr<KeyParam>> keyParams, in GetKeyParamsLocales()
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/include/
H A Dglobal_utils.h67 typedef struct KeyParam { struct
70 } KeyParam; typedef
75 KeyParam *keyParams;
H A Dhap_resource.h72 inline const std::vector<KeyParam *> GetKeyParams() const in GetKeyParams()
97 ValueUnderQualifierDir(const std::vector<KeyParam *> &keyParams, IdItem *idItem,
110 std::vector<KeyParam *> keyParams_;
H A Dhap_parser.h70 static ResConfigImpl *CreateResConfigFromKeyParams(const std::vector<KeyParam *> &keyParams);
77 static std::string ToFolderPath(const std::vector<KeyParam *> &keyParams);
H A Dres_desc.h130 class KeyParam {
182 std::vector<KeyParam *> keyParams_;
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
H A Dhap_parser.cpp290 bool IsLocaleMatch(const ResConfigImpl *defaultConfig, const std::vector<KeyParam *> &keyParams) in IsLocaleMatch()
320 KeyParam *kp = new (std::nothrow) KeyParam(); in ParseKey()
325 errno_t eret = memcpy_s(kp, sizeof(KeyParam), buffer + offset, ResKey::KEYPARAM_HEADER_LEN); in ParseKey()
396 ResConfigImpl *HapParser::CreateResConfigFromKeyParams(const std::vector<KeyParam *> &keyParams) in CreateResConfigFromKeyParams()
417 const KeyParam *kp = keyParams.at(i); in CreateResConfigFromKeyParams()
496 std::string HapParser::ToFolderPath(const std::vector<KeyParam *> &keyParams) in ToFolderPath()
509 KeyParam *keyParam = keyParams[i]; in ToFolderPath()
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dres_desc.cpp24 std::string KeyParam::GetScreenDensityStr() const in GetScreenDensityStr()
53 std::string KeyParam::GetDeviceTypeStr() const in GetDeviceTypeStr()
82 const std::string KeyParam::ConvertToStr() const in ConvertToStr()
114 std::string KeyParam::ToString() const in ToString()
H A Dglobal_utils.c44 static void SetLocaleItemViaKeys(const KeyParam *keyParam, LocaleItem *localeItem);
155 static void SetLocaleItemViaKeys(const KeyParam *keyParam, LocaleItem *localeItem) in SetLocaleItemViaKeys()
316 keys[i].keyParams = (KeyParam *)malloc(sizeof(KeyParam) * keys[i].keysCount); in GetKeyParams()
H A Dhap_resource.cpp34 HapResource::ValueUnderQualifierDir::ValueUnderQualifierDir(const std::vector<KeyParam *> &keyParam… in ValueUnderQualifierDir()
/ohos5.0/base/global/resource_management/frameworks/resmgr/include/
H A Dhap_resource.h146 inline const std::vector<std::shared_ptr<KeyParam>> GetKeyParams() const in GetKeyParams()
205 std::vector<std::shared_ptr<KeyParam>> keyParams_;
305 …void GetKeyParamsLocales(const std::vector<std::shared_ptr<KeyParam>> keyParams, std::set<std::str…
H A Dres_desc.h147 class KeyParam {
204 std::vector<std::shared_ptr<KeyParam>> keyParams_;
H A Dhap_parser.h148 const std::vector<std::shared_ptr<KeyParam>> &keyParams);
155 static std::string ToFolderPath(const std::vector<std::shared_ptr<KeyParam>> &keyParams);
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/utils/
H A Dhap_parser.cpp562 const std::vector<std::shared_ptr<KeyParam>> &keyParams) in IsLocaleMatch()
579 SelectOptions *options, std::shared_ptr<KeyParam> &kp) in ParseKeyParam()
581 kp = std::make_shared<KeyParam>(); in ParseKeyParam()
590 … errno_t eret = memcpy_s(kp.get(), sizeof(KeyParam), buffer + offset, ResKey::KEYPARAM_HEADER_LEN); in ParseKeyParam()
623 std::shared_ptr<KeyParam> kp; in ParseKey()
704 const std::vector<std::shared_ptr<KeyParam>> &keyParams) in CreateResConfigFromKeyParams()
720 const std::shared_ptr<KeyParam> kp = keyParams.at(i); in CreateResConfigFromKeyParams()
858 std::string HapParser::ToFolderPath(const std::vector<std::shared_ptr<KeyParam>> &keyParams) in ToFolderPath()