Searched defs:role (Results 1 - 13 of 13) sorted by relevance

/frameworks/base/media/java/android/media/
H A DAudioMixPort.java29 AudioMixPort(AudioHandle handle, int role, int[] samplingRates, int[] channelMasks, argument
31 super(handle, role, samplingRates, channelMasks, formats, gains);
H A DAudioPort.java77 AudioPort(AudioHandle handle, int role, int[] samplingRates, int[] channelMasks, argument
80 mRole = role;
92 * Get the audio port role
94 public int role() { method in class:AudioPort
179 String role = Integer.toString(mRole);
182 role = "NONE";
185 role = "SOURCE";
188 role = "SINK";
192 + ", mRole: " + role
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothHealthAppConfiguration.java37 * Constructor to register the SINK role
55 * @param role {@link BluetoothHealth#SOURCE_ROLE} or
59 BluetoothHealthAppConfiguration(String name, int dataType, int role, int argument
63 mRole = role;
120 * Return the role associated with this application configuration.
147 int role = in.readInt();
149 return new BluetoothHealthAppConfiguration(name, type, role,
H A DBluetoothHealth.java37 * <p> How to connect to a health device which is acting in the source role.
139 * @param dataType The dataType of the Source role of Health Profile to which
156 * SOURCE role.This is an asynchronous call and so
162 * @param dataType The dataType of the Source role of Health Profile.
170 public boolean registerAppConfiguration(String name, int dataType, int role, argument
173 if (!isEnabled() || !checkAppParam(name, role, channelType, callback)) return result;
178 new BluetoothHealthAppConfiguration(name, dataType, role, channelType);
555 private boolean checkAppParam(String name, int role, int channelType, argument
557 if (name == null || (role != SOURCE_ROLE && role !
[all...]
/frameworks/av/media/libstagefright/omx/tests/
H A DOMXHarness.cpp205 status_t Harness::setRole(IOMX::node_id node, const char *role) { argument
212 strncpy((char *)params.cRole, role, OMX_MAX_STRINGNAME_SIZE - 1);
794 " [ component role ]\n\n"
796 "and role, tool will test all available OMX components "
/frameworks/av/services/audiopolicy/
H A DAudioPolicyInterfaceImpl.cpp541 status_t AudioPolicyService::listAudioPorts(audio_port_role_t role, argument
555 return mAudioPolicyManager->listAudioPorts(role, type, num_ports, ports, generation);
H A DAudioPolicyManager.cpp2402 status_t AudioPolicyManager::listAudioPorts(audio_port_role_t role, argument
2412 ALOGV("listAudioPorts() role %d type %d num_ports %d ports %p", role, type, *num_ports, ports);
2421 if (role == AUDIO_PORT_ROLE_SINK || role == AUDIO_PORT_ROLE_NONE) {
2428 if (role == AUDIO_PORT_ROLE_SOURCE || role == AUDIO_PORT_ROLE_NONE) {
2437 if (role == AUDIO_PORT_ROLE_SINK || role == AUDIO_PORT_ROLE_NONE) {
2443 if (role
6506 AudioPort(const String8& name, audio_port_type_t type, audio_port_role_t role, const sp<HwModule>& module) argument
7358 IOProfile(const String8& name, audio_port_role_t role, const sp<HwModule>& module) argument
[all...]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothTestUtils.java268 public ConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) { argument
271 mRole = role;
1103 int mask, role;
1110 role = BluetoothPan.LOCAL_PANU_ROLE;
1114 role = BluetoothPan.LOCAL_NAP_ROLE;
1127 ConnectPanReceiver receiver = getConnectPanReceiver(device, role, mask);
1140 if (role == BluetoothPan.LOCAL_PANU_ROLE) {
1208 int mask, role;
1215 role = BluetoothPan.LOCAL_PANU_ROLE;
1219 role
1431 getConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) argument
[all...]
/frameworks/av/media/libmedia/
H A DIAudioPolicyService.cpp504 virtual status_t listAudioPorts(audio_port_role_t role, argument
517 data.writeInt32(role);
1056 audio_port_role_t role = (audio_port_role_t)data.readInt32(); local
1071 status_t status = listAudioPorts(role, type, &numPorts, ports, &generation);
H A DAudioSystem.cpp883 status_t AudioSystem::listAudioPorts(audio_port_role_t role, argument
891 return aps->listAudioPorts(role, type, num_ports, ports, generation);
/frameworks/base/core/jni/
H A Dandroid_media_AudioSystem.cpp488 static bool useInChannelMask(audio_port_type_t type, audio_port_role_t role) argument
490 return ((type == AUDIO_PORT_TYPE_DEVICE) && (role == AUDIO_PORT_ROLE_SOURCE)) ||
491 ((type == AUDIO_PORT_TYPE_MIX) && (role == AUDIO_PORT_ROLE_SINK));
531 nAudioPortConfig->role = (audio_port_role_t)env->GetIntField(jAudioPort,
542 ALOGV("convertAudioPortConfigToNative handle %d role %d type %d",
543 nAudioPortConfig->id, nAudioPortConfig->role, nAudioPortConfig->type);
553 bool useInMask = useInChannelMask(nAudioPortConfig->type, nAudioPortConfig->role);
642 bool useInMask = useInChannelMask(nAudioPortConfig->type, nAudioPortConfig->role);
790 ALOGV("convertAudioPortFromNative id %d role %d type %d",
791 nAudioPort->id, nAudioPort->role, nAudioPor
[all...]
/frameworks/av/media/libstagefright/
H A DOMXCodec.cpp1521 const char *role = local
1525 if (role != NULL) {
1530 role, OMX_MAX_STRINGNAME_SIZE - 1);
1539 ALOGW("Failed to set standard component role '%s'.", role);
H A DACodec.cpp1140 const char *role = local
1144 if (role != NULL) {
1149 role, OMX_MAX_STRINGNAME_SIZE - 1);
1158 ALOGW("[%s] Failed to set standard component role '%s'.",
1159 mComponentName.c_str(), role);

Completed in 1758 milliseconds