From c8d7bb7c84e09362a4dcaaeb4b7102f1b180893a Mon Sep 17 00:00:00 2001 From: Kevin Rocard Date: Tue, 30 Jan 2018 18:57:48 -0800 Subject: [PATCH] Audio V4: Only expose one notification usage Too many usages detail were previously exposed to the HAL. All usages that should be handled identically by the HAL are now the same value. - All notification types are now the same usages Test: build Bug: 38184704 Change-Id: I2096f995e249ab02bc29449c6d1a65b521dc13f7 Signed-off-by: Kevin Rocard --- audio/common/4.0/types.hal | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/audio/common/4.0/types.hal b/audio/common/4.0/types.hal index b1c15f3211..2c6e0a3d65 100644 --- a/audio/common/4.0/types.hal +++ b/audio/common/4.0/types.hal @@ -652,6 +652,7 @@ enum AudioInputFlag : int32_t { enum AudioUsage : int32_t { // These values must kept in sync with // frameworks/base/media/java/android/media/AudioAttributes.java + // Note that not all framework values are exposed UNKNOWN = 0, MEDIA = 1, VOICE_COMMUNICATION = 2, @@ -659,10 +660,6 @@ enum AudioUsage : int32_t { ALARM = 4, NOTIFICATION = 5, NOTIFICATION_TELEPHONY_RINGTONE = 6, - NOTIFICATION_COMMUNICATION_REQUEST = 7, - NOTIFICATION_COMMUNICATION_INSTANT = 8, - NOTIFICATION_COMMUNICATION_DELAYED = 9, - NOTIFICATION_EVENT = 10, ASSISTANCE_ACCESSIBILITY = 11, ASSISTANCE_NAVIGATION_GUIDANCE = 12, ASSISTANCE_SONIFICATION = 13,