Lines Matching defs:role
2326 status_t AudioPolicyManager::listAudioPorts(audio_port_role_t role,
2336 ALOGV("listAudioPorts() role %d type %d num_ports %d ports %p", role, type, *num_ports, ports);
2347 if (role == AUDIO_PORT_ROLE_SINK || role == AUDIO_PORT_ROLE_NONE) {
2358 if (role == AUDIO_PORT_ROLE_SOURCE || role == AUDIO_PORT_ROLE_NONE) {
2371 if (role == AUDIO_PORT_ROLE_SINK || role == AUDIO_PORT_ROLE_NONE) {
2377 if (role == AUDIO_PORT_ROLE_SOURCE || role == AUDIO_PORT_ROLE_NONE) {
2420 if (patch->sources[0].role != AUDIO_PORT_ROLE_SOURCE) {
2424 if (patch->sinks[i].role != AUDIO_PORT_ROLE_SINK) {
2432 ALOGV("createAudioPatch source id %d role %d type %d", patch->sources[0].id,
2433 patch->sources[0].role,
2437 ALOGV("createAudioPatch sink %zu: id %d role %d type %d", i, patch->sinks[i].id,
2438 patch->sinks[i].role,
2751 if (config->role == AUDIO_PORT_ROLE_SOURCE) {
2760 } else if (config->role == AUDIO_PORT_ROLE_SINK) {
2771 if (config->role == AUDIO_PORT_ROLE_SOURCE) {
2773 } else if (config->role == AUDIO_PORT_ROLE_SINK) {
2921 if (source->role != AUDIO_PORT_ROLE_SOURCE ||
2923 ALOGV("%s INVALID_OPERATION source->role %d source->type %d", __FUNCTION__, source->role, source->type);