sensor report

Signed-off-by: l30053696 <liangpenghui2@huawei.com>
This commit is contained in:
梁鹏辉
2023-12-18 14:40:23 +08:00
parent f399ff9573
commit 0bc0678e17
8 changed files with 92 additions and 2 deletions
+15
View File
@@ -343,6 +343,21 @@ int32_t SensorImpl::SdcSensorActive(int32_t sensorId, bool enabled, int32_t rate
return ret;
}
int32_t SensorImpl::GetSdcSensorInfo(std::vector<SdcSensorInfoVdi>& sdcSensorInfoVdis)
{
HDF_LOGI("%{public}s: Enter the GetSdcSensorInfo function", __func__);
CHECK_SENSOR_MODULE_INSTANCE(sensorInterface, sensorInterface->GetSdcSensorInfo);
StartTrace(HITRACE_TAG_SENSORS, "GetSdcSensorInfo");
int32_t ret = sensorInterface->GetSdcSensorInfo(sdcSensorInfoVdis);
FinishTrace(HITRACE_TAG_SENSORS);
if (ret != SENSOR_SUCCESS) {
HDF_LOGE("%{public}s failed, error code is %{public}d", __func__, ret);
}
return ret;
}
int32_t SensorImpl::UnregisterImpl(int32_t groupId, IRemoteObject *callbackObj)
{
CHECK_SENSOR_MODULE_INSTANCE(sensorInterface, sensorInterface->Unregister);