summaryrefslogtreecommitdiff
path: root/flags
diff options
context:
space:
mode:
authorPranav Madapurmath <pmadapurmath@google.com>2023-10-23 09:49:00 -0700
committerPranav Madapurmath <pmadapurmath@google.com>2023-10-25 21:41:57 +0000
commit96cb64ba5d8fa35fab1b2276185ed9443cbfa8b4 (patch)
treef975f8d7937e37d70c620d67378d583aba96cc71 /flags
parent49d602209227c42e21393064e6b08bcf5ac035c8 (diff)
downloadTelecomm-96cb64ba5d8fa35fab1b2276185ed9443cbfa8b4.tar.gz
Prevent auto-routing to wearable devices.
Currently, if BT is supported, Telecom will auto-route to one of the available devices. Consequently, a watch that is paired with the phone will receive the call audio when it is not explicitly requested. This CL ensures that implicit routing to watches is ignored. When connecting an arbitrary BT device, the wearable devices need to be filtered out. Wearable (Pixel) devices are distinguishable by their class/type (BluetoothClass.Device.WEARABLE_WRIST_WATCH, BluetoothDevice.DEVICE_TYPE_WATCH). In addition to that, if there are no devices to connect to, fallback is required to ensure that the audio route is properly handled. Bug: 294378768 Test: Manual test with wired headset plugged in and Pixel watch paired. Unplugged headset during call to verify that audio is routed to earpiece and that there aren't any issues with user switching to the watch. Test: Unit test verifying that the audio is routed into another supported route when there are no non-wearable devices to arbitrarily connect to. Change-Id: I14be322037ad968009850d69387ad1aca76a0e05
Diffstat (limited to 'flags')
-rw-r--r--flags/telecom_callaudioroutestatemachine_flags.aconfig9
1 files changed, 8 insertions, 1 deletions
diff --git a/flags/telecom_callaudioroutestatemachine_flags.aconfig b/flags/telecom_callaudioroutestatemachine_flags.aconfig
index 9da150762..7ff144063 100644
--- a/flags/telecom_callaudioroutestatemachine_flags.aconfig
+++ b/flags/telecom_callaudioroutestatemachine_flags.aconfig
@@ -15,8 +15,15 @@ flag {
}
flag {
+ name: "ignore_auto_route_to_watch_device"
+ namespace: "telecom"
+ description: "Ignore auto routing to wearable devices."
+ bug: "294378768"
+}
+
+flag {
name: "transit_route_before_audio_disconnect_bt"
namespace: "telecom"
description: "Fix audio route transition issue on call disconnection when bt audio connected."
bug: "306113816"
-}
+} \ No newline at end of file