Commit 4942d6c
Jimmy
Refactor interceptKeyBeforeDispatching to use variant
Use <variant> as interceptKeyBeforeDispatching can have either
a KeyEntry::InterceptKeyResult or nsecs_t to indicate state or
amount of delay on a key interception attempt.
Bug: 384113980
Test: compile + local
Flag: EXEMPT refactor
Change-Id: I90a67a7ba2efc0ff7e03ddb0d11193902021f4be1 parent 3c3d749 commit 4942d6c
4 files changed
Lines changed: 31 additions & 14 deletions
File tree
- services/inputflinger
- dispatcher
- include
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
6608 | 6609 | | |
6609 | 6610 | | |
6610 | 6611 | | |
| 6612 | + | |
6611 | 6613 | | |
6612 | 6614 | | |
6613 | 6615 | | |
6614 | 6616 | | |
6615 | | - | |
| 6617 | + | |
| 6618 | + | |
6616 | 6619 | | |
6617 | 6620 | | |
6618 | 6621 | | |
6619 | 6622 | | |
6620 | 6623 | | |
6621 | 6624 | | |
6622 | | - | |
6623 | | - | |
6624 | | - | |
6625 | | - | |
6626 | | - | |
| 6625 | + | |
| 6626 | + | |
| 6627 | + | |
| 6628 | + | |
| 6629 | + | |
| 6630 | + | |
6627 | 6631 | | |
6628 | | - | |
| 6632 | + | |
6629 | 6633 | | |
6630 | 6634 | | |
6631 | 6635 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
409 | 411 | | |
410 | 412 | | |
411 | 413 | | |
412 | | - | |
413 | | - | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
414 | 417 | | |
415 | | - | |
| 418 | + | |
416 | 419 | | |
| 420 | + | |
417 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
418 | 426 | | |
419 | 427 | | |
420 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
192 | | - | |
| 194 | + | |
| 195 | + | |
193 | 196 | | |
194 | 197 | | |
195 | 198 | | |
| |||
0 commit comments