Lines Matching defs:core

195     auto ret = RequestIme(data, RequestType::NORMAL, [&data] { return data->core->HideKeyboard(false); });
219 auto ret = RequestIme(data, RequestType::REQUEST_SHOW, [&data] { return data->core->ShowKeyboard(); });
307 int32_t PerUserSession::RemoveIme(const sptr<IInputMethodCore> &core, ImeType type)
309 if (core == nullptr) {
313 if (data == nullptr || data->core->AsObject() != core->AsObject()) {
387 auto ret = RequestIme(data, RequestType::REQUEST_SHOW, [&data] { return data->core->ShowKeyboard(); });
417 [&data, isForce] { return data->core->HideKeyboard(isForce); });
531 data->core->OnClientInactive(clientInfo->channel);
542 return data != nullptr && data->core != nullptr && data->core->IsEnable();
593 [&data, &clientInfo, isBindFromClient]() { return data->core->StartInput(*clientInfo, isBindFromClient); });
644 [&data, &currentChannel]() { return data->core->StopInput(currentChannel); });
664 RequestIme(data, RequestType::NORMAL, [&data, security] { return data->core->OnSecurityChange(security); });
668 int32_t PerUserSession::OnSetCoreAndAgent(const sptr<IInputMethodCore> &core, const sptr<IRemoteObject> &agent)
671 auto ret = UpdateImeData(core, agent, IPCSkeleton::GetCallingPid());
695 int32_t PerUserSession::OnRegisterProxyIme(const sptr<IInputMethodCore> &core, const sptr<IRemoteObject> &agent)
699 auto ret = AddImeData(imeType, core, agent, IPCSkeleton::GetCallingPid());
717 int32_t PerUserSession::OnUnRegisteredProxyIme(UnRegisteredType type, const sptr<IInputMethodCore> &core)
722 RemoveIme(core, ImeType::PROXY_IME);
753 [&data, &inputControlChannel] { return data->core->InitInputControlChannel(inputControlChannel); });
852 int32_t PerUserSession::AddImeData(ImeType type, sptr<IInputMethodCore> core, sptr<IRemoteObject> agent, pid_t pid)
854 if (core == nullptr || agent == nullptr) {
855 IMSA_HILOGE("core or agent is nullptr!");
863 deathRecipient->SetDeathRecipient([this, core, type](const wptr<IRemoteObject> &) { this->OnImeDied(core, type); });
864 auto coreObject = core->AsObject();
870 auto imeData = std::make_shared<ImeData>(core, agent, deathRecipient, pid);
909 if (isImeDied && data->core != nullptr && data->core->AsObject() != nullptr) {
910 data->core->AsObject()->RemoveDeathRecipient(data->deathRecipient);
1189 return RequestIme(data, RequestType::NORMAL, [&data, &subProperty] { return data->core->SetSubtype(subProperty); });
1200 return RequestIme(data, RequestType::NORMAL, [&data, &inputType] { return data->core->OnSetInputType(inputType); });
1262 [&ime, &panelInfo, &isShown] { return ime->core->IsPanelShown(panelInfo, isShown); });
1305 [&data, &channel, &agent] { return data->core->OnConnectSystemCmd(channel, agent); });
1425 int32_t PerUserSession::UpdateImeData(sptr<IInputMethodCore> core, sptr<IRemoteObject> agent, pid_t pid)
1427 if (core == nullptr || agent == nullptr) {
1428 IMSA_HILOGE("core or agent is nullptr!");
1436 it->second->core = core;
1446 deathRecipient->SetDeathRecipient([this, core, type](const wptr<IRemoteObject> &) { this->OnImeDied(core, type); });
1447 auto coreObject = core->AsObject();
1597 if (imeData->core == nullptr) {
1598 IMSA_HILOGE("core is nullptr!");
1603 return imeData->core->StopInputService(true);