/system/chre/apps/chqts/src/general_test/ |
H A D | basic_sensor_tests.cc | 48 checkTimestampDelta(data->readings[i].timestampDelta, i); 50 checkFloat(data->readings[i].values[j], extremeLow, extremeHigh); 59 checkTimestampDelta(data->readings[i].timestampDelta, i); 60 checkFloat(data->readings[i].value, extremeLow, extremeHigh); 101 checkTimestampDelta(data->readings[i].timestampDelta, i); 104 if (mApiVersion >= CHRE_API_VERSION_1_2 && data->readings[i].invalid) { 107 if (data->readings[i].padding0 != 0) { 108 uint32_t padding = data->readings[i].padding0;
|
H A D | basic_sensor_test_base.cc | 62 duration += event->readings[i].timestampDelta;
|
/system/chre/chre_api/include/chre_api/chre/ |
H A D | sensor_types.h | 206 * } readings[1]; 209 * Despite 'readings' being declared as an array of 1 element, 210 * an instance of the struct will actually have 'readings' as 212 * The 'timestampDelta' is in relation to the previous 'readings' (or 213 * the baseTimestamp for readings[0]. So, 214 * Timestamp for readings[0] == header.baseTimestamp + 215 * readings[0].timestampDelta. 216 * Timestamp for readings[1] == timestamp for readings[0] + 217 * readings[ 301 } readings[1]; member in struct:chreSensorThreeAxisData 321 } readings[1]; member in struct:chreSensorOccurrenceData 341 } readings[1]; member in struct:chreSensorFloatData 361 } readings[1]; member in struct:chreSensorByteData [all...] |
/system/chre/chre_api/legacy/v1_0/chre/ |
H A D | sensor.h | 146 * 'readings', or by the 3D array 'v' (v[0] == x; v[1] == y; v[2] == z). 178 * 'readings', or by the 3D array 'v' (v[0] == x; v[1] == y; v[2] == z). 190 * 'readings', or by the 3D array 'v' (v[0] == x; v[1] == y; v[2] == z). 201 * The data can be interpreted using the 'pressure' field within 'readings'. 210 * The data can be interpreted using the 'light' field within 'readings'. 219 * The data is interpreted from the following fields in 'readings': 254 * field within 'readings', or by the 3D array 'bias' (bias[0] == x_bias; 267 * field within 'readings', or by the 3D array 'bias' (bias[0] == x_bias; 454 * } readings[1]; 457 * Despite 'readings' bein 546 } readings[1]; member in struct:chreSensorThreeAxisData 566 } readings[1]; member in struct:chreSensorOccurrenceData 581 } readings[1]; member in struct:chreSensorFloatData 599 } readings[1]; member in struct:chreSensorByteData [all...] |
/system/chre/chre_api/legacy/v1_1/chre/ |
H A D | sensor.h | 200 * 'readings', or by the 3D array 'v' (v[0] == x; v[1] == y; v[2] == z). 232 * 'readings', or by the 3D array 'v' (v[0] == x; v[1] == y; v[2] == z). 244 * 'readings', or by the 3D array 'v' (v[0] == x; v[1] == y; v[2] == z). 255 * The data can be interpreted using the 'pressure' field within 'readings'. 264 * The data can be interpreted using the 'light' field within 'readings'. 273 * The data is interpreted from the following fields in 'readings': 289 * 'readings', or by the 3D array 'v' (v[0] == x; v[1] == y; v[2] == z). 301 * 'readings', or by the 3D array 'v' (v[0] == x; v[1] == y; v[2] == z). 313 * 'readings', or by the 3D array 'v' (v[0] == x; v[1] == y; v[2] == z). 324 * The data can be interpreted using the 'temperature' field within 'readings' 685 } readings[1]; member in struct:chreSensorThreeAxisData 705 } readings[1]; member in struct:chreSensorOccurrenceData 725 } readings[1]; member in struct:chreSensorFloatData 743 } readings[1]; member in struct:chreSensorByteData [all...] |
/system/chre/platform/slpi/smgr/ |
H A D | platform_sensor.cc | 387 data->readings[i].timestampDelta = 391 data->readings[i].x = FX_FIXTOFLT_Q16_SP(sensorData.Data[1]); 392 data->readings[i].y = FX_FIXTOFLT_Q16_SP(sensorData.Data[0]); 393 data->readings[i].z = -FX_FIXTOFLT_Q16_SP(sensorData.Data[2]); 398 data->readings[i].x *= kMicroTeslaPerGauss; 399 data->readings[i].y *= kMicroTeslaPerGauss; 400 data->readings[i].z *= kMicroTeslaPerGauss; 416 data->readings[i].timestampDelta = 418 data->readings[i].value = FX_FIXTOFLT_Q16_SP(sensorData.Data[0]); 433 data->readings[ [all...] |
/system/chre/platform/slpi/see/ |
H A D | see_helper.cc | 754 applyThreeAxisCalibration(&event->readings[index], val, data->cal); 755 timestampDelta = &event->readings[index].timestampDelta; 762 event->readings[index].value = val[0]; 763 timestampDelta = &event->readings[index].timestampDelta; 769 event->readings[index].value = 0; 770 event->readings[index].isNear = (val[0] > 0.5f); 771 timestampDelta = &event->readings[index].timestampDelta; 778 timestampDelta = &event->readings[index].timestampDelta; 786 memcpy(event->readings[index].values, val, 787 sizeof(event->readings[inde [all...] |
/system/chre/apps/sensor_world/ |
H A D | sensor_world.cc | 314 const auto *data = ev->readings; 354 v += ev->readings[i].value; 367 const auto reading = ev->readings[0];
|