Home
last modified time | relevance | path

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

12

/base/sensors/medical_sensor/services/medical_sensor/test/unittest/common/
H A Dclient_info_test.cpp40 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::ClientInfoTest
70 bool ret = clientInfo_.UpdateSensorInfo(ACC_SENSOR_ID, pid, sensorInfo); in HWTEST_F()
90 bool ret = clientInfo_.UpdateSensorInfo(ACC_SENSOR_ID, pid, sensorInfo); in HWTEST_F()
110 bool ret = clientInfo_.UpdateSensorInfo(MAG_SENSOR_ID, pid, sensorInfo); in HWTEST_F()
130 bool ret = clientInfo_.UpdateSensorInfo(INVALID_SENSOR_ID, pid, sensorInfo); in HWTEST_F()
150 bool ret = clientInfo_.UpdateSensorInfo(MAG_SENSOR_ID, pid, sensorInfo); in HWTEST_F()
170 bool ret = clientInfo_.UpdateSensorInfo(ACC_SENSOR_ID, pid, sensorInfo); in HWTEST_F()
183 MedicalSensorState ret = clientInfo_.GetSensorState(ACC_SENSOR_ID); in HWTEST_F()
196 MedicalSensorState ret = clientInfo_.GetSensorState(MAG_SENSOR_ID); in HWTEST_F()
212 auto ret = clientInfo_ in HWTEST_F()
[all...]
/base/sensors/sensor/services/src/
H A Dsensor_service.cpp188 AccessTokenID tokenId = clientInfo_.GetTokenIdByPid(pid); in ReportSensorSysEvent()
192 int32_t uid = clientInfo_.GetUidByPid(pid); in ReportSensorSysEvent()
222 auto ret = clientInfo_.GetStoreEvent(sensorId, sensorData); in ReportOnChangeData()
227 sptr<SensorBasicDataChannel> channel = clientInfo_.GetSensorChannelByPid(GetCallingPid()); in ReportOnChangeData()
244 SensorBasicInfo sensorInfo = clientInfo_.GetCurPidSensorInfo(sensorId, GetCallingPid()); in SaveSubscriber()
248 clientInfo_.RemoveSubscriber(sensorId, GetCallingPid()); in SaveSubscriber()
285 if (clientInfo_.GetSensorState(sensorId)) { in EnableSensor()
306 clientInfo_.RemoveSubscriber(sensorId, GetCallingPid()); in EnableSensor()
313 clientInfo_.RemoveSubscriber(sensorId, GetCallingPid()); in EnableSensor()
351 int32_t uid = clientInfo_ in DisableSensor()
[all...]
H A Dsensor_manager.cpp58 SensorBasicInfo sensorInfo = clientInfo_.GetBestSensorInfo(sensorId); in SetBestSensorParams()
83 SensorBasicInfo sensorInfo = clientInfo_.GetBestSensorInfo(sensorId); in ResetBestSensorParams()
115 if (!clientInfo_.UpdateSensorInfo(sensorId, pid, sensorInfo)) { in SaveSubscriber()
153 if (clientInfo_.OnlyCurPidSensorEnabled(sensorId, clientPid)) { in IsOtherClientUsingSensor()
157 clientInfo_.ClearCurPidSensorInfo(sensorId, clientPid); in IsOtherClientUsingSensor()
170 clientInfo_.ClearSensorInfo(sensorId); in AfterDisableSensor()
173 auto ret = clientInfo_.GetStoreEvent(sensorId, sensorData); in AfterDisableSensor()
177 clientInfo_.StoreEvent(sensorData); in AfterDisableSensor()
H A Dsensor_power_policy.cpp33 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member
48 std::vector<int32_t> sensorIdList = clientInfo_.GetSensorIdByPid(pid); in SuspendSensors()
85 auto sensorInfo = clientInfo_.GetCurPidSensorInfo(sensorId, pid); in Suspend()
145 if (clientInfo_.GetSensorState(sensorId)) { in Resume()
163 clientInfo_.RemoveSubscriber(sensorId, pid); in Resume()
182 clientInfo_.RemoveSubscriber(sensorId, pid); in RestoreSensorInfo()
223 std::vector<int32_t> sensorIdList = clientInfo_.GetSensorIdByPid(pid); in GetActiveInfoList()
225 auto sensorInfo = clientInfo_.GetCurPidSensorInfo(sensorId, pid); in GetActiveInfoList()
H A Dsensor_data_processer.cpp171 uint64_t periodCount = clientInfo_.ComputeBestPeriodCount(sensorId, channel); in ReportData()
175 auto fifoCount = clientInfo_.ComputeBestFifoCount(sensorId, channel); in ReportData()
258 std::vector<sptr<SensorBasicDataChannel>> channelList = clientInfo_.GetSensorChannel(sensorId); in EventFilter()
291 clientInfo_.UpdateDataQueue(data.sensorTypeId, data); in SendEvents()
298 clientInfo_.StoreEvent(data); in SendEvents()
H A Dsensor_dump.cpp110 DumpSensorChannel(fd, clientInfo_); in RunSensorDump()
115 DumpSensorData(fd, clientInfo_); in RunSensorDump()
120 DumpOpeningSensor(fd, sensors_, clientInfo_); in RunSensorDump()
H A Dflush_info_record.cpp90 sptr<SensorBasicDataChannel> channel = clientInfo_.GetSensorChannelByPid(pid); in FlushProcess()
/base/sensors/medical_sensor/services/medical_sensor/src/
H A Dmedical_service.cpp201 auto ret = clientInfo_.GetStoreEvent(sensorId, event); in ReportOnChangeData()
206 sptr<MedicalSensorBasicDataChannel> channel = clientInfo_.GetSensorChannelByPid(this->GetCallingPid()); 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_ in GetSensorState()
[all...]
H A 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()
H A 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()
H A Dflush_info_record.cpp107 sptr<MedicalSensorBasicDataChannel> channel = clientInfo_.GetSensorChannelByPid(pid); in FlushProcess()
/base/inputmethod/imf/test/unittest/cpp_test/src/
H A Dime_event_monitor_manager_test.cpp62 InputMethodController::GetInstance()->clientInfo_.eventFlag = 0; in TearDown()
182 EXPECT_EQ(InputMethodController::GetInstance()->clientInfo_.eventFlag, 4); in HWTEST_F()
187 EXPECT_EQ(InputMethodController::GetInstance()->clientInfo_.eventFlag, 0); in HWTEST_F()
202 EXPECT_EQ(InputMethodController::GetInstance()->clientInfo_.eventFlag, 4); in HWTEST_F()
222 EXPECT_EQ(InputMethodController::GetInstance()->clientInfo_.eventFlag, 6); in HWTEST_F()
249 EXPECT_EQ(InputMethodController::GetInstance()->clientInfo_.eventFlag, 6); in HWTEST_F()
271 EXPECT_EQ(InputMethodController::GetInstance()->clientInfo_.eventFlag, 6); in HWTEST_F()
304 EXPECT_EQ(InputMethodController::GetInstance()->clientInfo_.eventFlag, 6); in HWTEST_F()
332 EXPECT_EQ(InputMethodController::GetInstance()->clientInfo_.eventFlag, 2); in HWTEST_F()
337 EXPECT_EQ(InputMethodController::GetInstance()->clientInfo_ in HWTEST_F()
[all...]
H A Dinput_method_private_member_test.cpp241 int32_t ret = userSession->ShowKeyboard(imc->clientInfo_.client); in HWTEST_F()
243 ret = userSession->HideKeyboard(imc->clientInfo_.client); in HWTEST_F()
266 auto clientInfo = userSession->GetClientInfo(imc->clientInfo_.client->AsObject()); in HWTEST_F()
276 userSession->SetCurrentClient(imc->clientInfo_.client); in HWTEST_F()
703 imc->clientInfo_.state = ClientState::ACTIVE; in HWTEST_F()
705 EXPECT_EQ(imc->clientInfo_.state, ClientState::INACTIVE); in HWTEST_F()
923 int32_t ret = userSession->ShowKeyboard(imc->clientInfo_.client); in HWTEST_F()
H A Dtext_listener_inner_api_test.cpp65 imc_->clientInfo_.state = ClientState::ACTIVE; in GetIMCAttached()
640 TextListenerInnerApiTest::imc_->clientInfo_.state = ClientState::INACTIVE; in HWTEST_F()
693 TextListenerInnerApiTest::imc_->clientInfo_.state = ClientState::INACTIVE; in HWTEST_F()
H A Dinput_method_ability_test.cpp165 imc_->clientInfo_.state = ClientState::ACTIVE; in GetIMCAttachIMA()
171 sptr<IInputDataChannel> channel = iface_cast<IInputDataChannel>(imc_->clientInfo_.channel); in GetIMCAttachIMA()
1178 InputMethodAbilityTest::imc_->clientInfo_.config.windowId = INVALID_WINDOW_ID; in HWTEST_F()
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/
H A Dinput_method_controller.cpp89 return proxy->UpdateListenEventFlag(clientInfo_, 0); in RestoreListenEventFlag()
94 auto oldEventFlag = clientInfo_.eventFlag; in UpdateListenEventFlag()
95 clientInfo_.eventFlag = finalEventFlag; in UpdateListenEventFlag()
100 clientInfo_.eventFlag = oldEventFlag; in UpdateListenEventFlag()
104 auto ret = proxy->UpdateListenEventFlag(clientInfo_, eventFlag); in UpdateListenEventFlag()
106 clientInfo_.eventFlag = oldEventFlag; in UpdateListenEventFlag()
130 clientInfo_ = { .attribute = attribute, .client = client, .channel = channel->AsObject() }; in Initialize()
185 clientInfo_.state = ClientState::INACTIVE; in DeactivateClient()
233 clientInfo_.isNotifyInputStart = lastListener != listener; in Attach()
234 if (clientInfo_ in Attach()
[all...]
/base/sensors/medical_sensor/services/medical_sensor/include/
H A Dflush_info_record.h62 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::FlushInfoRecord
H A Dmedical_sensor_manager.h48 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::MedicalSensorManager
H A Dmedical_sensor_data_processer.h61 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::MedicalSensorDataProcesser
H A Dmedical_sensor_service.h89 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::MedicalSensorService
/base/sensors/sensor/services/include/
H A Dsensor_manager.h59 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::SensorManager
H A Dflush_info_record.h62 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::FlushInfoRecord
H A Dsensor_dump.h51 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::SensorDump
H A Dsensor_data_processer.h58 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::SensorDataProcesser
H A Dsensor_service.h109 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::SensorService

Completed in 17 milliseconds

12