Home
last modified time | relevance | path

Searched refs:channel_mask (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/av/media/libaudiofoundation/
DAudioGain.cpp44 config->channel_mask = mGain.channel_mask; in getDefaultConfig()
49 audio_channel_count_from_in_mask(mGain.channel_mask) : in getDefaultConfig()
50 audio_channel_count_from_out_mask(mGain.channel_mask); in getDefaultConfig()
71 if ((config->channel_mask & ~mGain.channel_mask) != 0) { in checkConfig()
75 audio_channel_count_from_in_mask(config->channel_mask) : in checkConfig()
76 audio_channel_count_from_out_mask(config->channel_mask); in checkConfig()
97 dst->append(base::StringPrintf("%*s- channel_mask: %08x\n", spaces, "", mGain.channel_mask)); in dump()
113 mGain.channel_mask == other->mGain.channel_mask && in equals()
DAudioPort.cpp287 mChannelMask = config->channel_mask; in applyAudioPortConfig()
329 updateField(mChannelMask, &audio_port_config::channel_mask, in toAudioPortConfig()
377 mGain.channel_mask == other->mGain.channel_mask && in equals()
/frameworks/av/services/audioflinger/
DSpdifStreamOut.cpp56 mApplicationChannelMask = config->channel_mask; in open()
78 customConfig.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in open()
87 config->channel_mask); in open()
92 customConfig.channel_mask); in open()
DAudioHwDevice.cpp55 config->channel_mask); in openOutputStream()
70 config->channel_mask, in openOutputStream()
DAudioStreamOut.cpp149 config->channel_mask, in open()
186 result.channel_mask = AUDIO_CHANNEL_INVALID; in getAudioProperties()
DPatchPanel.cpp268 config.channel_mask = patch->sinks[0].channel_mask; in createAudioPatch()
302 config.channel_mask = patch->sources[0].channel_mask; in createAudioPatch()
304 config.channel_mask = audio_channel_in_mask_from_count( in createAudioPatch()
333 thread.get(), config.channel_mask); in createAudioPatch()
/frameworks/av/media/libaudioclient/include/media/
DAudioCommonTypes.h113 lhs.sample_rate == rhs.sample_rate && lhs.channel_mask == rhs.channel_mask &&
128 return lhs.sample_rate == rhs.sample_rate && lhs.channel_mask == rhs.channel_mask &&
138 return lhs.sample_rate == rhs.sample_rate && lhs.channel_mask == rhs.channel_mask &&
/frameworks/av/services/mediametrics/
Dstatsd_audiotrack.cpp86 int64_t channel_mask = -1; in statsd_audiotrack() local
87 if (item->getInt64("android.media.audiotrack.channelMask", &channel_mask)) { in statsd_audiotrack()
88 metrics_proto.set_channel_mask(channel_mask); in statsd_audiotrack()
156 << " channel_mask:" << channel_mask in statsd_audiotrack()
Dstatsd_audiorecord.cpp130 int64_t channel_mask = -1; in statsd_audiorecord() local
131 if (item->getInt64("android.media.audiorecord.channelMask", &channel_mask)) { in statsd_audiorecord()
132 metrics_proto.set_channel_mask(channel_mask); in statsd_audiorecord()
181 << " channel_mask:" << channel_mask in statsd_audiorecord()
Dstatsd_audiothread.cpp120 int32_t channel_mask = -1; in statsd_audiothread() local
121 if (item->getInt32(MM_PREFIX "channelMask", &channel_mask)) { in statsd_audiothread()
122 metrics_proto.set_channel_mask(channel_mask); in statsd_audiothread()
219 << " channel_mask:" << channel_mask in statsd_audiothread()
/frameworks/av/media/libaudiofoundation/include/media/
DAudioGain.h40 void setChannelMask(audio_channel_mask_t mask) { mGain.channel_mask = mask; } in setChannelMask()
41 const audio_channel_mask_t &getChannelMask() const { return mGain.channel_mask; } in getChannelMask()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DClientDescriptor.cpp50 audio_format_to_string(mConfig.format), mConfig.sample_rate, mConfig.channel_mask); in dump()
101 {config.sample_rate, config.channel_mask, config.format}, AUDIO_PORT_HANDLE_NONE, in SourceClientDescriptor()
DAudioOutputDescriptor.cpp57 const audio_config_base_t config = { .sample_rate = mSamplingRate, .channel_mask = mChannelMask, in getConfig()
579 lHalConfig.channel_mask = mChannelMask; in open()
592 lHalConfig.offload_info.channel_mask = lHalConfig.channel_mask; in open()
601 lMixerConfig.channel_mask = lHalConfig.channel_mask; in open()
613 lMixerConfig.channel_mask = AUDIO_CHANNEL_OUT_5POINT1; in open()
634 mChannelMask = lHalConfig.channel_mask; in open()
636 mMixerChannelMask = lMixerConfig.channel_mask; in open()
DHwModule.cpp59 profile->addAudioProfile(new AudioProfile(config->format, config->channel_mask, in addOutputProfile()
127 profile->addAudioProfile(new AudioProfile(config->format, config->channel_mask, in addInputProfile()
138 name.c_str(), config->sample_rate, config->channel_mask); in addInputProfile()
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp217 config.channel_mask = channelMask; in getOutputForAttr()
247 config.channel_mask = channelMask; in getInputForAttr()
654 ASSERT_EQ(AUDIO_CHANNEL_IN_STEREO, patch->mPatch.sources[0].channel_mask); in TEST_P()
655 ASSERT_EQ(AUDIO_CHANNEL_OUT_STEREO, patch->mPatch.sinks[0].channel_mask); in TEST_P()
711 directConfig.channel_mask = AUDIO_CHANNEL_OUT_5POINT1; in TEST_P()
716 nonDirectConfig.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in TEST_P()
721 nonExistentConfig.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in TEST_P()
726 msdDirectConfig1.channel_mask = AUDIO_CHANNEL_OUT_5POINT1; in TEST_P()
731 msdDirectConfig2.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in TEST_P()
736 msdNonDirectConfig.channel_mask = AUDIO_CHANNEL_OUT_STEREO; in TEST_P()
[all …]
/frameworks/av/services/audiopolicy/fuzzer/
Daudiopolicy_fuzzer.cpp255 config.channel_mask = channelMask; in getOutputForAttr()
284 config.channel_mask = channelMask; in getInputForAttr()
579 audioConfig.channel_mask = getValueFromVector<audio_channel_mask_t>( in registerPolicyMixes()
663 mAudioConfig.channel_mask = in initialize()
686 mAudioConfig.channel_mask, mAudioConfig.sample_rate, AUDIO_INPUT_FLAG_NONE, in initialize()
714 getOutputForAttr(&playbackRoutedPortId, mAudioConfig.format, mAudioConfig.channel_mask, in playBackReRouting()
776 mAudioConfig.channel_mask = in initialize()
798 getOutputForAttr(&selectedDeviceId, mAudioConfig.format, mAudioConfig.channel_mask, in initialize()
829 mAudioConfig.channel_mask, mAudioConfig.sample_rate, AUDIO_INPUT_FLAG_NONE, in recordingInjection()
915 config.channel_mask = getValueFromVector<audio_channel_mask_t>(mFdp, kAudioChannelOutMasks); in fuzzGetDirectPlaybackSupport()
/frameworks/av/media/libaudioclient/fuzzer/
Daudioflinger_fuzzer.cpp220 offloadInfo.channel_mask = channelMask; in invokeAudioTrack()
576 config.channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioInputDevice()
583 config.offload_info.channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioInputDevice()
634 config.channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioOutputDevice()
639 config.offload_info.channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioOutputDevice()
698 patch.sources[i].channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioPatch()
700 patch.sources[i].gain.channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioPatch()
710 patch.sinks[i].channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioPatch()
712 patch.sinks[i].gain.channel_mask = getValue(&mFdp, kChannelMasks); in invokeAudioPatch()
/frameworks/av/services/oboeservice/
DAAudioServiceEndpointMMAP.cpp133 config.channel_mask = AAudio_getChannelMaskForOpen( in openWithFormat()
159 config.channel_mask, deviceId); in openWithFormat()
204 config.channel_mask, getDirection() == AAUDIO_DIRECTION_INPUT, in openWithFormat()
205 AAudio_isChannelIndexMask(config.channel_mask))); in openWithFormat()
/frameworks/av/media/libaudiofoundation/tests/
Daudiofoundation_parcelable_test.cpp40 .channel_mask = AUDIO_CHANNEL_OUT_STEREO,
45 .channel_mask = AUDIO_CHANNEL_OUT_STEREO,
/frameworks/av/media/libaudioclient/
DAudioPolicy.cpp82 mFormat.channel_mask = (audio_channel_mask_t)parcel->readInt32(); in readFromParcel()
107 parcel->writeInt32(mFormat.channel_mask); in writeToParcel()
DAidlConversion.cpp1388 legacy.channel_mask = VALUE_OR_RETURN( in aidl2legacy_AudioGainConfig_audio_gain_config()
1392 : isInput ? audio_channel_count_from_in_mask(legacy.channel_mask) in aidl2legacy_AudioGainConfig_audio_gain_config()
1393 : audio_channel_count_from_out_mask(legacy.channel_mask); in aidl2legacy_AudioGainConfig_audio_gain_config()
1410 legacy2aidl_audio_channel_mask_t_AudioChannelLayout(legacy.channel_mask, isInput)); in legacy2aidl_audio_gain_config_AudioGainConfig()
1413 : isInput ? audio_channel_count_from_in_mask(legacy.channel_mask) in legacy2aidl_audio_gain_config_AudioGainConfig()
1414 : audio_channel_count_from_out_mask(legacy.channel_mask); in legacy2aidl_audio_gain_config_AudioGainConfig()
1991 legacy.channel_mask = in aidl2legacy_AudioPortConfig_audio_port_config()
2033 legacy2aidl_audio_channel_mask_t_AudioChannelLayout(legacy.channel_mask, isInput)); in legacy2aidl_audio_port_config_AudioPortConfig()
2107 const audio_channel_mask_t channel_mask = VALUE_OR_RETURN( in aidl2legacy_AudioIoDescriptor_AudioIoDescriptor() local
2115 channel_mask, frame_count, frame_count_hal, latency, port_id); in aidl2legacy_AudioIoDescriptor_AudioIoDescriptor()
[all …]
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp1166 .channel_mask = config->channel_mask, in getOutputForAttrInt()
1197 && (audio_channel_count_from_out_mask(policyDesc->getConfig().channel_mask) < in getOutputForAttrInt()
1198 audio_channel_count_from_out_mask(config->channel_mask)); in getOutputForAttrInt()
1256 config->channel_mask, *flags, toString(*stream).c_str()); in getOutputForAttrInt()
1345 .channel_mask = config->channel_mask, in getOutputForAttr()
1380 audio_channel_count_from_out_mask(config->channel_mask) <= 2) { in openDirectOutput()
1394 devices, config->sample_rate, config->format, config->channel_mask, in openDirectOutput()
1410 (config->channel_mask == desc->getChannelMask()) && in openDirectOutput()
1439 (config->channel_mask != 0 && config->channel_mask != outputDesc->getChannelMask())) { in openDirectOutput()
1443 config->channel_mask, outputDesc->getChannelMask()); in openDirectOutput()
[all …]
/frameworks/av/media/libnbaio/
DAudioStreamInSource.cpp53 audio_channel_count_from_in_mask(config.channel_mask), config.format); in negotiate()
DAudioStreamOutSink.cpp51 audio_channel_count_from_out_mask(config.channel_mask), config.format); in negotiate()
/frameworks/proto_logging/stats/message/
Dmediametrics_message.proto61 optional int64 channel_mask = 14; field
88 optional int64 channel_mask = 14; field
116 optional int64 channel_mask = 5; field

12