summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author Daniel Norman <danielnorman@google.com> 2023-04-18 16:39:28 -0700
committer Daniel Norman <danielnorman@google.com> 2023-04-20 14:53:38 -0700
commit1dcf728134c881e6fffab6f60e4bc1404f5be2c3 (patch)
tree50d2f749d385237872170b7365a97d4c15cc47a0 /libs/androidfw/ZipFileRO.cpp
parent9188aa60688692d205e85a2131c396e8669f0f4e (diff)
Updates the HEADSETHOOK system action to directly answer/hangup calls.
Updated in both the legacy system (SystemActionPerformer) as well as the new system (SystemActions in SysUI), in case a device does not use the new SysUI style. This preserves the HEADSETHOOK accessibility system action behavior while allowing the telecom team the ability to change the listener behavior for these key events. - If a call is incoming: answer the call - If a call is in progress: hang up the call - Otherwise: send the KeyEvent so that media is played/paused Bug: 278177899 Test: Unit test with mocks: atest SystemActionsTest Test: CTS within the Telecom test suite: atest android.telecom.cts.AccessibilitySystemActionTest Test: manual with a service that sends this system action Change-Id: I735b3a14cefb6322ed1535ded83c4a08df4ada1a
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions