From 8f561169dc1ce4c6696804e884d842bede05bb77 Mon Sep 17 00:00:00 2001 From: jasonwshsu Date: Mon, 23 Dec 2024 17:00:39 +0800 Subject: [HA Input] Show notification to hint user can change input device when calling * Listen to phone state 'CALL_STATE_OFFHOOK' and show notification when hearing device is connected * 'Switch' action button on notification to temporary switch input device * 'Settings' action button on notification to launch to device details page * Tap on notification to also bring user to device details page Bug: 349255906 Test: atest HearingDevicePhoneCallNotificationControllerTest SystemNotificationChannelsTest Flag: com.android.settingslib.flags.hearing_devices_input_routing_control Change-Id: Ic4920e2fde5e0c002018b15c2734a3b27b60d038 --- proto/src/system_messages.proto | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'proto/src') diff --git a/proto/src/system_messages.proto b/proto/src/system_messages.proto index 648990588d29..3a38152825c9 100644 --- a/proto/src/system_messages.proto +++ b/proto/src/system_messages.proto @@ -420,5 +420,9 @@ message SystemMessage { // Notify the user that accessibility floating menu is hidden. // Package: com.android.systemui NOTE_A11Y_FLOATING_MENU_HIDDEN = 1009; + + // Notify the hearing aid user that input device can be changed to builtin device or hearing device. + // Package: android + NOTE_HEARING_DEVICE_INPUT_SWITCH = 1012; } } -- cgit v1.2.3-59-g8ed1b