Home
last modified time | relevance | path

Searched refs:channelMask (Results 1 – 25 of 60) sorted by relevance

123

/hardware/interfaces/audio/core/all-versions/vts/functional/tests/
Dgenerators_tests.cpp95 audio_channel_mask_is_valid(static_cast<audio_channel_mask_t>(config.channelMask))) in validateConfig()
96 << "Audio channel mask is invalid " << ::testing::PrintToString(config.channelMask); in validateConfig()
100 ASSERT_FALSE(xsd::isUnknownAudioChannelMask(config.base.channelMask)) in validateConfig()
102 << ::testing::PrintToString(config.base.channelMask); in validateConfig()
158 static_cast<audio_channel_mask_t>(config.channelMask)); in TEST()
160 xsd::getChannelCount(config.base.channelMask); in TEST()
166 << ::testing::PrintToString(config.channelMask); in TEST()
170 << ::testing::PrintToString(config.base.channelMask); in TEST()
/hardware/interfaces/audio/core/all-versions/vts/functional/
DConfigHelper.h89 for (auto channelMask : channelMasks) { in combineAudioConfig() local
93 config.channelMask = EnumBitfield<AudioChannelMask>(channelMask); in combineAudioConfig()
107 for (auto channelMask : channelMasks) { in combineAudioConfig() local
112 config.channelMask = mkEnumBitfield(channelMask); in combineAudioConfig()
DAudioPrimaryHidlHalTest.h588 (config.channelMask == AudioChannelMask::OUT_MONO || in DeviceConfigParameterToString()
589 config.channelMask == AudioChannelMask::IN_MONO in DeviceConfigParameterToString()
591 : ::testing::PrintToString(config.channelMask)) + in DeviceConfigParameterToString()
599 (config.channelMask == mkEnumBitfield(AudioChannelMask::OUT_MONO) || in DeviceConfigParameterToString()
600 config.channelMask == mkEnumBitfield(AudioChannelMask::IN_MONO) in DeviceConfigParameterToString()
607 ::testing::PrintToString(AudioChannelMask(config.channelMask)) + in DeviceConfigParameterToString()
608 "_" + toHexString(config.channelMask))) + in DeviceConfigParameterToString()
623 SanitizeStringForGTestName(::testing::PrintToString(config.base.channelMask)) + "_" + in DeviceConfigParameterToString()
1276 metadata.channelMask = getConfig().base.channelMask; in SetUp()
1308 .channelMask = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_IN_MONO)}}};
[all …]
/hardware/interfaces/audio/common/all-versions/default/7.0/
DHidlUtils.cpp47 AudioChannelMask* channelMask) { in audioIndexChannelMaskFromHal() argument
48 *channelMask = audio_channel_index_mask_to_string(halChannelMask); in audioIndexChannelMaskFromHal()
49 if (!channelMask->empty() && !xsd::isUnknownAudioChannelMask(*channelMask)) { in audioIndexChannelMaskFromHal()
53 *channelMask = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_NONE); in audioIndexChannelMaskFromHal()
58 AudioChannelMask* channelMask) { in audioInputChannelMaskFromHal() argument
59 *channelMask = audio_channel_in_mask_to_string(halChannelMask); in audioInputChannelMaskFromHal()
60 if (!channelMask->empty() && !xsd::isUnknownAudioChannelMask(*channelMask)) { in audioInputChannelMaskFromHal()
64 *channelMask = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_NONE); in audioInputChannelMaskFromHal()
69 AudioChannelMask* channelMask) { in audioOutputChannelMaskFromHal() argument
70 *channelMask = audio_channel_out_mask_to_string(halChannelMask); in audioOutputChannelMaskFromHal()
[all …]
/hardware/interfaces/audio/common/all-versions/default/tests/
Dhidlutils_tests.cpp72 static bool isInputChannelMask(xsd::AudioChannelMask channelMask) { in isInputChannelMask() argument
73 return toString(channelMask).find("_CHANNEL_IN_") != std::string::npos; in isInputChannelMask()
76 static bool isOutputChannelMask(xsd::AudioChannelMask channelMask) { in isOutputChannelMask() argument
77 return toString(channelMask).find("_CHANNEL_OUT_") != std::string::npos; in isOutputChannelMask()
80 static bool isIndexChannelMask(xsd::AudioChannelMask channelMask) { in isIndexChannelMask() argument
81 return toString(channelMask).find("_CHANNEL_INDEX_") != std::string::npos; in isIndexChannelMask()
86 const AudioChannelMask channelMask = toString(enumVal); in TEST() local
89 EXPECT_EQ(NO_ERROR, HidlUtils::audioChannelMaskToHal(channelMask, &halChannelMask)) in TEST()
90 << "Conversion of \"" << channelMask << "\" failed"; in TEST()
93 << "Validity of \"" << channelMask << "\" is not as expected"; in TEST()
[all …]
/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.cpp33 config->channelMask = EnumBitfield<AudioChannelMask>(halConfig.channel_mask); in audioConfigFromHal()
43 halConfig->channel_mask = static_cast<audio_channel_mask_t>(config.channelMask); in audioConfigToHal()
54 config->channelMask = EnumBitfield<AudioChannelMask>(halConfig.channel_mask); in audioGainConfigFromHal()
66 halConfig->channel_mask = static_cast<audio_channel_mask_t>(config.channelMask); in audioGainConfigToHal()
77 gain->channelMask = EnumBitfield<AudioChannelMask>(halGain.channel_mask); in audioGainFromHal()
89 halGain->channel_mask = static_cast<audio_channel_mask_t>(gain.channelMask); in audioGainToHal()
121 offload->channelMask = EnumBitfield<AudioChannelMask>(halOffload.channel_mask); in audioOffloadInfoFromHal()
157 halOffload->channel_mask = static_cast<audio_channel_mask_t>(offload.channelMask); in audioOffloadInfoToHal()
185 config->channelMask = EnumBitfield<AudioChannelMask>(halConfig.channel_mask); in audioPortConfigFromHal()
224 halConfig->channel_mask = static_cast<audio_channel_mask_t>(config.channelMask); in audioPortConfigToHal()
DHidlUtils.h87 AudioChannelMask* channelMask);
90 static status_t audioChannelMaskToHal(const AudioChannelMask& channelMask,
138 AudioChannelMask* channelMask);
140 AudioChannelMask* channelMask);
142 AudioChannelMask* channelMask);
/hardware/interfaces/audio/aidl/aidl_api/android.hardware.audio.common/current/android/hardware/audio/common/
DAudioOffloadMetadata.aidl38 android.media.audio.common.AudioChannelLayout channelMask;
DRecordTrackMetadata.aidl40 android.media.audio.common.AudioChannelLayout channelMask;
DPlaybackTrackMetadata.aidl40 android.media.audio.common.AudioChannelLayout channelMask;
/hardware/interfaces/audio/aidl/aidl_api/android.hardware.audio.common/2/android/hardware/audio/common/
DAudioOffloadMetadata.aidl38 android.media.audio.common.AudioChannelLayout channelMask;
DRecordTrackMetadata.aidl40 android.media.audio.common.AudioChannelLayout channelMask;
DPlaybackTrackMetadata.aidl40 android.media.audio.common.AudioChannelLayout channelMask;
/hardware/interfaces/audio/aidl/android/hardware/audio/common/
DAudioOffloadMetadata.aidl29 AudioChannelLayout channelMask;
DRecordTrackMetadata.aidl40 AudioChannelLayout channelMask;
DPlaybackTrackMetadata.aidl37 AudioChannelLayout channelMask;
/hardware/interfaces/audio/aidl/default/alsa/
DUtils.cpp55 for (const auto& channelMask : channelMasks) { in make_ChannelCountToMaskMap() local
56 channelMaskToCountMap.emplace(getChannelCount(channelMask), channelMask); in make_ChannelCountToMaskMap()
169 unsigned int getChannelCountFromChannelMask(const AudioChannelLayout& channelMask, bool isInput) { in getChannelCountFromChannelMask() argument
170 switch (channelMask.getTag()) { in getChannelCountFromChannelMask()
174 static_cast<unsigned>(getChannelCount(channelMask)), 0u /*defaultValue*/); in getChannelCountFromChannelMask()
178 static_cast<unsigned>(getChannelCount(channelMask)), in getChannelCountFromChannelMask()
/hardware/interfaces/audio/aidl/aidl_api/android.hardware.audio.common/1/android/hardware/audio/common/
DRecordTrackMetadata.aidl40 android.media.audio.common.AudioChannelLayout channelMask;
DPlaybackTrackMetadata.aidl40 android.media.audio.common.AudioChannelLayout channelMask;
/hardware/interfaces/audio/core/all-versions/vts/functional/7.0/
DGenerators.cpp46 for (auto channelMask : channelMasks) { in combineAudioConfig() local
49 config.base.channelMask = toString(channelMask); in combineAudioConfig()
162 config.base.channelMask = "random_string"; in getOutputDeviceInvalidConfigParameters()
191 config.offloadInfo.info().base.channelMask = "random_string"; in getOutputDeviceInvalidConfigParameters()
307 config.base.channelMask = "random_string"; in getInputDeviceInvalidConfigParameters()
/hardware/interfaces/audio/aidl/default/r_submix/
DModuleRemoteSubmix.cpp89 source->channelMask != sink->channelMask || source->format != sink->format) { in checkAudioPatchEndpointsMatch()
/hardware/interfaces/audio/core/all-versions/vts/functional/6.0/
DGenerators.cpp62 config.offloadInfo.channelMask = config.channelMask; in generateOutputDeviceConfigParameters()
/hardware/interfaces/audio/aidl/default/usb/
DModuleUsb.cpp103 source->channelMask != sink->channelMask || source->format != sink->format) { in checkAudioPatchEndpointsMatch()
/hardware/libhardware_legacy/include/hardware_legacy/
DAudioPolicyManagerBase.h92 audio_channel_mask_t channelMask,
105 audio_channel_mask_t channelMask,
213 audio_channel_mask_t channelMask,
497 audio_channel_mask_t channelMask);
501 audio_channel_mask_t channelMask,
/hardware/interfaces/audio/core/all-versions/default/util/
DCoreUtils.cpp178 trackMetadata.channelMask = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_NONE); in sinkMetadataFromHal()
203 &trackMetadata.channelMask), in sinkMetadataFromHalV7()
257 CONVERT_CHECKED(HidlUtils::audioChannelMaskToHal(trackMetadata.channelMask, in sinkMetadataToHalV7()
293 trackMetadata.channelMask = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_NONE); in sourceMetadataFromHal()
318 &trackMetadata.channelMask), in sourceMetadataFromHalV7()
367 CONVERT_CHECKED(HidlUtils::audioChannelMaskToHal(trackMetadata.channelMask, in sourceMetadataToHalV7()

123