• Home
  • Raw
  • Download

Lines Matching refs:subProp

103     if (subName == currentImeInfo_->subProp.id) {  in GetImeInfoFromNative()
104 info.subProp = currentImeInfo_->subProp; in GetImeInfoFromNative()
109 [&subName](const SubProperty &subProp) { return subProp.id == subName; }); in GetImeInfoFromNative() argument
114 info.subProp = *it; in GetImeInfoFromNative()
117 info.prop.id = info.subProp.id; in GetImeInfoFromNative()
150 info.subProp = subProps[0]; in GetImeInfoFromBundleMgr()
153 [&subName](const SubProperty &subProp) { return subProp.id == subName; }); in GetImeInfoFromBundleMgr() argument
158 info.subProp = *it; in GetImeInfoFromBundleMgr()
162 info.prop.id = info.subProp.id; in GetImeInfoFromBundleMgr()
405 for (auto &subProp : subProps) { in ListInputMethodSubtype() local
406 subProp.name = extInfo.bundleName; in ListInputMethodSubtype()
407 auto pos = subProp.label.find(':'); in ListInputMethodSubtype()
408 if (pos != std::string::npos && pos + 1 < subProp.label.size()) { in ListInputMethodSubtype()
409 subProp.labelId = atoi(subProp.label.substr(pos + 1).c_str()); in ListInputMethodSubtype()
410subProp.label = GetStringById(extInfo.bundleName, extInfo.moduleName, subProp.labelId, userId); in ListInputMethodSubtype()
412 pos = subProp.icon.find(':'); in ListInputMethodSubtype()
413 if (pos != std::string::npos && pos + 1 < subProp.icon.size()) { in ListInputMethodSubtype()
414 subProp.iconId = atoi(subProp.icon.substr(pos + 1).c_str()); in ListInputMethodSubtype()
416 ParseLanguage(subProp.locale, subProp.language); in ListInputMethodSubtype()
504 return std::make_shared<SubProperty>(currentImeInfo_->subProp); in GetCurrentInputMethodSubtype()
517 … [&currentImeCfg](const SubProperty &subProp) { return subProp.id == currentImeCfg->subName; }); in GetCurrentInputMethodSubtype() argument
555 subName = info->subProp.id; in GetStartedIme()
594 [&extName](const SubProperty &subProp) { return subProp.id == extName; }); in GetDefaultImeInfo() argument
596 info.subProp = *it; in GetDefaultImeInfo()
634 …subProps.begin(), subProps.end(), [](const SubProperty &subProp) { return subProp.mode == "upper";… in GetImeSubProp() argument
639 …subProps.begin(), subProps.end(), [](const SubProperty &subProp) { return subProp.mode == "lower";… in GetImeSubProp() argument
644 …[](const SubProperty &subProp) { return subProp.language == "english" && subProp.mode == "lower"; … in GetImeSubProp() argument
649 [](const SubProperty &subProp) { return subProp.language == "chinese"; }); in GetImeSubProp() argument
669 SubProperty subProp; in ParseSubProp() local
688 SubProperty subProp; in ParseSubProp() local
689 ParseSubProp(jsonCfg, subProp); in ParseSubProp()
690 subProps.push_back(subProp); in ParseSubProp()
694 void ImeInfoInquirer::ParseSubProp(const json &jsonSubProp, SubProperty &subProp) in ParseSubProp() argument
697 jsonSubProp.at("label").get_to(subProp.label); in ParseSubProp()
700 jsonSubProp.at("id").get_to(subProp.id); in ParseSubProp()
703 jsonSubProp.at("icon").get_to(subProp.icon); in ParseSubProp()
706 jsonSubProp.at("mode").get_to(subProp.mode); in ParseSubProp()
709 jsonSubProp.at("locale").get_to(subProp.locale); in ParseSubProp()