/base/sensors/medical_sensor/services/medical_sensor/test/unittest/common/ |
H A D | client_info_test.cpp | 40 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 D | sensor_service.cpp | 188 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 D | sensor_manager.cpp | 58 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 D | sensor_power_policy.cpp | 33 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 D | sensor_data_processer.cpp | 171 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 D | sensor_dump.cpp | 110 DumpSensorChannel(fd, clientInfo_); in RunSensorDump() 115 DumpSensorData(fd, clientInfo_); in RunSensorDump() 120 DumpOpeningSensor(fd, sensors_, clientInfo_); in RunSensorDump()
|
H A D | flush_info_record.cpp | 90 sptr<SensorBasicDataChannel> channel = clientInfo_.GetSensorChannelByPid(pid); in FlushProcess()
|
/base/sensors/medical_sensor/services/medical_sensor/src/ |
H A D | medical_service.cpp | 201 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 D | medical_manager.cpp | 62 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 D | medical_data_processer.cpp | 186 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 D | flush_info_record.cpp | 107 sptr<MedicalSensorBasicDataChannel> channel = clientInfo_.GetSensorChannelByPid(pid); in FlushProcess()
|
/base/inputmethod/imf/test/unittest/cpp_test/src/ |
H A D | ime_event_monitor_manager_test.cpp | 62 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 D | input_method_private_member_test.cpp | 241 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 D | text_listener_inner_api_test.cpp | 65 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 D | input_method_ability_test.cpp | 165 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 D | input_method_controller.cpp | 89 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 D | flush_info_record.h | 62 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::FlushInfoRecord
|
H A D | medical_sensor_manager.h | 48 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::MedicalSensorManager
|
H A D | medical_sensor_data_processer.h | 61 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::MedicalSensorDataProcesser
|
H A D | medical_sensor_service.h | 89 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::MedicalSensorService
|
/base/sensors/sensor/services/include/ |
H A D | sensor_manager.h | 59 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::SensorManager
|
H A D | flush_info_record.h | 62 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::FlushInfoRecord
|
H A D | sensor_dump.h | 51 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::SensorDump
|
H A D | sensor_data_processer.h | 58 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::SensorDataProcesser
|
H A D | sensor_service.h | 109 ClientInfo &clientInfo_ = ClientInfo::GetInstance(); member in OHOS::Sensors::SensorService
|