Home
last modified time | relevance | path

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

123

/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/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/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/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/generic/goldfish/audio/
Ddevice_port_source.cpp106 int16_t *samples = static_cast<int16_t *>(data); in read() local
108 const unsigned requestedFrames = toReadBytes / nChannels / sizeof(*samples); in read()
125 mGenerator(samples, nFrames); in read()
126 const size_t sizeBytes = nFrames * nChannels * sizeof(*samples); in read()
128 adjust_channels(samples, 1, samples, nChannels, in read()
129 sizeof(*samples), sizeBytes); in read()
Dstream_out.cpp198 int16_t *samples = static_cast<int16_t *>(buf); in applyVolume() local
199 std::for_each(samples, in applyVolume()
200 samples + szBytes / sizeof(*samples), in applyVolume()
/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/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/inc/
Dsensors.h78 struct SingleAxisDataPoint samples[]; member
105 struct TripleAxisDataPoint samples[]; member
122 struct RawTripleAxisDataPoint samples[]; member
/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_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/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/bosch_bmi160/
Dbosch_bmi160.c669 #define DEC_INFO(name, type, axis, inter, samples) \ argument
674 .minSamples = samples
676 #define DEC_INFO_RATE(name, rates, type, axis, inter, samples) \ argument
677 DEC_INFO(name, type, axis, inter, samples), \
680 #define DEC_INFO_RATE_RAW(name, rates, type, axis, inter, samples, raw, scale) \ argument
681 DEC_INFO(name, type, axis, inter, samples), \
687 #define DEC_INFO_RATE_BIAS(name, rates, type, axis, inter, samples, bias) \ argument
688 DEC_INFO(name, type, axis, inter, samples), \
693 #define DEC_INFO_RATE_RAW_BIAS(name, rates, type, axis, inter, samples, raw, scale, bias) \ argument
694 DEC_INFO_RATE_RAW(name, rates, type, axis, inter, samples, raw, scale), \
[all …]
/device/google/cuttlefish/tools/play_audio/
Dsdl_wrapper.cpp66 wav_spec.samples = 4096; in OpenAudioDevice()
/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/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_sys.py550 samples = ['', 'u'*100000]
551 for sample in samples:
660 samples = [[], [1,2,3], ['1', '2', '3']]
661 for sample in samples:
702 samples = [[], range(10), range(50)]
704 for sample in samples:
747 samples = [u'', u'1'*100]
750 for s in samples:
Dtest_collections.py296 samples = [None,
302 for x in samples:
323 samples = [str(),
329 for x in samples:
347 samples = [iter(str()),
355 for x in samples:
380 samples = [str(),
384 for x in samples:
398 samples = [str(),
402 for x in samples:
[all …]
/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/generic/goldfish-opengl/system/include/GLES2/
Dgl2ext.h431 typedef void (GL_APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEOESPROC) (GLenum target, GLsizei samples, GL…
433 GL_APICALL void GL_APIENTRY glTexStorage3DMultisampleOES (GLenum target, GLsizei samples, GLenum in…
536 …YP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC) (GLenum target, GLsizei samples, GLenum internalf…
538 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleANGLE (GLenum target, GLsizei samples, …
607 …YP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC) (GLenum target, GLsizei samples, GLenum internalf…
610 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleAPPLE (GLenum target, GLsizei samples, …
960 …TRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalf…
961 …(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
963 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenum target, GLsizei samples, GL…
964 …(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
[all …]
/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/generic/goldfish-opengl/system/include/GLES/
Dglext.h965 …YP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC) (GLenum target, GLsizei samples, GLenum internalf…
1050 …TRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalf…
1051 …(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
1166 …TRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC) (GLenum target, GLsizei samples, GLenum internalf…
1167 …(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
/device/generic/goldfish-opengl/system/GLESv1_enc/
DGLEncoder.h166 … GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);

123