Home
last modified time | relevance | path

Searched refs:paa (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/media/jni/soundpool/
Dandroid_media_SoundPool.cpp189 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/
Dandroid_media_AudioRecord.cpp271 auto paa = JNIAudioAttributeHelper::makeUnique(); in android_media_AudioRecord_setup() local
272 jint jStatus = JNIAudioAttributeHelper::nativeFromJava(env, jaa, paa.get()); in android_media_AudioRecord_setup()
276 … ALOGV("AudioRecord_setup for source=%d tags=%s flags=%08x", paa->source, paa->tags, paa->flags); in android_media_AudioRecord_setup()
279 if (paa->flags & AUDIO_FLAG_HW_HOTWORD) { in android_media_AudioRecord_setup()
290 const status_t status = lpRecorder->set(paa->source, in android_media_AudioRecord_setup()
303 paa.get()); in android_media_AudioRecord_setup()
Dandroid_media_AudioSystem.cpp595 JNIAudioAttributeHelper::UniqueAaPtr paa = JNIAudioAttributeHelper::makeUnique(); in android_media_AudioSystem_setVolumeIndexForAttributes() local
596 jint jStatus = JNIAudioAttributeHelper::nativeFromJava(env, jaa, paa.get()); in android_media_AudioSystem_setVolumeIndexForAttributes()
601 AudioSystem::setVolumeIndexForAttributes(*(paa.get()), index, (audio_devices_t)device)); in android_media_AudioSystem_setVolumeIndexForAttributes()
611 JNIAudioAttributeHelper::UniqueAaPtr paa = JNIAudioAttributeHelper::makeUnique(); in android_media_AudioSystem_getVolumeIndexForAttributes() local
612 jint jStatus = JNIAudioAttributeHelper::nativeFromJava(env, jaa, paa.get()); in android_media_AudioSystem_getVolumeIndexForAttributes()
617 if (AudioSystem::getVolumeIndexForAttributes(*(paa.get()), index, (audio_devices_t)device) in android_media_AudioSystem_getVolumeIndexForAttributes()
630 JNIAudioAttributeHelper::UniqueAaPtr paa = JNIAudioAttributeHelper::makeUnique(); in android_media_AudioSystem_getMinVolumeIndexForAttributes() local
631 jint jStatus = JNIAudioAttributeHelper::nativeFromJava(env, jaa, paa.get()); in android_media_AudioSystem_getMinVolumeIndexForAttributes()
636 if (AudioSystem::getMinVolumeIndexForAttributes(*(paa.get()), index) in android_media_AudioSystem_getMinVolumeIndexForAttributes()
649 JNIAudioAttributeHelper::UniqueAaPtr paa = JNIAudioAttributeHelper::makeUnique(); in android_media_AudioSystem_getMaxVolumeIndexForAttributes() local
[all …]
Dandroid_media_AudioAttributes.cpp142 audio_attributes_t *paa) in nativeFromJava() argument
144 return nativeAudioAttributesFromJavaAudioAttributes(env, jAudioAttributes, paa); in nativeFromJava()
Dandroid_media_AudioTrack.cpp298 auto paa = JNIAudioAttributeHelper::makeUnique(); in android_media_AudioTrack_setup() local
299 jint jStatus = JNIAudioAttributeHelper::nativeFromJava(env, jaa, paa.get()); in android_media_AudioTrack_setup()
304 paa->usage, paa->content_type, paa->flags, paa->tags); in android_media_AudioTrack_setup()
344 paa.get()); in android_media_AudioTrack_setup()
371 paa.get()); in android_media_AudioTrack_setup()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h862 bool isValidAttributes(const audio_attributes_t *paa);
DAudioPolicyManager.cpp6043 bool AudioPolicyManager::isValidAttributes(const audio_attributes_t *paa) in isValidAttributes() argument
6046 if ((paa->flags & (AUDIO_FLAG_AUDIBILITY_ENFORCED | AUDIO_FLAG_SCO | AUDIO_FLAG_BEACON)) != 0) { in isValidAttributes()
6051 switch (paa->usage) { in isValidAttributes()