Loading packages/SystemUI/src/com/android/systemui/biometrics/UdfpsController.java +6 −3 Original line number Diff line number Diff line Loading @@ -553,6 +553,10 @@ public class UdfpsController implements DozeReceiver, Dumpable { + mOverlay.getRequestId()); return false; } if (mLockscreenShadeTransitionController.getQSDragProgress() != 0f || mPrimaryBouncerInteractor.isInTransit()) { return false; } final TouchProcessorResult result = mTouchProcessor.processTouch(event, mActivePointerId, mOverlayParams); Loading Loading @@ -626,9 +630,8 @@ public class UdfpsController implements DozeReceiver, Dumpable { shouldPilfer = true; } // Execute the pilfer, never pilfer if a vertical swipe is in progress if (shouldPilfer && mLockscreenShadeTransitionController.getQSDragProgress() == 0f && !mPrimaryBouncerInteractor.isInTransit()) { // Execute the pilfer if (shouldPilfer) { mInputManager.pilferPointers( mOverlay.getOverlayView().getViewRootImpl().getInputToken()); } Loading packages/SystemUI/tests/src/com/android/systemui/biometrics/UdfpsControllerTest.java +5 −3 Original line number Diff line number Diff line Loading @@ -1388,7 +1388,7 @@ public class UdfpsControllerTest extends SysuiTestCase { } @Test public void onTouch_withNewTouchDetection_doNotPilferWhenPullingUpBouncer() public void onTouch_withNewTouchDetection_doNotProcessTouchWhenPullingUpBouncer() throws RemoteException { final NormalizedTouchData touchData = new NormalizedTouchData(0, 0f, 0f, 0f, 0f, 0f, 0L, 0L); Loading Loading @@ -1427,8 +1427,10 @@ public class UdfpsControllerTest extends SysuiTestCase { mBiometricExecutor.runAllReady(); moveEvent.recycle(); // THEN the touch is NOT pilfered verify(mInputManager, never()).pilferPointers(any()); // THEN the touch is NOT processed verify(mFingerprintManager, never()).onPointerDown(anyLong(), anyInt(), anyInt(), anyFloat(), anyFloat(), anyFloat(), anyFloat(), anyFloat(), anyLong(), anyLong(), anyBoolean()); } @Test Loading Loading
packages/SystemUI/src/com/android/systemui/biometrics/UdfpsController.java +6 −3 Original line number Diff line number Diff line Loading @@ -553,6 +553,10 @@ public class UdfpsController implements DozeReceiver, Dumpable { + mOverlay.getRequestId()); return false; } if (mLockscreenShadeTransitionController.getQSDragProgress() != 0f || mPrimaryBouncerInteractor.isInTransit()) { return false; } final TouchProcessorResult result = mTouchProcessor.processTouch(event, mActivePointerId, mOverlayParams); Loading Loading @@ -626,9 +630,8 @@ public class UdfpsController implements DozeReceiver, Dumpable { shouldPilfer = true; } // Execute the pilfer, never pilfer if a vertical swipe is in progress if (shouldPilfer && mLockscreenShadeTransitionController.getQSDragProgress() == 0f && !mPrimaryBouncerInteractor.isInTransit()) { // Execute the pilfer if (shouldPilfer) { mInputManager.pilferPointers( mOverlay.getOverlayView().getViewRootImpl().getInputToken()); } Loading
packages/SystemUI/tests/src/com/android/systemui/biometrics/UdfpsControllerTest.java +5 −3 Original line number Diff line number Diff line Loading @@ -1388,7 +1388,7 @@ public class UdfpsControllerTest extends SysuiTestCase { } @Test public void onTouch_withNewTouchDetection_doNotPilferWhenPullingUpBouncer() public void onTouch_withNewTouchDetection_doNotProcessTouchWhenPullingUpBouncer() throws RemoteException { final NormalizedTouchData touchData = new NormalizedTouchData(0, 0f, 0f, 0f, 0f, 0f, 0L, 0L); Loading Loading @@ -1427,8 +1427,10 @@ public class UdfpsControllerTest extends SysuiTestCase { mBiometricExecutor.runAllReady(); moveEvent.recycle(); // THEN the touch is NOT pilfered verify(mInputManager, never()).pilferPointers(any()); // THEN the touch is NOT processed verify(mFingerprintManager, never()).onPointerDown(anyLong(), anyInt(), anyInt(), anyFloat(), anyFloat(), anyFloat(), anyFloat(), anyFloat(), anyLong(), anyLong(), anyBoolean()); } @Test Loading