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

Commit 42da4c06 authored by Ilya Matyukhin's avatar Ilya Matyukhin
Browse files

Propagate PointerContext for UDFPS touch events

Bug: 218388821
Test: on device with a fingerprint HAL
Change-Id: Ia3459da79f42ed0711448bbf4652bc6dd1b04abb
parent 1a42bcae
Loading
Loading
Loading
Loading
+32 −4
Original line number Diff line number Diff line
@@ -1014,8 +1014,22 @@ public class FingerprintManager implements BiometricAuthenticator, BiometricFing
            return;
        }

        // TODO(b/218388821): Propagate all the parameters to FingerprintService.
        Slog.e(TAG, "onPointerDown: not implemented!");
        final PointerContext pc = new PointerContext();
        pc.pointerId = pointerId;
        pc.x = x;
        pc.y = y;
        pc.minor = minor;
        pc.major = major;
        pc.orientation = orientation;
        pc.time = time;
        pc.gestureStart = gestureStart;
        pc.isAod = isAod;

        try {
            mService.onPointerDown(requestId, sensorId, pc);
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }
    }

    /**
@@ -1040,8 +1054,22 @@ public class FingerprintManager implements BiometricAuthenticator, BiometricFing
            return;
        }

        // TODO(b/218388821): Propagate all the parameters to FingerprintService.
        Slog.e(TAG, "onPointerUp: not implemented!");
        final PointerContext pc = new PointerContext();
        pc.pointerId = pointerId;
        pc.x = x;
        pc.y = y;
        pc.minor = minor;
        pc.major = major;
        pc.orientation = orientation;
        pc.time = time;
        pc.gestureStart = gestureStart;
        pc.isAod = isAod;

        try {
            mService.onPointerUp(requestId, sensorId, pc);
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }
    }

    /**