diff options
author | Dave Mankoff <mankoff@google.com> | 2020-12-09 11:44:47 -0500 |
---|---|---|
committer | Dave Mankoff <mankoff@google.com> | 2021-01-05 15:55:22 -0500 |
commit | 8848abd1b5690ab922254ce5401bb6691f771548 (patch) | |
tree | db5dc756861713c8db645656cb60aacf8c27c898 /packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java | |
parent | 246e924066a726e94f0564ff5f687180f02a0b1c (diff) |
Add ability to ignore gestures in FalsingManager
This gives other parts of the system the ability to temporarily
override the falsing manager, telling it to ignore a given gesture.
The intent is to give other parts of the system a chance to include
their own falsing information (such as whether a button was tapped or
not), giving the FalsingManager more context about what is going on.
As of right now, their is no way to feedback this context-aware
falsing information back to the FalsingManager. An API for this is
still being explored.
Bug: 172655679
Test: atest SystemUITests && manual
Change-Id: I87ee94a2386622ebff7580346325ae07e3bb5f5d
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java index 6aa5e0df3653..1c691e7098a1 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardInputViewController.java @@ -26,6 +26,7 @@ import com.android.internal.util.LatencyTracker; import com.android.internal.widget.LockPatternUtils; import com.android.keyguard.KeyguardSecurityModel.SecurityMode; import com.android.systemui.R; +import com.android.systemui.classifier.FalsingCollector; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.util.ViewController; import com.android.systemui.util.concurrency.DelayableExecutor; @@ -155,6 +156,7 @@ public abstract class KeyguardInputViewController<T extends KeyguardInputView> private final Resources mResources; private LiftToActivateListener mLiftToActivateListener; private TelephonyManager mTelephonyManager; + private final FalsingCollector mFalsingCollector; @Inject public Factory(KeyguardUpdateMonitor keyguardUpdateMonitor, @@ -163,7 +165,7 @@ public abstract class KeyguardInputViewController<T extends KeyguardInputView> KeyguardMessageAreaController.Factory messageAreaControllerFactory, InputMethodManager inputMethodManager, @Main DelayableExecutor mainExecutor, @Main Resources resources, LiftToActivateListener liftToActivateListener, - TelephonyManager telephonyManager) { + TelephonyManager telephonyManager, FalsingCollector falsingCollector) { mKeyguardUpdateMonitor = keyguardUpdateMonitor; mLockPatternUtils = lockPatternUtils; mLatencyTracker = latencyTracker; @@ -173,6 +175,7 @@ public abstract class KeyguardInputViewController<T extends KeyguardInputView> mResources = resources; mLiftToActivateListener = liftToActivateListener; mTelephonyManager = telephonyManager; + mFalsingCollector = falsingCollector; } /** Create a new {@link KeyguardInputViewController}. */ @@ -191,17 +194,17 @@ public abstract class KeyguardInputViewController<T extends KeyguardInputView> return new KeyguardPinViewController((KeyguardPINView) keyguardInputView, mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, keyguardSecurityCallback, mMessageAreaControllerFactory, mLatencyTracker, - mLiftToActivateListener); + mLiftToActivateListener, mFalsingCollector); } else if (keyguardInputView instanceof KeyguardSimPinView) { return new KeyguardSimPinViewController((KeyguardSimPinView) keyguardInputView, mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, keyguardSecurityCallback, mMessageAreaControllerFactory, mLatencyTracker, - mLiftToActivateListener, mTelephonyManager); + mLiftToActivateListener, mTelephonyManager, mFalsingCollector); } else if (keyguardInputView instanceof KeyguardSimPukView) { return new KeyguardSimPukViewController((KeyguardSimPukView) keyguardInputView, mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, keyguardSecurityCallback, mMessageAreaControllerFactory, mLatencyTracker, - mLiftToActivateListener, mTelephonyManager); + mLiftToActivateListener, mTelephonyManager, mFalsingCollector); } throw new RuntimeException("Unable to find controller for " + keyguardInputView); |