Searched refs:paa (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/media/jni/soundpool/ |
D | android_media_SoundPool.cpp | 191 audio_attributes_t *paa = nullptr; in android_media_SoundPool_native_setup() local 193 paa = (audio_attributes_t *) calloc(1, sizeof(audio_attributes_t)); in android_media_SoundPool_native_setup() 198 strncpy(paa->tags, tags, AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - 1); in android_media_SoundPool_native_setup() 200 paa->usage = (audio_usage_t) env->GetIntField(jaa, javaAudioAttrFields.fieldUsage); in android_media_SoundPool_native_setup() 201 paa->content_type = in android_media_SoundPool_native_setup() 203 paa->flags = env->GetIntField(jaa, javaAudioAttrFields.fieldFlags); in android_media_SoundPool_native_setup() 206 auto *ap = new SoundPool(maxChannels, paa); in android_media_SoundPool_native_setup() 219 free(paa); in android_media_SoundPool_native_setup()
|
/frameworks/base/core/jni/ |
D | android_media_AudioRecord.cpp | 271 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()
|
D | android_media_AudioSystem.cpp | 633 JNIAudioAttributeHelper::UniqueAaPtr paa = JNIAudioAttributeHelper::makeUnique(); in android_media_AudioSystem_setVolumeIndexForAttributes() local 634 jint jStatus = JNIAudioAttributeHelper::nativeFromJava(env, jaa, paa.get()); in android_media_AudioSystem_setVolumeIndexForAttributes() 639 AudioSystem::setVolumeIndexForAttributes(*(paa.get()), index, (audio_devices_t)device)); in android_media_AudioSystem_setVolumeIndexForAttributes() 649 JNIAudioAttributeHelper::UniqueAaPtr paa = JNIAudioAttributeHelper::makeUnique(); in android_media_AudioSystem_getVolumeIndexForAttributes() local 650 jint jStatus = JNIAudioAttributeHelper::nativeFromJava(env, jaa, paa.get()); in android_media_AudioSystem_getVolumeIndexForAttributes() 655 if (AudioSystem::getVolumeIndexForAttributes(*(paa.get()), index, (audio_devices_t)device) in android_media_AudioSystem_getVolumeIndexForAttributes() 668 JNIAudioAttributeHelper::UniqueAaPtr paa = JNIAudioAttributeHelper::makeUnique(); in android_media_AudioSystem_getMinVolumeIndexForAttributes() local 669 jint jStatus = JNIAudioAttributeHelper::nativeFromJava(env, jaa, paa.get()); in android_media_AudioSystem_getMinVolumeIndexForAttributes() 674 if (AudioSystem::getMinVolumeIndexForAttributes(*(paa.get()), index) in android_media_AudioSystem_getMinVolumeIndexForAttributes() 687 JNIAudioAttributeHelper::UniqueAaPtr paa = JNIAudioAttributeHelper::makeUnique(); in android_media_AudioSystem_getMaxVolumeIndexForAttributes() local [all …]
|
D | android_media_AudioAttributes.cpp | 153 audio_attributes_t *paa) in nativeFromJava() argument 155 return nativeAudioAttributesFromJavaAudioAttributes(env, jAudioAttributes, paa); in nativeFromJava()
|
D | android_media_AudioTrack.cpp | 343 auto paa = JNIAudioAttributeHelper::makeUnique(); in android_media_AudioTrack_setup() local 344 jint jStatus = JNIAudioAttributeHelper::nativeFromJava(env, jaa, paa.get()); in android_media_AudioTrack_setup() 349 paa->usage, paa->content_type, paa->flags, paa->tags); in android_media_AudioTrack_setup() 389 paa.get()); in android_media_AudioTrack_setup() 416 paa.get()); in android_media_AudioTrack_setup()
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | AudioPolicyManager.h | 885 bool isValidAttributes(const audio_attributes_t *paa);
|
D | AudioPolicyManager.cpp | 6243 bool AudioPolicyManager::isValidAttributes(const audio_attributes_t *paa) in isValidAttributes() argument 6246 if ((paa->flags & (AUDIO_FLAG_AUDIBILITY_ENFORCED | AUDIO_FLAG_SCO | AUDIO_FLAG_BEACON)) != 0) { in isValidAttributes() 6251 switch (paa->usage) { in isValidAttributes()
|