summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/classifier/FalsingModule.java
Commit message (Collapse)AuthorAgeFilesLines
* Don't report non-foldables as unfolded.Dave Mankoff2023-03-241-0/+13
| | | | | | | | | | | | The FoldStateListener is reporting non-foldable phones as unfolded. Previously, Falsing relied on this being null. Inspect the foldability of a device directly and incorporate this into the FalsingDataProvider. Bug: 274914759 Test: manual && atest SystemUITests:com.android.systemui.classifier Change-Id: Ibe768067d69464b14368ae0d67110453f9368c6a
* Adding isFalseLongTap methodMichael Mikhail2022-11-031-0/+8
| | | | | | | | | | Adds isFalseLongTap method and makes an absract class for SingleTap and LongTap as they only differ in touch slop. Bug: 241487855 Test: atest BrightLineClassifierTest Test: atest BrightLineFalsingManagerTest Change-Id: Ia606afe2ebe5c454bcc74294210ced52f63e33ef
* Add Tests for the BrightLineFalsingManager.Dave Mankoff2020-12-011-0/+53
| | | | | | | | | | Sets up some more dagger injection and removes all the "new Classifier(...)" from its constructor, allowing them to come from outside. Bug: 172655679 Test: atest SystemUITests Change-Id: I916de7d5ee60ec2183c6401ec222867fc5eff823
* Refactor parts of FalsingManager into FalsingCollectorDave Mankoff2020-11-201-0/+31
This CL separates out the two roles of the FalsingManager. It introduces the FalsingCollector, used by SystemUI to report events that may be interesting to Falsing, such as touch events, sensor events, and general user actions. The FalsingManager, meanwhile, continues to support the methods This helps breakup the monolithic FalsingManger into more manageable pieces, reducing the API surface area of FalsingManager significantly. Bug: 172655679 Test: atest SystemUITests && manual Change-Id: I92f8e3747f5c4a04eaa64e1a8b626c2a07c480aa