Home
last modified time | relevance | path

Searched refs:asAudioPort (Results 1 – 11 of 11) sorted by relevance

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DPolicyAudioPort.cpp35 __FUNCTION__, getModuleName(), asAudioPort()->getName().c_str()); in attach()
80 if (asAudioPort()->isDirectOutput()) { in pickSamplingRate()
94 if (asAudioPort()->getType() == AUDIO_PORT_TYPE_MIX) { in pickSamplingRate()
115 if (asAudioPort()->isDirectOutput()) { in pickChannelMask()
119 if (asAudioPort()->useInputChannelMask()) { in pickChannelMask()
135 if (asAudioPort()->getType() != AUDIO_PORT_TYPE_MIX) { in pickChannelMask()
140 if (asAudioPort()->useInputChannelMask()) { in pickChannelMask()
223 if (!asAudioPort()->hasValidAudioProfile()) { in pickAudioProfile()
229 if ((asAudioPort()->getType() != AUDIO_PORT_TYPE_MIX) || asAudioPort()->isDirectOutput()) { in pickAudioProfile()
233 const AudioProfileVector& audioProfiles = asAudioPort()->getAudioProfiles(); in pickAudioProfile()
[all …]
DHwModule.cpp179 if (route->getSink()->asAudioPort()->getType() == AUDIO_PORT_TYPE_DEVICE) { in getRouteSinkDevice()
189 if (source->asAudioPort()->getType() == AUDIO_PORT_TYPE_DEVICE) { in getRouteSourceDevices()
DDeviceDescriptor.cpp164 if (!force && !policyPort->asAudioPort()->hasDynamicAudioProfile()) { in importAudioPortAndPickAudioProfile()
167 AudioPort::importAudioPort(policyPort->asAudioPort()); in importAudioPortAndPickAudioProfile()
DAudioOutputDescriptor.cpp50 if (mPolicyAudioPort->asAudioPort()->getGains().size() > 0) { in AudioOutputDescriptor()
51 mPolicyAudioPort->asAudioPort()->getGains()[0]->getDefaultConfig(&mGain); in AudioOutputDescriptor()
222 mPolicyAudioPort->asAudioPort()->toAudioPort(port); in toAudioPort()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DPolicyAudioPort.h50 virtual sp<AudioPort> asAudioPort() const = 0;
74 asAudioPort()->getAudioProfiles(), samplingRate, channelMask, format, in checkCompatibleAudioProfile()
75 asAudioPort()->getType(), asAudioPort()->getRole()); in checkCompatibleAudioProfile()
DIOProfile.h49 virtual sp<AudioPort> asAudioPort() const { in asAudioPort() function
DAudioInputDescriptor.h97 if (const auto port = policyPort->asAudioPort(); port != nullptr) { in isMmap()
DAudioOutputDescriptor.h275 virtual sp<AudioPort> getAudioPort() const { return mPolicyAudioPort->asAudioPort(); } in getAudioPort()
287 if (const auto port = policyPort->asAudioPort(); port != nullptr) { in isMmap()
DDeviceDescriptor.h79 virtual sp<AudioPort> asAudioPort() const { in asAudioPort() function
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp746 if (outputProfile->asAudioPort()->isDirectOutput()) { in TEST_P()
747 countDirectProfilesPrimary += outputProfile->asAudioPort()->getAudioProfiles().size(); in TEST_P()
756 if (outputProfile->asAudioPort()->isDirectOutput()) { in TEST_P()
757 countDirectProfilesMsd += outputProfile->asAudioPort()->getAudioProfiles().size(); in TEST_P()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp8937 audioProfiles.addAllValidProfiles(profile->asAudioPort()->getAudioProfiles()); in getProfilesForDevices()
8948 if (!profile->asAudioPort()->isDirectOutput()) { in getProfilesForDevices()
8951 audioProfiles.addAllValidProfiles(profile->asAudioPort()->getAudioProfiles()); in getProfilesForDevices()