summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Omar Abdelmonem <omarrr@google.com> 2024-09-09 14:01:54 +0000
committer Omar Abdelmonem <omarrr@google.com> 2024-09-10 14:38:14 +0000
commit4addccb46f5aa6710da305c86eb1f0ed0fd73cb4 (patch)
treed0fda956b9778e9ae5e9728bcf20774570f32dc4 /api/api.go
parent1c218092735c0f4268c9a551a2ea849336a08e21 (diff)
Handle multiple touchpads in TouchpadDebugViewController
Add logic to the TouchpadDebugViewController to be able to handle, multiple touchpad connection/disconnection, to avoid a state of having a touchpad connected but no View after original touchpad disconnection. Made sure that the View's colour only changes when a HardwareProperty of the same ID is received. Bug: 363979581 Test: Updated unit tests to test sending HardwareProperties with different deviceIds to the view and verify that only the one with the same deviceId affected the View. Manual testing by connecting multiple touchpads and verifying the result of disconnecting the first or second touchpad and making sure we get the desired behaviour. Flag: com.android.hardware.input.touchpad_visualizer Change-Id: I9dc8c53ed48e53002d9f13bed250d1a65ddbf20a
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions