Lines Matching refs:address

34 // type alone is not enough: the address must match too
225 ALOGV("setDeviceConnectionState() device: %x, state %d, address %s",
459 String8 address = (device_address == NULL) ? String8("") : String8(device_address);
460 // handle legacy remote submix case where the address was not always specified
461 if (deviceDistinguishesOnAddress(device) && (address.length() == 0)) {
462 address = String8("0");
470 mHwModules[i]->mDeclaredDevices.getDevicesFromTypeAddr(device, address);
481 devDesc->mAddress = address;
1472 // handle legacy remote submix case where the address was not always specified
1473 String8 address = String8("");
1487 address = String8(attr->tags + strlen("addr="));
1488 ssize_t index = mPolicyMixes.indexOfKey(address);
1490 ALOGW("getInputForAttr() no policy for address %s", address.string());
1494 ALOGW("getInputForAttr() bad policy mix type for address %s", address.string());
1506 address = policyMix->mRegistrationId;
1518 address = String8("0");
1550 sp<IOProfile> profile = getInputProfile(device, address,
1557 profile = getInputProfile(device, address,
1582 address,
1666 String8 address = String8("");
1668 address = String8("0");
1670 address = inputDesc->mPolicyMix->mRegistrationId;
1672 if (address != "") {
1675 address);
1714 String8 address = String8("");
1716 address = String8("0");
1718 address = inputDesc->mPolicyMix->mRegistrationId;
1720 if (address != "") {
1723 address);
2123 // When a remote submix device is connected, the address is checked to select the
2127 // - 1 look for a mix matching the address passed in attribtutes tags if any
2136 // - 1 look for a mix matching the address passed in attribtutes tags if any
2158 String8 address = mixes[i].mRegistrationId;
2159 ssize_t index = mPolicyMixes.indexOfKey(address);
2161 ALOGE("registerPolicyMixes(): mix for address %s already registered", address.string());
2170 module->addOutputProfile(address, &outputConfig,
2171 AUDIO_DEVICE_OUT_REMOTE_SUBMIX, address);
2172 module->addInputProfile(address, &inputConfig,
2173 AUDIO_DEVICE_IN_REMOTE_SUBMIX, address);
2176 mPolicyMixes.add(address, policyMix);
2180 address.string());
2184 address.string());
2208 String8 address = mixes[i].mRegistrationId;
2209 ssize_t index = mPolicyMixes.indexOfKey(address);
2211 ALOGE("unregisterPolicyMixes(): mix for address %s not registered", address.string());
2217 if (getDeviceConnectionState(AUDIO_DEVICE_IN_REMOTE_SUBMIX, address.string()) ==
2222 address.string());
2225 if (getDeviceConnectionState(AUDIO_DEVICE_OUT_REMOTE_SUBMIX, address.string()) ==
2230 address.string());
2232 module->removeOutputProfile(address);
2233 module->removeInputProfile(address);
3193 // find the address
3196 String8 address = inputDevices.size() > 0 ? inputDevices.itemAt(0)->mAddress
3198 ALOGV(" for input device 0x%x using address %s", profileType, address.string());
3210 address,
3484 const String8 address /*in*/,
3487 desc->mProfile->mSupportedDevices.getDevice(device, address);
3489 ALOGV("findIoHandlesByAddress(): adding opened output %d on same address %s",
3490 desc->mIoHandle, address.string());
3498 const String8 address)
3514 ALOGV(" checking address match due to device 0x%x", device);
3515 findIoHandlesByAddress(desc, device, address, outputs);
3531 address == profile->mSupportedDevices[0]->mAddress) {
3567 device, address.string(), profile.get());
3582 address,
3591 if (!address.isEmpty()) {
3592 char *param = audio_device_address_to_parameter(device, address);
3652 address,
3666 if (deviceDistinguishesOnAddress(device) && address != "0") {
3667 ssize_t index = mPolicyMixes.indexOfKey(address);
3672 ALOGE("checkOutputsForDevice() cannot find policy for address %s",
3673 address.string());
3723 device, address.string());
3725 NULL/*patch handle*/, address.string());
3743 findIoHandlesByAddress(desc, device, address, outputs);
3786 const String8 address)
3814 address == profile->mSupportedDevices[0]->mAddress) {
3845 ALOGV("opening input for device 0x%X with params %s", device, address.string());
3857 address,
3866 if (!address.isEmpty()) {
3867 char *param = audio_device_address_to_parameter(device, address);
4898 const char* address)
4948 DeviceVector deviceList = (address == NULL) ?
4950 : mAvailableOutputDevices.getDevicesFromTypeAddr(device, String8(address));
5132 String8 address,
5150 if (profile->isCompatibleProfile(device, address, samplingRate,
6395 ALOGV("loadDevice() adding device name %s type %08x address %s",
6404 audio_devices_t device, String8 address)
6413 devDesc->mAddress = address;
6434 audio_devices_t device, String8 address)
6443 devDesc->mAddress = address;
7372 String8 address,
7383 if (device != AUDIO_DEVICE_NONE && mSupportedDevices.getDevice(device, address) == 0) {
7490 // - have the same address or one device does not specify the address
7602 audio_devices_t type, String8 address) const
7607 if (address == "" || itemAt(i)->mAddress == address) {
7609 if (itemAt(i)->mAddress == address) {
7615 ALOGV("DeviceVector::getDevice() for type %08x address %s found %p",
7616 type, address.string(), device.get());
7654 audio_devices_t type, String8 address) const
7659 if (itemAt(i)->mAddress == address) {
7697 strncpy(dstConfig->ext.device.address, mAddress.string(), AUDIO_DEVICE_MAX_ADDRESS_LEN);
7708 strncpy(port->ext.device.address, mAddress.string(), AUDIO_DEVICE_MAX_ADDRESS_LEN);
7729 snprintf(buffer, SIZE, "%*s- address: %-32s\n", spaces, "", mAddress.string());