/system/chre/platform/linux/ |
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 …]
|
D | init.cc | 87 auto audioSource = chre::MakeUnique<chre::AudioSource>( in main() local 90 chre::PlatformAudio::addAudioSource(audioSource); in main()
|
/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/apps/test/chqts/src/general_test/ |
D | basic_audio_test.cc | 152 struct chreAudioSource audioSource; in validateAudioSources() local 153 bool sourceFound = chreAudioGetSource(handle, &audioSource); in validateAudioSources() 159 bool valid = validateAudioSource(handle, audioSource); in validateAudioSources() 161 minimumRequirementMet = validateMinimumAudioSource(audioSource); in validateAudioSources() 187 struct chreAudioSource audioSource; in requestAudioData() local 189 if (!chreAudioGetSource(kAudioHandle, &audioSource)) { in requestAudioData() 192 audioSource.minBufferDuration, in requestAudioData() 193 audioSource.minBufferDuration)) { in requestAudioData() 243 struct chreAudioSource audioSource; in handleAudioDataEvent() local 244 if (!chreAudioGetSource(kAudioHandle, &audioSource)) { in handleAudioDataEvent() [all …]
|
/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()
|
/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 | 43 struct chreAudioSource audioSource; in checkAudioApis() local 44 for (uint32_t i = 0; chreAudioGetSource(i, &audioSource); i++) { in checkAudioApis() 46 audioSource.minBufferDuration, in checkAudioApis() 47 audioSource.minBufferDuration)) { in checkAudioApis()
|
/system/chre/apps/power_test/common/ |
D | request_manager.cc | 253 struct chreAudioSource audioSource; in requestAudioAtFastestRate() local 254 bool success = chreAudioGetSource(0 /* handle */, &audioSource); in requestAudioAtFastestRate() 256 LOGI("Found audio source '%s' with %" PRIu32 "Hz %s data", audioSource.name, in requestAudioAtFastestRate() 257 audioSource.sampleRate, in requestAudioAtFastestRate() 258 chre::getChreAudioFormatString(audioSource.format)); in requestAudioAtFastestRate() 260 audioSource.minBufferDuration, audioSource.maxBufferDuration); in requestAudioAtFastestRate() 261 success &= requestAudio(enable, audioSource.minBufferDuration); in requestAudioAtFastestRate()
|
/system/chre/core/ |
D | audio_request_manager.cc | 147 chreAudioSource audioSource; in validateConfigureSourceArguments() local 148 if (!mPlatformAudio.getAudioSource(handle, &audioSource)) { in validateConfigureSourceArguments() 152 } else if (bufferDuration < audioSource.minBufferDuration || in validateConfigureSourceArguments() 153 bufferDuration > audioSource.maxBufferDuration) { in validateConfigureSourceArguments() 156 bufferDuration, audioSource.minBufferDuration, in validateConfigureSourceArguments() 157 audioSource.maxBufferDuration); in validateConfigureSourceArguments() 160 audioSource.sampleRate, Nanoseconds(bufferDuration)); in validateConfigureSourceArguments()
|
/system/chre/platform/include/chre/platform/ |
D | platform_audio.h | 127 bool getAudioSource(uint32_t handle, chreAudioSource *audioSource) const;
|
/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/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_2/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/include/chre_api/chre/ |
D | audio.h | 303 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource);
|
/system/chre/platform/shared/nanoapp/ |
D | nanoapp_support_lib_dso.cc | 184 bool chreAudioGetSource(uint32_t handle, struct chreAudioSource *audioSource) { in chreAudioGetSource() argument 186 return (fptr != nullptr) ? fptr(handle, audioSource) : false; in chreAudioGetSource()
|
/system/media/audio/include/system/ |
D | audio.h | 1920 static inline bool audio_is_valid_audio_source(audio_source_t audioSource) in audio_is_valid_audio_source() argument 1922 switch (audioSource) { in audio_is_valid_audio_source()
|