Home
last modified time | relevance | path

Searched refs:dataEvent (Results 1 – 6 of 6) sorted by relevance

/system/chre/platform/linux/
Dplatform_audio.cc47 auto &dataEvent = audioSource->dataEvent; in audioSourceCallback() local
51 dataEvent.timestamp = in audioSourceCallback()
53 dataEvent.sampleCount = audioSource->numSamples; in audioSourceCallback()
55 if (dataEvent.format == CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM) { in audioSourceCallback()
65 audioSource->audioFile, const_cast<int16_t *>(dataEvent.samplesS16), in audioSourceCallback()
66 static_cast<sf_count_t>(dataEvent.sampleCount)); in audioSourceCallback()
67 if (readCount != dataEvent.sampleCount) { in audioSourceCallback()
72 .handleAudioDataEvent(&audioSource->dataEvent); in audioSourceCallback()
121 audioSource->format = source->dataEvent.format; in getAudioSource()
143 source->dataEvent.format = CHRE_AUDIO_DATA_FORMAT_8_BIT_U_LAW; in addAudioSource()
[all …]
Daudio_source.cc36 if (dataEvent.samplesULaw8 != nullptr) { in ~AudioSource()
38 const_cast<uint8_t *>(dataEvent.samplesULaw8))); in ~AudioSource()
/system/chre/apps/test/chqts/src/general_test/
Dbasic_audio_test.cc229 void handleAudioDataEvent(const chreAudioDataEvent *dataEvent) { in handleAudioDataEvent() argument
236 if (dataEvent == nullptr) { in handleAudioDataEvent()
238 } else if (dataEvent->samplesS16 == nullptr) { in handleAudioDataEvent()
240 } else if (dataEvent->sampleCount == 0) { in handleAudioDataEvent()
252 if (dataEvent->sampleCount != kNumSamplesExpected) { in handleAudioDataEvent()
254 kNumSamplesExpected, dataEvent->sampleCount); in handleAudioDataEvent()
256 (kNumSamplesExpected > dataEvent->sampleCount) in handleAudioDataEvent()
257 ? (kNumSamplesExpected - dataEvent->sampleCount) in handleAudioDataEvent()
258 : (dataEvent->sampleCount - kNumSamplesExpected); in handleAudioDataEvent()
275 if (!checkSamplesAllZeros(dataEvent->samplesS16, dataEvent->sampleCount)) { in handleAudioDataEvent()
[all …]
/system/chre/platform/android/
Dplatform_audio.cc46 auto &dataEvent = platformAudio->mDataEvent; in audioReadCallback() local
49 dataEvent.timestamp = in audioReadCallback()
52 if (dataEvent.format == CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM) { in audioReadCallback()
78 .handleAudioDataEvent(&dataEvent); in audioReadCallback()
/system/chre/platform/linux/include/chre/platform/linux/
Daudio_source.h77 chreAudioDataEvent dataEvent; variable
/system/chre/chpp/common/
Dgnss_convert.c38 const struct chreGnssDataEvent *dataEvent) { in chppGnssSizeOfDataEventFromChre() argument
41 dataEvent->measurement_count * sizeof(struct ChppGnssMeasurement); in chppGnssSizeOfDataEventFromChre()