/system/chre/platform/linux/sim/ |
D | platform_audio.cc | 45 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/ |
D | basic_audio_test.cc | 157 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/ |
D | audio_world.cc | 149 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/ |
D | chre_api_audio.cc | 33 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/ |
D | audio_pal_impl_test.cc | 110 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/ |
D | platform_audio.cc | 161 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/ |
D | permission_test.cc | 42 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/ |
D | chre_api_test_service.cc | 237 struct chreAudioSource audioSource; in validateInputAndCallChreAudioGetSource() local 238 memset(&audioSource, 0, sizeof(audioSource)); in validateInputAndCallChreAudioGetSource() 239 response.status = chreAudioGetSource(request.handle, &audioSource); in validateInputAndCallChreAudioGetSource() 242 copyString(response.name, audioSource.name, kMaxNameStringSize); in validateInputAndCallChreAudioGetSource() 243 response.sampleRate = audioSource.sampleRate; in validateInputAndCallChreAudioGetSource() 244 response.minBufferDuration = audioSource.minBufferDuration; in validateInputAndCallChreAudioGetSource() 245 response.maxBufferDuration = audioSource.maxBufferDuration; in validateInputAndCallChreAudioGetSource() 246 response.format = audioSource.format; in validateInputAndCallChreAudioGetSource()
|
/system/chre/apps/power_test/common/ |
D | request_manager.cc | 281 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/ |
D | init.cc | 88 auto audioSource = chre::MakeUnique<chre::AudioSource>( in main() local 91 chre::PlatformAudio::addAudioSource(audioSource); in main()
|
D | pal_audio.cc | 130 struct chreAudioSource *audioSource) { in chrePalAudioApiGetAudioSource() argument 135 *audioSource = { in chrePalAudioApiGetAudioSource()
|
/system/chre/platform/shared/audio_pal/ |
D | platform_audio.cc | 101 chreAudioSource *audioSource) const { in getAudioSource() 104 return mApi->getAudioSource(handle, audioSource); in getAudioSource()
|
/system/chre/core/ |
D | audio_request_manager.cc | 154 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/core/include/chre/core/ |
D | audio_request_manager.h | 54 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/ |
D | platform_audio.h | 127 bool getAudioSource(uint32_t handle, chreAudioSource *audioSource) const;
|
/system/chre/pal/include/chre/pal/ |
D | audio.h | 167 bool (*getAudioSource)(uint32_t handle, struct chreAudioSource *audioSource);
|
/system/chre/chre_api/legacy/v1_4/chre/ |
D | audio.h | 303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
|
/system/chre/chre_api/legacy/v1_3/chre/ |
D | audio.h | 303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
|
/system/chre/chre_api/legacy/v1_2/chre/ |
D | audio.h | 303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
|
/system/chre/chre_api/include/chre_api/chre/ |
D | audio.h | 303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
|
/system/chre/chre_api/legacy/v1_6/chre/ |
D | audio.h | 303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
|
/system/chre/chre_api/legacy/v1_5/chre/ |
D | audio.h | 303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
|
/system/chre/chre_api/legacy/v1_7/chre/ |
D | audio.h | 303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
|
/system/chre/platform/shared/nanoapp/ |
D | nanoapp_support_lib_dso.cc | 234 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource) { in chreAudioGetSource() argument 236 return (fptr != nullptr) ? fptr(handle, audioSource) : false; in chreAudioGetSource()
|
/system/media/audio/include/system/ |
D | audio.h | 2042 static inline bool audio_is_valid_audio_source(audio_source_t audioSource) in audio_is_valid_audio_source() argument 2044 switch (audioSource) { in audio_is_valid_audio_source()
|