commit | d2392b543ff1effd1c051d2292fd587ee2a3c6ac | [log] [tgz] |
---|---|---|
author | Siarhei Vishniakou <svv@google.com> | Tue Jan 24 06:32:04 2023 -0800 |
committer | Siarhei Vishniakou <svv@google.com> | Tue Jan 24 06:32:04 2023 -0800 |
tree | fc8089d75356f0deb461523407c304c900477980 | |
parent | ac6cd6146a9166f40df02eeef57830d312c8d445 [diff] |
Update KL and KCM usages for new optional outputs We updated some APIs to return std::optional. Use those APIs here in the jni code. Per our docs for MotionEvent and KeyEvent, in the event of failure, we should be returning -1 and KEYCODE_UNKNOWN, respectively, so update the code to actually follow this spec. Bug: 266400536 Test: m Change-Id: I8e414b1ec104a6458b1bc45b220eb9eeef99df21