Home
last modified time | relevance | path

Searched refs:clientInfo_ (Results 1 – 21 of 21) sorted by relevance

/base/sensors/medical_sensor/services/medical_sensor/test/unittest/common/
Dclient_info_test.cpp40 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::ClientInfoTest
70 bool ret = clientInfo_.UpdateSensorInfo(ACC_SENSOR_ID, pid, sensorInfo);
90 bool ret = clientInfo_.UpdateSensorInfo(ACC_SENSOR_ID, pid, sensorInfo);
110 bool ret = clientInfo_.UpdateSensorInfo(MAG_SENSOR_ID, pid, sensorInfo);
130 bool ret = clientInfo_.UpdateSensorInfo(INVALID_SENSOR_ID, pid, sensorInfo);
150 bool ret = clientInfo_.UpdateSensorInfo(MAG_SENSOR_ID, pid, sensorInfo);
170 bool ret = clientInfo_.UpdateSensorInfo(ACC_SENSOR_ID, pid, sensorInfo);
183 MedicalSensorState ret = clientInfo_.GetSensorState(ACC_SENSOR_ID);
196 MedicalSensorState ret = clientInfo_.GetSensorState(MAG_SENSOR_ID);
212 auto ret = clientInfo_.UpdateSensorChannel(pid, sensorChannel);
[all …]
/base/sensors/sensor/services/sensor/src/
Dsensor_service.cpp168 AccessTokenID tokenId = clientInfo_.GetTokenIdByPid(pid); in ReportSensorSysEvent()
171 int32_t uid = clientInfo_.GetUidByPid(pid); in ReportSensorSysEvent()
194 auto ret = clientInfo_.GetStoreEvent(sensorId, sensorData); in ReportOnChangeData()
199 sptr<SensorBasicDataChannel> channel = clientInfo_.GetSensorChannelByPid(GetCallingPid()); in ReportOnChangeData()
218 clientInfo_.RemoveSubscriber(sensorId, GetCallingPid()); in SaveSubscriber()
246 if (clientInfo_.GetSensorState(sensorId)) { in EnableSensor()
266 clientInfo_.RemoveSubscriber(sensorId, GetCallingPid()); in EnableSensor()
273 clientInfo_.RemoveSubscriber(sensorId, GetCallingPid()); in EnableSensor()
310 int32_t uid = clientInfo_.GetUidByPid(pid); in DisableSensor()
311 clientInfo_.DestroyCmd(uid); in DisableSensor()
[all …]
Dsensor_manager.cpp56 SensorBasicInfo sensorInfo = clientInfo_.GetBestSensorInfo(sensorId); in SetBestSensorParams()
81 SensorBasicInfo sensorInfo = clientInfo_.GetBestSensorInfo(sensorId); in ResetBestSensorParams()
113 if (!clientInfo_.UpdateSensorInfo(sensorId, pid, sensorInfo)) { in SaveSubscriber()
155 if (clientInfo_.OnlyCurPidSensorEnabled(sensorId, clientPid)) { in IsOtherClientUsingSensor()
159 clientInfo_.ClearCurPidSensorInfo(sensorId, clientPid); in IsOtherClientUsingSensor()
172 clientInfo_.ClearSensorInfo(sensorId); in AfterDisableSensor()
175 auto ret = clientInfo_.GetStoreEvent(sensorId, sensorData); in AfterDisableSensor()
179 clientInfo_.StoreEvent(sensorData); in AfterDisableSensor()
Dsensor_power_policy.cpp32 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); variable
47 std::vector<int32_t> sensorIdList = clientInfo_.GetSensorIdByPid(pid); in SuspendSensors()
84 auto sensorInfo = clientInfo_.GetCurPidSensorInfo(sensorId, pid); in Suspend()
144 if (clientInfo_.GetSensorState(sensorId)) { in Resume()
162 clientInfo_.RemoveSubscriber(sensorId, pid); in Resume()
181 clientInfo_.RemoveSubscriber(sensorId, pid); in RestoreSensorInfo()
222 std::vector<int32_t> sensorIdList = clientInfo_.GetSensorIdByPid(pid); in GetActiveInfoList()
224 auto sensorInfo = clientInfo_.GetCurPidSensorInfo(sensorId, pid); in GetActiveInfoList()
Dsensor_data_processer.cpp164 uint64_t periodCount = clientInfo_.ComputeBestPeriodCount(sensorId, channel); in ReportData()
168 auto fifoCount = clientInfo_.ComputeBestFifoCount(sensorId, channel); in ReportData()
246 std::vector<sptr<SensorBasicDataChannel>> channelList = clientInfo_.GetSensorChannel(sensorId); in EventFilter()
280 clientInfo_.UpdateDataQueue(data.sensorTypeId, data); in SendEvents()
287 clientInfo_.StoreEvent(data); in SendEvents()
Dflush_info_record.cpp88 sptr<SensorBasicDataChannel> channel = clientInfo_.GetSensorChannelByPid(pid); in FlushProcess()
/base/sensors/medical_sensor/services/medical_sensor/src/
Dmedical_service.cpp201 auto ret = clientInfo_.GetStoreEvent(sensorId, event); in ReportOnChangeData()
206 …sptr<MedicalSensorBasicDataChannel> channel = clientInfo_.GetSensorChannelByPid(this->GetCallingPi… in ReportOnChangeData()
229 clientInfo_.RemoveSubscriber(sensorId, this->GetCallingPid()); in SaveSubscriber()
246 if (clientInfo_.GetSensorState(sensorId) == SENSOR_ENABLED) { in EnableSensor()
265 clientInfo_.RemoveSubscriber(sensorId, this->GetCallingPid()); in EnableSensor()
272 clientInfo_.RemoveSubscriber(sensorId, this->GetCallingPid()); in EnableSensor()
293 if (clientInfo_.GetSensorState(sensorId) != SENSOR_ENABLED) { in DisableSensor()
305 clientInfo_.DestroyCmd(this->GetCallingUid()); in DisableSensor()
306 clientInfo_.ClearDataQueue(sensorId); in DisableSensor()
333 auto state = clientInfo_.GetSensorState(sensorId); in GetSensorState()
[all …]
Dmedical_manager.cpp62 MedicalSensorBasicInfo sensorInfo = clientInfo_.GetBestSensorInfo(sensorId); in SetBestSensorParams()
88 MedicalSensorBasicInfo sensorInfo = clientInfo_.GetBestSensorInfo(sensorId); in ResetBestSensorParams()
137 auto updateRet = clientInfo_.UpdateSensorInfo(sensorId, pid, sensorInfo); in SaveSubscriber()
159 if (clientInfo_.OnlyCurPidSensorEnabled(sensorId, clientPid)) { in IsOtherClientUsingSensor()
163 clientInfo_.ClearCurPidSensorInfo(sensorId, clientPid); in IsOtherClientUsingSensor()
174 if (!clientInfo_.ClearSensorInfo(sensorId)) { in AfterDisableSensor()
180 auto ret = clientInfo_.GetStoreEvent(sensorId, event); in AfterDisableSensor()
184 clientInfo_.StoreEvent(event); in AfterDisableSensor()
Dmedical_data_processer.cpp186 uint64_t periodCount = clientInfo_.ComputeBestPeriodCount(sensorId, channel); in ReportData()
190 auto fifoCount = clientInfo_.ComputeBestFifoCount(sensorId, channel); in ReportData()
314 channelList = clientInfo_.GetSensorChannel(realSensorId); in EventFilter()
316 channelList = clientInfo_.GetSensorChannel(sensorId); in EventFilter()
392 clientInfo_.UpdateDataQueue(event.sensorTypeId, event); in SendEvents()
399 clientInfo_.StoreEvent(event); in SendEvents()
Dflush_info_record.cpp107 sptr<MedicalSensorBasicDataChannel> channel = clientInfo_.GetSensorChannelByPid(pid); in FlushProcess()
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/
Dinput_method_controller.cpp88 return proxy->UpdateListenEventFlag(clientInfo_, IME_NONE); in RestoreListenEventFlag()
104 auto oldEventFlag = clientInfo_.eventFlag; in UpdateListenEventFlag()
106 auto ret = proxy->UpdateListenEventFlag(clientInfo_, eventType); in UpdateListenEventFlag()
108 clientInfo_.eventFlag = oldEventFlag; in UpdateListenEventFlag()
116clientInfo_.eventFlag = isOn ? clientInfo_.eventFlag | currentEvent : clientInfo_.eventFlag & curr… in UpdateNativeEventFlag()
146 clientInfo_ = { .attribute = attribute, .client = client, .channel = channel }; in Initialize()
256 clientInfo_.isShowKeyboard = false; in WorkThread()
429 clientInfo_.isShowKeyboard = isShowKeyboard; in Attach()
432 int32_t ret = PrepareInput(clientInfo_); in Attach()
437 ret = StartInput(clientInfo_.client, isShowKeyboard, true); in Attach()
[all …]
/base/inputmethod/imf/test/unittest/cpp_test/src/
Dinput_method_private_member_test.cpp192 …int32_t ret = userSession->ShowKeyboard(imc->clientInfo_.channel, imc->clientInfo_.client, false, …
194 ret = userSession->HideKeyboard(imc->clientInfo_.client);
196 ret = userSession->ClearDataChannel(imc->clientInfo_.channel);
198 ret = userSession->SendAgentToSingleClient(imc->clientInfo_.client);
227 auto clientInfo = userSession->GetClientInfo(imc->clientInfo_.client->AsObject());
239 userSession->SetCurrentClient(imc->clientInfo_.client);
/base/sensors/sensor/services/sensor/include/
Dflush_info_record.h62 ClientInfo &clientInfo_ = ClientInfo::GetInstance();
Dsensor_manager.h59 ClientInfo &clientInfo_ = ClientInfo::GetInstance();
Dsensor_data_processer.h58 ClientInfo &clientInfo_ = ClientInfo::GetInstance();
Dsensor_service.h107 ClientInfo &clientInfo_ = ClientInfo::GetInstance();
/base/sensors/medical_sensor/services/medical_sensor/include/
Dmedical_sensor_manager.h48 ClientInfo &clientInfo_ = ClientInfo::GetInstance();
Dflush_info_record.h62 ClientInfo &clientInfo_ = ClientInfo::GetInstance();
Dmedical_sensor_data_processer.h61 ClientInfo &clientInfo_ = ClientInfo::GetInstance();
Dmedical_sensor_service.h89 ClientInfo &clientInfo_ = ClientInfo::GetInstance();
/base/inputmethod/imf/interfaces/inner_api/inputmethod_controller/include/
Dinput_method_controller.h495 InputClientInfo clientInfo_; variable