Home
last modified time | relevance | path

Searched refs:clientInfo (Results 1 - 25 of 25) sorted by relevance

/base/inputmethod/imf/services/src/
H A Dperuser_session.cpp71 int PerUserSession::AddClientInfo(sptr<IRemoteObject> inputClient, const InputClientInfo &clientInfo, in AddClientInfo() argument
79 clientInfo.uiExtensionTokenId != IMF_INVALID_TOKENID) { in AddClientInfo()
80 UpdateClientInfo(inputClient, { { UpdateFlag::UIEXTENSION_TOKENID, clientInfo.uiExtensionTokenId } }); in AddClientInfo()
82 UpdateClientInfo(inputClient, { { UpdateFlag::TEXT_CONFIG, clientInfo.config } }); in AddClientInfo()
84 UpdateClientInfo(inputClient, { { UpdateFlag::EVENTFLAG, clientInfo.eventFlag } }); in AddClientInfo()
88 auto info = std::make_shared<InputClientInfo>(clientInfo); in AddClientInfo()
91 auto clientInfo = weakClientInfo.lock(); in AddClientInfo()
92 if (clientInfo == nullptr) { in AddClientInfo()
93 IMSA_HILOGD("clientInfo is nullptr."); in AddClientInfo()
96 this->OnClientDied(clientInfo in AddClientInfo()
116 auto clientInfo = GetClientInfo(client); RemoveClientInfo() local
185 auto clientInfo = GetClientInfo(currentClient->AsObject()); HideKeyboard() local
209 auto clientInfo = GetClientInfo(currentClient->AsObject()); ShowKeyboard() local
238 auto clientInfo = GetClientInfo(remote->AsObject()); OnClientDied() local
284 auto clientInfo = client != nullptr ? GetClientInfo(client->AsObject()) : nullptr; OnImeDied() local
318 auto clientInfo = client != nullptr ? GetClientInfo(client->AsObject()) : nullptr; RemoveIme() local
467 OnPrepareInput(const InputClientInfo &clientInfo) OnPrepareInput() argument
489 auto clientInfo = GetClientInfo(client->AsObject()); RemoveClient() local
510 auto clientInfo = GetClientInfo(client->AsObject()); DeactivateClient() local
552 auto clientInfo = GetClientInfo(client->AsObject()); OnStartInput() local
579 BindClientWithIme(const std::shared_ptr<InputClientInfo> &clientInfo, ImeType type, bool isBindFromClient) BindClientWithIme() argument
627 StopClientInput(const std::shared_ptr<InputClientInfo> &clientInfo, bool isStopInactiveClient) StopClientInput() argument
686 auto clientInfo = client != nullptr ? GetClientInfo(client->AsObject()) : nullptr; OnSetCoreAndAgent() local
704 auto clientInfo = client != nullptr ? GetClientInfo(client->AsObject()) : nullptr; OnRegisterProxyIme() local
727 auto clientInfo = client != nullptr ? GetClientInfo(client->AsObject()) : nullptr; OnUnRegisteredProxyIme() local
797 auto clientInfo = GetClientInfo(client->AsObject()); ReplaceCurrentClient() local
838 auto clientInfo = client.second; NotifyImeChangeToClients() local
945 auto clientInfo = GetClientInfo(pid); OnUnfocused() local
965 auto clientInfo = GetCurClientInfo(); IsCurClientFocused() local
981 auto clientInfo = GetCurClientInfo(); IsCurClientUnFocused() local
1096 auto clientInfo = GetClientInfo(client->AsObject()); GetCurrentClientPid() local
1109 auto clientInfo = GetClientInfo(client->AsObject()); GetInactiveClientPid() local
1120 auto clientInfo = client.second; OnPanelStatusChange() local
1142 OnUpdateListenEventFlag(const InputClientInfo &clientInfo) OnUpdateListenEventFlag() argument
[all...]
H A Dinput_method_system_ability_stub.cpp73 InputClientInfo clientInfo; in StartInputOnRemote() local
75 if (!ITypesUtil::Unmarshal(data, clientInfo, client, clientInfo.channel)) { in StartInputOnRemote()
76 IMSA_HILOGE("read clientInfo failed!"); in StartInputOnRemote()
79 clientInfo.client = iface_cast<IInputClient>(client); in StartInputOnRemote()
81 int32_t ret = StartInput(clientInfo, agent); in StartInputOnRemote()
319 InputClientInfo clientInfo; in UpdateListenEventFlagOnRemote() local
322 if (!ITypesUtil::Unmarshal(data, clientInfo, client, clientInfo.channel, eventFlag)) { in UpdateListenEventFlagOnRemote()
326 clientInfo in UpdateListenEventFlagOnRemote()
[all...]
H A Dinput_method_system_ability.cpp219 int32_t InputMethodSystemAbility::PrepareInput(int32_t userId, InputClientInfo &clientInfo) in PrepareInput() argument
221 auto ret = GenerateClientInfo(userId, clientInfo); in PrepareInput()
230 return session->OnPrepareInput(clientInfo); in PrepareInput()
233 int32_t InputMethodSystemAbility::GenerateClientInfo(int32_t userId, InputClientInfo &clientInfo) in GenerateClientInfo() argument
235 if (clientInfo.client == nullptr || clientInfo.channel == nullptr) { in GenerateClientInfo()
244 clientInfo.pid = IPCSkeleton::GetCallingPid(); in GenerateClientInfo()
245 clientInfo.uid = IPCSkeleton::GetCallingUid(); in GenerateClientInfo()
246 clientInfo.userID = userId; in GenerateClientInfo()
247 clientInfo in GenerateClientInfo()
528 UpdateListenEventFlag(InputClientInfo &clientInfo, uint32_t eventFlag) UpdateListenEventFlag() argument
[all...]
/base/inputmethod/imf/test/fuzztest/perusersession_fuzzer/
H A Dperusersession_fuzzer.cpp58 bool InitializeClientInfo(InputClientInfo &clientInfo) in InitializeClientInfo() argument
70 clientInfo = { .userID = MAIN_USER_ID, .client = clientStub, .deathRecipient = deathRecipient }; in InitializeClientInfo()
78 InputClientInfo clientInfo; in FuzzPerUserSession() local
79 if (!InitializeClientInfo(clientInfo)) { in FuzzPerUserSession()
82 auto client = iface_cast<IInputClient>(clientInfo.client->AsObject()); in FuzzPerUserSession()
100 userSessions->OnPrepareInput(clientInfo); in FuzzPerUserSession()
104 clientInfo.isShowKeyboard = false; in FuzzPerUserSession()
105 userSessions->OnStartInput(clientInfo, agentObject); in FuzzPerUserSession()
106 clientInfo.isShowKeyboard = true; in FuzzPerUserSession()
107 userSessions->OnStartInput(clientInfo, agentObjec in FuzzPerUserSession()
[all...]
/base/sensors/medical_sensor/services/medical_sensor/include/
H A Dmedical_sensor_dump.h37 bool DumpSensorChannel(int32_t fd, ClientInfo &clientInfo, const std::vector<std::u16string> &args);
38 bool DumpOpeningSensor(int32_t fd, const std::vector<MedicalSensor> &sensors, ClientInfo &clientInfo,
40 bool DumpSensorData(int32_t fd, ClientInfo &clientInfo, const std::vector<std::u16string> &args);
42 std::vector<MedicalSensor> &sensors, ClientInfo &clientInfo);
/base/sensors/sensor/services/include/
H A Dsensor_dump.h36 ClientInfo &clientInfo);
39 bool DumpSensorChannel(int32_t fd, ClientInfo &clientInfo);
40 bool DumpOpeningSensor(int32_t fd, const std::vector<Sensor> &sensors, ClientInfo &clientInfo);
41 bool DumpSensorData(int32_t fd, ClientInfo &clientInfo);
/base/sensors/medical_sensor/services/medical_sensor/src/
H A Dmedical_dump.cpp87 bool MedicalSensorDump::DumpSensorChannel(int32_t fd, ClientInfo &clientInfo, const std::vector<std::u16string> &args) in DumpSensorChannel() argument
96 clientInfo.GetSensorChannelInfo(channelInfo); in DumpSensorChannel()
114 ClientInfo &clientInfo, const std::vector<std::u16string> &args) in DumpOpeningSensor()
124 if (clientInfo.GetSensorState(sensorId) == SENSOR_ENABLED) { in DumpOpeningSensor()
131 bool MedicalSensorDump::DumpSensorData(int32_t fd, ClientInfo &clientInfo, const std::vector<std::u16string> &args) in DumpSensorData() argument
138 auto dataMap = clientInfo.GetDataQueue(); in DumpSensorData()
196 std::vector<MedicalSensor> &sensors, ClientInfo &clientInfo) in Dump()
208 bool channelRet = DumpSensorChannel(fd, clientInfo, args); in Dump()
209 bool openRet = DumpOpeningSensor(fd, sensors, clientInfo, args); in Dump()
210 bool dataRet = DumpSensorData(fd, clientInfo, arg in Dump()
113 DumpOpeningSensor(int32_t fd, const std::vector<MedicalSensor> &sensors, ClientInfo &clientInfo, const std::vector<std::u16string> &args) DumpOpeningSensor() argument
195 Dump(int32_t fd, const std::vector<std::u16string> &args, std::vector<MedicalSensor> &sensors, ClientInfo &clientInfo) Dump() argument
[all...]
/base/inputmethod/imf/test/unittest/cpp_test/src/
H A Didentity_checker_test.cpp245 InputClientInfo clientInfo{}; in HWTEST_F()
262 InputClientInfo clientInfo{}; in HWTEST_F()
310 InputClientInfo clientInfo{}; in HWTEST_F()
327 InputClientInfo clientInfo{}; in HWTEST_F()
579 InputClientInfo clientInfo{}; in HWTEST_F()
580 int32_t ret = IdentityCheckerTest::service_->UpdateListenEventFlag(clientInfo, EVENT_IME_SHOW_MASK); in HWTEST_F()
583 ret = IdentityCheckerTest::service_->UpdateListenEventFlag(clientInfo, EVENT_IME_HIDE_MASK); in HWTEST_F()
586 ret = IdentityCheckerTest::service_->UpdateListenEventFlag(clientInfo, EVENT_IME_CHANGE_MASK); in HWTEST_F()
602 InputClientInfo clientInfo{}; in HWTEST_F()
603 int32_t ret = IdentityCheckerTest::service_->UpdateListenEventFlag(clientInfo, EVENT_IME_SHOW_MAS in HWTEST_F()
[all...]
H A Dinput_method_ability_test.cpp329 InputClientInfo clientInfo; in HWTEST_F() local
330 clientInfo.channel = channelStub; in HWTEST_F()
331 auto ret = inputMethodAbility_->StartInput(clientInfo, false); in HWTEST_F()
333 clientInfo.isShowKeyboard = true; in HWTEST_F()
334 ret = inputMethodAbility_->StartInput(clientInfo, false); in HWTEST_F()
H A Dinput_method_private_member_test.cpp266 auto clientInfo = userSession->GetClientInfo(imc->clientInfo_.client->AsObject()); in HWTEST_F() local
267 EXPECT_EQ(clientInfo, nullptr); in HWTEST_F()
293 InputClientInfo clientInfo; in HWTEST_F() local
294 int32_t ret = userSession->OnStartInput(clientInfo, agent); in HWTEST_F()
/base/sensors/sensor/services/src/
H A Dsensor_dump.cpp140 ClientInfo &clientInfo) in ParseCommand()
219 bool SensorDump::DumpSensorChannel(int32_t fd, ClientInfo &clientInfo) in DumpSensorChannel() argument
224 clientInfo.GetSensorChannelInfo(channelInfo); in DumpSensorChannel()
239 bool SensorDump::DumpOpeningSensor(int32_t fd, const std::vector<Sensor> &sensors, ClientInfo &clientInfo) in DumpOpeningSensor() argument
248 if (clientInfo.GetSensorState(sensorId)) { in DumpOpeningSensor()
250 sensorId, sensorMap_[sensorId].c_str(), clientInfo.GetSensorChannel(sensorId).size()); in DumpOpeningSensor()
257 bool SensorDump::DumpSensorData(int32_t fd, ClientInfo &clientInfo) in DumpSensorData() argument
260 auto dataMap = clientInfo.GetDumpQueue(); in DumpSensorData()
139 ParseCommand(int32_t fd, const std::vector<std::string> &args, const std::vector<Sensor> &sensors, ClientInfo &clientInfo) ParseCommand() argument
H A Dclient_info.cpp779 auto clientInfo = it->second.find(pid); in UpdatePermState() local
780 if (clientInfo != it->second.end()) { in UpdatePermState()
781 clientInfo->second.SetPermState(state); in UpdatePermState()
/base/inputmethod/imf/frameworks/native/inputmethod_ability/src/
H A Dinput_method_core_proxy.cpp41 int32_t InputMethodCoreProxy::StartInput(const InputClientInfo &clientInfo, bool isBindFromClient) in StartInput() argument
44 return SendRequest(START_INPUT, [&clientInfo, isBindFromClient](MessageParcel &data) { in StartInput()
45 return ITypesUtil::Marshal(data, isBindFromClient, clientInfo, clientInfo.channel); in StartInput()
H A Dinput_method_core_stub.cpp108 InputClientInfo clientInfo = {}; in StartInputOnRemote() local
110 if (!ITypesUtil::Unmarshal(data, isBindFromClient, clientInfo, clientInfo.channel)) { in StartInputOnRemote()
114 auto ret = StartInput(clientInfo, isBindFromClient); in StartInputOnRemote()
244 int32_t InputMethodCoreStub::StartInput(const InputClientInfo &clientInfo, bool isBindFromClient) in StartInput() argument
246 auto task = std::make_shared<TaskImsaStartInput>(clientInfo, isBindFromClient); in StartInput()
H A Dinput_method_ability.cpp203 int32_t InputMethodAbility::StartInput(const InputClientInfo &clientInfo, bool isBindFromClient) in StartInput() argument
205 if (clientInfo.channel == nullptr) { in StartInput()
209 IMSA_HILOGI("IMA isShowKeyboard: %{public}d, isBindFromClient: %{public}d.", clientInfo.isShowKeyboard, in StartInput()
211 SetInputDataChannel(clientInfo.channel); in StartInput()
212 if (clientInfo.needHide) { in StartInput()
219 int32_t ret = isBindFromClient ? InvokeStartInputCallback(clientInfo.config, clientInfo.isNotifyInputStart) in StartInput()
220 : InvokeStartInputCallback(clientInfo.isNotifyInputStart); in StartInput()
226 auto showPanel = [&, needShow = clientInfo.isShowKeyboard] { in StartInput()
/base/inputmethod/imf/services/include/
H A Dperuser_session.h103 int32_t OnPrepareInput(const InputClientInfo &clientInfo);
122 int32_t OnUpdateListenEventFlag(const InputClientInfo &clientInfo);
145 bool CheckPwdInputPatternConv(InputClientInfo &clientInfo);
182 int AddClientInfo(sptr<IRemoteObject> inputClient, const InputClientInfo &clientInfo, ClientAddEvent event);
201 int32_t BindClientWithIme(const std::shared_ptr<InputClientInfo> &clientInfo, ImeType type,
205 void StopClientInput(const std::shared_ptr<InputClientInfo> &clientInfo, bool isStopInactiveClient = false);
H A Dinput_method_system_ability.h76 int32_t UpdateListenEventFlag(InputClientInfo &clientInfo, uint32_t eventFlag) override;
106 int32_t PrepareInput(int32_t userId, InputClientInfo &clientInfo);
159 int32_t GenerateClientInfo(int32_t userId, InputClientInfo &clientInfo);
H A Di_input_method_system_ability.h68 virtual int32_t UpdateListenEventFlag(InputClientInfo &clientInfo, uint32_t eventFlag) = 0;
/base/inputmethod/imf/frameworks/native/inputmethod_ability/include/
H A Di_input_method_core.h56 virtual int32_t StartInput(const InputClientInfo &clientInfo, bool isBindFromClient) = 0;
H A Dinput_method_core_proxy.h36 int32_t StartInput(const InputClientInfo &clientInfo, bool isBindFromClient) override;
H A Dinput_method_core_stub.h37 int32_t StartInput(const InputClientInfo &clientInfo, bool isBindFromClient) override;
H A Dinput_method_ability.h99 int32_t StartInput(const InputClientInfo &clientInfo, bool isBindFromClient);
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/
H A Dinput_method_system_ability_proxy.cpp236 int32_t InputMethodSystemAbilityProxy::UpdateListenEventFlag(InputClientInfo &clientInfo, uint32_t eventFlag)
239 [&clientInfo, eventFlag](MessageParcel &data) {
240 return ITypesUtil::Marshal(data, clientInfo, clientInfo.client->AsObject(), clientInfo.channel, eventFlag);
/base/inputmethod/imf/frameworks/native/inputmethod_controller/include/
H A Dinput_method_system_ability_proxy.h69 int32_t UpdateListenEventFlag(InputClientInfo &clientInfo, uint32_t eventFlag) override;
/base/security/device_security_level/baselib/msglib/src/standard/
H A Dmessenger_device_socket_manager.c505 SocketNodeInfo *clientInfo = LIST_ENTRY(node, SocketNodeInfo, link); in DeInitDeviceSocketManager() local
507 FREE(clientInfo); in DeInitDeviceSocketManager()

Completed in 20 milliseconds