Lines Matching refs:subName

646 int32_t InputMethodSystemAbility::SwitchInputMethod(const std::string &bundleName, const std::string &subName,
654 SwitchInfo switchInfo = { std::chrono::system_clock::now(), bundleName, subName };
666 if (switchInfo.subName.empty() && switchInfo.bundleName == currentImeCfg->bundleName) {
667 switchInfo.subName = currentImeCfg->subName;
671 return InputTypeManager::GetInstance().IsInputType({ bundleName, subName })
699 IMSA_HILOGI("start switch %{public}s|%{public}s.", switchInfo.bundleName.c_str(), switchInfo.subName.c_str());
707 auto info = ImeInfoInquirer::GetInstance().GetImeInfo(userId, switchInfo.bundleName, switchInfo.subName);
718 targetImeName, info->prop.name, switchInfo.subName.empty() ? "" : info->subProp.id, info->prop.id });
725 GetValidSubtype(switchInfo.subName, info);
738 void InputMethodSystemAbility::GetValidSubtype(const std::string &subName, const std::shared_ptr<ImeInfo> &info)
740 if (subName.empty()) {
759 IMSA_HILOGD("start switch %{public}s|%{public}s.", switchInfo.bundleName.c_str(), switchInfo.subName.c_str());
765 if (!IsNeedSwitch(userId, switchInfo.bundleName, switchInfo.subName)) {
776 const std::string &subName)
779 ImeIdentification target = { bundleName, subName };
784 currentImeCfg->bundleName.c_str(), currentImeCfg->subName.c_str(), bundleName.c_str(), subName.c_str());
785 if ((subName.empty() && bundleName == currentImeCfg->bundleName) ||
786 (!subName.empty() && subName == currentImeCfg->subName && currentImeCfg->bundleName == bundleName)) {
863 ImeNativeCfg targetIme = { targetName, switchInfo.bundleName, switchInfo.subName, targetImeProperty->id };
864 InputTypeManager::GetInstance().Set(true, { switchInfo.bundleName, switchInfo.subName });
870 int32_t ret = session->SwitchSubtype({ .name = switchInfo.bundleName, .id = switchInfo.subName });
1255 auto subName = ImeCfgManager::GetInstance().GetCurrentImeCfg(userId_)->subName;
1256 auto info = ImeInfoInquirer::GetInstance().GetImeInfo(userId_, bundleName, subName);
1284 auto subName = ImeCfgManager::GetInstance().GetCurrentImeCfg(userId_)->subName;
1285 auto info = ImeInfoInquirer::GetInstance().GetImeInfo(userId_, bundleName, subName);
1566 // switchInfo.subName.empty() check temporarily reserved for application adaptation, will be deleted soon
1569 !switchInfo.subName.empty()) {
1813 SwitchInfo switchInfo = { std::chrono::system_clock::now(), ime.bundleName, ime.subName };