Searched refs:halUsage (Results 1 – 4 of 4) sorted by relevance
/hardware/interfaces/audio/common/all-versions/default/7.0/ |
D | HidlUtils.cpp | 485 status_t HidlUtils::audioUsageFromHal(audio_usage_t halUsage, AudioUsage* usage) { in audioUsageFromHal() argument 486 if (halUsage == AUDIO_USAGE_NOTIFICATION_COMMUNICATION_REQUEST || in audioUsageFromHal() 487 halUsage == AUDIO_USAGE_NOTIFICATION_COMMUNICATION_INSTANT || in audioUsageFromHal() 489 halUsage == AUDIO_USAGE_NOTIFICATION_COMMUNICATION_DELAYED) { in audioUsageFromHal() 491 halUsage == AUDIO_USAGE_NOTIFICATION_COMMUNICATION_DELAYED || in audioUsageFromHal() 492 halUsage == AUDIO_USAGE_NOTIFICATION_EVENT) { in audioUsageFromHal() 494 halUsage = AUDIO_USAGE_NOTIFICATION; in audioUsageFromHal() 496 *usage = audio_usage_to_string(halUsage); in audioUsageFromHal() 500 ALOGE("Unknown audio usage %d", halUsage); in audioUsageFromHal() 505 status_t HidlUtils::audioUsageToHal(const AudioUsage& usage, audio_usage_t* halUsage) { in audioUsageFromHal() argument [all …]
|
/hardware/interfaces/audio/common/all-versions/default/ |
D | HidlUtils.cpp | 99 status_t HidlUtils::audioUsageFromHal(audio_usage_t halUsage, AudioUsage* usage) { in audioUsageFromHal() argument 100 switch (halUsage) { in audioUsageFromHal() 108 *usage = static_cast<AudioUsage>(halUsage); in audioUsageFromHal() 113 status_t HidlUtils::audioUsageToHal(const AudioUsage& usage, audio_usage_t* halUsage) { in audioUsageToHal() argument 114 *halUsage = static_cast<audio_usage_t>(usage); in audioUsageToHal()
|
D | HidlUtils.h | 57 static status_t audioUsageFromHal(audio_usage_t halUsage, AudioUsage* usage); 58 static status_t audioUsageToHal(const AudioUsage& usage, audio_usage_t* halUsage);
|
/hardware/interfaces/audio/common/all-versions/default/tests/ |
D | hidlutils_tests.cpp | 765 audio_usage_t halUsage; in TEST() local 767 EXPECT_EQ(NO_ERROR, HidlUtils::audioUsageToHal(usage, &halUsage)) in TEST() 769 EXPECT_EQ(NO_ERROR, HidlUtils::audioUsageFromHal(halUsage, &usageBack)) in TEST() 770 << "Conversion of usage " << halUsage << " failed"; in TEST()
|