Searched refs:jAudioAttributes (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/jni/ |
D | android_media_AudioAttributes.cpp | 67 JNIEnv* env, jobject jAudioAttributes, audio_attributes_t *aa) in nativeAudioAttributesFromJavaAudioAttributes() argument 72 if (jAudioAttributes == nullptr) { in nativeAudioAttributesFromJavaAudioAttributes() 76 if (!env->IsInstanceOf(jAudioAttributes, gAudioAttributesClass)) { in nativeAudioAttributesFromJavaAudioAttributes() 80 (jstring) env->GetObjectField(jAudioAttributes, gAudioAttributesFields.mFormattedTags); in nativeAudioAttributesFromJavaAudioAttributes() 90 aa->source = (audio_source_t) env->GetIntField(jAudioAttributes, in nativeAudioAttributesFromJavaAudioAttributes() 93 aa->usage = (audio_usage_t) env->GetIntField(jAudioAttributes, gAudioAttributesFields.mUsage); in nativeAudioAttributesFromJavaAudioAttributes() 96 (audio_content_type_t) env->GetIntField(jAudioAttributes, in nativeAudioAttributesFromJavaAudioAttributes() 99 aa->flags = (audio_flags_mask_t)env->GetIntField(jAudioAttributes, in nativeAudioAttributesFromJavaAudioAttributes() 108 JNIEnv* env, jobject *jAudioAttributes, const audio_attributes_t &attributes) in nativeAudioAttributesToJavaAudioAttributes() argument 139 *jAudioAttributes = env->CallObjectMethod(jAttributeBuilder.get(), in nativeAudioAttributesToJavaAudioAttributes() [all …]
|
D | android_media_AudioProductStrategies.cpp | 77 jobjectArray jAudioAttributes = NULL; in convertAudioProductStrategiesFromNative() local 116 jStatus = JNIAudioAttributeHelper::getJavaArray(env, &jAudioAttributes, numAttributes); in convertAudioProductStrategiesFromNative() 127 env->SetObjectArrayElement(jAudioAttributes, j, jAudioAttribute); in convertAudioProductStrategiesFromNative() 133 jAudioAttributes); in convertAudioProductStrategiesFromNative() 136 if (jAudioAttributes != NULL) { in convertAudioProductStrategiesFromNative() 137 env->DeleteLocalRef(jAudioAttributes); in convertAudioProductStrategiesFromNative() 138 jAudioAttributes = NULL; in convertAudioProductStrategiesFromNative() 154 if (jAudioAttributes != NULL) { in convertAudioProductStrategiesFromNative() 155 env->DeleteLocalRef(jAudioAttributes); in convertAudioProductStrategiesFromNative()
|
D | android_media_AudioAttributes.h | 51 JNIEnv* env, jobject jAudioAttributes, audio_attributes_t *attributes); 61 JNIEnv* env, jobject *jAudioAttributes, const audio_attributes_t &attributes);
|
D | android_media_AudioVolumeGroups.cpp | 69 jobjectArray jAudioAttributes = NULL; in convertAudioVolumeGroupsFromNative() local 89 jStatus = JNIAudioAttributeHelper::getJavaArray(env, &jAudioAttributes, numAttributes); in convertAudioVolumeGroupsFromNative() 106 env->SetObjectArrayElement(jAudioAttributes, j, jAudioAttribute); in convertAudioVolumeGroupsFromNative() 110 jName, Id, jAudioAttributes, jLegacyStreamTypes); in convertAudioVolumeGroupsFromNative()
|
D | android_media_AudioSystem.cpp | 1975 jobject jAudioAttributes) in android_media_AudioSystem_startAudioSource() argument 1978 if (jAudioPortConfig == NULL || jAudioAttributes == NULL) { in android_media_AudioSystem_startAudioSource() 1991 jStatus = JNIAudioAttributeHelper::nativeFromJava(env, jAudioAttributes, paa.get()); in android_media_AudioSystem_startAudioSource() 2255 jobject jAudioAttributes = NULL; in nativeAudioMixToJavaAudioMixingRule() local 2280 jAudioAttributes = env->NewObject(gAudioAttributesClass, gAudioAttributesCstor); in nativeAudioMixToJavaAudioMixingRule() 2281 env->SetIntField(jAudioAttributes, gAudioAttributesFields.mUsage, in nativeAudioMixToJavaAudioMixingRule() 2288 jAudioAttributes = env->NewObject(gAudioAttributesClass, gAudioAttributesCstor); in nativeAudioMixToJavaAudioMixingRule() 2289 env->SetIntField(jAudioAttributes, gAudioAttributesFields.mSource, in nativeAudioMixToJavaAudioMixingRule() 3160 jobject jAudioAttributes, in android_media_AudioSystem_getDirectProfilesForAttributes() argument 3164 if (jAudioAttributes == nullptr) { in android_media_AudioSystem_getDirectProfilesForAttributes() [all …]
|