Home
last modified time | relevance | path

Searched refs:devicePort (Results 1 – 6 of 6) sorted by relevance

/aosp12/hardware/interfaces/audio/core/all-versions/vts/functional/7.0/
H A DPolicyConfig.cpp135 const auto& devicePort = std::find_if( in getDeviceAddressOfDevicePort() local
138 if (devicePort != devicePorts.end()) { in getDeviceAddressOfDevicePort()
140 if (HidlUtils::audioDeviceTypeToHal(devicePort->getType(), &halDeviceType) == in getDeviceAddressOfDevicePort()
144 devicePort->hasAddress() ? devicePort->getAddress() : ""; in getDeviceAddressOfDevicePort()
150 } else if (xsd::isVendorExtension(devicePort->getType())) { in getDeviceAddressOfDevicePort()
152 result.deviceType = devicePort->getType(); in getDeviceAddressOfDevicePort()
153 if (devicePort->hasAddress()) { in getDeviceAddressOfDevicePort()
154 result.address.id(devicePort->getAddress()); in getDeviceAddressOfDevicePort()
/aosp12/frameworks/base/media/java/android/media/
H A DAudioDevicePortConfig.java33 AudioDevicePortConfig(AudioDevicePort devicePort, int samplingRate, int channelMask, in AudioDevicePortConfig() argument
35 super((AudioPort)devicePort, samplingRate, channelMask, format, gain); in AudioDevicePortConfig()
/aosp12/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioOutputDescriptor.cpp451 for (const auto& devicePort : devices()) { in setVolume() local
455 if (isSingleDeviceType(deviceTypes, devicePort->type()) && in setVolume()
456 devicePort->hasGainController(true) && isActive(vs)) { in setVolume()
457 ALOGV("%s: device %s has gain controller", __func__, devicePort->toString().c_str()); in setVolume()
467 AudioGains gains = devicePort->getGains(); in setVolume()
475 devicePort->toAudioPortConfig(&config); in setVolume()
/aosp12/frameworks/base/services/core/java/com/android/server/audio/
H A DAudioDeviceInventory.java1357 final AudioDevicePort devicePort = (AudioDevicePort) port; in configureHdmiPlugIntent() local
1358 if (devicePort.type() != AudioManager.DEVICE_OUT_HDMI in configureHdmiPlugIntent()
1359 && devicePort.type() != AudioManager.DEVICE_OUT_HDMI_ARC in configureHdmiPlugIntent()
1360 && devicePort.type() != AudioManager.DEVICE_OUT_HDMI_EARC) { in configureHdmiPlugIntent()
1364 int[] formats = AudioFormat.filterPublicFormats(devicePort.formats()); in configureHdmiPlugIntent()
1378 for (int mask : devicePort.channelMasks()) { in configureHdmiPlugIntent()
/aosp12/frameworks/av/services/audiopolicy/fuzzer/
H A Daudiopolicy_fuzzer.cpp871 audio_port_v7 devicePort; in explicitlyRoutingAfterConnection() local
874 findDevicePort(role, type, address, &devicePort); in explicitlyRoutingAfterConnection()
876 audio_port_handle_t routedPortId = devicePort.id; in explicitlyRoutingAfterConnection()
/aosp12/frameworks/av/services/audiopolicy/tests/
H A Daudiopolicymanager_tests.cpp1415 audio_port_v7 devicePort; in TEST_P() local
1418 ASSERT_TRUE(findDevicePort(role, type, address, &devicePort)); in TEST_P()
1420 audio_port_handle_t routedPortId = devicePort.id; in TEST_P()
1430 ASSERT_EQ(devicePort.id, routedPortId); in TEST_P()