summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Jean-Michel Trivi <jmtrivi@google.com> 2021-12-08 18:40:08 -0800
committer Jean-Michel Trivi <jmtrivi@google.com> 2021-12-09 17:47:53 +0000
commitbec223b3375cff5a89929533105e91bb31e610e7 (patch)
treef396bd3a083cb4e4fe475784c611c4ebec597940 /libs/input/PointerController.cpp
parentb4d9a3dfec6f6894fd8c2cc90a417445da31f3c4 (diff)
Audio focus: fix delayed focus request during locked focus behavior
Fix issue where if audio focus was requested with GAIN, and accepted delayed focus, while focus was locked, then previous focus owners didn't receive LOSS, and thus would be removed from the stack. The fix consists in propagating the focus loss through the stack under the focus locker, and remove any focus loser if the loss was definitive. In order to simulate the bug conditions, the test API for simulating focus requests and abandons, was modified to support locking the focus like in a phone call. Bug: 206856107 Test: atest AudioFocusTest#testAudioFocusDelayedByCall Test: atest AudioFocusTest#testAudioFocusTransientDelayedByCall Change-Id: I211cd46b66c882499bfa43718bc0cb37b2f79817
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions