Skip to content
Snippets Groups Projects
Commit f13161a1 authored by Harry Cutts's avatar Harry Cutts
Browse files

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
parent 68782cf4
No related branches found
No related tags found
No related merge requests found
Showing
with 198 additions and 233 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment