summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/classifier/FalsingManagerImpl.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove old falsing implementation.Dave Mankoff2020-11-161-589/+0
| | | | | | | | This code has not been used since Android P. Bug: 172655679 Test: manual && atest SystemUITests Change-Id: I2b96af477b063bcbb68c48951121258e56bbfff2
* Add Tap falsing to the FalsingManager.Dave Mankoff2020-11-161-0/+10
| | | | | | | | | | | | | | | | | | | This moves some of the functionality of DoubleTapHelper into the FalsingManager. This also gives the FalsingManager an opportunity to approve single-taps. Currently, all single-taps are rejected, but future work may enable single-tap falsing. DoubleTapHelper is renamed to NotificationTapHelper to better reflect its purpose. The FalsingManager now maintains a record of past gestures for analysis, wherease prior it only ever kept the most recent tap. Bug: 172655697 Test: manual && atest SystemUITests Change-Id: I58f3d25881b0a3ce14e47b72287dd6a1a9307852
* Pass interaction type to FalsingManager.isFalseDave Mankoff2020-08-241-1/+1
| | | | | | | | | | | | This ensures that the falsing manager always is testing against the correct interaction type when it is asked. Prior to this change, we could end up in states where a user was swiping down (opening the quick settings) but the falsing manager believed the user was trying to unlock the phone. Fixes: 160967364 Test: atest SystemUITests && manual Change-Id: I176f54a768622dec3e758a7f01ed8aec26223648
* Making the media carousel dismissableSelim Cinek2020-06-191-3/+3
| | | | | | | | | | The carousel can now be dismissed when swiping on the last card Dismissing the carousel will make all active players inactive and resumable. Bug: 159159195 Test: add media notifications, swipe them away! Change-Id: Ia42886fa2b50ac0b06824480cf615237d663367f
* Ignore falsing manager for UiAutomator testsLucas Dupin2020-02-281-0/+5
| | | | | | | | | | Device performance and dropped frames on cloud devices makes it very likely that touches will be misinterpreted, increasing flakiness of the tests. Bug: 149828540 Test: atest --test-mapping frameworks/base/packages/SystemUI:platinum-postsubmit Change-Id: Ia9b4152b2662fa5a7442cacfd1a87064b037ea0c
* Implementations of biometric contraints for weak and convenience tiersHaining Chen2020-02-191-1/+2
| | | | | | | | | | | | | | (1) 24 hours fallback (2) 4 hours idle timeout Bug: 141025588 Test: atest AuthServiceTest Test: atest KeyguardUpdateMonitorTest Test: atest BiometricsUnlockControllerTest Test: atest KeyguardIndicationControllerTest Test: make -j Change-Id: I1078ce39a2ae1e4c250b6468e477b703e3016e2c
* Unregister prox sensor when QS or Bouncer are expanded.Dave Mankoff2020-02-111-1/+1
| | | | | | | | | The FalsingManager doesn't need the prox sensor when its not being used. Bug: 149307116 Test: atest SystemUITests Change-Id: Ib68c0a269c9f94b1a1bb0ba137a2bb5fde340bba
* Disable falsing when resting on a Dock.Dave Mankoff2020-01-031-3/+3
| | | | | | | | | | | | Fix typo: Classifer -> Classifier. Use Executor instead of Handler in falsing related code. Show a dump of BrightLingFalsing related information. Bug: 139785197 Test: atest SystemUITests && manual. Change-Id: I3be68cb9f27ccfb5a686947cc85aae74f21f099c
* Start removing Dependency.get(UiOffloadThread.class)Dave Mankoff2019-12-231-6/+7
| | | | | | | | | | | | This actually begins the process of deprecation and removing UiOffloadThread in favor of using Executors directly. This CL hits the easiest spots in the code. There are a few more remaining calls that should be in their own independent CLs. Bug: 146567476 Test: atest SystemUITests Change-Id: I2542cc61653f330a1931b15a57e3b7c77d18e2e6
* Make DozeSensors, DozeTriggers use ProximitySensorDave Mankoff2019-09-181-1/+1
| | | | | | | | | | | | | | | | | | This CL takes the features used in DozeSensors and applies them to the publicly available util.sensors.ProximitySensor class. It introduces a RateLimiter class for temprorarily suspending the ProximitySensor as requested. It introduces a ProximityCheck class for a quick, one time test of the proximity sensor. There is some reshuffling of Sensor related code to its own package as well. Bug: 141122220 Test: atest SystemUITests Change-Id: If126be9a56c6966c1678ee70fa6f4623e51361a7
* Fix the looper that KeyguardUpdateMonitor is using.Dave Mankoff2019-08-311-2/+2
| | | | | | Bug: 139051615 Test: atest SystemUITests && atest SystemUIGoogleTests Change-Id: Ic4dd5978001c208504c137cee41f363d7e70b1b5
* Add cleanup method to FalsingManager to prevent memory leaks.Dave Mankoff2019-07-161-0/+9
| | | | | | | | | When the FalsingManager gets reloaded (due to plugins) it can leak its listeners and callbacks. This change fixes that. Bug: 136351609 Test: manual Change-Id: I2b52d018d478dbcad4ecb7d8a5b361638d5c5877
* Add metrics logging to BrightLineFalsingManager.Dave Mankoff2019-07-111-2/+2
| | | | | | | | This metric was logged in the old manager but not the new one. Bug: 71762354 Change-Id: Ieca5d4659fc8eb60ba481c6daf495a69f8e0e9e6 Test: manual.
* Add support for FalsingPlugin to supply a replacement FalsingManager.Dave Mankoff2019-05-101-1/+2
| | | | | | Bug: 130256776 Test: Manual Change-Id: Icdf150e6e23d216f04a9243fe57919aa622706d5
* Assume all touches are valid after face authLucas Dupin2019-05-081-0/+22
| | | | | | | | | Biometric authentication is a strong user presense signal. Let's factor it into FalsingManager. Fixes: 132094802 Test: manual Change-Id: I799a07040faffa41e0990ada7cb73022e53315a3
* Change FalsingManager to an interface for easier swapping.Dave Mankoff2019-05-031-0/+540
This is a refactor. It touches a lot of files, but zero functionality. The primary change is changing FalsingManager.getInstance() into FalsingManagerFactory.getInstance(); chaning FalsingManager into an interface, and then turning the existing FalsingManager into FalsingManagerImpl, an implementation of that interface. Other changes are merely references to those classes. Bug: 130256776 Test: atest SystemUITests Change-Id: I5d64a7673e4efc554105dd841b27807361ed3828