Searched refs:dualMonoMode (Results 1 – 4 of 4) sorted by relevance
133 status_t AudioValidator::validateDualMonoMode(audio_dual_mono_mode_t dualMonoMode) in validateDualMonoMode() argument135 switch (dualMonoMode) { in validateDualMonoMode()
85 static status_t validateDualMonoMode(audio_dual_mono_mode_t dualMonoMode);
1526 private static boolean isValidDualMonoMode(@DualMonoMode int dualMonoMode) { in isValidDualMonoMode() argument1527 switch (dualMonoMode) { in isValidDualMonoMode()1557 public boolean setDualMonoMode(@DualMonoMode int dualMonoMode) { in setDualMonoMode() argument1558 if (!isValidDualMonoMode(dualMonoMode)) { in setDualMonoMode()1560 "Invalid Dual Mono mode " + dualMonoMode); in setDualMonoMode()1562 return native_set_dual_mono_mode(dualMonoMode) == SUCCESS; in setDualMonoMode()1577 int[] dualMonoMode = { DUAL_MONO_MODE_OFF }; in getDualMonoMode() local1579 final int status = native_get_dual_mono_mode(dualMonoMode); in getDualMonoMode()1580 if (status != SUCCESS || !isValidDualMonoMode(dualMonoMode[0])) { in getDualMonoMode()1586 return dualMonoMode[0]; in getDualMonoMode()[all …]
1395 static jint android_media_AudioTrack_setDualMonoMode(JNIEnv *env, jobject thiz, jint dualMonoMode) { in android_media_AudioTrack_setDualMonoMode() argument1403 lpTrack->setDualMonoMode(static_cast<audio_dual_mono_mode_t>(dualMonoMode))); in android_media_AudioTrack_setDualMonoMode()1407 jintArray dualMonoMode) { in android_media_AudioTrack_getDualMonoMode() argument1413 jint *nativeDualMonoMode = (jint *)env->GetPrimitiveArrayCritical(dualMonoMode, NULL); in android_media_AudioTrack_getDualMonoMode()1421 env->ReleasePrimitiveArrayCritical(dualMonoMode, nativeDualMonoMode, 0 /* mode */); in android_media_AudioTrack_getDualMonoMode()