| commit | f13161a18414986a44354485126473bd8d5c36e6 | [log] [tgz] |
|---|---|---|
| author | Harry Cutts <hcutts@google.com> | Wed Mar 08 14:15:49 2023 +0000 |
| committer | Harry Cutts <hcutts@google.com> | Tue Mar 14 16:19:46 2023 +0000 |
| tree | adb8bea74347b9efcfd9f8cd1ecd86872a346d28 | |
| parent | 68782cf40caa44734ed29a63dc35a48014536bf1 [diff] |
input: use optionals for PropertyMap getters
Using optionals rather than returning a boolean forces the caller to
check whether the property is present, enforced by the compiler, and
also allows a more succinct syntax in some cases.
Bug: 245989146
Test: atest inputflinger_test
Test: connect Apple Magic Trackpad 2, check that gesture properties are
set correctly in dumpsys input
Change-Id: Ia0fde1f67269e6e7149f297def626e572fd7790f