Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9df49f5c authored by Ilya Matyukhin's avatar Ilya Matyukhin Committed by Presubmit Automerger Backend
Browse files

[automerge] Tighten the scope of ACTION_UDFPS_ILLUMINATE 2p: 78ac57b0

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17627878

Bug: 221125251
Change-Id: I722e590a54bb1fcc8ae59f2d9a866d6450d2a7f5
parents 8896f2ed 78ac57b0
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -376,7 +376,6 @@ public class UdfpsController implements DozeReceiver {
                boolean withinSensorArea =
                        isWithinSensorArea(udfpsView, event.getX(), event.getY(), fromUdfpsView);
                if (withinSensorArea) {
                    mLatencyTracker.onActionStart(LatencyTracker.ACTION_UDFPS_ILLUMINATE);
                    Trace.beginAsyncSection("UdfpsController.e2e.onPointerDown", 0);
                    Log.v(TAG, "onTouch | action down");
                    // The pointer that causes ACTION_DOWN is always at index 0.
@@ -792,6 +791,7 @@ public class UdfpsController implements DozeReceiver {
                    + " current: " + mOverlay.getRequestId());
            return;
        }
        mLatencyTracker.onActionStart(LatencyTracker.ACTION_UDFPS_ILLUMINATE);

        if (!mOnFingerDown) {
            playStartHaptic();
@@ -806,11 +806,9 @@ public class UdfpsController implements DozeReceiver {

        final UdfpsView view = mOverlay.getOverlayView();
        if (view != null) {
            Trace.beginAsyncSection("UdfpsController.e2e.startIllumination", 0);
            view.startIllumination(() -> {
                mFingerprintManager.onUiReady(requestId, mSensorProps.sensorId);
                mLatencyTracker.onActionEnd(LatencyTracker.ACTION_UDFPS_ILLUMINATE);
                Trace.endAsyncSection("UdfpsController.e2e.startIllumination", 0);
            });
        }