Searched refs:paa (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/media/jni/soundpool/ |
D | android_media_SoundPool.cpp | 180 audio_attributes_t *paa = NULL; in android_media_SoundPool_native_setup() local 182 paa = (audio_attributes_t *) calloc(1, sizeof(audio_attributes_t)); in android_media_SoundPool_native_setup() 187 strncpy(paa->tags, tags, AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - 1); in android_media_SoundPool_native_setup() 189 paa->usage = (audio_usage_t) env->GetIntField(jaa, javaAudioAttrFields.fieldUsage); in android_media_SoundPool_native_setup() 190 paa->content_type = in android_media_SoundPool_native_setup() 192 paa->flags = env->GetIntField(jaa, javaAudioAttrFields.fieldFlags); in android_media_SoundPool_native_setup() 195 SoundPool *ap = new SoundPool(maxChannels, paa); in android_media_SoundPool_native_setup() 208 free(paa); in android_media_SoundPool_native_setup()
|
/frameworks/base/core/jni/ |
D | android_media_AudioTrack.cpp | 244 audio_attributes_t *paa = NULL; in android_media_AudioTrack_setup() local 299 paa = (audio_attributes_t *) calloc(1, sizeof(audio_attributes_t)); in android_media_AudioTrack_setup() 304 strncpy(paa->tags, tags, AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - 1); in android_media_AudioTrack_setup() 306 paa->usage = (audio_usage_t) env->GetIntField(jaa, javaAudioAttrFields.fieldUsage); in android_media_AudioTrack_setup() 307 paa->content_type = in android_media_AudioTrack_setup() 309 paa->flags = env->GetIntField(jaa, javaAudioAttrFields.fieldFlags); in android_media_AudioTrack_setup() 312 paa->usage, paa->content_type, paa->flags, paa->tags); in android_media_AudioTrack_setup() 342 paa); in android_media_AudioTrack_setup() 368 paa); in android_media_AudioTrack_setup() 436 if (paa != NULL) { in android_media_AudioTrack_setup() [all …]
|
D | android_media_AudioRecord.cpp | 207 audio_attributes_t *paa = NULL; in android_media_AudioRecord_setup() local 269 paa = (audio_attributes_t *) calloc(1, sizeof(audio_attributes_t)); in android_media_AudioRecord_setup() 274 strncpy(paa->tags, tags, AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - 1); in android_media_AudioRecord_setup() 276 paa->source = (audio_source_t) env->GetIntField(jaa, javaAudioAttrFields.fieldRecSource); in android_media_AudioRecord_setup() 277 paa->flags = (audio_flags_mask_t)env->GetIntField(jaa, javaAudioAttrFields.fieldFlags); in android_media_AudioRecord_setup() 278 … ALOGV("AudioRecord_setup for source=%d tags=%s flags=%08x", paa->source, paa->tags, paa->flags); in android_media_AudioRecord_setup() 281 if (paa->flags & AUDIO_FLAG_HW_HOTWORD) { in android_media_AudioRecord_setup() 292 const status_t status = lpRecorder->set(paa->source, in android_media_AudioRecord_setup() 305 paa); in android_media_AudioRecord_setup()
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | AudioPolicyManager.h | 639 bool isValidAttributes(const audio_attributes_t *paa);
|
D | AudioPolicyManager.cpp | 5215 bool AudioPolicyManager::isValidAttributes(const audio_attributes_t *paa) in AudioPolicyManager() argument 5218 if ((paa->flags & (AUDIO_FLAG_AUDIBILITY_ENFORCED | AUDIO_FLAG_SCO | AUDIO_FLAG_BEACON)) != 0) { in AudioPolicyManager() 5223 switch (paa->usage) { in AudioPolicyManager()
|