Commit Graph

13 Commits

Author SHA1 Message Date
Adrian Roos
6a04cb1efc Prevent Log.wtf crash in benign case
Fixes a crash that happens when you turn of the screen
while moving the finger. Some touches still come in even
when the screen went to sleep. No need to get upset over
those.

Bug: 27595423
Change-Id: If75ae3b6c2c83a87f38daaf8777f89d8c74a9cd1
2016-03-15 15:47:14 -07:00
Adrian Roos
401caaedd8 Fix bug and add logging in FalsingManager
Fixes bug that lead FalsingManager to be incorrect
about the screen on state.

Makes it a fatal error to query whether a touch is
falsing outside of an active session.

Prevents touch collection and logging on the locked
shade which needs no anti-falsing.

Bug: 27227578
Change-Id: I8e330ad28636156a952e61b8fe6a3d201f82e624
2016-03-04 15:09:29 -08:00
Adrian Roos
c5584ceaad Fix anti falsing detection
The falsing detection stopped listening for touches
when the lockscreen showed without turning the screen off.

This happens e.g. when SystemUI crashes, when switching users,
when ending lock-to-task.

As a result, the falsing detection usually got stuck on a bad
value and without further touches continued preventing all input.

Bug: 27227578
Change-Id: I6717c04b0271e4d2578b88fc584b6ad46492e497
2016-02-24 22:41:59 +00:00
Winson
c0d7058b14 Referencing static interpolators.
Change-Id: I5d2292016e869ed533f5873e373a1eccce651fc5
2016-01-29 11:15:43 -08:00
Adrian Roos
5c42df13a4 Flipping the bit on the HIC
Bug: 25186740
Change-Id: If1931cb1672ac9fcd588b621ce802200571cff8e
2016-01-27 08:48:42 -08:00
Blazej Magnowski
52af6b646b Fixes in FalsingManager Classifiers and Evaluators and in
DragDownHelper

Fixed couple nits, fixed a bug in DragDownHelper and in
EndPoinRatioClassifier, improved evaluation.

Change-Id: I27e9c5584f7bf0a834ac39791ee124ccc11ba0cf
2015-10-02 12:57:39 -07:00
Blazej Magnowski
4498d9cd8e added DirectionClassifier
Change-Id: I7361971b1b8a86eee346a94da9978eb8c33a33eb
2015-09-28 16:33:45 -07:00
Blazej Magnowski
a28de579c8 Improved angles variance and added the angles percentage evaluation
Change-Id: I312529ea89707d27a7ef1a5ffd6d94427eaf6e8f
2015-09-28 16:33:29 -07:00
Blazej Magnowski
91be2f88a5 notification drag down fix
Change-Id: I17ddf28a5096782fd42ab011f0dac002b152db0f
2015-09-25 12:38:36 -07:00
Blazej Magnowski
6dc59b48c0 Integration into other unlock mechanisms
Replaces all the older falsing thresholds unless the
HumanInteractionClassifier is disabled.

Change-Id: Idfc3cb1b6bc0bbdbc792cd75499f0c3b4f1b7142
2015-09-25 12:36:25 -07:00
Blazej Magnowski
68d0c9b1e9 added Classifiers and Evaluators
Change-Id: I9054c30cde665546de453e64572da619b1f6a799
2015-09-23 12:32:07 -07:00
Blazej Magnowski
9f01c5bfa5 Add HistoryEvaluator
Adds the possibility to store the evaluations for previous strokes and gestures.
Also and enables to take the history into account when classifying current
interatcions.

Change-Id: Ia8fa54a00daa80b4e5aebf11b11b568ed23165d4
2015-09-23 12:00:36 -07:00
Blazej Magnowski
0e2ffbd48b Add FalsingManager and Classifier to SystemUI
Adds the possibility to analyze and classify touch and sensor events as
human or false touches.

Change-Id: I5079c02406d532fea38ca2d302e8606effae0696
2015-09-15 18:28:49 -07:00