Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/
DAudioDevicePortConfig.java33 AudioDevicePortConfig(AudioDevicePort devicePort, int samplingRate, int channelMask, in AudioDevicePortConfig() argument
35 super((AudioPort)devicePort, samplingRate, channelMask, format, gain); in AudioDevicePortConfig()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
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()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioDeviceInventory.java1339 final AudioDevicePort devicePort = (AudioDevicePort) port; in configureHdmiPlugIntent() local
1340 if (devicePort.type() != AudioManager.DEVICE_OUT_HDMI in configureHdmiPlugIntent()
1341 && devicePort.type() != AudioManager.DEVICE_OUT_HDMI_ARC in configureHdmiPlugIntent()
1342 && devicePort.type() != AudioManager.DEVICE_OUT_HDMI_EARC) { in configureHdmiPlugIntent()
1346 int[] formats = AudioFormat.filterPublicFormats(devicePort.formats()); in configureHdmiPlugIntent()
1360 for (int mask : devicePort.channelMasks()) { in configureHdmiPlugIntent()
/frameworks/av/services/audiopolicy/fuzzer/
Daudiopolicy_fuzzer.cpp869 audio_port_v7 devicePort; in explicitlyRoutingAfterConnection() local
872 findDevicePort(role, type, address, &devicePort); in explicitlyRoutingAfterConnection()
874 audio_port_handle_t routedPortId = devicePort.id; in explicitlyRoutingAfterConnection()
/frameworks/av/services/audiopolicy/tests/
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()