Lines Matching refs:KeyParam
282 string ResourceUtil::GetLocaleLimitkey(const KeyParam &KeyParam)
284 string str(reinterpret_cast<const char *>(&KeyParam.value));
289 string ResourceUtil::GetDeviceTypeLimitkey(const KeyParam &KeyParam)
291 auto ret = find_if(g_deviceMap.begin(), g_deviceMap.end(), [KeyParam](const auto &iter) {
292 return KeyParam.value == static_cast<const uint32_t>(iter.second);
300 string ResourceUtil::GetResolutionLimitkey(const KeyParam &KeyParam)
302 auto ret = find_if(g_resolutionMap.begin(), g_resolutionMap.end(), [KeyParam](const auto &iter) {
303 return KeyParam.value == static_cast<const uint32_t>(iter.second);
311 string ResourceUtil::GetKeyParamValue(const KeyParam &KeyParam)
314 switch (KeyParam.keyType) {
316 val = KeyParam.value == static_cast<const uint32_t>(OrientationType::VERTICAL) ? "vertical" : "horizontal";
319 val = KeyParam.value == static_cast<const uint32_t>(NightMode::DARK) ? "dark" : "light";
322 val = GetDeviceTypeLimitkey(KeyParam);
325 val = GetResolutionLimitkey(KeyParam);
329 val = GetLocaleLimitkey(KeyParam);
332 val = to_string(KeyParam.value);
338 string ResourceUtil::PaserKeyParam(const vector<KeyParam> &keyParams)
403 uint32_t ResourceUtil::GetNormalSize(const vector<KeyParam> &keyParams, uint32_t index)