Home
last modified time | relevance | path

Searched refs:numSamples (Results 1 – 23 of 23) sorted by relevance

/device/google/contexthub/firmware/os/core/
DhostIntf.c95 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/
Dchre10_app.c62 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()
Dchre_app.c62 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/
DRailDataProvider.cpp262 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/
DRailDataProvider.cpp244 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/
DRailDataProvider.cpp262 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/
Darm_math.h4944 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/
Dtilt_detection.c84 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/
Dorientation.c213 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/
Dinvensense_icm40600.c2517 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/
Dbosch_bmi160.c2135 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/
Dhubconnection.cpp1092 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()
Dhubconnection.h179 uint8_t numSamples; member
/device/google/contexthub/util/nanotool/
Dsensorevent.h28 uint8_t numSamples; member
Dsensorevent.cpp125 return first_sample_header->numSamples; in GetNumSamples()
/device/google/contexthub/firmware/os/drivers/vsync/
Dvsync.c97 ev->samples[0].firstSample.numSamples = 1; in vsyncAllocateEvt()
/device/google/contexthub/firmware/os/inc/
Dsensors.h47 uint8_t numSamples; member
/device/google/contexthub/firmware/os/drivers/st_mag40/
Dst_mag40.c755 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/
Dst_lsm6dsm.c4400 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/
Dwindow_orientation.c396 size_t sampleCnt = ev->samples[0].firstSample.numSamples; in add_samples()
/device/google/contexthub/firmware/os/drivers/st_acc44/
Dst_acc44.c659 accSample->samples[0].firstSample.numSamples = num_of_smpl; in parseRawData()
/device/google/contexthub/firmware/os/drivers/st_lps22hb/
Dlps22hb.c201 ev->samples[0].firstSample.numSamples = 1; in baroAllocateEvt()
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/
Dbosch_bmp280.c240 ev->samples[0].firstSample.numSamples = 1; in baroAllocateEvt()