/hardware/interfaces/audio/core/all-versions/vts/functional/tests/ |
D | generators_tests.cpp | 95 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/ |
D | ConfigHelper.h | 89 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()
|
D | AudioPrimaryHidlHalTest.h | 588 (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/ |
D | HidlUtils.cpp | 47 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/ |
D | hidlutils_tests.cpp | 72 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/ |
D | HidlUtils.cpp | 33 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()
|
D | HidlUtils.h | 87 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/ |
D | AudioOffloadMetadata.aidl | 38 android.media.audio.common.AudioChannelLayout channelMask;
|
D | RecordTrackMetadata.aidl | 40 android.media.audio.common.AudioChannelLayout channelMask;
|
D | PlaybackTrackMetadata.aidl | 40 android.media.audio.common.AudioChannelLayout channelMask;
|
/hardware/interfaces/audio/aidl/aidl_api/android.hardware.audio.common/2/android/hardware/audio/common/ |
D | AudioOffloadMetadata.aidl | 38 android.media.audio.common.AudioChannelLayout channelMask;
|
D | RecordTrackMetadata.aidl | 40 android.media.audio.common.AudioChannelLayout channelMask;
|
D | PlaybackTrackMetadata.aidl | 40 android.media.audio.common.AudioChannelLayout channelMask;
|
/hardware/interfaces/audio/aidl/android/hardware/audio/common/ |
D | AudioOffloadMetadata.aidl | 29 AudioChannelLayout channelMask;
|
D | RecordTrackMetadata.aidl | 40 AudioChannelLayout channelMask;
|
D | PlaybackTrackMetadata.aidl | 37 AudioChannelLayout channelMask;
|
/hardware/interfaces/audio/aidl/default/alsa/ |
D | Utils.cpp | 55 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/ |
D | RecordTrackMetadata.aidl | 40 android.media.audio.common.AudioChannelLayout channelMask;
|
D | PlaybackTrackMetadata.aidl | 40 android.media.audio.common.AudioChannelLayout channelMask;
|
/hardware/interfaces/audio/core/all-versions/vts/functional/7.0/ |
D | Generators.cpp | 46 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/ |
D | ModuleRemoteSubmix.cpp | 89 source->channelMask != sink->channelMask || source->format != sink->format) { in checkAudioPatchEndpointsMatch()
|
/hardware/interfaces/audio/core/all-versions/vts/functional/6.0/ |
D | Generators.cpp | 62 config.offloadInfo.channelMask = config.channelMask; in generateOutputDeviceConfigParameters()
|
/hardware/interfaces/audio/aidl/default/usb/ |
D | ModuleUsb.cpp | 103 source->channelMask != sink->channelMask || source->format != sink->format) { in checkAudioPatchEndpointsMatch()
|
/hardware/libhardware_legacy/include/hardware_legacy/ |
D | AudioPolicyManagerBase.h | 92 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/ |
D | CoreUtils.cpp | 178 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()
|