/base/inputmethod/imf/test/unittest/cpp_test/src/ |
H A D | input_method_switch_test.cpp | 119 std::vector<SubProperty> subProps; in CheckCurrentSubProps() local 120 auto ret = imc_->ListCurrentInputMethodSubtype(subProps); in CheckCurrentSubProps() 122 ASSERT_EQ(subProps.size(), IME_EXT_NUM); in CheckCurrentSubProps() 124 EXPECT_EQ(subProps[i].id, extName[i]); in CheckCurrentSubProps() 125 EXPECT_EQ(subProps[i].name, bundleName); in CheckCurrentSubProps() 126 EXPECT_EQ(subProps[i].language, language[i]); in CheckCurrentSubProps() 127 EXPECT_EQ(subProps[i].locale, locale[i]); in CheckCurrentSubProps() 354 std::vector<SubProperty> subProps; in HWTEST_F() local 355 auto ret = imc_->ListInputMethodSubtype(property, subProps); in HWTEST_F() 357 ASSERT_EQ(subProps in HWTEST_F() 375 std::vector<SubProperty> subProps; HWTEST_F() local [all...] |
H A D | newIme_switch_test.cpp | 112 std::vector<SubProperty> subProps; in CheckCurrentSubProps() local 113 auto ret = imc_->ListCurrentInputMethodSubtype(subProps); in CheckCurrentSubProps() 115 ASSERT_EQ(subProps.size(), IME_SUBTYPE_NUM); in CheckCurrentSubProps() 117 EXPECT_EQ(subProps[i].id, subName[i]); in CheckCurrentSubProps() 118 EXPECT_EQ(subProps[i].name, bundleName); in CheckCurrentSubProps() 119 EXPECT_EQ(subProps[i].language, language[i]); in CheckCurrentSubProps() 120 EXPECT_EQ(subProps[i].locale, locale[i]); in CheckCurrentSubProps()
|
H A D | input_method_private_member_test.cpp | 384 info.subProps = { { .id = "testSubName" } }; in HWTEST_F() 406 info.subProps = { { .name = "testBundleName", .id = "testSubName", .language = "French" } }; in HWTEST_F() 426 info.subProps = { { .name = "testBundleName", .id = "testSubName", .mode = "upper", .language = "english" } }; in HWTEST_F() 448 info.subProps = { { .name = "testBundleName", .id = "testSubName", .mode = "upper", .language = "english" }, in HWTEST_F() 604 std::vector<SubProperty> subProps; in HWTEST_F() local 606 auto ret = ImeInfoInquirer::GetInstance().ListCurrentInputMethodSubtype(currentUserId, subProps); in HWTEST_F() 636 std::vector<SubProperty> subProps; in HWTEST_F() local 637 auto ret = ImeInfoInquirer::GetInstance().ListInputMethodSubtype(50, extInfo, subProps); in HWTEST_F() 891 std::vector<SubProperty> subProps; in HWTEST_F() local 893 auto ret = ImeInfoInquirer::GetInstance().ListInputMethodSubtype(userId, extInfos, subProps); in HWTEST_F() [all...] |
H A D | json_operate_test.cpp | 428 std::vector<SubProperty> subProps; in HWTEST_F() local 430 auto ret = ImeInfoInquirer::GetInstance().FindTargetSubtypeByCondition(subProps, condition); in HWTEST_F() 434 ret = ImeInfoInquirer::GetInstance().FindTargetSubtypeByCondition(subProps, condition); in HWTEST_F()
|
/base/inputmethod/imf/services/src/ |
H A D | ime_info_inquirer.cpp | 134 auto subProps = it->subProps; in GetImeInfoFromCache() local 136 if (subName.empty() && !subProps.empty()) { in GetImeInfoFromCache() 137 info->subProp = subProps[0]; in GetImeInfoFromCache() 139 auto iter = std::find_if(subProps.begin(), subProps.end(), in GetImeInfoFromCache() 141 if (iter == subProps.end()) { in GetImeInfoFromCache() 148 info->subProps = it->subProps; in GetImeInfoFromCache() 175 std::vector<SubProperty> subProps; in GetImeInfoFromBundleMgr() local 390 ListInputMethodSubtype(int32_t userId, const std::string &bundleName, std::vector<SubProperty> &subProps) ListInputMethodSubtype() argument 413 ListCurrentInputMethodSubtype(int32_t userId, std::vector<SubProperty> &subProps) ListCurrentInputMethodSubtype() argument 459 ListInputMethodSubtype(const int32_t userId, const std::vector<ExtensionAbilityInfo> &extInfos, std::vector<SubProperty> &subProps) ListInputMethodSubtype() argument 526 ListInputMethodSubtype(const int32_t userId, const ExtensionAbilityInfo &extInfo, std::vector<SubProperty> &subProps) ListInputMethodSubtype() argument 886 FindTargetSubtypeByCondition(const std::vector<SubProperty> &subProps, const Condition &condition) FindTargetSubtypeByCondition() argument [all...] |
H A D | input_method_system_ability_stub.cpp | 272 std::vector<SubProperty> subProps = {}; in ListInputMethodSubtypeOnRemote() local 273 auto ret = ListInputMethodSubtype(bundleName, subProps); in ListInputMethodSubtypeOnRemote() 274 if (!ITypesUtil::Marshal(reply, ret, subProps)) { in ListInputMethodSubtypeOnRemote() 283 std::vector<SubProperty> subProps = {}; in ListCurrentInputMethodSubtypeOnRemote() local 284 auto ret = ListCurrentInputMethodSubtype(subProps); in ListCurrentInputMethodSubtypeOnRemote() 285 if (!ITypesUtil::Marshal(reply, ret, subProps)) { in ListCurrentInputMethodSubtypeOnRemote()
|
H A D | input_method_system_ability.cpp | 944 int32_t InputMethodSystemAbility::ListCurrentInputMethodSubtype(std::vector<SubProperty> &subProps) in ListCurrentInputMethodSubtype() argument 946 return ImeInfoInquirer::GetInstance().ListCurrentInputMethodSubtype(GetCallingUserId(), subProps); in ListCurrentInputMethodSubtype() 950 std::vector<SubProperty> &subProps) in ListInputMethodSubtype() 952 return ImeInfoInquirer::GetInstance().ListInputMethodSubtype(GetCallingUserId(), bundleName, subProps); in ListInputMethodSubtype() 1266 auto target = ImeInfoInquirer::GetInstance().FindTargetSubtypeByCondition(info->subProps, condition); in SwitchMode() 1298 auto target = ImeInfoInquirer::GetInstance().FindTargetSubtypeByCondition(info->subProps, condition); in SwitchLanguage() 949 ListInputMethodSubtype(const std::string &bundleName, std::vector<SubProperty> &subProps) ListInputMethodSubtype() argument
|
/base/inputmethod/imf/frameworks/cj/src/ |
H A D | input_method_ffi.cpp | 141 std::vector<SubProperty> subProps; in FfiInputMethodSettingListInputMethodSubtype() local 147 int32_t errCode = ctrl->ListInputMethodSubtype(property, subProps); in FfiInputMethodSettingListInputMethodSubtype() 153 ret.size = static_cast<int64_t>(subProps.size()); in FfiInputMethodSettingListInputMethodSubtype() 163 Utils::InputMethodSubProperty2C(props, subProps[i]); in FfiInputMethodSettingListInputMethodSubtype() 173 std::vector<SubProperty> subProps; in FfiInputMethodSettingListCurrentInputMethodSubtype() local 179 int32_t errCode = ctrl->ListCurrentInputMethodSubtype(subProps); in FfiInputMethodSettingListCurrentInputMethodSubtype() 185 ret.size = static_cast<int64_t>(subProps.size()); in FfiInputMethodSettingListCurrentInputMethodSubtype() 195 Utils::InputMethodSubProperty2C(props, subProps[i]); in FfiInputMethodSettingListCurrentInputMethodSubtype()
|
/base/inputmethod/imf/services/include/ |
H A D | ime_info_inquirer.h | 86 std::shared_ptr<SubProperty> FindTargetSubtypeByCondition(const std::vector<SubProperty> &subProps, 93 int32_t ListInputMethodSubtype(int32_t userId, const std::string &bundleName, std::vector<SubProperty> &subProps); 94 int32_t ListCurrentInputMethodSubtype(int32_t userId, std::vector<SubProperty> &subProps); 132 const std::vector<OHOS::AppExecFwk::ExtensionAbilityInfo> &extInfos, std::vector<SubProperty> &subProps); 134 std::vector<SubProperty> &subProps);
|
H A D | i_input_method_system_ability.h | 63 virtual int32_t ListCurrentInputMethodSubtype(std::vector<SubProperty> &subProps) = 0; 64 virtual int32_t ListInputMethodSubtype(const std::string &name, std::vector<SubProperty> &subProps) = 0;
|
H A D | input_method_system_ability.h | 67 int32_t ListCurrentInputMethodSubtype(std::vector<SubProperty> &subProps) override; 68 int32_t ListInputMethodSubtype(const std::string &bundleName, std::vector<SubProperty> &subProps) override;
|
/base/inputmethod/imf/frameworks/native/inputmethod_controller/include/ |
H A D | input_method_system_ability_proxy.h | 66 int32_t ListCurrentInputMethodSubtype(std::vector<SubProperty> &subProps) override; 67 int32_t ListInputMethodSubtype(const std::string &name, std::vector<SubProperty> &subProps) override;
|
H A D | input_method_property.h | 52 std::vector<SubProperty> subProps; member
|
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/ |
H A D | input_method_system_ability_proxy.cpp | 207 std::vector<SubProperty> &subProps) 212 [&subProps](MessageParcel &reply) { return ITypesUtil::Unmarshal(reply, subProps); }); 215 int32_t InputMethodSystemAbilityProxy::ListCurrentInputMethodSubtype(std::vector<SubProperty> &subProps) 218 [&subProps](MessageParcel &reply) { return ITypesUtil::Unmarshal(reply, subProps); });
|
H A D | input_method_controller.cpp | 961 int32_t InputMethodController::ListInputMethodSubtype(const Property &property, std::vector<SubProperty> &subProps) in ListInputMethodSubtype() argument 969 return proxy->ListInputMethodSubtype(property.name, subProps); in ListInputMethodSubtype() 972 int32_t InputMethodController::ListCurrentInputMethodSubtype(std::vector<SubProperty> &subProps) in ListCurrentInputMethodSubtype() argument 980 return proxy->ListCurrentInputMethodSubtype(subProps); in ListCurrentInputMethodSubtype()
|