Searched defs:role (Results 1 - 20 of 20) sorted by path

/frameworks/av/media/libmedia/
H A DAudioSystem.cpp1026 status_t AudioSystem::listAudioPorts(audio_port_role_t role, argument
1034 return aps->listAudioPorts(role, type, num_ports, ports, generation);
H A DIAudioPolicyService.cpp521 virtual status_t listAudioPorts(audio_port_role_t role, argument
534 data.writeInt32(role);
1155 audio_port_role_t role = (audio_port_role_t)data.readInt32(); local
1170 status_t status = listAudioPorts(role, type, &numPorts, ports, &generation);
/frameworks/av/media/libstagefright/
H A DACodec.cpp1610 const char *role = getComponentRole(isEncoder, mime); local
1611 if (role == NULL) {
1614 status_t err = setComponentRole(mOMX, mNode, role);
1616 ALOGW("[%s] Failed to set standard component role '%s'.",
1617 mComponentName.c_str(), role);
1700 const sp<IOMX> &omx, IOMX::node_id node, const char *role) {
1705 role, OMX_MAX_STRINGNAME_SIZE - 1);
7816 const char *role = getComponentRole(isEncoder, mime.c_str()); local
7817 if (role == NULL) {
7837 err = setComponentRole(omx, node, role);
1699 setComponentRole( const sp<IOMX> &omx, IOMX::node_id node, const char *role) argument
[all...]
/frameworks/av/media/libstagefright/omx/tests/
H A DOMXHarness.cpp207 status_t Harness::setRole(IOMX::node_id node, const char *role) { argument
214 strncpy((char *)params.cRole, role, OMX_MAX_STRINGNAME_SIZE - 1);
772 " [ component role ]\n\n"
774 "and role, tool will test all available OMX components "
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DAudioPort.h38 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 DIOProfile.h36 IOProfile(const String8 &name, audio_port_role_t role) argument
37 : AudioPort(name, AUDIO_PORT_TYPE_MIX, role) {}
H A DSerializer.h93 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 DConfigParsingUtils.cpp151 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 DSerializer.cpp217 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...]
/frameworks/av/services/audiopolicy/managerdefault/
H A DAudioPolicyManager.cpp2326 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 DAudioPolicyInterfaceImpl.cpp584 status_t AudioPolicyService::listAudioPorts(audio_port_role_t role, argument
595 return mAudioPolicyManager->listAudioPorts(role, type, num_ports, ports, generation);
/frameworks/base/core/java/android/bluetooth/
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...]
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,
/frameworks/base/core/java/android/hardware/usb/
H A DUsbPort.java66 * 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/jni/
H A Dandroid_media_AudioSystem.cpp604 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/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothTestUtils.java269 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/media/java/android/media/
H A DAudioMixPort.java33 AudioMixPort(AudioHandle handle, int ioHandle, int role, String deviceName, argument
36 super(handle, role, deviceName, samplingRates, channelMasks, channelIndexMasks,
H A DAudioPort.java79 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
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DPanProfile.java159 void setLocalRole(BluetoothDevice device, int role) { argument
160 mDeviceRoleMap.put(device, role);
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 407 milliseconds