summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/classifier/Classifier.java
Commit message (Collapse)AuthorAgeFilesLines
* Apply falsing manager on seekbarMichael Mikhail2022-09-281-1/+3
| | | | | | | | | | | Check false taps and touches on seekbar change listener whenever touch is finished. This ensures that all falsing actions are handled besides OnFling events that are handled. Bug: 243040927 Test: manual Test: atest SeekBarViewModelTest Change-Id: I60bcc3196cc2a4b3410c7851f798bfaf87d9e456
* Analyze vertical swipes on QS's Scroll View.Dave Mankoff2022-09-201-2/+4
| | | | | | | | | | | | | | | | | When media controls are shown, the full qs+media controls often takes up more than one full screen. Swiping up on this causes the qs to vertically scroll instead of collapse. Prior to this cl, we weren't analyzing such swipes in the FalsingManager. Now we do. No explicit action is taken in the event of a false swipe. It simply gives us more signal. Enough bad swipes may implicitly cause the lock screen to reset itself. Fixes: 241708312 Test: manual Change-Id: I5adfb3a22b2f0f51efb87d56a6cfc5459cd67006
* Always show lock icon if device is lockedBeverly2021-07-011-2/+2
| | | | | | | | | | | - Previously lock icon would only show on devices with udfps or face auth enabled. - Icon is only clickable if udfps is enrolled OR device is unlocked Bug: 192355838 Fixes: 187083137 Test: manual Change-Id: I2bf160ba2e09d215a95dce05a55bdbf1ed587e63
* Recognize the Back Gesture in the FalsingManager.Dave Mankoff2021-04-271-1/+3
| | | | | | | | | Remove calls to Dependency.get from EdgeBackGestureHandler, making it injectable. Bug: 186011223 Test: manual Change-Id: I3d5e6b27f6afa46dcee88b6818f0b19722181421
* Register side swipes on the QS with the FalsingManager.Dave Mankoff2021-04-191-1/+3
| | | | | | Fixes: 184843242 Test: manual && atest SystemUITests Change-Id: I6141996e1fdb385d2578a4e56eb1df7e7b5bd6bc
* Analyze Falsing on Expanded Notif Shade.Dave Mankoff2021-04-081-2/+7
| | | | | | | | | | | | | | Ensure that gestures on the expanded notification shade are picked up properly by the FalsingManager. This adds `SHADE_DRAG` and `QS_COLLAPSE` falsing interaction types to cover these cases. Also, try to limit calling on the FalsingManager until a gesture is actually ready to occur, instead of querying it while deciding what the current gesture is. Fixes: 184042853 Test: manual Change-Id: I1f651614d4d1520bac1a2375319f69fb1017505f
* Add falsing checks to udfps affordanceBeverly2021-04-071-1/+5
| | | | | | | | | | | | | | | Check falsing manager to determine whether taps on the DisabledUdfps affordances should be used. Update logic for showing DisabledUdfps controller and UdfpsKeyguardView so that they don't show when QS is expanded. Show DisabledUdfps view on tap and on long press. Test: manual Bug: 184290268 Bug: 183910378 Change-Id: I677062b0990ac450589e29e293f7c9de41296dd5
* Add Falsing to the QS BrightnessSliderDave Mankoff2021-03-291-1/+3
| | | | | | | | | This ensures that interactions with the BrightnessSlider are classified as valid gestures by the FalsingManager. Bug: 172655679 Test: manual Change-Id: Ifeb235befc6b1342fc64b671b7704d0fdaa39349
* Remove old falsing implementation.Dave Mankoff2020-11-161-5/+0
| | | | | | | | This code has not been used since Android P. Bug: 172655679 Test: manual && atest SystemUITests Change-Id: I2b96af477b063bcbb68c48951121258e56bbfff2
* Add base class for new falsing manager and classifiers.Dave Mankoff2019-06-191-0/+19
| | | | | | | | | This adds no functional changes. It merely adds the framework for a new FalsingManager. Change-Id: I7f0e3b1363c847fa1eefa54bf7793508fefd1926 Test: manual. Bug: 111394067
* Introducing new PulseExpansionHandler for dragging down while pulsingSelim Cinek2019-02-281-0/+1
| | | | | | | | This also uses the same wake-up animation now when we're pulsing. Test: atest SystemUITests Bug: 125942236 Change-Id: I34a0eff6ecc2280aa983740e4273b344d073ca6e
* Bouncer animationLucas Dupin2018-03-091-0/+1
| | | | | | | | | | | | | | More obvious animation where bouncer position is influenced by touches. Test: Pull up bouncer, press back button Test: Pull up bouncer, unlock with fp Test: Unlock with fp with bouncer hidden Test: Unlock with SmartLock Test: Ask for auth on top of FLAG_SHOW_WHEN_LOCKED activity, press back Test: packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java Fixes: 3699775 Change-Id: I016dfa17f17571261691669c82385d2d844c5917
* Fix bug and add logging in FalsingManagerAdrian Roos2016-03-041-0/+2
| | | | | | | | | | | | | | 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
* Add HistoryEvaluatorBlazej Magnowski2015-09-231-8/+2
| | | | | | | | 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
* Add FalsingManager and Classifier to SystemUIBlazej Magnowski2015-09-151-0/+57
Adds the possibility to analyze and classify touch and sensor events as human or false touches. Change-Id: I5079c02406d532fea38ca2d302e8606effae0696