/ohos5.0/base/inputmethod/imf/services/include/ |
H A D | ime_cfg_manager.h | 29 …ImePersistInfo(int32_t userId, std::string currentIme, std::string currentSubName, bool isDefaultI… in ImePersistInfo() 30 … : userId(userId), currentIme(std::move(currentIme)), currentSubName(std::move(currentSubName)), in ImePersistInfo() 34 std::string currentIme; member 42 ret = SetValue(node, GET_NAME(currentIme), currentIme) && ret; in Marshal() 51 ret = GetValue(node, GET_NAME(currentIme), currentIme) && ret; in Unmarshal()
|
H A D | input_type_manager.h | 54 void Set(bool isStarted, const ImeIdentification ¤tIme = {});
|
/ohos5.0/base/inputmethod/imf/services/src/ |
H A D | ime_cfg_manager.cpp | 108 …(const ImePersistInfo &imeCfg) { return imeCfg.userId == cfg.userId && !cfg.currentIme.empty(); }); in ModifyImeCfg() 112 imePersistInfo.currentIme = it->tempScreenLockIme.empty() ? cfg.currentIme : it->currentIme; in ModifyImeCfg() 163 info.imeId = cfg.currentIme; in GetCurrentImeCfg()
|
H A D | ime_info_inquirer.cpp | 690 auto currentIme = ImeCfgManager::GetInstance().GetCurrentImeCfg(userId); in GetCurrentSubtype() local 691 IMSA_HILOGD("currentIme: %{public}s.", currentIme->imeId.c_str()); in GetCurrentSubtype() 694 … [¤tIme](const FullImeInfo &info) { return info.prop.name == currentIme->bundleName; }); in GetCurrentSubtype() 697 … [¤tIme](const SubProperty &subProp) { return subProp.id == currentIme->subName; }); in GetCurrentSubtype() 701 IMSA_HILOGW("subtype %{public}s not found.", currentIme->subName.c_str()); in GetCurrentSubtype() 702 …ImeCfgManager::GetInstance().ModifyImeCfg({ userId, currentIme->imeId, it->subProps[0].id, false }… in GetCurrentSubtype() 707 currentIme->subName.c_str()); in GetCurrentSubtype() 709 auto ret = GetExtInfosByBundleName(userId, currentIme->bundleName, extInfos); in GetCurrentSubtype() 716 … ret = IsNewExtInfos(extInfos) ? GetSubProperty(userId, currentIme->subName, extInfos[0], subProp) in GetCurrentSubtype() 717 : GetSubProperty(userId, currentIme->subName, extInfos, subProp); in GetCurrentSubtype() [all …]
|
H A D | input_type_manager.cpp | 81 void InputTypeManager::Set(bool isStarted, const ImeIdentification ¤tIme) in Set() argument 85 currentTypeIme_ = currentIme; in Set()
|
H A D | peruser_session.cpp | 949 auto currentIme = ImeCfgManager::GetInstance().GetCurrentImeCfg(userId_); in OnUserUnlocked() local 950 if (currentIme == nullptr) { in OnUserUnlocked() 955 if (imeData != nullptr && imeData->ime.first == currentIme->bundleName) { in OnUserUnlocked() 1033 auto currentIme = ImeCfgManager::GetInstance().GetCurrentImeCfg(userId_); in StartCurrentIme() local 1034 IMSA_HILOGD("currentIme: %{public}s, imeToStart: %{public}s.", currentIme->imeId.c_str(), in StartCurrentIme() 1042 currentIme = ImeCfgManager::GetInstance().GetCurrentImeCfg(userId_); in StartCurrentIme() 1043 IMSA_HILOGI("current ime changed to %{public}s.", currentIme->imeId.c_str()); in StartCurrentIme() 1045 … ImeInfoInquirer::GetInstance().GetImeInfo(userId_, currentIme->bundleName, currentIme->subName); in StartCurrentIme() 1063 auto currentIme = InputTypeManager::GetInstance().GetCurrentIme(); in GetCurrentUsingImeId() local 1064 imeId = currentIme; in GetCurrentUsingImeId()
|
H A D | input_method_system_ability.cpp | 862 auto currentIme = ImeCfgManager::GetInstance().GetCurrentImeCfg(userId)->imeId; in SwitchSubType() local 863 ImeCfgManager::GetInstance().ModifyImeCfg({ userId, currentIme, info->subProp.id, false }); in SwitchSubType() 1528 auto currentIme = ImeCfgManager::GetInstance().GetCurrentImeCfg(userId_); in OnSecurityModeChange() local 1529 …auto oldMode = SecurityModeParser::GetInstance()->GetSecurityMode(currentIme->bundleName, userId_); in OnSecurityModeChange() 1531 …auto newMode = SecurityModeParser::GetInstance()->GetSecurityMode(currentIme->bundleName, userId_); in OnSecurityModeChange() 1536 … IMSA_HILOGI("ime: %{public}s securityMode change to: %{public}d.", currentIme->bundleName.c_str(), in OnSecurityModeChange()
|
/ohos5.0/base/inputmethod/imf/services/adapter/settings_data_provider/src/ |
H A D | enable_ime_data_parser.cpp | 72 auto currentIme = ImeInfoInquirer::GetInstance().GetCurrentInputMethod(userId); in CheckNeedSwitch() local 80 if (currentIme == nullptr) { in CheckNeedSwitch() 85 if (currentIme->name == defaultIme->name) { in CheckNeedSwitch() 91 return CheckTargetEnableName(key, currentIme->name, switchInfo.bundleName, userId); in CheckNeedSwitch() 93 if (currentIme->name != defaultIme->name || currentIme->id == defaultIme->id) { in CheckNeedSwitch() 100 return CheckTargetEnableName(key, currentIme->id, switchInfo.subName, userId); in CheckNeedSwitch()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-ime-kit/ |
H A D | js-apis-inputmethod-sys.md | 57 let currentIme = inputMethod.getCurrentInputMethod(); 59 inputMethod.switchInputMethod(currentIme.name).then(() => { 69 inputMethod.switchInputMethod(currentIme.name, currentImeSubType.id).then(() => {
|
H A D | js-apis-inputmethod.md | 198 let currentIme = inputMethod.getCurrentInputMethod(); 200 inputMethod.switchInputMethod(currentIme, (err: BusinessError, result: boolean) => { 258 let currentIme = inputMethod.getCurrentInputMethod(); 260 inputMethod.switchInputMethod(currentIme).then((result: boolean) => { 295 let currentIme = inputMethod.getCurrentInputMethod(); 493 let currentIme = inputMethod.getCurrentInputMethod(); 496 …inputMethod.switchCurrentInputMethodAndSubtype(currentIme, imSubType, (err: BusinessError, result:… 557 let currentIme = inputMethod.getCurrentInputMethod(); 560 inputMethod.switchCurrentInputMethodAndSubtype(currentIme, imSubType).then((result: boolean) => {
|
/ohos5.0/base/inputmethod/imf/test/unittest/cpp_test/src/ |
H A D | json_operate_test.cpp | 204 EXPECT_EQ(cfg[0].currentIme, "bundleName/extName"); 207 EXPECT_EQ(cfg[1].currentIme, "bundleName1/extName1");
|
H A D | input_method_ability_test.cpp | 136 auto currentIme = property != nullptr ? property->name : "default.inputmethod.unittest"; in SetUpTestCase() local 137 currentImeTokenId_ = TddUtil::GetTestTokenID(currentIme); in SetUpTestCase() 138 currentImeUid_ = TddUtil::GetUid(currentIme); in SetUpTestCase()
|
H A D | input_method_private_member_test.cpp | 333 EXPECT_TRUE(cfg.currentIme.empty());
|
/ohos5.0/docs/en/application-dev/reference/apis-ime-kit/ |
H A D | js-apis-inputmethod-sys.md | 57 let currentIme = inputMethod.getCurrentInputMethod(); 59 inputMethod.switchInputMethod(currentIme.name).then(() => { 69 inputMethod.switchInputMethod(currentIme.name, currentImeSubType.id).then(() => {
|
H A D | js-apis-inputmethod.md | 198 let currentIme = inputMethod.getCurrentInputMethod(); 200 inputMethod.switchInputMethod(currentIme, (err: BusinessError, result: boolean) => { 258 let currentIme = inputMethod.getCurrentInputMethod(); 260 inputMethod.switchInputMethod(currentIme).then((result: boolean) => { 295 let currentIme = inputMethod.getCurrentInputMethod(); 493 let currentIme = inputMethod.getCurrentInputMethod(); 496 …inputMethod.switchCurrentInputMethodAndSubtype(currentIme, imSubType, (err: BusinessError, result:… 557 let currentIme = inputMethod.getCurrentInputMethod(); 560 inputMethod.switchCurrentInputMethodAndSubtype(currentIme, imSubType).then((result: boolean) => {
|