Home
last modified time | relevance | path

Searched refs:sensorClientInfo (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/drivers/peripheral/sensor/hdi_service/
H A Dsensor_clients_manager.cpp417 bool SensorClientsManager::IsNotNeedReportData(SensorClientInfo &sensorClientInfo, const int32_t &s… in IsNotNeedReportData() argument
424 if (sensorClientInfo.periodCountMap_.find(sensorId) == sensorClientInfo.periodCountMap_.end()) { in IsNotNeedReportData()
428 sensorClientInfo.PrintClientMapInfo(serviceId, sensorId); in IsNotNeedReportData()
429 if (sensorClientInfo.curCountMap_[sensorId] == 0) { in IsNotNeedReportData()
432 sensorClientInfo.curCountMap_[sensorId]++; in IsNotNeedReportData()
433 if (sensorClientInfo.curCountMap_[sensorId] >= sensorClientInfo.periodCountMap_[sensorId]) { in IsNotNeedReportData()
434 sensorClientInfo.curCountMap_[sensorId] = 0; in IsNotNeedReportData()
472 … SensorClientInfo &sensorClientInfo = clients_.find(groupId)->second.find(serviceId)->second; in ReportEachClient() local
473 if (IsNotNeedReportData(sensorClientInfo, sensorId, serviceId)) { in ReportEachClient()
476 callback = sensorClientInfo.GetReportDataCb(); in ReportEachClient()
H A Dsensor_hdi_dump.cpp192 auto sensorClientInfo = entry.second; in SensorShowClient() local
195 for (const auto &entry2 : sensorClientInfo.sensorConfigMap_) { in SensorShowClient()
202 …sensorInfoData += "curCount/periodCount=" + std::to_string(sensorClientInfo.curCountMap_[sensorId]… in SensorShowClient()
203 std::to_string(sensorClientInfo.periodCountMap_[sensorId]) + ","; in SensorShowClient()
H A Dsensor_clients_manager.h51 static bool IsNotNeedReportData(SensorClientInfo &sensorClientInfo, const int32_t &sensorId,