Commit 40aee53
committed
InputReader_test: Wait for stylus gesture to be notified
This is required because of the following change:
I818b1e688565d30867295019c5baae29cb5bdbf2
Previously, the policy was notified of the stylus gesture changing
before the events were flushed to the listener. This meant the policy
was always notified of the stylus gesture by the time the listener
received the stylus DOWN event.
After the aforementioned change, this is no longer true, so we cannot
use the DOWN event as a sync signal. Instead, we need to wait for the
policy to be notified.
Bug: 324318955
Test: atest inputflinger_tests
Change-Id: I8219e0db092c14da5907337b3ea5b5c6f7dddd4a1 parent fa32f89 commit 40aee53
2 files changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
52 | | - | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| |||
258 | 264 | | |
259 | 265 | | |
260 | 266 | | |
261 | | - | |
| 267 | + | |
| 268 | + | |
262 | 269 | | |
263 | 270 | | |
264 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | 105 | | |
107 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| |||
0 commit comments