Home
last modified time | relevance | path

Searched refs:KeyParam (Results 1 - 14 of 14) sorted by relevance

/developtools/global_resource_tool/include/
H A Dkey_parser.h27 static bool Parse(const std::string &folderName, std::vector<KeyParam> &keyparams);
32 typedef bool (*parse_key_founction)(const std::string &folderName, std::vector<KeyParam> &keyparams);
34 std::vector<KeyParam> &keyparams, const std::vector<parse_key_founction> &founctions);
36 std::vector<KeyParam> &keyparams, const std::vector<parse_key_founction> &founctions);
38 static bool ParseMccMnc(const std::string &folderName, std::vector<KeyParam> &keyparams);
39 static bool ParseMcc(const std::string &folderName, std::vector<KeyParam> &keyparams);
40 static bool ParseMnc(const std::string &folderName, std::vector<KeyParam> &keyparams);
41 static bool ParseLSR(const std::string &folderName, std::vector<KeyParam> &keyparams);
42 static bool ParseLanguage(const std::string &folderName, std::vector<KeyParam> &keyparams);
43 static bool ParseScript(const std::string &folderName, std::vector<KeyParam>
[all...]
H A Dselect_compile_parse.h27 static bool IsSelectCompile(std::vector<KeyParam> &keyParams);
30 static bool IsSelectableMccmnc(std::vector<KeyParam> &keyParams, size_t &index, std::vector<KeyParam> &limit);
31 static bool IsSelectableLocale(std::vector<KeyParam> &keyParams, size_t &index, std::vector<KeyParam> &limit);
32 static bool IsSelectableOther(std::vector<KeyParam> &keyParams, size_t &index, std::vector<KeyParam> &limit);
33 static void InitMccmnc(std::vector<KeyParam> &limit);
34 static void InitLocale(std::vector<KeyParam> &limit);
H A Dresource_util.h175 static std::string PaserKeyParam(const std::vector<KeyParam> &keyParams);
217 static uint32_t GetNormalSize(const std::vector<KeyParam> &keyParams, uint32_t index);
257 static std::string GetLocaleLimitkey(const KeyParam &KeyParam);
258 static std::string GetDeviceTypeLimitkey(const KeyParam &KeyParam);
259 static std::string GetResolutionLimitkey(const KeyParam &KeyParam);
260 static std::string GetKeyParamValue(const KeyParam &KeyParam);
[all...]
H A Dresource_data.h193 struct KeyParam { struct
196 bool operator == (const KeyParam &other) in operator ==()
293 std::vector<KeyParam> keyParams;
304 std::vector<KeyParam> mccmnc;
305 std::vector<KeyParam> locale;
306 std::vector<KeyParam> orientation;
307 std::vector<KeyParam> device;
308 std::vector<KeyParam> colormode;
309 std::vector<KeyParam> density;
313 KeyParam mc
[all...]
H A Dresource_item.h29 ResourceItem(const std::string &name, const std::vector<KeyParam> &keyparams, ResType type);
42 const std::vector<KeyParam> &GetKeyParam() const;
53 std::vector<KeyParam> keyparams_;
H A Dresource_table.h50 uint32_t keyCount; // KeyParam count
78 bool ReadLimitKeys(std::ifstream &in, std::map<int64_t, std::vector<KeyParam>> &limitKeys,
84 const std::map<int64_t, std::vector<KeyParam>> &limitKeys,
/developtools/global_resource_tool/src/
H A Dkey_parser.cpp24 map<string, vector<KeyParam>> KeyParser::caches_ = {};
25 bool KeyParser::Parse(const string &folderName, vector<KeyParam> &keyparams) in Parse()
56 vector<KeyParam> &keyparams, const vector<parse_key_founction> &founctions) in ParseMatch()
108 vector<KeyParam> &keyparams, const vector<parse_key_founction> &founctions) in ParseMatchBySeq()
118 bool KeyParser::ParseMccMnc(const string &folderName, vector<KeyParam> &keyparams) in ParseMccMnc()
133 bool KeyParser::ParseMcc(const string &folderName, vector<KeyParam> &keyparams) in ParseMcc()
144 bool KeyParser::ParseMnc(const string &folderName, vector<KeyParam> &keyparams) in ParseMnc()
155 bool KeyParser::ParseLSR(const string &folderName, vector<KeyParam> &keyparams) in ParseLSR()
170 vector<KeyParam> tmp; in ParseLSR()
179 bool KeyParser::ParseLanguage(const string &folderName, vector<KeyParam>
[all...]
H A Dresource_util.cpp282 string ResourceUtil::GetLocaleLimitkey(const KeyParam &KeyParam) in GetLocaleLimitkey() argument
284 string str(reinterpret_cast<const char *>(&KeyParam.value)); in GetLocaleLimitkey()
289 string ResourceUtil::GetDeviceTypeLimitkey(const KeyParam &KeyParam) in GetDeviceTypeLimitkey() argument
291 auto ret = find_if(g_deviceMap.begin(), g_deviceMap.end(), [KeyParam](const auto &iter) { in GetDeviceTypeLimitkey()
292 return KeyParam.value == static_cast<const uint32_t>(iter.second); in GetDeviceTypeLimitkey()
300 string ResourceUtil::GetResolutionLimitkey(const KeyParam &KeyParam) in GetResolutionLimitkey() argument
302 auto ret = find_if(g_resolutionMap.begin(), g_resolutionMap.end(), [KeyParam](cons in GetResolutionLimitkey()
311 GetKeyParamValue(const KeyParam &KeyParam) GetKeyParamValue() argument
[all...]
H A Dselect_compile_parse.cpp63 bool SelectCompileParse::IsSelectCompile(vector<KeyParam> &keyParams) in IsSelectCompile()
95 void SelectCompileParse::InitMccmnc(vector<KeyParam> &limit) in InitMccmnc()
110 bool SelectCompileParse::IsSelectableMccmnc(vector<KeyParam> &keyParams, size_t &index, vector<KeyParam> &limit) in IsSelectableMccmnc()
125 void SelectCompileParse::InitLocale(vector<KeyParam> &limit) in InitLocale()
144 bool SelectCompileParse::IsSelectableLocale(vector<KeyParam> &keyParams, size_t &index, vector<KeyParam> &limit) in IsSelectableLocale()
166 bool SelectCompileParse::IsSelectableOther(vector<KeyParam> &keyParams, size_t &index, vector<KeyParam> &limit) in IsSelectableOther()
H A Dresource_item.cpp33 ResourceItem::ResourceItem(const string &name, const vector<KeyParam> &keyparams, ResType type) in ResourceItem()
108 const vector<KeyParam> &ResourceItem::GetKeyParam() const in GetKeyParam()
H A Dresource_table.cpp125 map<int64_t, vector<KeyParam>> limitKeys; in LoadResTable()
255 pos += sizeof(KeyParam); in Prepare()
363 bool ResourceTable::ReadLimitKeys(ifstream &in, map<int64_t, vector<KeyParam>> &limitKeys, in ReadLimitKeys()
382 vector<KeyParam> keyParams; in ReadLimitKeys()
389 KeyParam keyParam; in ReadLimitKeys()
452 const std::map<int64_t, std::vector<KeyParam>> &limitKeys, in ReadDataRecordStart()
492 const vector<KeyParam> &keyparams = limitKeys.find(datas.find(offset)->second.second)->second; in ReadDataRecordStart()
H A Dresource_append.cpp142 vector<KeyParam> keyParams; in ScanSubResources()
206 vector<KeyParam> keyParams; in ScanLimitKey()
316 vector<KeyParam> keyParams; in ScanSingleFile()
449 vector<KeyParam> keyParams; in WriteRawFilesOrResFiles()
539 vector<KeyParam> keyParams; in LoadResourceItemFromMem()
541 KeyParam keyParam; in LoadResourceItemFromMem()
H A Dresource_directory.cpp59 vector<KeyParam> keyParams; in ScanResourceLimitKeyDir()
/developtools/packing_tool/adapter/ohos/
H A DResourcesParser.java179 static class KeyParam { class in ResourcesParser
191 KeyParam[] params;
287 cfg.params = new KeyParam[cfg.keyCount]; in loadBaseConfig()
289 cfg.params[j] = new KeyParam(); in loadBaseConfig()
364 cfg.params = new KeyParam[cfg.keyCount]; in loadConfig()
366 cfg.params[j] = new KeyParam(); in loadConfig()
568 KeyParam param = configIndex.params[i]; in convertConfigIndexToString()

Completed in 10 milliseconds