Home
last modified time | relevance | path

Searched refs:ime (Results 1 - 9 of 9) sorted by relevance

/base/inputmethod/imf/services/include/
H A Dinput_type_manager.h34 bool operator==(const ImeIdentification &ime) const in operator ==()
36 return (bundleName == ime.bundleName && subName == ime.subName); in operator ==()
38 bool operator<(const ImeIdentification &ime) const in operator <()
40 return bundleName == ime.bundleName ? (subName < ime.subName) : (bundleName < ime.bundleName); in operator <()
48 bool IsInputType(const ImeIdentification &ime);
56 int32_t GetImeByInputType(InputType type, ImeIdentification &ime);
H A Dperuser_session.h82 std::pair<std::string, std::string> ime; // first: bundleName second:extName member
128 bool StartIme(const std::shared_ptr<ImeNativeCfg> &ime, bool isStopCurrentIme = false);
194 int32_t InitImeData(const std::pair<std::string, std::string> &ime);
233 AAFwk::Want GetWant(const std::shared_ptr<ImeNativeCfg> &ime);
234 bool StartCurrentIme(const std::shared_ptr<ImeNativeCfg> &ime);
235 bool StartNewIme(const std::shared_ptr<ImeNativeCfg> &ime);
236 bool StartInputService(const std::shared_ptr<ImeNativeCfg> &ime);
240 bool HandleFirstStart(const std::shared_ptr<ImeNativeCfg> &ime, bool isStopCurrentIme);
241 bool HandleStartImeTimeout(const std::shared_ptr<ImeNativeCfg> &ime);
/base/inputmethod/imf/services/adapter/settings_data_provider/src/
H A Dsecurity_mode_parser.cpp138 auto ime = std::find_if(defaultFullImeList.begin(), defaultFullImeList.end(), in IsDefaultFullMode() local
139 [&appId](const auto &ime) { return ime.appId == appId; }); in IsDefaultFullMode()
140 if (ime == defaultFullImeList.end()) { in IsDefaultFullMode()
145 if (ime->expirationVersionCode > 0) { in IsDefaultFullMode()
146 isDefaultFull = !IsExpired(ime->expirationTime) || versionCode < ime->expirationVersionCode; in IsDefaultFullMode()
148 isDefaultFull = !IsExpired(ime->expirationTime); in IsDefaultFullMode()
150 IMSA_HILOGI("ime: %{public}s, isDefaultFull: %{public}d", bundleName.c_str(), isDefaultFull); in IsDefaultFullMode()
H A Denable_ime_data_parser.cpp88 IMSA_HILOGD("current ime is default, do not need switch ime."); in CheckNeedSwitch()
94 IMSA_HILOGD("current ime is not default or id is default."); in CheckNeedSwitch()
111 IMSA_HILOGD("default ime, permit to switch"); in CheckNeedSwitch()
114 IMSA_HILOGD("check ime."); in CheckNeedSwitch()
121 tempVec.begin(), tempVec.end(), [&info](const std::string &ime) { return info.bundleName == ime; }); in CheckNeedSwitch()
135 [&info](const std::string &ime) { return info.bundleName == ime; }); in CheckNeedSwitch()
155 IMSA_HILOGE("enable empty, switch default ime in CheckTargetEnableName()
[all...]
/base/inputmethod/imf/services/src/
H A Dperuser_session.cpp63 runningIme_ = bundleNames[0]; // one user only has one ime at present in PerUserSession()
192 IMSA_HILOGE("ime: %{public}d is not exist!", clientInfo->bindImeType); in HideKeyboard()
216 IMSA_HILOGE("ime: %{public}d is not exist!", clientInfo->bindImeType); in ShowKeyboard()
257 /** Handle the situation that an ime died
258 * It's called when an ime died
259 * @param the remote object handler of the ime who died.
268 auto ime = InputTypeManager::GetInstance().GetCurrentIme(); in OnImeDied() local
269 if (ime.bundleName == imeData->ime.first) { in OnImeDied()
280 IMSA_HILOGW("userId:%{public}d in background, no need to restart ime in OnImeDied()
1040 GetWant(const std::shared_ptr<ImeNativeCfg> &ime) GetWant() argument
1061 StartInputService(const std::shared_ptr<ImeNativeCfg> &ime) StartInputService() argument
[all...]
H A Dinput_type_manager.cpp53 bool InputTypeManager::IsInputType(const ImeIdentification &ime) in IsInputType() argument
60 return inputTypeImeList_.find(ime) != inputTypeImeList_.end(); in IsInputType()
63 int32_t InputTypeManager::GetImeByInputType(InputType type, ImeIdentification &ime) in GetImeByInputType() argument
75 ime = iter->second; in GetImeByInputType()
76 IMSA_HILOGI("type: %{public}d find ime: %{public}s|%{public}s.", type, ime.bundleName.c_str(), ime.subName.c_str()); in GetImeByInputType()
H A Dinput_method_system_ability.cpp315 // if need to switch ime, no need to hide panel first. in CheckInputTypeOption()
451 IMSA_HILOGE("not current ime, userId:%{public}d", userId); in SetCoreAndAgent()
512 IMSA_HILOGE("not current ime!"); in PanelStatusChange()
571 IMSA_HILOGE("not default ime!"); in ExitCurrentInputType()
600 IMSA_HILOGE("failed to get default ime!"); in IsDefaultImeFromTokenId()
679 IMSA_HILOGE("Check enable ime value failed!"); in EnableIme()
841 IMSA_HILOGE("failed to inform ime to switch subtype, ret: %{public}d!", ret); in SwitchSubType()
1128 // Switch to the default ime in OnPackageRemoved()
1129 IMSA_HILOGI("user[%{public}d] ime: %{public}s is uninstalled.", userId, packageName.c_str()); in OnPackageRemoved()
1183 IMSA_HILOGI("switch ime in SwitchByCombinationKey()
[all...]
H A Dime_info_inquirer.cpp151 // old ime, make the id of prop same with the id of subProp. in GetImeInfoFromCache()
196 // old ime, make the id of prop same with the id of subProp. in GetImeInfoFromBundleMgr()
217 params += "{\"ime\": \"" + imeId + "\","; in GetDumpInfo()
336 IMSA_HILOGD("enable mode off, get disabled ime."); in ListDisabledInputMethod()
375 IMSA_HILOGE("can not found current ime in enable list!"); in GetSwitchInfoBySwitchCount()
386 IMSA_HILOGD("next ime: %{public}s", switchInfo.bundleName.c_str()); in GetSwitchInfoBySwitchCount()
614 // compatible with the locale configuration of original ime in CovertToLanguage()
799 IMSA_HILOGE("abnormal default ime cfg!"); in GetDefaultInputMethod()
932 auto ime = GetDefaultIme(); in GetDefaultImeCfgProp() local
933 if (ime in GetDefaultImeCfgProp()
[all...]
/base/inputmethod/imf/test/unittest/cpp_test/src/
H A Dinput_method_private_member_test.cpp157 // start ime in HWTEST_F()
643 * @tc.desc: delete ime cfg correctly
833 //remove bundle not current ime in HWTEST_F()
966 ImeIdentification ime; in HWTEST_F() local
967 auto ret = InputTypeManager::GetInstance().GetImeByInputType(InputType::NONE, ime); in HWTEST_F()

Completed in 10 milliseconds