Lines Matching refs:keyparams
25 bool KeyParser::Parse(const string &folderName, vector<KeyParam> &keyparams) in Parse() argument
32 keyparams = caches_[folderName]; in Parse()
48 if (!ParseMatch(keyParts, keyparams, founctions)) { in Parse()
51 caches_.emplace(folderName, keyparams); in Parse()
56 vector<KeyParam> &keyparams, const vector<parse_key_founction> &founctions) in ParseMatch() argument
62 if (founctions[i](key, keyparams)) { in ParseMatch()
77 vector<KeyParam> &keyparams, const vector<parse_key_founction> &founctions) in ParseMatchBySeq() argument
80 if (!founctions[i](keys[i], keyparams)) { in ParseMatchBySeq()
87 bool KeyParser::ParseMccMnc(const string &folderName, vector<KeyParam> &keyparams) in ParseMccMnc() argument
99 return ParseMatchBySeq(keyParts, keyparams, founctions); in ParseMccMnc()
102 bool KeyParser::ParseMcc(const string &folderName, vector<KeyParam> &keyparams) in ParseMcc() argument
109 PushMccMnc(folderName, KeyType::MCC, keyparams); in ParseMcc()
113 bool KeyParser::ParseMnc(const string &folderName, vector<KeyParam> &keyparams) in ParseMnc() argument
120 PushMccMnc(folderName, KeyType::MNC, keyparams); in ParseMnc()
124 bool KeyParser::ParseLSR(const string &folderName, vector<KeyParam> &keyparams) in ParseLSR() argument
141 keyparams.insert(keyparams.end(), tmp.begin(), tmp.end()); in ParseLSR()
148 bool KeyParser::ParseLanguage(const string &folderName, vector<KeyParam> &keyparams) in ParseLanguage() argument
159 PushLSR(folderName, KeyType::LANGUAGE, keyparams); in ParseLanguage()
163 bool KeyParser::ParseScript(const string &folderName, vector<KeyParam> &keyparams) in ParseScript() argument
174 PushLSR(folderName, KeyType::SCRIPT, keyparams); in ParseScript()
178 bool KeyParser::ParseRegion(const string &folderName, vector<KeyParam> &keyparams) in ParseRegion() argument
191 PushLSR(folderName, KeyType::REGION, keyparams); in ParseRegion()
195 bool KeyParser::ParseOrientation(const string &folderName, vector<KeyParam> &keyparams) in ParseOrientation() argument
202 PushValue(static_cast<uint32_t>(it->second), KeyType::ORIENTATION, keyparams); in ParseOrientation()
206 bool KeyParser::ParseDeviceType(const string &folderName, vector<KeyParam> &keyparams) in ParseDeviceType() argument
213 PushValue(static_cast<uint32_t>(it->second), KeyType::DEVICETYPE, keyparams); in ParseDeviceType()
217 bool KeyParser::ParseNightMode(const string &folderName, vector<KeyParam> &keyparams) in ParseNightMode() argument
224 PushValue(static_cast<uint32_t>(it->second), KeyType::NIGHTMODE, keyparams); in ParseNightMode()
228 bool KeyParser::ParseInputDevice(const string &folderName, vector<KeyParam> &keyparams) in ParseInputDevice() argument
235 PushValue(static_cast<uint32_t>(it->second), KeyType::INPUTDEVICE, keyparams); in ParseInputDevice()
239 bool KeyParser::ParseResolution(const string &folderName, vector<KeyParam> &keyparams) in ParseResolution() argument
246 PushValue(static_cast<uint32_t>(it->second), KeyType::RESOLUTION, keyparams); in ParseResolution()
250 void KeyParser::PushMccMnc(const string &folderName, KeyType type, vector<KeyParam> &keyparams) in PushMccMnc() argument
255 keyparams.push_back(keyParam); in PushMccMnc()
258 void KeyParser::PushLSR(const string &folderName, KeyType type, vector<KeyParam> &keyparams) in PushLSR() argument
266 keyparams.push_back(keyParam); in PushLSR()
269 void KeyParser::PushValue(uint32_t value, KeyType type, vector<KeyParam> &keyparams) in PushValue() argument
274 keyparams.push_back(keyParam); in PushValue()