Home
last modified time | relevance | path

Searched refs:role (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/base/media/java/android/media/
DAudioPort.java79 AudioPort(AudioHandle handle, int role, String name, in AudioPort() argument
84 mRole = role; in AudioPort()
108 public int role() { in role() method in AudioPort
210 String role = Integer.toString(mRole); in toString() local
213 role = "NONE"; in toString()
216 role = "SOURCE"; in toString()
219 role = "SINK"; in toString()
223 + ", mRole: " + role in toString()
DAudioMixPort.java33 AudioMixPort(AudioHandle handle, int ioHandle, int role, String deviceName, in AudioMixPort() argument
36 super(handle, role, deviceName, samplingRates, channelMasks, channelIndexMasks, in AudioMixPort()
DAudioDeviceInfo.java153 return mPort.role() == AudioPort.ROLE_SOURCE; in isSource()
160 return mPort.role() == AudioPort.ROLE_SINK; in isSink()
/frameworks/base/core/java/android/hardware/usb/
DUsbPort.java150 public static String powerRoleToString(int role) { in powerRoleToString() argument
151 switch (role) { in powerRoleToString()
159 return Integer.toString(role); in powerRoleToString()
164 public static String dataRoleToString(int role) { in dataRoleToString() argument
165 switch (role) { in dataRoleToString()
173 return Integer.toString(role); in dataRoleToString()
/frameworks/base/core/java/android/bluetooth/
DBluetoothHealthAppConfiguration.java59 BluetoothHealthAppConfiguration(String name, int dataType, int role, int in BluetoothHealthAppConfiguration() argument
63 mRole = role; in BluetoothHealthAppConfiguration()
147 int role = in.readInt();
149 return new BluetoothHealthAppConfiguration(name, type, role,
DBluetoothHealth.java170 public boolean registerAppConfiguration(String name, int dataType, int role, in registerAppConfiguration() argument
173 if (!isEnabled() || !checkAppParam(name, role, channelType, callback)) return result; in registerAppConfiguration()
178 new BluetoothHealthAppConfiguration(name, dataType, role, channelType); in registerAppConfiguration()
555 private boolean checkAppParam(String name, int role, int channelType, in checkAppParam() argument
557 if (name == null || (role != SOURCE_ROLE && role != SINK_ROLE) || in checkAppParam()
563 if (role == SOURCE_ROLE && channelType == CHANNEL_TYPE_ANY) return false; in checkAppParam()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DSerializer.cpp217 const char MixPortTraits::Attributes::role[] = "role"; member in android::MixPortTraits::Attributes
229 string role = getXmlAttribute(child, Attributes::role); in deserialize() local
230 if (role.empty()) { in deserialize()
231 ALOGE("%s: No %s found", __FUNCTION__, Attributes::role); in deserialize()
234 ALOGV("%s: Role=%s", __FUNCTION__, role.c_str()); in deserialize()
235 audio_port_role_t portRole = role == "source" ? AUDIO_PORT_ROLE_SOURCE : AUDIO_PORT_ROLE_SINK; in deserialize()
274 const char DevicePortTraits::Attributes::role[] = "role"; member in android::DevicePortTraits::Attributes
293 string role = getXmlAttribute(root, Attributes::role); in deserialize() local
294 if (role.empty()) { in deserialize()
295 ALOGE("%s: No %s found", __FUNCTION__, Attributes::role); in deserialize()
[all …]
DConfigParsingUtils.cpp151 audio_port_role_t role) in loadHwModuleProfile() argument
155 sp<IOProfile> profile = new IOProfile(String8(root->name), role); in loadHwModuleProfile()
171 if (role == AUDIO_PORT_ROLE_SINK) { in loadHwModuleProfile()
181 if (role == AUDIO_PORT_ROLE_SINK) { in loadHwModuleProfile()
210 role == AUDIO_PORT_ROLE_SINK ? "Input" : "Output"); in loadHwModuleProfile()
213 role == AUDIO_PORT_ROLE_SINK ? "Input" : "Output", in loadHwModuleProfile()
DAudioInputDescriptor.cpp87 dstConfig->role = AUDIO_PORT_ROLE_SINK; in toAudioPortConfig()
/frameworks/base/tests/AccessoryDisplay/
DREADME11 The role of the sink is to emulate an external display that happens
25 The role of the source is to present some content onto an external
27 role that a phone or tablet might have when the user is trying to
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DIOProfile.h36 IOProfile(const String8 &name, audio_port_role_t role) in IOProfile() argument
37 : AudioPort(name, AUDIO_PORT_TYPE_MIX, role) {} in IOProfile()
DSerializer.h93 static const char role[]; member
117 static const char role[]; /**< <device role: sink or source>. */ member
DAudioPort.h38 AudioPort(const String8& name, audio_port_type_t type, audio_port_role_t role) : in AudioPort() argument
39 mName(name), mType(type), mRole(role), mFlags(AUDIO_OUTPUT_FLAG_NONE) {} in AudioPort()
DConfigParsingUtils.h47 static status_t loadHwModuleProfile(cnode *root, sp<HwModule> &module, audio_port_role_t role);
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java269 public ConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) { in ConnectPanReceiver() argument
272 mRole = role; in ConnectPanReceiver()
1104 int mask, role; in connectPanOrIncomingPanConnection() local
1111 role = BluetoothPan.LOCAL_PANU_ROLE; in connectPanOrIncomingPanConnection()
1115 role = BluetoothPan.LOCAL_NAP_ROLE; in connectPanOrIncomingPanConnection()
1128 ConnectPanReceiver receiver = getConnectPanReceiver(device, role, mask); in connectPanOrIncomingPanConnection()
1141 if (role == BluetoothPan.LOCAL_PANU_ROLE) { in connectPanOrIncomingPanConnection()
1209 int mask, role; in disconnectFromRemoteOrVerifyConnectNap() local
1216 role = BluetoothPan.LOCAL_PANU_ROLE; in disconnectFromRemoteOrVerifyConnectNap()
1220 role = BluetoothPan.LOCAL_NAP_ROLE; in disconnectFromRemoteOrVerifyConnectNap()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DPanProfile.java159 void setLocalRole(BluetoothDevice device, int role) { in setLocalRole() argument
160 mDeviceRoleMap.put(device, role); in setLocalRole()
DLocalBluetoothProfileManager.java301 int role = intent.getIntExtra(BluetoothPan.EXTRA_LOCAL_ROLE, 0); in onReceive() local
302 panProfile.setLocalRole(device, role); in onReceive()
/frameworks/av/media/libstagefright/omx/tests/
DOMXHarness.h64 status_t setRole(IOMX::node_id node, const char *role);
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp604 static bool useInChannelMask(audio_port_type_t type, audio_port_role_t role) in useInChannelMask() argument
606 return ((type == AUDIO_PORT_TYPE_DEVICE) && (role == AUDIO_PORT_ROLE_SOURCE)) || in useInChannelMask()
607 ((type == AUDIO_PORT_TYPE_MIX) && (role == AUDIO_PORT_ROLE_SINK)); in useInChannelMask()
647 nAudioPortConfig->role = (audio_port_role_t)env->GetIntField(jAudioPort, in convertAudioPortConfigToNative()
659 nAudioPortConfig->id, nAudioPortConfig->role, nAudioPortConfig->type); in convertAudioPortConfigToNative()
669 bool useInMask = useInChannelMask(nAudioPortConfig->type, nAudioPortConfig->role); in convertAudioPortConfigToNative()
760 bool useInMask = useInChannelMask(nAudioPortConfig->type, nAudioPortConfig->role); in convertAudioPortConfigFromNative()
924 nAudioPort->id, nAudioPort->role, nAudioPort->type, nAudioPort->name); in convertAudioPortFromNative()
956 useInMask = useInChannelMask(nAudioPort->type, nAudioPort->role); in convertAudioPortFromNative()
1050 nAudioPort->role, jDeviceName, in convertAudioPortFromNative()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp2326 status_t AudioPolicyManager::listAudioPorts(audio_port_role_t role, in listAudioPorts() argument
2336 ALOGV("listAudioPorts() role %d type %d num_ports %d ports %p", role, type, *num_ports, ports); in listAudioPorts()
2347 if (role == AUDIO_PORT_ROLE_SINK || role == AUDIO_PORT_ROLE_NONE) { in listAudioPorts()
2358 if (role == AUDIO_PORT_ROLE_SOURCE || role == AUDIO_PORT_ROLE_NONE) { in listAudioPorts()
2371 if (role == AUDIO_PORT_ROLE_SINK || role == AUDIO_PORT_ROLE_NONE) { in listAudioPorts()
2377 if (role == AUDIO_PORT_ROLE_SOURCE || role == AUDIO_PORT_ROLE_NONE) { in listAudioPorts()
2420 if (patch->sources[0].role != AUDIO_PORT_ROLE_SOURCE) { in createAudioPatch()
2424 if (patch->sinks[i].role != AUDIO_PORT_ROLE_SINK) { in createAudioPatch()
2433 patch->sources[0].role, in createAudioPatch()
2438 patch->sinks[i].role, in createAudioPatch()
[all …]
/frameworks/base/docs/html/guide/topics/manifest/
Dcategory-element.jd16 Intent Filters</a> for details on intent filters and the role of category
Daction-element.jd20 Intent Filters</a> for details on intent filters and the role of action
/frameworks/base/docs/html/guide/topics/connectivity/
Dbluetooth-le.jd59 Energy in the <em>central role</em> and provides APIs that apps can use to discover
116 device in the central role scans, looking for advertisement, and the device in
117 the peripheral role makes the advertisement.</li>
124 central role; the activity tracker supports the peripheral role (to
144 role. See {@link android.bluetooth.BluetoothGattServer} for more
/frameworks/av/include/media/
DIAudioPolicyService.h128 virtual status_t listAudioPorts(audio_port_role_t role,
/frameworks/av/media/libstagefright/codecs/avcenc/
DSoftAVCEnc.h214 const OMX_PARAM_COMPONENTROLETYPE *role);

123