Home
last modified time | relevance | path

Searched refs:samples (Results 1 – 25 of 36) sorted by relevance

12

/device/google/contexthub/firmware/os/drivers/orientation/
Dorientation.c117 struct FusionSensorSample samples[NUM_OF_RAW_SENSOR][MAX_NUM_SAMPLES]; member
155 #define DEC_INFO_RATE(name, rates, type, axis, inter, samples) \ argument
161 .minSamples = samples
211 curr_sample = ev->samples; in fillSamples()
213 num_samples = ev->samples[0].firstSample.numSamples; in fillSamples()
217 next_sample = ev->samples; in fillSamples()
218 num_samples = ev->samples[0].firstSample.numSamples + 1; in fillSamples()
224 if (next_sample == ev->samples) in fillSamples()
247 mTask.samples[index][w].x = curr_sample->x + weight_next * in fillSamples()
249 mTask.samples[index][w].y = curr_sample->y + weight_next * in fillSamples()
[all …]
/device/google/contexthub/firmware/os/core/
DhostIntf.c860 uint8_t evtNumSamples = single->samples[0].firstSample.numSamples; in copySingleSamples()
870 sensor->lastTime += single->samples[i].deltaTime; in copySingleSamples()
874 sensor->buffer.single[0].idata = single->samples[i].idata; in copySingleSamples()
898 sensor->buffer.single[numSamples].idata = single->samples[0].idata; in copySingleSamples()
904 deltaTime = single->samples[i].deltaTime; in copySingleSamples()
909 sensor->buffer.single[numSamples].idata = single->samples[i].idata; in copySingleSamples()
924 for (i = 0; i < triple->samples[0].firstSample.numSamples; i++) { in copyTripleSamples()
932 sensor->lastTime += triple->samples[i].deltaTime; in copyTripleSamples()
936 sensor->buffer.triple[0].ix = triple->samples[i].ix; in copyTripleSamples()
937 sensor->buffer.triple[0].iy = triple->samples[i].iy; in copyTripleSamples()
[all …]
/device/google/contexthub/firmware/app/chre/common/
Dchre10_app.c62 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processTripleAxisData()
64 three.header.baseTimestamp += src->samples[i].deltaTime; in processTripleAxisData()
65 three.readings[0].x = src->samples[i].x; in processTripleAxisData()
66 three.readings[0].y = src->samples[i].y; in processTripleAxisData()
67 three.readings[0].z = src->samples[i].z; in processTripleAxisData()
85 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData()
87 occ.header.baseTimestamp += src->samples[i].deltaTime; in processSingleAxisData()
100 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData()
102 flt.header.baseTimestamp += src->samples[i].deltaTime; in processSingleAxisData()
103 flt.readings[0].value = src->samples[i].fdata; in processSingleAxisData()
[all …]
Dchre_app.c62 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processTripleAxisData()
64 three.header.baseTimestamp += src->samples[i].deltaTime; in processTripleAxisData()
65 three.readings[0].x = src->samples[i].x; in processTripleAxisData()
66 three.readings[0].y = src->samples[i].y; in processTripleAxisData()
67 three.readings[0].z = src->samples[i].z; in processTripleAxisData()
85 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData()
87 occ.header.baseTimestamp += src->samples[i].deltaTime; in processSingleAxisData()
100 for (i=0; i<src->samples[0].firstSample.numSamples; i++) { in processSingleAxisData()
102 flt.header.baseTimestamp += src->samples[i].deltaTime; in processSingleAxisData()
103 flt.readings[0].value = src->samples[i].fdata; in processSingleAxisData()
[all …]
/device/google/contexthub/firmware/os/drivers/st_mag40/
Dst_mag40.c295 memset(&ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in magAllocateEvt()
396 #define DEC_INFO_BIAS(name, type, axis, inter, samples, rates, raw, scale, bias) \ argument
401 .minSamples = samples, \
407 #define DEC_INFO(name, type, axis, inter, samples, rates, raw, scale) \ argument
412 .minSamples = samples, \
754 magSample->samples[0].deltaTime = 0; in parseRawData()
755 magSample->samples[0].firstSample.numSamples = 1; in parseRawData()
756 magSample->samples[0].x = x; in parseRawData()
757 magSample->samples[0].y = y; in parseRawData()
758 magSample->samples[0].z = z; in parseRawData()
[all …]
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/
Dinvensense_icm40600.c709 #define DEC_INFO(name, type, axis, inter, samples) \ argument
714 .minSamples = samples
716 #define DEC_INFO_RATE(name, rates, type, axis, inter, samples) \ argument
717 DEC_INFO(name, type, axis, inter, samples), \
720 #define DEC_INFO_RATE_RAW(name, rates, type, axis, inter, samples, raw, scale) \ argument
721 DEC_INFO(name, type, axis, inter, samples), \
727 #define DEC_INFO_RATE_BIAS(name, rates, type, axis, inter, samples, bias) \ argument
728 DEC_INFO(name, type, axis, inter, samples), \
733 #define DEC_INFO_RATE_RAW_BIAS(name, rates, type, axis, inter, samples, raw, scale, bias) \ argument
734 DEC_INFO_RATE_RAW(name, rates, type, axis, inter, samples, raw, scale), \
[all …]
/device/google/contexthub/firmware/os/drivers/st_acc44/
Dst_acc44.c298 #define DEC_INFO(name, type, axis, inter, samples, rates, raw, scale) \ argument
303 .minSamples = samples, \
544 memset(&ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in accAllocateEvt()
658 accSample->samples[0].deltaTime = 0; in parseRawData()
659 accSample->samples[0].firstSample.numSamples = num_of_smpl; in parseRawData()
674 accSample->samples[i].x = x; in parseRawData()
675 accSample->samples[i].y = y; in parseRawData()
676 accSample->samples[i].z = z; in parseRawData()
679 accSample->samples[i].deltaTime = mTask.sample_rate_ns; in parseRawData()
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/
Dst_lsm6dsm.c961 #define DEC_INFO(name, type, axis, inter, samples) \ argument
966 .minSamples = samples
968 #define DEC_INFO_RATE(name, rates, type, axis, inter, samples) \ argument
969 DEC_INFO(name, type, axis, inter, samples), \
972 #define DEC_INFO_RATE_BIAS(name, rates, type, axis, inter, samples, bias) \ argument
973 DEC_INFO(name, type, axis, inter, samples), \
978 #define DEC_INFO_RATE_RAW(name, rates, type, axis, inter, samples, raw, scale) \ argument
979 DEC_INFO(name, type, axis, inter, samples), \
985 #define DEC_INFO_RATE_RAW_BIAS(name, rates, type, axis, inter, samples, raw, scale, bias) \ argument
986 DEC_INFO_RATE_RAW(name, rates, type, axis, inter, samples, raw, scale), \
[all …]
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/
Dbosch_bmi160.c676 #define DEC_INFO(name, type, axis, inter, samples) \ argument
681 .minSamples = samples
683 #define DEC_INFO_RATE(name, rates, type, axis, inter, samples) \ argument
684 DEC_INFO(name, type, axis, inter, samples), \
687 #define DEC_INFO_RATE_RAW(name, rates, type, axis, inter, samples, raw, scale) \ argument
688 DEC_INFO(name, type, axis, inter, samples), \
694 #define DEC_INFO_RATE_BIAS(name, rates, type, axis, inter, samples, bias) \ argument
695 DEC_INFO(name, type, axis, inter, samples), \
700 #define DEC_INFO_RATE_RAW_BIAS(name, rates, type, axis, inter, samples, raw, scale, bias) \ argument
701 DEC_INFO_RATE_RAW(name, rates, type, axis, inter, samples, raw, scale), \
[all …]
/device/generic/goldfish/audio/
Ddevice_port_source.cpp267 int16_t *samples = mWriteBuffer.data(); in read() local
269 const unsigned requestedFrames = bytesToRead / nChannels / sizeof(*samples); in read()
286 mGenerator(samples, nFrames); in read()
289 adjust_channels(samples, 1, samples, nChannels, in read()
290 sizeof(*samples), nFrames * sizeof(*samples)); in read()
297 writer(mWriteBuffer.data(), nSamples * sizeof(*samples)); in read()
/device/amlogic/yukawa/hal/audio/
Dfir_filter.c101 void fir_process_interleaved(fir_filter_t* fir, int16_t* input, int16_t* output, uint32_t samples) { in fir_process_interleaved() argument
105 memcpy(&fir->state[start_offset], input, samples * fir->channels * sizeof(int16_t)); in fir_process_interleaved()
114 for (int s = 0; s < samples; s++) { in fir_process_interleaved()
152 memmove(fir->state, &fir->state[samples * fir->channels], in fir_process_interleaved()
Dfir_filter.h37 void fir_process_interleaved(fir_filter_t* fir, int16_t* input, int16_t* output, uint32_t samples);
/device/linaro/dragonboard/audio/
Dfir_filter.c101 void fir_process_interleaved(fir_filter_t* fir, int16_t* input, int16_t* output, uint32_t samples) { in fir_process_interleaved() argument
105 memcpy(&fir->state[start_offset], input, samples * fir->channels * sizeof(int16_t)); in fir_process_interleaved()
114 for (int s = 0; s < samples; s++) { in fir_process_interleaved()
152 memmove(fir->state, &fir->state[samples * fir->channels], in fir_process_interleaved()
Dfir_filter.h37 void fir_process_interleaved(fir_filter_t* fir, int16_t* input, int16_t* output, uint32_t samples);
/device/google/contexthub/firmware/os/drivers/window_orientation/
Dwindow_orientation.c396 size_t sampleCnt = ev->samples[0].firstSample.numSamples; in add_samples()
405 x = ev->samples[i].x; in add_samples()
406 y = ev->samples[i].y; in add_samples()
407 z = ev->samples[i].z; in add_samples()
412 now_nsec += i > 0 ? ev->samples[i].deltaTime : 0; in add_samples()
/device/google/contexthub/firmware/os/drivers/vsync/
Dvsync.c95 memset(&ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in vsyncAllocateEvt()
97 ev->samples[0].firstSample.numSamples = 1; in vsyncAllocateEvt()
98 ev->samples[0].idata = 1; in vsyncAllocateEvt()
/device/google/contexthub/firmware/os/drivers/st_lps22hb/
Dlps22hb.c199 memset(&ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in baroAllocateEvt()
201 ev->samples[0].firstSample.numSamples = 1; in baroAllocateEvt()
202 ev->samples[0].fdata = sample; in baroAllocateEvt()
314 #define DEC_INFO(name, type, axis, inter, samples, rates) \ argument
319 .minSamples = samples, \
/device/google/contexthub/firmware/os/inc/
Dsensors.h78 struct SingleAxisDataPoint samples[]; member
105 struct TripleAxisDataPoint samples[]; member
122 struct RawTripleAxisDataPoint samples[]; member
/device/google/raviole/audio/oriole/cs35l41/fw/
Dreadme.md22 - **Top**: 5 samples (3 new ones + 2 from 20210323)
23 - **Bottom**: Same 3 samples as 20210323
37 - Recharacterized and retuned with EVT Bucks (3 samples each Buck)
/device/google/raviole/audio/raven/cs35l41/fw/
Dreadme.md22 - Recharacterized and retuned to include new limit samples
28 - Recharacterized and retuned to include new limit samples
45 Retune using R4 EVT samples.
/device/google/contexthub/firmware/os/drivers/tilt_detection/
Dtilt_detection.c84 uint32_t numSamples = ev->samples[0].firstSample.numSamples; in algoUpdate()
90 sample = &ev->samples[i]; in algoUpdate()
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/
Dbosch_bmp280.c238 memset(&ev->samples[0].firstSample, 0x00, sizeof(struct SensorFirstSample)); in baroAllocateEvt()
240 ev->samples[0].firstSample.numSamples = 1; in baroAllocateEvt()
241 ev->samples[0].fdata = sample; in baroAllocateEvt()
/device/google/contexthub/firmware/os/drivers/st_hts221/
Dhts221.c272 #define DEC_INFO(name, type, axis, inter, samples, rates) \ argument
277 .minSamples = samples, \
/device/google/contexthub/firmware/os/drivers/si_si7034/
Dsi7034a10.c225 #define DEC_INFO(name, type, axis, inter, samples, rates) \ argument
230 .minSamples = samples, \
/device/sample/frameworks/PlatformLibrary/
DAndroid.bp44 dist_group: "samples",

12