Home
last modified time | relevance | path

Searched refs:subName (Results 1 - 22 of 22) sorted by relevance

/base/inputmethod/imf/test/unittest/cpp_test/src/
H A DnewIme_switch_test.cpp39 static void CheckCurrentSubProp(const std::string &subName);
44 static std::vector<std::string> subName; member in OHOS::MiscServices::NewImeSwitchTest
53 std::vector<std::string> NewImeSwitchTest::subName{ "lowerInput", "upperInput", "chineseInput" };
102 void NewImeSwitchTest::CheckCurrentSubProp(const std::string &subName) in CheckCurrentSubProp() argument
106 EXPECT_EQ(subProperty->id, subName); in CheckCurrentSubProp()
117 EXPECT_EQ(subProps[i].id, subName[i]); in CheckCurrentSubProps()
140 CheckCurrentSubProp(subName[0]); in HWTEST_F()
156 int32_t ret = imc_->SwitchInputMethod(SwitchTrigger::CURRENT_IME, bundleName, subName[0]); in HWTEST_F()
160 CheckCurrentSubProp(subName[0]); in HWTEST_F()
175 int32_t ret = imc_->SwitchInputMethod(SwitchTrigger::CURRENT_IME, bundleName, subName[ in HWTEST_F()
[all...]
H A Dinput_method_switch_test.cpp211 * @tc.desc: switch subtype with error subName.
219 std::string subName = InputMethodSwitchTest::imc_->GetCurrentInputMethodSubtype()->id; in HWTEST_F() local
220 int32_t ret = imc_->SwitchInputMethod(SwitchTrigger::CURRENT_IME, bundleName, "error subName"); in HWTEST_F()
222 CheckCurrentProp(subName); in HWTEST_F()
223 CheckCurrentSubProp(subName); in HWTEST_F()
229 * @tc.desc: switch to currentIme witch empty subName.
238 std::string subName = InputMethodSwitchTest::imc_->GetCurrentInputMethodSubtype()->id; in HWTEST_F() local
242 CheckCurrentProp(subName); in HWTEST_F()
243 CheckCurrentSubProp(subName); in HWTEST_F()
257 std::string subName in HWTEST_F() local
275 std::string subName = InputMethodSwitchTest::imc_->GetCurrentInputMethodSubtype()->id; HWTEST_F() local
336 std::string subName = InputMethodSwitchTest::imc_->GetCurrentInputMethodSubtype()->id; HWTEST_F() local
[all...]
H A Dinput_method_private_member_test.cpp534 // subName is not find in HWTEST_F()
854 const std::string subName = "defaultImeId"; in HWTEST_F() local
857 auto ret = ImeInfoInquirer::GetInstance().GetSubProperty(userId, subName, extInfos, subProp); in HWTEST_F()
871 const std::string subName = "defaultImeId"; in HWTEST_F() local
876 auto ret = ImeInfoInquirer::GetInstance().GetSubProperty(userId, subName, extInfos, subProp); in HWTEST_F()
890 const std::string subName = "defaultImeId"; in HWTEST_F() local
H A Djson_operate_test.cpp35 "extName\",\"currentSubName\":\"subName\",\"isDefaultImeSet\":"
42 "extName\",\"currentSubName\":\"subName\"},{"
47 "\"subName\"}]}";
50 "\"subName\"}]}";
204 EXPECT_EQ(cfg[0].currentSubName, "subName"); in HWTEST_F()
244 "extName\",\"currentSubName\":\"subName\",\"isDefaultImeSet\":0}," in HWTEST_F()
249 ImeCfgManager::GetInstance().imeConfigs_.emplace_back(100, "bundleName/extName", "subName", false); in HWTEST_F()
291 EXPECT_EQ(inputType[0].subName, "testSubtypeId"); in HWTEST_F()
294 EXPECT_EQ(inputType[1].subName, ""); in HWTEST_F()
H A Denable_ime_data_parse_test.cpp288 switchInfo.subName = "defaultImeId"; in HWTEST_F()
/base/inputmethod/imf/services/include/
H A Dinput_type_manager.h33 std::string subName; member
36 return (bundleName == ime.bundleName && subName == ime.subName); in operator ==()
40 return bundleName == ime.bundleName ? (subName < ime.subName) : (bundleName < ime.bundleName); in operator <()
H A Dime_info_inquirer.h83 std::shared_ptr<ImeInfo> GetImeInfo(int32_t userId, const std::string &bundleName, const std::string &subName);
120 const std::string &subName);
122 const int32_t userId, const std::string &bundleName, const std::string &subName);
135 int32_t GetSubProperty(int32_t userId, const std::string &subName,
137 int32_t GetSubProperty(int32_t userId, const std::string &subName,
H A Dsys_cfg_parser.h53 std::string subName; member
63 ret = GetValue(node, GET_NAME(subtypeId), subName) && ret;
H A Dinput_method_system_ability.h70 const std::string &bundleName, const std::string &subName, SwitchTrigger trigger) override;
112 bool IsNeedSwitch(int32_t userId, const std::string &bundleName, const std::string &subName);
127 void GetValidSubtype(const std::string &subName, const std::shared_ptr<ImeInfo> &info);
H A Dime_cfg_manager.h71 std::string subName; member
/base/inputmethod/imf/services/adapter/settings_data_provider/include/
H A Denable_ime_data_parser.h37 std::string subName; member
40 return (timestamp == info.timestamp && bundleName == info.bundleName && subName == info.subName); in operator ==()
/base/inputmethod/imf/services/src/
H A Dime_info_inquirer.cpp116 const std::string &subName) in GetImeInfo()
118 IMSA_HILOGD("userId: %{public}d, bundleName: %{public}s, subName: %{public}s.", userId, bundleName.c_str(), in GetImeInfo()
119 subName.c_str()); in GetImeInfo()
120 auto info = GetImeInfoFromCache(userId, bundleName, subName); in GetImeInfo()
121 return info == nullptr ? GetImeInfoFromBundleMgr(userId, bundleName, subName) : info; in GetImeInfo()
125 const std::string &subName) in GetImeInfoFromCache()
135 info->isSpecificSubName = !subName.empty(); in GetImeInfoFromCache()
136 if (subName.empty() && !subProps.empty()) { in GetImeInfoFromCache()
140 [&subName](const SubProperty &subProp) { return subProp.id == subName; }); in GetImeInfoFromCache()
115 GetImeInfo(int32_t userId, const std::string &bundleName, const std::string &subName) GetImeInfo() argument
124 GetImeInfoFromCache(const int32_t userId, const std::string &bundleName, const std::string &subName) GetImeInfoFromCache() argument
157 GetImeInfoFromBundleMgr( const int32_t userId, const std::string &bundleName, const std::string &subName) GetImeInfoFromBundleMgr() argument
431 GetSubProperty(int32_t userId, const std::string &subName, const std::vector<OHOS::AppExecFwk::ExtensionAbilityInfo> &extInfos, SubProperty &subProp) GetSubProperty() argument
481 GetSubProperty(int32_t userId, const std::string &subName, const OHOS::AppExecFwk::ExtensionAbilityInfo &extInfo, SubProperty &subProp) GetSubProperty() argument
[all...]
H A Dinput_method_system_ability.cpp646 int32_t InputMethodSystemAbility::SwitchInputMethod(const std::string &bundleName, const std::string &subName, in SwitchInputMethod() argument
654 SwitchInfo switchInfo = { std::chrono::system_clock::now(), bundleName, subName }; in SwitchInputMethod()
666 if (switchInfo.subName.empty() && switchInfo.bundleName == currentImeCfg->bundleName) { in SwitchInputMethod()
667 switchInfo.subName = currentImeCfg->subName; in SwitchInputMethod()
671 return InputTypeManager::GetInstance().IsInputType({ bundleName, subName }) in SwitchInputMethod()
699 IMSA_HILOGI("start switch %{public}s|%{public}s.", switchInfo.bundleName.c_str(), switchInfo.subName.c_str()); in OnSwitchInputMethod()
707 auto info = ImeInfoInquirer::GetInstance().GetImeInfo(userId, switchInfo.bundleName, switchInfo.subName); in OnSwitchInputMethod()
718 targetImeName, info->prop.name, switchInfo.subName.empty() ? "" : info->subProp.id, info->prop.id }); in OnSwitchInputMethod()
725 GetValidSubtype(switchInfo.subName, inf in OnSwitchInputMethod()
738 GetValidSubtype(const std::string &subName, const std::shared_ptr<ImeInfo> &info) GetValidSubtype() argument
775 IsNeedSwitch(int32_t userId, const std::string &bundleName, const std::string &subName) IsNeedSwitch() argument
1255 auto subName = ImeCfgManager::GetInstance().GetCurrentImeCfg(userId_)->subName; SwitchMode() local
1284 auto subName = ImeCfgManager::GetInstance().GetCurrentImeCfg(userId_)->subName; SwitchLanguage() local
[all...]
H A Dinput_type_manager.cpp76 IMSA_HILOGI("type: %{public}d find ime: %{public}s|%{public}s.", type, ime.bundleName.c_str(), ime.subName.c_str()); in GetImeByInputType()
160 inputTypes_.insert({ config.type, { config.bundleName, config.subName } }); in Init()
H A Dime_cfg_manager.cpp151 info.subName = cfg.currentSubName; in GetCurrentImeCfg()
H A Dinput_method_system_ability_stub.cpp295 std::string subName; in SwitchInputMethodOnRemote() local
297 if (!ITypesUtil::Unmarshal(data, name, subName, trigger)) { in SwitchInputMethodOnRemote()
301 return reply.WriteInt32(SwitchInputMethod(name, subName, trigger)) ? ErrorCode::NO_ERROR in SwitchInputMethodOnRemote()
H A Dperuser_session.cpp1014 ImeInfoInquirer::GetInstance().GetImeInfo(userId_, imeToStart->bundleName, imeToStart->subName); in StartCurrentIme()
1036 imeId.subName = currentImeCfg->extName; in GetCurrentUsingImeId()
1229 SubProperty subProp = { .name = cfgIme->bundleName, .id = cfgIme->subName };
1234 IMSA_HILOGD("same ime, restore subtype: %{public}s.", cfgIme->subName.c_str());
1694 SubProperty subProp = { .name = cfgIme->bundleName, .id = cfgIme->subName };
/base/inputmethod/imf/frameworks/native/inputmethod_controller/include/
H A Dinput_method_system_ability_proxy.h61 int32_t SwitchInputMethod(const std::string &name, const std::string &subName, SwitchTrigger trigger) override;
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/
H A Dinput_method_system_ability_proxy.cpp221 int32_t InputMethodSystemAbilityProxy::SwitchInputMethod(const std::string &name, const std::string &subName,
225 [&name, &subName, trigger](MessageParcel &data) { return ITypesUtil::Marshal(data, name, subName, trigger); });
H A Dinput_method_controller.cpp984 const std::string &subName) in SwitchInputMethod()
992 IMSA_HILOGI("name: %{public}s, subName: %{public}s, trigger: %{public}d.", name.c_str(), subName.c_str(), in SwitchInputMethod()
994 return proxy->SwitchInputMethod(name, subName, trigger); in SwitchInputMethod()
983 SwitchInputMethod(SwitchTrigger trigger, const std::string &name, const std::string &subName) SwitchInputMethod() argument
/base/inputmethod/imf/services/adapter/settings_data_provider/src/
H A Denable_ime_data_parser.cpp79 switchInfo.subName = ""; in CheckNeedSwitch()
99 switchInfo.subName = defaultIme->id; in CheckNeedSwitch()
100 return CheckTargetEnableName(key, currentIme->id, switchInfo.subName, userId); in CheckNeedSwitch()
/base/inputmethod/imf/interfaces/inner_api/inputmethod_controller/include/
H A Dinput_method_controller.h410 * @param subName Optional parameter. Indicates the subtype of target input method.
414 IMF_API int32_t SwitchInputMethod(SwitchTrigger trigger, const std::string &name, const std::string &subName = "");

Completed in 20 milliseconds