summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Eric Laurent <elaurent@google.com> 2022-08-29 18:44:41 +0200
committer Eric Laurent <elaurent@google.com> 2022-09-09 15:33:16 +0200
commit8abd858bfdbf551f7307e253749d219df3acba54 (patch)
treedead700782fd2f382e2de671490cc2372ac31b80 /libs/androidfw/ResourceTimer.cpp
parent0ae95adba600ce3579dead7c3e8e8a4208a4a902 (diff)
AudioDeviceBroker: Bluetooth LE communication route compatibility
Implement compatibility mode for Bluetooth LE audio or Hearing Aid (HA) deviced and VoIP apps targetting a SDK before 32. Before SDK 31 (Android S), there is no API to control routing to those devices and users will not understand why their Bluetooth LE or HA device does not work for popular VoIP applications. We set the bar at SDK 32 to leave a grace period for app developers to adopt the new API. In order to offer a better UX during the transition period when applications migrate to the new routing APIs (AudioManager.setCommunicationDevice()), we select the HA or LE Audio device by default for VoIP calls if connected. This behavior is similar to what is done for wired headsets and users can transfer the call to the earpiece by disconnecting the Bluetooth device. Speaker phone ON/OFF function still works. We do not implement this compatibility mode for cell calls (audio mode IN_CALL) because the Dialer app has already migrated to new APIs and supports Bluetooth LE Audio adn HA devices. Bug: 243827847 Test: regression on Voice and VoIP calls with HFP profile Change-Id: I5d4391896a407dad9853ee7a0b964c4ebba203d6
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions