Searched refs:sensorNode (Results 1 – 3 of 3) sorted by relevance
/test/xts/hats/hdf/sensor/hdiService_additional/ |
D | sensor_callback_impl.cpp | 64 void SensorDataVerification(const float &data, const struct SensorDevelopmentList &sensorNode) in SensorDataVerification() argument 66 for (int32_t j = 0; j < sensorNode.dataDimension; ++j) { in SensorDataVerification() 67 printf("sensor id :[%d], data[%d]: %f\n\r", sensorNode.sensorTypeId, j + 1, *(&data + j)); in SensorDataVerification() 68 if (sensorNode.dataForm == 0) { in SensorDataVerification() 69 if (abs(*(&data + j) - sensorNode.valueRange[j].highThreshold) < EPSINON || in SensorDataVerification() 70 abs(*(&data + j) - sensorNode.valueRange[j].lowThreshold) < EPSINON) { in SensorDataVerification() 74 printf("%s: %s Not expected\n\r", __func__, sensorNode.sensorName); in SensorDataVerification() 78 if (sensorNode.dataForm == 1) { in SensorDataVerification() 79 if (*(&data + j) >= sensorNode.valueRange[j].lowThreshold && in SensorDataVerification() 80 *(&data + j) <= sensorNode.valueRange[j].highThreshold) { in SensorDataVerification() [all …]
|
/test/xts/hats/hdf/sensor/hdiService/ |
D | sensor_callback_impl.cpp | 66 void SensorDataVerification(const float &data, const struct SensorDevelopmentList &sensorNode) in SensorDataVerification() argument 68 for (int32_t j = 0; j < sensorNode.dataDimension; ++j) { in SensorDataVerification() 69 … printf("sensor id :[%d], data[%d]: %f\n\r", sensorNode.sensorTypeId, j + 1, *(&data + j)); in SensorDataVerification() 70 if (sensorNode.dataForm == 0) { in SensorDataVerification() 71 if (abs(*(&data + j) - sensorNode.valueRange[j].highThreshold) < EPSINON || in SensorDataVerification() 72 abs(*(&data + j) - sensorNode.valueRange[j].lowThreshold) < EPSINON) { in SensorDataVerification() 76 printf("%s: %s Not expected\n\r", __func__, sensorNode.sensorName); in SensorDataVerification() 80 if (sensorNode.dataForm == 1) { in SensorDataVerification() 81 if (*(&data + j) >= sensorNode.valueRange[j].lowThreshold && in SensorDataVerification() 82 *(&data + j) <= sensorNode.valueRange[j].highThreshold) { in SensorDataVerification() [all …]
|
/test/xts/hats/hdf/sensor/common/ |
D | hdf_sensor_test.cpp | 79 void SensorDataVerification(const float &data, const struct SensorDevelopmentList &sensorNode) in SensorDataVerification() argument 81 for (int32_t j = 0; j < sensorNode.dataDimension; ++j) { in SensorDataVerification() 82 … printf("sensor id :[%d], data[%d]: %f\n\r", sensorNode.sensorTypeId, j + 1, *(&data + j)); in SensorDataVerification() 83 if (sensorNode.dataForm == 0) { in SensorDataVerification() 84 if (abs(*(&data + j) - sensorNode.valueRange[j].highThreshold) < EPSINON || in SensorDataVerification() 85 abs(*(&data + j) - sensorNode.valueRange[j].lowThreshold) < EPSINON) { in SensorDataVerification() 89 printf("%s: %s Not expected\n\r", __func__, sensorNode.sensorName); in SensorDataVerification() 93 if (sensorNode.dataForm == 1) { in SensorDataVerification() 94 if (*(&data + j) > sensorNode.valueRange[j].lowThreshold && in SensorDataVerification() 95 *(&data + j) < sensorNode.valueRange[j].highThreshold) { in SensorDataVerification() [all …]
|