Propagate PointerContext for UDFPS touch events

Bug: 218388821
Test: on device with a fingerprint HAL
Change-Id: Ia3459da79f42ed0711448bbf4652bc6dd1b04abb
This commit is contained in:
Ilya Matyukhin
2022-12-03 19:34:48 -08:00
parent 1a42bcae83
commit 42da4c0666

View File

@@ -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();
}
}
/**