/ohos5.0/base/sensors/sensor_lite/frameworks/src/ |
H A D | sensor_agent_client.c | 45 int32_t ActivateSensorByProxy(const void *proxy, int32_t sensorId, const SensorUser *sensorUser) in ActivateSensorByProxy() 55 int32_t DeactivateSensorByProxy(const void *proxy, int32_t sensorId, const SensorUser *sensorUser) in DeactivateSensorByProxy() 65 int32_t SetBatchByProxy(const void *proxy, int32_t sensorId, const SensorUser *user, int64_t sampli… in SetBatchByProxy() 76 int32_t SubscribeSensorByProxy(const void *proxy, int32_t sensorId, const SensorUser *sensorUser) in SubscribeSensorByProxy() 86 int32_t UnsubscribeSensorByProxy(const void *proxy, int32_t sensorId, const SensorUser *sensorUser) in UnsubscribeSensorByProxy() 96 int32_t SetModeByProxy(const void *proxy, int32_t sensorId, const SensorUser *user, int32_t mode) in SetModeByProxy() 106 int32_t SetOptionByProxy(const void *proxy, int32_t sensorId, const SensorUser *user, int32_t optio… in SetOptionByProxy()
|
/ohos5.0/base/sensors/medical_sensor/services/medical_sensor/hdi_connection/hardware/src/ |
H A D | hdi_service_impl.cpp | 68 int32_t HdiServiceImpl::EnableSensor(uint32_t sensorId) in EnableSensor() 95 int32_t HdiServiceImpl::DisableSensor(uint32_t sensorId) in DisableSensor() 114 int32_t HdiServiceImpl::SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) in SetBatch() 126 int32_t HdiServiceImpl::SetMode(int32_t sensorId, int32_t mode) in SetMode() 131 int32_t HdiServiceImpl::RunCommand(uint32_t sensorId, int32_t cmd, int32_t params) in RunCommand() 136 int32_t HdiServiceImpl::SetOption(int32_t sensorId, uint32_t option) in SetOption()
|
/ohos5.0/base/sensors/medical_sensor/services/medical_sensor/hdi_connection/interface/src/ |
H A D | sensor_hdi_connection.cpp | 69 int32_t SensorHdiConnection::EnableSensor(int32_t sensorId) in EnableSensor() 79 int32_t SensorHdiConnection::DisableSensor(int32_t sensorId) in DisableSensor() 89 int32_t SensorHdiConnection::SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInt… in SetBatch() 99 int32_t SensorHdiConnection::SetMode(int32_t sensorId, int32_t mode) in SetMode() 109 int32_t SensorHdiConnection::SetOption(int32_t sensorId, int32_t option) in SetOption() 119 int32_t SensorHdiConnection::RunCommand(int32_t sensorId, int32_t cmd, int32_t params) in RunCommand()
|
/ohos5.0/base/sensors/medical_sensor/services/medical_sensor/hdi_connection/adapter/src/ |
H A D | compatible_connection.cpp | 52 const int32_t sensorId = sensorInfos[i].sensorId; in GetSensorList() local 64 int32_t CompatibleConnection::EnableSensor(int32_t sensorId) in EnableSensor() 74 int32_t CompatibleConnection::DisableSensor(int32_t sensorId) in DisableSensor() 84 int32_t CompatibleConnection::SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportIn… in SetBatch() 94 int32_t CompatibleConnection::SetMode(int32_t sensorId, int32_t mode) in SetMode() 104 int32_t CompatibleConnection::RunCommand(int32_t sensorId, int32_t cmd, int32_t params) in RunCommand() 109 int32_t CompatibleConnection::SetOption(int32_t sensorId, int32_t option) in SetOption()
|
H A D | hdi_connection.cpp | 88 const int32_t sensorId = sensorInfos[i].sensorId; in GetSensorList() local 100 int32_t HdiConnection::EnableSensor(int32_t sensorId) in EnableSensor() 115 int32_t HdiConnection::DisableSensor(int32_t sensorId) in DisableSensor() 130 int32_t HdiConnection::SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) in SetBatch() 145 int32_t HdiConnection::SetMode(int32_t sensorId, int32_t mode) in SetMode() 160 int32_t HdiConnection::SetOption(int32_t sensorId, int32_t option) in SetOption() 209 int32_t HdiConnection::RunCommand(int32_t sensorId, int32_t cmd, int32_t params) in RunCommand() 232 void HdiConnection::updateSensorBasicInfo(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxRe… in updateSensorBasicInfo() 241 void HdiConnection::setSensorBasicInfoState(int32_t sensorId, MedicalSensorState state) in setSensorBasicInfoState() 251 void HdiConnection::deleteSensorBasicInfoState(int32_t sensorId) in deleteSensorBasicInfoState()
|
/ohos5.0/base/sensors/medical_sensor/frameworks/native/medical_sensor/src/ |
H A D | medical_service_client.cpp | 82 bool MedicalSensorServiceClient::IsValidSensorId(uint32_t sensorId) in IsValidSensorId() 97 int32_t MedicalSensorServiceClient::EnableSensor(uint32_t sensorId, int64_t samplingPeriod, int64_t… in EnableSensor() 116 int32_t MedicalSensorServiceClient::DisableSensor(uint32_t sensorId) in DisableSensor() 135 int32_t MedicalSensorServiceClient::RunCommand(uint32_t sensorId, int32_t cmdType, int32_t params) in RunCommand() 229 void MedicalSensorServiceClient::UpdateSensorInfoMap(uint32_t sensorId, int64_t samplingPeriod, int… in UpdateSensorInfoMap() 241 void MedicalSensorServiceClient::DeleteSensorInfoItem(uint32_t sensorId) in DeleteSensorInfoItem() 252 int32_t MedicalSensorServiceClient::SetOption(uint32_t sensorId, uint32_t opt) in SetOption()
|
/ohos5.0/drivers/peripheral/sensor/hdi_service/ |
H A D | sensor_clients_manager.cpp | 144 void SensorClientsManager::UpdateSensorConfig(int sensorId, int64_t samplingInterval, int64_t repor… in UpdateSensorConfig() 265 void SensorClientsManager::EraseSdcSensorBestConfig(int sensorId) in EraseSdcSensorBestConfig() 279 void SensorClientsManager::OpenSensor(int sensorId, int serviceId) in OpenSensor() 288 bool SensorClientsManager::IsNeedOpenSensor(int sensorId, int serviceId) in IsNeedOpenSensor() 304 bool SensorClientsManager::IsNeedCloseSensor(int sensorId, int serviceId) in IsNeedCloseSensor() 325 bool SensorClientsManager::IsExistSdcSensorEnable(int sensorId) in IsExistSdcSensorEnable() 337 bool SensorClientsManager::IsUpadateSensorState(int sensorId, int serviceId, bool isOpen) in IsUpadateSensorState() 412 bool SensorClientsManager::IsSensorContinues(int32_t sensorId) in IsSensorContinues() 417 …sorClientsManager::IsNotNeedReportData(SensorClientInfo &sensorClientInfo, const int32_t &sensorId, in IsNotNeedReportData() 439 std::set<int32_t> SensorClientsManager::GetServiceIds(int32_t &sensorId) in GetServiceIds() [all …]
|
/ohos5.0/base/sensors/medical_sensor/services/medical_sensor/src/ |
H A D | medical_manager.cpp | 44 uint32_t MedicalSensorManager::GetSensorFlag(uint32_t sensorId) in GetSensorFlag() 54 bool MedicalSensorManager::SetBestSensorParams(uint32_t sensorId, int64_t samplingPeriodNs, int64_t… in SetBestSensorParams() 81 bool MedicalSensorManager::ResetBestSensorParams(uint32_t sensorId) in ResetBestSensorParams() 99 MedicalSensorBasicInfo MedicalSensorManager::GetSensorInfo(uint32_t sensorId, in GetSensorInfo() 133 ErrCode MedicalSensorManager::SaveSubscriber(uint32_t sensorId, uint32_t pid, int64_t samplingPerio… in SaveSubscriber() 156 bool MedicalSensorManager::IsOtherClientUsingSensor(uint32_t sensorId, int32_t clientPid) in IsOtherClientUsingSensor() 171 ErrCode MedicalSensorManager::AfterDisableSensor(uint32_t sensorId) in AfterDisableSensor()
|
H A D | medical_data_processer.cpp | 68 uint32_t sensorId = event.sensorTypeId; in SendNoneFifoCacheData() local 117 uint32_t sensorId = event.sensorTypeId; in SendFifoCacheData() local 178 uint32_t sensorId = event.sensorTypeId; in ReportData() local 201 uint32_t sensorId = event.sensorTypeId; in ReportNotContinuousData() local 222 …aProcesser::CheckSendDataPermission(sptr<MedicalSensorBasicDataChannel> channel, uint32_t sensorId) in CheckSendDataPermission() 259 uint32_t sensorId = event[eventSize - 1].sensorTypeId; in SendRawData() local 276 uint32_t sensorId = event.sensorTypeId; in CacheSensorEvent() local 308 uint32_t sensorId = eventsBuf.circularBuf[eventsBuf.readPosition].sensorTypeId; in EventFilter() local
|
H A D | client_info.cpp | 42 MedicalSensorState ClientInfo::GetSensorState(uint32_t sensorId) in GetSensorState() 65 MedicalSensorBasicInfo ClientInfo::GetBestSensorInfo(uint32_t sensorId) in GetBestSensorInfo() 96 bool ClientInfo::OnlyCurPidSensorEnabled(uint32_t sensorId, int32_t pid) in OnlyCurPidSensorEnabled() 258 void ClientInfo::RemoveSubscriber(uint32_t sensorId, uint32_t pid) in RemoveSubscriber() 295 bool ClientInfo::ClearSensorInfo(uint32_t sensorId) in ClearSensorInfo() 312 void ClientInfo::ClearCurPidSensorInfo(uint32_t sensorId, int32_t pid) in ClearCurPidSensorInfo() 449 int32_t ClientInfo::GetStoreEvent(int32_t sensorId, struct SensorEvent &event) in GetStoreEvent() 632 void ClientInfo::UpdateCmd(uint32_t sensorId, int32_t uid, int32_t cmdType) in UpdateCmd() 662 std::vector<int32_t> ClientInfo::GetCmdList(uint32_t sensorId, int32_t uid) in GetCmdList() 676 void ClientInfo::UpdateDataQueue(int32_t sensorId, struct SensorEvent &event) in UpdateDataQueue() [all …]
|
H A D | medical_dump.cpp | 76 auto sensorId = sensor.GetSensorId(); in DumpSensorList() local 98 auto sensorId = channel.GetSensorId(); in DumpSensorChannel() local 123 uint32_t sensorId = sensor.GetSensorId(); in DumpOpeningSensor() local 141 uint32_t sensorId = sensorData.first; in DumpSensorData() local 173 int32_t MedicalSensorDump::DataSizeBySensorId(uint32_t sensorId) in DataSizeBySensorId() 183 std::string MedicalSensorDump::GetDataBySensorId(uint32_t sensorId, struct SensorEvent &sensorData) in GetDataBySensorId()
|
H A D | medical_service_stub.cpp | 78 uint32_t sensorId = data.ReadUint32(); in AfeEnableInner() local 92 uint32_t sensorId = data.ReadUint32(); in AfeDisableInner() local 106 uint32_t sensorId = data.ReadUint32(); in AfeSetOptionInner() local 121 uint32_t sensorId = data.ReadUint32(); in GetAfeStateInner() local 135 uint32_t sensorId = data.ReadUint32(); in RunCommandInner() local
|
/ohos5.0/base/sensors/sensor_lite/services/src/ |
H A D | sensor_service_impl.c | 141 int32_t ActivateSensorImpl(int32_t sensorId, const SensorUser *user) in ActivateSensorImpl() 171 int32_t DeactivateSensorImpl(int32_t sensorId, const SensorUser *user) in DeactivateSensorImpl() 201 int32_t SetBatchImpl(int32_t sensorId, const SensorUser *user, int64_t samplingInterval, int64_t re… in SetBatchImpl() 219 int32_t SubscribeSensorImpl(int32_t sensorId, const SensorUser *user) in SubscribeSensorImpl() 249 int32_t UnsubscribeSensorImpl(int32_t sensorId, const SensorUser *user) in UnsubscribeSensorImpl() 279 int32_t SetModeImpl(int32_t sensorId, const SensorUser *user, int32_t mode) in SetModeImpl() 291 int32_t SetOptionImpl(int32_t sensorId, const SensorUser *user, int32_t option) in SetOptionImpl()
|
H A D | sensor_service.c | 52 int32_t sensorId = -1; in ActivateSensorInvoke() local 70 int32_t sensorId = -1; in DeactivateSensorInvoke() local 88 int32_t sensorId = -1; in SetBatchInvoke() local 110 int32_t sensorId = -1; in SubscribeSensorInvoke() local 129 int32_t sensorId = -1; in UnsubscribeSensorInvoke() local 147 int32_t sensorId = -1; in SetModeInvoke() local 167 int32_t sensorId = -1; in SetOptionInvoke() local
|
/ohos5.0/base/sensors/sensor/services/hdi_connection/interface/src/ |
H A D | sensor_hdi_connection.cpp | 117 for (const auto &sensorId : sensors) { in FindAllInSensorSet() local 126 bool SensorHdiConnection::FindOneInMockSet(int32_t sensorId) in FindOneInMockSet() 210 for (const auto &sensorId : mockSet_) { in GetSensorList() local 232 int32_t SensorHdiConnection::EnableSensor(int32_t sensorId) in EnableSensor() 258 int32_t SensorHdiConnection::DisableSensor(int32_t sensorId) in DisableSensor() 284 int32_t SensorHdiConnection::SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInt… in SetBatch() 310 int32_t SensorHdiConnection::SetMode(int32_t sensorId, int32_t mode) in SetMode()
|
/ohos5.0/base/sensors/sensor/frameworks/native/src/ |
H A D | sensor_agent.cpp | 57 int32_t ActivateSensor(int32_t sensorId, const SensorUser *user) in ActivateSensor() 67 int32_t DeactivateSensor(int32_t sensorId, const SensorUser *user) in DeactivateSensor() 77 int32_t SetBatch(int32_t sensorId, const SensorUser *user, int64_t samplingInterval, int64_t report… in SetBatch() 87 int32_t SubscribeSensor(int32_t sensorId, const SensorUser *user) in SubscribeSensor() 97 int32_t UnsubscribeSensor(int32_t sensorId, const SensorUser *user) in UnsubscribeSensor() 107 int32_t SetMode(int32_t sensorId, const SensorUser *user, int32_t mode) in SetMode()
|
/ohos5.0/base/sensors/sensor/services/hdi_connection/adapter/src/ |
H A D | compatible_connection.cpp | 55 const int32_t sensorId = sensorInfos[i].sensorId; in GetSensorList() local 74 int32_t CompatibleConnection::EnableSensor(int32_t sensorId) in EnableSensor() 84 int32_t CompatibleConnection::DisableSensor(int32_t sensorId) in DisableSensor() 94 int32_t CompatibleConnection::SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportIn… in SetBatch() 104 int32_t CompatibleConnection::SetMode(int32_t sensorId, int32_t mode) in SetMode()
|
H A D | hdi_connection.cpp | 112 int32_t HdiConnection::EnableSensor(int32_t sensorId) in EnableSensor() 128 int32_t HdiConnection::DisableSensor(int32_t sensorId) in DisableSensor() 144 int32_t HdiConnection::SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) in SetBatch() 158 int32_t HdiConnection::SetMode(int32_t sensorId, int32_t mode) in SetMode() 221 void HdiConnection::UpdateSensorBasicInfo(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxRe… in UpdateSensorBasicInfo() 236 void HdiConnection::SetSensorBasicInfoState(int32_t sensorId, bool state) in SetSensorBasicInfoState() 249 void HdiConnection::DeleteSensorBasicInfoState(int32_t sensorId) in DeleteSensorBasicInfoState()
|
/ohos5.0/base/sensors/medical_sensor/interfaces/native/src/ |
H A D | medical_native_impl.cpp | 162 int32_t ActivateSensor(int32_t sensorId, const MedicalSensorUser *user) in ActivateSensor() 190 int32_t DeactivateSensor(int32_t sensorId, const MedicalSensorUser *user) in DeactivateSensor() 213 int32_t SetBatch(int32_t sensorId, const MedicalSensorUser *user, int64_t samplingInterval, int64_t… in SetBatch() 234 int32_t SubscribeSensor(int32_t sensorId, const MedicalSensorUser *user) in SubscribeSensor() 251 int32_t UnsubscribeSensor(int32_t sensorId, const MedicalSensorUser *user) in UnsubscribeSensor() 274 int32_t SetMode(int32_t sensorId, const MedicalSensorUser *user, int32_t mode) in SetMode() 289 int32_t SetOption(int32_t sensorId, const MedicalSensorUser *user, int32_t option) in SetOption()
|
/ohos5.0/base/sensors/sensor/services/src/ |
H A D | sensor_manager.cpp | 51 bool SensorManager::SetBestSensorParams(int32_t sensorId, int64_t samplingPeriodNs, int64_t maxRepo… in SetBestSensorParams() 77 bool SensorManager::ResetBestSensorParams(int32_t sensorId) in ResetBestSensorParams() 113 bool SensorManager::SaveSubscriber(int32_t sensorId, uint32_t pid, int64_t samplingPeriodNs, in SaveSubscriber() 126 SensorBasicInfo SensorManager::GetSensorInfo(int32_t sensorId, int64_t samplingPeriodNs, int64_t ma… in GetSensorInfo() 155 bool SensorManager::IsOtherClientUsingSensor(int32_t sensorId, int32_t clientPid) in IsOtherClientUsingSensor() 173 ErrCode SensorManager::AfterDisableSensor(int32_t sensorId) in AfterDisableSensor()
|
H A D | sensor_power_policy.cpp | 40 bool SensorPowerPolicy::CheckFreezingSensor(int32_t sensorId) in CheckFreezingSensor() 80 for (const auto &sensorId : sensorIdList) { in Suspend() local 116 int32_t sensorId = sensorIt->first; in ResumeSensors() local 136 bool SensorPowerPolicy::Resume(int32_t pid, int32_t sensorId, int64_t samplingPeriodNs, in Resume() 170 ErrCode SensorPowerPolicy::RestoreSensorInfo(int32_t pid, int32_t sensorId, int64_t samplingPeriodN… in RestoreSensorInfo() 224 for (const auto &sensorId : sensorIdList) { in GetActiveInfoList() local
|
H A D | sensor_dump.cpp | 205 auto sensorId = sensor.GetSensorId(); in DumpSensorList() local 226 auto sensorId = channel.GetSensorId(); in DumpSensorChannel() local 244 int32_t sensorId = sensor.GetSensorId(); in DumpOpeningSensor() local 263 int32_t sensorId = sensorData.first; in DumpSensorData() local 294 int32_t SensorDump::GetDataDimension(int32_t sensorId) in GetDataDimension() 329 std::string SensorDump::GetDataBySensorId(int32_t sensorId, SensorData &sensorData) in GetDataBySensorId()
|
/ohos5.0/drivers/peripheral/sensor/hal/src/ |
H A D | sensor_controller.c | 213 static struct HdfIoService *GetSensorServiceBySensorId(int32_t sensorId) in GetSensorServiceBySensorId() 226 static int32_t SendSensorMsg(int32_t sensorId, struct HdfSBuf *msg, struct HdfSBuf *reply) in SendSensorMsg() 243 static int32_t EnableSensor(int32_t sensorId) in EnableSensor() 274 static int32_t DisableSensor(int32_t sensorId) in DisableSensor() 305 static int32_t SetSensorBatch(int32_t sensorId, int64_t samplingInterval, int64_t interval) in SetSensorBatch() 342 static int32_t SetSensorMode(int32_t sensorId, int32_t mode) in SetSensorMode() 368 static int32_t SetSensorOption(int32_t sensorId, uint32_t option) in SetSensorOption() 428 static int32_t ReadData(int32_t sensorId, struct SensorEvents *event) in ReadData()
|
/ohos5.0/base/sensors/sensor/services/hdi_connection/hardware/src/ |
H A D | hdi_service_impl.cpp | 86 for (const auto &sensorId : enableSensors_) { in GenerateEvent() local 206 for (const auto &sensorId : enableSensors_) { in DataReportThread() local 237 int32_t HdiServiceImpl::EnableSensor(int32_t sensorId) in EnableSensor() 260 int32_t HdiServiceImpl::DisableSensor(int32_t sensorId) in DisableSensor() 286 int32_t HdiServiceImpl::SetBatch(int32_t sensorId, int64_t samplingInterval, int64_t reportInterval) in SetBatch() 298 int32_t HdiServiceImpl::SetMode(int32_t sensorId, int32_t mode) in SetMode()
|
/ohos5.0/base/sensors/sensor/utils/common/src/ |
H A D | active_info.cpp | 27 ActiveInfo::ActiveInfo(int32_t pid, int32_t sensorId, int64_t samplingPeriodNs, int64_t maxReportDe… in ActiveInfo() 46 void ActiveInfo::SetSensorId(int32_t sensorId) in SetSensorId() 95 int32_t sensorId = -1; in Unmarshalling() local
|