/device/google/contexthub/firmware/os/core/ |
D | hostIntf.c | 95 uint8_t numSamples; member 575 sensor->curSamples -= buffer->firstSample.numSamples; in hostIntfPacketDequeue() 590 if (sensor->curSamples != sensor->buffer.firstSample.numSamples) { in hostIntfPacketDequeue() 591 …Samples=%d\n", sensor->buffer.sensType, sensor->curSamples, sensor->buffer.firstSample.numSamples); in hostIntfPacketDequeue() 592 sensor->curSamples = sensor->buffer.firstSample.numSamples; in hostIntfPacketDequeue() 612 sensor->curSamples -= buffer->firstSample.numSamples; in hostIntfPacketDequeue() 639 if (sensor->curSamples - buffer->firstSample.numSamples >= sensor->minSamples || onDelete) { in queueDiscard() 644 sensor->curSamples -= buffer->firstSample.numSamples; in queueDiscard() 849 sensor->curSamples -= sensor->buffer.firstSample.numSamples; in enqueueSensorBuffer() 859 uint8_t numSamples; in copySingleSamples() local [all …]
|
/device/google/contexthub/firmware/app/chre/common/ |
D | chre10_app.c | 62 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processTripleAxisData() 85 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData() 100 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData() 115 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData()
|
D | chre_app.c | 62 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processTripleAxisData() 85 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData() 100 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData() 115 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData()
|
/device/google/sunfish/powerstats/ |
D | RailDataProvider.cpp | 262 uint32_t numSamples = timeMs * sps / 1000; in streamEnergyData() local 270 std::thread pollThread = std::thread([this, sps, numSamples]() { in streamEnergyData() 273 while (currSamples < numSamples) { in streamEnergyData() 295 _hidl_cb(*(mOdpm.fmqSynchronized)->getDesc(), numSamples, in streamEnergyData()
|
/device/google/redbull/powerstats/ |
D | RailDataProvider.cpp | 244 uint32_t numSamples = timeMs * sps / 1000; in streamEnergyData() local 252 std::thread pollThread = std::thread([this, sps, numSamples]() { in streamEnergyData() 255 while (currSamples < numSamples) { in streamEnergyData() 277 _hidl_cb(*(mOdpm.fmqSynchronized)->getDesc(), numSamples, in streamEnergyData()
|
/device/google/coral/powerstats/ |
D | RailDataProvider.cpp | 262 uint32_t numSamples = timeMs * sps / 1000; in streamEnergyData() local 270 std::thread pollThread = std::thread([this, sps, numSamples]() { in streamEnergyData() 273 while (currSamples < numSamples) { in streamEnergyData() 295 _hidl_cb(*(mOdpm.fmqSynchronized)->getDesc(), numSamples, in streamEnergyData()
|
/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/cmsis/ |
D | arm_math.h | 4944 uint32_t numSamples); 4957 uint32_t numSamples); 4970 uint32_t numSamples); 4985 uint32_t numSamples); 4998 uint32_t numSamples); 5011 uint32_t numSamples); 6678 uint32_t numSamples); 6691 uint32_t numSamples); 6704 uint32_t numSamples); 6719 uint32_t numSamples, [all …]
|
/device/google/contexthub/firmware/os/drivers/tilt_detection/ |
D | tilt_detection.c | 84 uint32_t numSamples = ev->samples[0].firstSample.numSamples; in algoUpdate() local 89 for (i = 0; i < numSamples; i++) { in algoUpdate()
|
/device/google/contexthub/firmware/os/drivers/orientation/ |
D | orientation.c | 213 num_samples = ev->samples[0].firstSample.numSamples; in fillSamples() 218 num_samples = ev->samples[0].firstSample.numSamples + 1; in fillSamples() 316 if (mSensor->ev->samples[0].firstSample.numSamples >= MAX_NUM_COMMS_EVENT_SAMPLES) { in addSample() 321 sample = &mSensor->ev->samples[mSensor->ev->samples[0].firstSample.numSamples++]; in addSample() 323 if (mSensor->ev->samples[0].firstSample.numSamples > 1) { in addSample() 332 if (mSensor->ev->samples[0].firstSample.numSamples == MAX_NUM_COMMS_EVENT_SAMPLES) { in addSample()
|
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/ |
D | invensense_icm40600.c | 2517 if (mSensor->data_evt->samples[0].firstSample.numSamples >= MAX_NUM_COMMS_EVENT_SAMPLES) { 2524 if (mSensor->data_evt->samples[0].firstSample.numSamples > 0) { 2533 …data_evt->samples[0].firstSample.biasSample = mSensor->data_evt->samples[0].firstSample.numSamples; 2534 … sample = &mSensor->data_evt->samples[mSensor->data_evt->samples[0].firstSample.numSamples++]; 2546 sample = &mSensor->data_evt->samples[mSensor->data_evt->samples[0].firstSample.numSamples++]; 2549 if (mSensor->data_evt->samples[0].firstSample.numSamples > 1) { 2560 if (mSensor->data_evt->samples[0].firstSample.numSamples == MAX_NUM_COMMS_EVENT_SAMPLES) { 2981 if (mSensor->data_evt->samples[0].firstSample.numSamples > 0) { 2993 mSensor->data_evt->samples[0].firstSample.numSamples; 2994 … sample = &mSensor->data_evt->samples[mSensor->data_evt->samples[0].firstSample.numSamples++]; [all …]
|
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 2135 if (mSensor->data_evt->samples[0].firstSample.numSamples >= MAX_NUM_COMMS_EVENT_SAMPLES) { 2150 if (mSensor->data_evt->samples[0].firstSample.numSamples > 0) { 2164 mSensor->data_evt->samples[0].firstSample.numSamples; 2166 samples[mSensor->data_evt->samples[0].firstSample.numSamples++]; 2183 if (mSensor->data_evt->samples[0].firstSample.numSamples > 0) { 2198 mSensor->data_evt->samples[0].firstSample.numSamples; 2200 samples[mSensor->data_evt->samples[0].firstSample.numSamples++]; 2253 if (mSensor->data_evt->samples[0].firstSample.numSamples > 0) { 2265 mSensor->data_evt->samples[0].firstSample.numSamples; 2267 .firstSample.numSamples++]; [all …]
|
/device/google/contexthub/sensorhal/ |
D | hubconnection.cpp | 1092 int i, numSamples; in processBuf() local 1288 numSamples = data->firstSample.numSamples; in processBuf() 1289 for (i=0; i<numSamples; i++) { in processBuf() 1297 … ALOGW("sensor %d (one): ret=%zd, numSamples=%d, i=%d\n", currSensor, ret, numSamples, i); in processBuf() 1306 … ALOGW("sensor %d (rawThree): ret=%zd, numSamples=%d, i=%d\n", currSensor, ret, numSamples, i); in processBuf() 1315 … ALOGW("sensor %d (three): ret=%zd, numSamples=%d, i=%d\n", currSensor, ret, numSamples, i); in processBuf() 1328 if (!numSamples) in processBuf()
|
D | hubconnection.h | 179 uint8_t numSamples; member
|
/device/google/contexthub/util/nanotool/ |
D | sensorevent.h | 28 uint8_t numSamples; member
|
D | sensorevent.cpp | 125 return first_sample_header->numSamples; in GetNumSamples()
|
/device/google/contexthub/firmware/os/drivers/vsync/ |
D | vsync.c | 97 ev->samples[0].firstSample.numSamples = 1; in vsyncAllocateEvt()
|
/device/google/contexthub/firmware/os/inc/ |
D | sensors.h | 47 uint8_t numSamples; member
|
/device/google/contexthub/firmware/os/drivers/st_mag40/ |
D | st_mag40.c | 755 magSample->samples[0].firstSample.numSamples = 1; in parseRawData() 769 magSample->samples[0].firstSample.numSamples = 2; in parseRawData()
|
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/ |
D | st_lsm6dsm.c | 4400 static void lsm6dsm_pushData(enum SensorIndex sidx, uint16_t *numSamples) in lsm6dsm_pushData() argument 4411 T(sensors[sidx]).tADataEvt->samples[0].firstSample.numSamples = *numSamples; in lsm6dsm_pushData() 4416 T(sensors[sidx]).sADataEvt->samples[0].firstSample.numSamples = *numSamples; in lsm6dsm_pushData() 4422 *numSamples = 0; in lsm6dsm_pushData()
|
/device/google/contexthub/firmware/os/drivers/window_orientation/ |
D | window_orientation.c | 396 size_t sampleCnt = ev->samples[0].firstSample.numSamples; in add_samples()
|
/device/google/contexthub/firmware/os/drivers/st_acc44/ |
D | st_acc44.c | 659 accSample->samples[0].firstSample.numSamples = num_of_smpl; in parseRawData()
|
/device/google/contexthub/firmware/os/drivers/st_lps22hb/ |
D | lps22hb.c | 201 ev->samples[0].firstSample.numSamples = 1; in baroAllocateEvt()
|
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/ |
D | bosch_bmp280.c | 240 ev->samples[0].firstSample.numSamples = 1; in baroAllocateEvt()
|