Home
last modified time | relevance | path

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

/developtools/global_resource_tool/include/
Dkey_parser.h27 static bool Parse(const std::string &folderName, std::vector<KeyParam> &keyparams);
30 …typedef bool (*parse_key_founction)(const std::string &folderName, std::vector<KeyParam> &keyparam…
32 std::vector<KeyParam> &keyparams, const std::vector<parse_key_founction> &founctions);
34 std::vector<KeyParam> &keyparams, const std::vector<parse_key_founction> &founctions);
36 static bool ParseMccMnc(const std::string &folderName, std::vector<KeyParam> &keyparams);
37 static bool ParseMcc(const std::string &folderName, std::vector<KeyParam> &keyparams);
38 static bool ParseMnc(const std::string &folderName, std::vector<KeyParam> &keyparams);
39 static bool ParseLSR(const std::string &folderName, std::vector<KeyParam> &keyparams);
40 static bool ParseLanguage(const std::string &folderName, std::vector<KeyParam> &keyparams);
41 static bool ParseScript(const std::string &folderName, std::vector<KeyParam> &keyparams);
[all …]
Dresource_util.h168 static std::string PaserKeyParam(const std::vector<KeyParam> &keyParams);
210 static uint32_t GetNormalSize(const std::vector<KeyParam> &keyParams, uint32_t index);
219 static std::string GetLocaleLimitkey(const KeyParam &KeyParam);
220 static std::string GetDeviceTypeLimitkey(const KeyParam &KeyParam);
221 static std::string GetResolutionLimitkey(const KeyParam &KeyParam);
222 static std::string GetKeyParamValue(const KeyParam &KeyParam);
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_;
Dresource_table.h77 bool ReadLimitKeys(std::ifstream &in, std::map<int32_t, std::vector<KeyParam>> &limitKeys,
83 const std::map<int32_t, std::vector<KeyParam>> &limitKeys,
Dresource_data.h166 struct KeyParam { struct
239 std::vector<KeyParam> keyParams;
/developtools/global_resource_tool/src/
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()
77 vector<KeyParam> &keyparams, const vector<parse_key_founction> &founctions) in ParseMatchBySeq()
87 bool KeyParser::ParseMccMnc(const string &folderName, vector<KeyParam> &keyparams) in ParseMccMnc()
102 bool KeyParser::ParseMcc(const string &folderName, vector<KeyParam> &keyparams) in ParseMcc()
113 bool KeyParser::ParseMnc(const string &folderName, vector<KeyParam> &keyparams) in ParseMnc()
124 bool KeyParser::ParseLSR(const string &folderName, vector<KeyParam> &keyparams) in ParseLSR()
139 vector<KeyParam> tmp; in ParseLSR()
148 bool KeyParser::ParseLanguage(const string &folderName, vector<KeyParam> &keyparams) in ParseLanguage()
[all …]
Dresource_util.cpp274 string ResourceUtil::GetLocaleLimitkey(const KeyParam &KeyParam) in GetLocaleLimitkey() argument
276 string str(reinterpret_cast<const char *>(&KeyParam.value)); in GetLocaleLimitkey()
281 string ResourceUtil::GetDeviceTypeLimitkey(const KeyParam &KeyParam) in GetDeviceTypeLimitkey() argument
283 auto ret = find_if(g_deviceMap.begin(), g_deviceMap.end(), [KeyParam](const auto &iter) { in GetDeviceTypeLimitkey()
284 return KeyParam.value == static_cast<const uint32_t>(iter.second); in GetDeviceTypeLimitkey()
292 string ResourceUtil::GetResolutionLimitkey(const KeyParam &KeyParam) in GetResolutionLimitkey() argument
294 … auto ret = find_if(g_resolutionMap.begin(), g_resolutionMap.end(), [KeyParam](const auto &iter) { in GetResolutionLimitkey()
295 return KeyParam.value == static_cast<const uint32_t>(iter.second); in GetResolutionLimitkey()
303 string ResourceUtil::GetKeyParamValue(const KeyParam &KeyParam) in GetKeyParamValue() argument
306 switch (KeyParam.keyType) { in GetKeyParamValue()
[all …]
Dresource_item.cpp33 ResourceItem::ResourceItem(const string &name, const vector<KeyParam> &keyparams, ResType type) in ResourceItem()
102 const vector<KeyParam> &ResourceItem::GetKeyParam() const in GetKeyParam()
Dresource_table.cpp124 map<int32_t, vector<KeyParam>> limitKeys; in LoadResTable()
241 pos += sizeof(KeyParam); in Prepare()
349 bool ResourceTable::ReadLimitKeys(ifstream &in, map<int32_t, vector<KeyParam>> &limitKeys, in ReadLimitKeys()
368 vector<KeyParam> keyParams; in ReadLimitKeys()
375 KeyParam keyParam; in ReadLimitKeys()
438 const std::map<int32_t, std::vector<KeyParam>> &limitKeys, in ReadDataRecordStart()
478 const vector<KeyParam> &keyparams = limitKeys.find(datas.find(offset)->second.second)->second; in ReadDataRecordStart()
Dresource_append.cpp136 vector<KeyParam> keyParams; in ScanSubResources()
200 vector<KeyParam> keyParams; in ScanLimitKey()
306 vector<KeyParam> keyParams; in ScanSingleFile()
439 vector<KeyParam> keyParams; in WriteRawFile()
528 vector<KeyParam> keyParams; in LoadResourceItemFromMem()
530 KeyParam keyParam; in LoadResourceItemFromMem()
Dresource_directory.cpp58 vector<KeyParam> keyParams; in ScanResourceLimitKeyDir()
/developtools/packing_tool/adapter/ohos/
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()