Searched refs:paa (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/media/jni/soundpool/ |
D | android_media_SoundPool.cpp | 189 audio_attributes_t *paa = NULL; in android_media_SoundPool_native_setup() local 191 paa = (audio_attributes_t *) calloc(1, sizeof(audio_attributes_t)); in android_media_SoundPool_native_setup() 196 strncpy(paa->tags, tags, AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - 1); in android_media_SoundPool_native_setup() 198 paa->usage = (audio_usage_t) env->GetIntField(jaa, javaAudioAttrFields.fieldUsage); in android_media_SoundPool_native_setup() 199 paa->content_type = in android_media_SoundPool_native_setup() 201 paa->flags = env->GetIntField(jaa, javaAudioAttrFields.fieldFlags); in android_media_SoundPool_native_setup() 204 SoundPool *ap = new SoundPool(maxChannels, paa); in android_media_SoundPool_native_setup() 217 free(paa); in android_media_SoundPool_native_setup()
|
/frameworks/base/core/jni/ |
D | android_media_AudioRecord.cpp | 216 audio_attributes_t *paa = NULL; in android_media_AudioRecord_setup() local 278 paa = (audio_attributes_t *) calloc(1, sizeof(audio_attributes_t)); in android_media_AudioRecord_setup() 283 strncpy(paa->tags, tags, AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - 1); in android_media_AudioRecord_setup() 285 paa->source = (audio_source_t) env->GetIntField(jaa, javaAudioAttrFields.fieldRecSource); in android_media_AudioRecord_setup() 286 paa->flags = (audio_flags_mask_t)env->GetIntField(jaa, javaAudioAttrFields.fieldFlags); in android_media_AudioRecord_setup() 287 … ALOGV("AudioRecord_setup for source=%d tags=%s flags=%08x", paa->source, paa->tags, paa->flags); in android_media_AudioRecord_setup() 290 if (paa->flags & AUDIO_FLAG_HW_HOTWORD) { in android_media_AudioRecord_setup() 301 const status_t status = lpRecorder->set(paa->source, in android_media_AudioRecord_setup() 314 paa); in android_media_AudioRecord_setup() 371 if (paa != NULL) { in android_media_AudioRecord_setup() [all …]
|
D | android_media_AudioTrack.cpp | 241 audio_attributes_t *paa = NULL; in android_media_AudioTrack_setup() local 296 paa = (audio_attributes_t *) calloc(1, sizeof(audio_attributes_t)); in android_media_AudioTrack_setup() 301 strncpy(paa->tags, tags, AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - 1); in android_media_AudioTrack_setup() 303 paa->usage = (audio_usage_t) env->GetIntField(jaa, javaAudioAttrFields.fieldUsage); in android_media_AudioTrack_setup() 304 paa->content_type = in android_media_AudioTrack_setup() 306 paa->flags = env->GetIntField(jaa, javaAudioAttrFields.fieldFlags); in android_media_AudioTrack_setup() 309 paa->usage, paa->content_type, paa->flags, paa->tags); in android_media_AudioTrack_setup() 350 paa); in android_media_AudioTrack_setup() 376 paa); in android_media_AudioTrack_setup() 444 if (paa != NULL) { in android_media_AudioTrack_setup() [all …]
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | AudioPolicyManager.h | 666 bool isValidAttributes(const audio_attributes_t *paa);
|
D | AudioPolicyManager.cpp | 5837 bool AudioPolicyManager::isValidAttributes(const audio_attributes_t *paa) in loadConfig() argument 5840 if ((paa->flags & (AUDIO_FLAG_AUDIBILITY_ENFORCED | AUDIO_FLAG_SCO | AUDIO_FLAG_BEACON)) != 0) { in loadConfig() 5845 switch (paa->usage) { in loadConfig()
|