Home
last modified time | relevance | path

Searched refs:sensorInfos (Results 1 – 8 of 8) sorted by relevance

/base/sensors/sensor/services/sensor/hdi_connection/adapter/src/
Dcompatible_connection.cpp42 std::vector<SensorInfo> sensorInfos; in GetSensorList() local
43 int32_t ret = hdiServiceImpl_.GetSensorList(sensorInfos); in GetSensorList()
48 size_t count = sensorInfos.size(); in GetSensorList()
54 const std::string sensorName(sensorInfos[i].sensorName); in GetSensorList()
55 const std::string vendorName(sensorInfos[i].vendorName); in GetSensorList()
56 const std::string firmwareVersion(sensorInfos[i].firmwareVersion); in GetSensorList()
57 const std::string hardwareVersion(sensorInfos[i].hardwareVersion); in GetSensorList()
58 const int32_t sensorId = sensorInfos[i].sensorId; in GetSensorList()
59 const float maxRange = sensorInfos[i].maxRange; in GetSensorList()
68 sensor.SetResolution(sensorInfos[i].precision); in GetSensorList()
[all …]
Dhdi_connection.cpp73 std::vector<HdfSensorInformation> sensorInfos; in GetSensorList() local
74 int32_t ret = sensorInterface_->GetAllSensorInfo(sensorInfos); in GetSensorList()
81 size_t count = sensorInfos.size(); in GetSensorList()
88 sensor.SetSensorId(sensorInfos[i].sensorId); in GetSensorList()
89 sensor.SetSensorTypeId(sensorInfos[i].sensorId); in GetSensorList()
90 sensor.SetFirmwareVersion(sensorInfos[i].firmwareVersion); in GetSensorList()
91 sensor.SetHardwareVersion(sensorInfos[i].hardwareVersion); in GetSensorList()
92 sensor.SetMaxRange(sensorInfos[i].maxRange); in GetSensorList()
93 sensor.SetSensorName(sensorInfos[i].sensorName); in GetSensorList()
94 sensor.SetVendorName(sensorInfos[i].vendorName); in GetSensorList()
[all …]
/base/sensors/medical_sensor/services/medical_sensor/hdi_connection/adapter/src/
Dcompatible_connection.cpp43 std::vector<SensorInformation> sensorInfos; in GetSensorList() local
44 int32_t ret = hdiServiceImpl_.GetSensorList(sensorInfos); in GetSensorList()
49 for (int32_t i = 0; i < static_cast<int32_t>(sensorInfos.size()); i++) { in GetSensorList()
50 const std::string sensorName(sensorInfos[i].sensorName); in GetSensorList()
51 const std::string vendorName(sensorInfos[i].vendorName); in GetSensorList()
52 const int32_t sensorId = sensorInfos[i].sensorId; in GetSensorList()
53 const float maxRange = sensorInfos[i].maxRange; in GetSensorList()
Dhdi_connection.cpp79 std::vector<HdfSensorInformation> sensorInfos; in GetSensorList() local
80 int32_t ret = sensorInterface_->GetAllSensorInfo(sensorInfos); in GetSensorList()
85 for (int32_t i = 0; i < static_cast<int32_t>(sensorInfos.size()); i++) { in GetSensorList()
86 const std::string sensorName(sensorInfos[i].sensorName); in GetSensorList()
87 const std::string vendorName(sensorInfos[i].vendorName); in GetSensorList()
88 const int32_t sensorId = sensorInfos[i].sensorId; in GetSensorList()
89 const float maxRange = sensorInfos[i].maxRange; in GetSensorList()
/base/sensors/sensor/interfaces/plugin/include/
Dasync_callback_info.h109 vector<SensorInfo> sensorInfos; variable
/base/sensors/sensor/interfaces/native/test/unittest/
Dsensor_agent_test.cpp134 SensorInfo *sensorInfos { nullptr }; variable
136 int32_t ret = GetAllSensors(&sensorInfos, &count);
153 SensorInfo *sensorInfos { nullptr }; variable
154 int32_t ret = GetAllSensors(&sensorInfos, nullptr);
/base/sensors/sensor/interfaces/plugin/src/
Dsensor_napi_utils.cpp284 return ConvertToSensorInfo(env, asyncCallbackInfo->sensorInfos[0], result[1]); in ConvertToSingleSensor()
292 auto sensorInfos = asyncCallbackInfo->sensorInfos; in ConvertToSensorInfos() local
293 for (uint32_t i = 0; i < sensorInfos.size(); ++i) { in ConvertToSensorInfos()
295 CHKNCF(env, ConvertToSensorInfo(env, sensorInfos[i], value), "Convert sensor info fail"); in ConvertToSensorInfos()
Dsensor_js.cpp1030 SensorInfo *sensorInfos = nullptr; in GetSensorList() local
1032 int32_t ret = GetAllSensors(&sensorInfos, &count); in GetSensorList()
1039 asyncCallbackInfo->sensorInfos.push_back(*(sensorInfos + i)); in GetSensorList()
1080 SensorInfo *sensorInfos = nullptr; in GetSingleSensor() local
1082 int32_t ret = GetAllSensors(&sensorInfos, &count); in GetSingleSensor()
1089 if (sensorInfos[i].sensorTypeId == sensorTypeId) { in GetSingleSensor()
1090 asyncCallbackInfo->sensorInfos.push_back(*(sensorInfos + i)); in GetSingleSensor()
1094 if (asyncCallbackInfo->sensorInfos.empty()) { in GetSingleSensor()