Searched refs:halProfile (Results 1 – 3 of 3) sorted by relevance
/hardware/interfaces/audio/common/all-versions/default/7.0/ |
D | HidlUtils.cpp | 945 status_t HidlUtils::audioProfileFromHal(const struct audio_profile& halProfile, bool isInput, in audioUsageFromHal() argument 948 CONVERT_CHECKED(audioFormatFromHal(halProfile.format, &profile->format), result); in audioUsageFromHal() 949 profile->sampleRates.resize(halProfile.num_sample_rates); in audioUsageFromHal() 950 for (size_t i = 0; i < halProfile.num_sample_rates; ++i) { in audioUsageFromHal() 951 profile->sampleRates[i] = halProfile.sample_rates[i]; in audioUsageFromHal() 953 profile->channelMasks.resize(halProfile.num_channel_masks); in audioUsageFromHal() 954 for (size_t i = 0; i < halProfile.num_channel_masks; ++i) { in audioUsageFromHal() 955 CONVERT_CHECKED(audioChannelMaskFromHal(halProfile.channel_masks[i], isInput, in audioUsageFromHal() 963 struct audio_profile* halProfile) { in audioUsageFromHal() argument 965 CONVERT_CHECKED(audioFormatToHal(profile.format, &halProfile->format), result); in audioUsageFromHal() [all …]
|
/hardware/interfaces/audio/common/all-versions/default/ |
D | HidlUtils.h | 117 static status_t audioProfileFromHal(const struct audio_profile& halProfile, bool isInput, 120 struct audio_profile* halProfile);
|
/hardware/interfaces/audio/common/all-versions/default/tests/ |
D | hidlutils_tests.cpp | 917 struct audio_profile halProfile; in TEST() local 918 EXPECT_EQ(NO_ERROR, HidlUtils::audioProfileToHal(profile, &halProfile)); in TEST() 921 HidlUtils::audioProfileFromHal(halProfile, false /*isInput*/, &profileBack)); in TEST()
|