commit | 0fe0126d4a0cab98a8c5cc92496d7abe9f0fb781 | [log] [tgz] |
---|---|---|
author | Siarhei Vishniakou <svv@google.com> | Mon Apr 17 08:11:37 2023 -0700 |
committer | Siarhei Vishniakou <svv@google.com> | Mon Apr 17 15:14:58 2023 -0700 |
tree | 9b902cb1b6b1818da3ae815e8b47c30fa3d33b63 | |
parent | 25af133b3a6249b9414a365e40acb43b2b93ecf2 [diff] |
Use std::map for fallback keys Before this CL, custom data structures were used to store fallback keys. Those structures have some known bugs. To fix this, convert to std::map and use std::optional to store the result of fallback key lookup. Bug: 278299254 Test: m inputflinger_tests && $ANDROID_HOST_OUT/nativetest64/inputflinger_tests/inputflinger_tests Change-Id: Id37c41694d0b4cfa2ae107b7db13e9389d21c562