summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2021-12-30 22:03:17 +0800
committer Riddle Hsu <riddlehsu@google.com> 2021-12-30 22:04:35 +0800
commitc912bccc60a613307c703409964b06d6ebfd7ba4 (patch)
tree6e76801f31f0ce2bf53a54d92a86a67f3d45d41d /libs/input/PointerController.cpp
parentd29ddfd18b19f03dd33e59248496c06a0f3c5f69 (diff)
Fix flakiness of testTaskChangeCallBacks
1. The test asserts that there will be onDetachedFromWindow. But if finishAndRemoveTask is called too early before the window is attached, there won't be the callback. So make sure that onAttachedToWindow is called before triggering the removal. 2. The task removal callback may come from previous test. So only count down the latch for removal if the incoming task id is the one created by the current test method. Also - Create virtual display only if needed. - Replace deprecated callback of TaskStackListener. Fixes: 212682767 Test: atest TaskStackChangedListenerTest#testTaskChangeCallBacks Change-Id: Idcfcef3b2a5162cc6b5496ff0a448f8399984dbe
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions