/frameworks/base/media/java/android/media/ |
H A D | AudioPort.java | 79 AudioPort(AudioHandle handle, int role, String name, argument 84 mRole = role; 106 * Get the audio port role 108 public int role() { method in class:AudioPort 210 String role = Integer.toString(mRole); 213 role = "NONE"; 216 role = "SOURCE"; 219 role = "SINK"; 223 + ", mRole: " + role
|
H A D | AudioMixPort.java | 33 AudioMixPort(AudioHandle handle, int ioHandle, int role, String deviceName, argument 36 super(handle, role, deviceName, samplingRates, channelMasks, channelIndexMasks,
|
H A D | AudioDeviceInfo.java | 153 return mPort.role() == AudioPort.ROLE_SOURCE; 160 return mPort.role() == AudioPort.ROLE_SINK;
|
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbPort.java | 66 * Power role: This USB port can act as a source (provide power). 71 * Power role: This USB port can act as a sink (receive power). 76 * Data role: This USB port can act as a host (access data services). 81 * Data role: This USB port can act as a device (offer data services). 116 * Combines one power and one data role together into a unique value with 121 * @param powerRole The desired power role: {@link UsbPort#POWER_ROLE_SOURCE} 122 * or {@link UsbPort#POWER_ROLE_SINK}, or 0 if no power role. 123 * @param dataRole The desired data role: {@link UsbPort#DATA_ROLE_HOST} 124 * or {@link UsbPort#DATA_ROLE_DEVICE}, or 0 if no data role. 150 public static String powerRoleToString(int role) { argument 164 dataRoleToString(int role) argument [all...] |
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothHealthAppConfiguration.java | 37 * 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 D | BluetoothHealth.java | 37 * <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/services/audiopolicy/common/managerdefinitions/include/ |
H A D | IOProfile.h | 36 IOProfile(const String8 &name, audio_port_role_t role) argument 37 : AudioPort(name, AUDIO_PORT_TYPE_MIX, role) {}
|
H A D | ConfigParsingUtils.h | 47 static status_t loadHwModuleProfile(cnode *root, sp<HwModule> &module, audio_port_role_t role);
|
H A D | AudioPort.h | 38 AudioPort(const String8& name, audio_port_type_t type, audio_port_role_t role) : argument 39 mName(name), mType(type), mRole(role), mFlags(AUDIO_OUTPUT_FLAG_NONE) {}
|
H A D | Serializer.h | 93 static const char role[]; member in struct:android::MixPortTraits::Attributes 117 static const char role[]; /**< <device role: sink or source>. */ member in struct:android::DevicePortTraits::Attributes 118 static const char roleSource[]; /**< <attribute role source value>. */
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | Serializer.cpp | 217 const char MixPortTraits::Attributes::role[] = "role"; member in class:android::MixPortTraits::Attributes 229 string role = getXmlAttribute(child, Attributes::role); local 230 if (role.empty()) { 231 ALOGE("%s: No %s found", __FUNCTION__, Attributes::role); 234 ALOGV("%s: Role=%s", __FUNCTION__, role.c_str()); 235 audio_port_role_t portRole = role == "source" ? AUDIO_PORT_ROLE_SOURCE : AUDIO_PORT_ROLE_SINK; 253 // Source role 257 // Sink role 274 const char DevicePortTraits::Attributes::role[] = "role"; member in class:android::DevicePortTraits::Attributes 293 string role = getXmlAttribute(root, Attributes::role); local [all...] |
H A D | ConfigParsingUtils.cpp | 151 audio_port_role_t role) 155 sp<IOProfile> profile = new IOProfile(String8(root->name), role); 171 if (role == AUDIO_PORT_ROLE_SINK) { 181 if (role == AUDIO_PORT_ROLE_SINK) { 210 role == AUDIO_PORT_ROLE_SINK ? "Input" : "Output"); 213 role == AUDIO_PORT_ROLE_SINK ? "Input" : "Output", 150 loadHwModuleProfile(cnode *root, sp<HwModule> &module, audio_port_role_t role) argument
|
H A D | AudioInputDescriptor.cpp | 87 dstConfig->role = AUDIO_PORT_ROLE_SINK;
|
H A D | DeviceDescriptor.cpp | 243 dstConfig->role = audio_is_output_device(mDeviceType) ?
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | PanProfile.java | 159 void setLocalRole(BluetoothDevice device, int role) { argument 160 mDeviceRoleMap.put(device, role);
|
H A D | LocalBluetoothProfileManager.java | 301 int role = intent.getIntExtra(BluetoothPan.EXTRA_LOCAL_ROLE, 0); 302 panProfile.setLocalRole(device, role);
|
/frameworks/av/media/libstagefright/omx/tests/ |
H A D | OMXHarness.h | 64 status_t setRole(IOMX::node_id node, const char *role);
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
H A D | BluetoothTestUtils.java | 269 public ConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) { argument 272 mRole = role; 1104 int mask, role; 1111 role = BluetoothPan.LOCAL_PANU_ROLE; 1115 role = BluetoothPan.LOCAL_NAP_ROLE; 1128 ConnectPanReceiver receiver = getConnectPanReceiver(device, role, mask); 1141 if (role == BluetoothPan.LOCAL_PANU_ROLE) { 1209 int mask, role; 1216 role = BluetoothPan.LOCAL_PANU_ROLE; 1220 role 1432 getConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_media_AudioSystem.cpp | 604 static bool useInChannelMask(audio_port_type_t type, audio_port_role_t role) argument 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 [all...] |
/frameworks/av/include/media/ |
H A D | IAudioPolicyService.h | 128 virtual status_t listAudioPorts(audio_port_role_t role,
|
/frameworks/av/media/libstagefright/codecs/avcenc/ |
H A D | SoftAVCEnc.h | 211 // Verifies the component role tried to be set to this OMX component is 214 const OMX_PARAM_COMPONENTROLETYPE *role);
|
/frameworks/av/services/audiopolicy/managerdefault/ |
H A D | AudioPolicyManager.cpp | 2326 status_t AudioPolicyManager::listAudioPorts(audio_port_role_t role, argument 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 [all...] |
/frameworks/av/services/audiopolicy/service/ |
H A D | AudioPolicyInterfaceImpl.cpp | 584 status_t AudioPolicyService::listAudioPorts(audio_port_role_t role, argument 595 return mAudioPolicyManager->listAudioPorts(role, type, num_ports, ports, generation);
|
/frameworks/av/services/audiopolicy/ |
H A D | AudioPolicyInterface.h | 200 virtual status_t listAudioPorts(audio_port_role_t role,
|
/frameworks/native/include/media/openmax/ |
H A D | OMX_Core.h | 304 OMX_U8 cRole[OMX_MAX_STRINGNAME_SIZE]; /**< name of standard component which defines component role */ 1412 role and (if the compNames field is non-NULL) the names of those components. The call will fail if 1421 @param [in] role 1428 the given role. 1439 OMX_IN OMX_STRING role, 1447 * first call this function with the roles field NULL to determine the number of role names
|