Home
last modified time | relevance | path

Searched refs:audioSource (Results 1 – 25 of 27) sorted by relevance

12

/system/chre/platform/linux/sim/
Dplatform_audio.cc45 auto *audioSource = static_cast<AudioSource *>(cookie); in audioSourceCallback() local
47 auto &dataEvent = audioSource->dataEvent; in audioSourceCallback()
49 audioSource->numSamples, in audioSourceCallback()
50 static_cast<uint32_t>(audioSource->audioInfo.samplerate)); in audioSourceCallback()
53 dataEvent.sampleCount = audioSource->numSamples; in audioSourceCallback()
57 static_cast<uint32_t>(audioSource->audioInfo.samplerate), in audioSourceCallback()
58 audioSource->eventDelay); in audioSourceCallback()
59 if (intervalNumSamples > audioSource->numSamples) { in audioSourceCallback()
60 sf_count_t seekAmount = intervalNumSamples - audioSource->numSamples; in audioSourceCallback()
61 sf_seek(audioSource->audioFile, -seekAmount, SEEK_CUR); in audioSourceCallback()
[all …]
/system/chre/apps/test/chqts/src/general_test/
Dbasic_audio_test.cc157 struct chreAudioSource audioSource; in validateAudioSources() local
158 bool sourceFound = chreAudioGetSource(handle, &audioSource); in validateAudioSources()
164 bool valid = validateAudioSource(handle, audioSource); in validateAudioSources()
166 minimumRequirementMet = validateMinimumAudioSource(audioSource); in validateAudioSources()
192 struct chreAudioSource audioSource; in requestAudioData() local
194 if (!chreAudioGetSource(kAudioHandle, &audioSource)) { in requestAudioData()
197 audioSource.minBufferDuration, in requestAudioData()
198 audioSource.minBufferDuration)) { in requestAudioData()
217 struct chreAudioSource audioSource; in handleAudioDataEvent() local
218 if (!chreAudioGetSource(kAudioHandle, &audioSource)) { in handleAudioDataEvent()
[all …]
/system/chre/apps/audio_world/
Daudio_world.cc149 struct chreAudioSource audioSource; in nanoappStart() local
150 for (uint32_t i = 0; chreAudioGetSource(i, &audioSource); i++) { in nanoappStart()
151 LOGI("Found audio source '%s' with %" PRIu32 "Hz %s data", audioSource.name, in nanoappStart()
152 audioSource.sampleRate, in nanoappStart()
153 chre::getChreAudioFormatString(audioSource.format)); in nanoappStart()
155 audioSource.minBufferDuration, audioSource.maxBufferDuration); in nanoappStart()
159 if (chreAudioConfigureSource(i, true, audioSource.minBufferDuration, in nanoappStart()
160 audioSource.minBufferDuration)) { in nanoappStart()
/system/chre/platform/shared/
Dchre_api_audio.cc33 struct chreAudioSource *audioSource) { in chreAudioGetSource() argument
36 if (audioSource != nullptr) { in chreAudioGetSource()
39 .getAudioSource(handle, audioSource); in chreAudioGetSource()
45 UNUSED_VAR(audioSource); in chreAudioGetSource()
/system/chre/pal/tests/src/
Daudio_pal_impl_test.cc110 struct chreAudioSource audioSource; in TEST_F() local
113 EXPECT_TRUE(mApi->getAudioSource(0, &audioSource)); in TEST_F()
114 EXPECT_STREQ(audioSource.name, "Test Source"); in TEST_F()
118 struct chreAudioSource audioSource; in TEST_F() local
121 EXPECT_FALSE(mApi->getAudioSource(10, &audioSource)); in TEST_F()
/system/chre/platform/android/
Dplatform_audio.cc161 chreAudioSource *audioSource) const { in getAudioSource()
164 audioSource->name = "Default Android Audio Input"; in getAudioSource()
165 audioSource->sampleRate = kAndroidAudioSampleRate; in getAudioSource()
166 audioSource->minBufferDuration = mMinBufferDuration; in getAudioSource()
167 audioSource->maxBufferDuration = mMaxBufferDuration; in getAudioSource()
168 audioSource->format = mDataEvent.format; in getAudioSource()
/system/chre/apps/test/common/permission_test/src/
Dpermission_test.cc42 struct chreAudioSource audioSource; in checkAudioApis() local
43 for (uint32_t i = 0; chreAudioGetSource(i, &audioSource); i++) { in checkAudioApis()
45 audioSource.minBufferDuration, in checkAudioApis()
46 audioSource.minBufferDuration)) { in checkAudioApis()
/system/chre/apps/test/common/chre_api_test/src/
Dchre_api_test_service.cc222 struct chreAudioSource audioSource; in validateInputAndCallChreAudioGetSource() local
223 memset(&audioSource, 0, sizeof(audioSource)); in validateInputAndCallChreAudioGetSource()
224 response.status = chreAudioGetSource(request.handle, &audioSource); in validateInputAndCallChreAudioGetSource()
227 copyString(response.name, audioSource.name, kMaxNameStringBufferSize); in validateInputAndCallChreAudioGetSource()
228 response.sampleRate = audioSource.sampleRate; in validateInputAndCallChreAudioGetSource()
229 response.minBufferDuration = audioSource.minBufferDuration; in validateInputAndCallChreAudioGetSource()
230 response.maxBufferDuration = audioSource.maxBufferDuration; in validateInputAndCallChreAudioGetSource()
231 response.format = audioSource.format; in validateInputAndCallChreAudioGetSource()
/system/chre/apps/power_test/common/
Drequest_manager.cc281 struct chreAudioSource audioSource; in requestAudioAtFastestRate() local
282 bool success = chreAudioGetSource(0 /* handle */, &audioSource); in requestAudioAtFastestRate()
284 LOGI("Found audio source '%s' with %" PRIu32 "Hz %s data", audioSource.name, in requestAudioAtFastestRate()
285 audioSource.sampleRate, in requestAudioAtFastestRate()
286 chre::getChreAudioFormatString(audioSource.format)); in requestAudioAtFastestRate()
288 audioSource.minBufferDuration, audioSource.maxBufferDuration); in requestAudioAtFastestRate()
289 success &= requestAudio(enable, audioSource.minBufferDuration); in requestAudioAtFastestRate()
/system/chre/platform/linux/
Dinit.cc88 auto audioSource = chre::MakeUnique<chre::AudioSource>( in main() local
91 chre::PlatformAudio::addAudioSource(audioSource); in main()
Dpal_audio.cc127 struct chreAudioSource *audioSource) { in chrePalAudioApiGetAudioSource() argument
132 *audioSource = { in chrePalAudioApiGetAudioSource()
/system/chre/core/
Daudio_request_manager.cc154 chreAudioSource audioSource; in validateConfigureSourceArguments() local
155 if (!mPlatformAudio.getAudioSource(handle, &audioSource)) { in validateConfigureSourceArguments()
159 } else if (bufferDuration < audioSource.minBufferDuration || in validateConfigureSourceArguments()
160 bufferDuration > audioSource.maxBufferDuration) { in validateConfigureSourceArguments()
163 bufferDuration, audioSource.minBufferDuration, in validateConfigureSourceArguments()
164 audioSource.maxBufferDuration); in validateConfigureSourceArguments()
167 audioSource.sampleRate, Nanoseconds(bufferDuration)); in validateConfigureSourceArguments()
/system/chre/platform/shared/audio_pal/
Dplatform_audio.cc107 chreAudioSource *audioSource) const { in getAudioSource()
110 return mApi->getAudioSource(handle, audioSource); in getAudioSource()
/system/chre/core/include/chre/core/
Daudio_request_manager.h54 bool getAudioSource(uint32_t handle, struct chreAudioSource *audioSource) { in getAudioSource() argument
55 return mPlatformAudio.getAudioSource(handle, audioSource); in getAudioSource()
/system/chre/platform/include/chre/platform/
Dplatform_audio.h127 bool getAudioSource(uint32_t handle, chreAudioSource *audioSource) const;
/system/chre/pal/include/chre/pal/
Daudio.h167 bool (*getAudioSource)(uint32_t handle, struct chreAudioSource *audioSource);
/system/chre/chre_api/legacy/v1_4/chre/
Daudio.h303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
/system/chre/chre_api/legacy/v1_2/chre/
Daudio.h303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
/system/chre/chre_api/legacy/v1_3/chre/
Daudio.h303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
/system/chre/chre_api/legacy/v1_9/chre/
Daudio.h306 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
/system/chre/chre_api/legacy/v1_8/chre/
Daudio.h303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
/system/chre/chre_api/include/chre_api/chre/
Daudio.h306 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
/system/chre/chre_api/legacy/v1_7/chre/
Daudio.h303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
/system/chre/chre_api/legacy/v1_6/chre/
Daudio.h303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
/system/chre/chre_api/legacy/v1_5/chre/
Daudio.h303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);

12