• Home
  • Raw
  • Download

Lines Matching refs:KeyParam

274 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()
308 …val = KeyParam.value == static_cast<const uint32_t>(OrientationType::VERTICAL) ? "vertical" : "hor… in GetKeyParamValue()
311 val = KeyParam.value == static_cast<const uint32_t>(NightMode::DARK) ? "dark" : "light"; in GetKeyParamValue()
314 val = GetDeviceTypeLimitkey(KeyParam); in GetKeyParamValue()
317 val = GetResolutionLimitkey(KeyParam); in GetKeyParamValue()
321 val = GetLocaleLimitkey(KeyParam); in GetKeyParamValue()
324 val = to_string(KeyParam.value); in GetKeyParamValue()
330 string ResourceUtil::PaserKeyParam(const vector<KeyParam> &keyParams) in PaserKeyParam()
395 uint32_t ResourceUtil::GetNormalSize(const vector<KeyParam> &keyParams, uint32_t index) in GetNormalSize()