summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2018-05-04 16:08:22 -0700
committerSiarhei Vishniakou <svv@google.com>2018-05-08 17:07:36 -0700
commit81e1ffd4064ec2714bafe424670d3388d2497d35 (patch)
tree675e0bf0c291726fb548c2b6baf466fa0b977b7f /tools/aapt2/java/JavaClassGenerator_test.cpp
parentd24c5de8345ab2d72644a2e3a56d70d246029928 (diff)
Add full unlock gesture to FalsingManager
When FalsingManager.onBouncerShown() is called, this will cause the MotionEvents to no longer be added to the HumanInteractionClassifier, which means that the classifier will have to work with only partial gesture, and will not be able to make a proper decision on unlock. This would cause many valid unlock gestures to fail. Instead, record the state of the bouncer visibility at the beginning of each MotionEvent (on ACTION_DOWN). Then, if the bouncer was not visible, add the full gesture to the HumanInteractionClassifier. Test: recorded a valid unlock event with inputstudio, then replayed it with and without the change. Consistently succeeded with unlock with this patch, and failed many times (but not always) before the change. Bug: 71762354 Change-Id: Ib93f21bff19c36aa296ddf6ed9a0a3e879eeb69c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions