Lines Matching defs:role
604 static bool useInChannelMask(audio_port_type_t type, audio_port_role_t role)
606 return ((type == AUDIO_PORT_TYPE_DEVICE) && (role == AUDIO_PORT_ROLE_SOURCE)) ||
607 ((type == AUDIO_PORT_TYPE_MIX) && (role == AUDIO_PORT_ROLE_SINK));
647 nAudioPortConfig->role = (audio_port_role_t)env->GetIntField(jAudioPort,
658 ALOGV("convertAudioPortConfigToNative handle %d role %d type %d",
659 nAudioPortConfig->id, nAudioPortConfig->role, nAudioPortConfig->type);
669 bool useInMask = useInChannelMask(nAudioPortConfig->type, nAudioPortConfig->role);
743 0, // role
760 bool useInMask = useInChannelMask(nAudioPortConfig->type, nAudioPortConfig->role);
923 ALOGV("convertAudioPortFromNative id %d role %d type %d name %s",
924 nAudioPort->id, nAudioPort->role, nAudioPort->type, nAudioPort->name);
956 useInMask = useInChannelMask(nAudioPort->type, nAudioPort->role);
1050 nAudioPort->role, jDeviceName,