summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorKevin Chyn <kchyn@google.com>2020-09-24 18:40:43 -0700
committerKevin Chyn <kchyn@google.com>2020-09-25 18:41:41 -0700
commited18d8085569642cd4507a14ecb1293cc4d19bf4 (patch)
tree18ef368cf569fd9d460c8a1711347e58a36ce638 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentf15229d4c5928408a4d45a00f34424c36d84d4e1 (diff)
Add and use ServiceProvider interface on fingerprint2.1
This interface should allow easy support for multiple HAL interfaces. For example, for (ServiceProvider p : providers) { if (p.containsSensor(sensorId)) { p.authenticate(sensorId, ...) } } or, ServiceProvider provider = getProviderFor(sensorId) if (provider != null) provider.authenticate(sensorId, ...) This should reduce lots of repeated null checks, sensorId checks, etc. and give FingerprintService a easy way to perform operations on providers, given a sensorId. Some of the FingerprintManager code is not sensorId-specific, but we can update those in the future. Otherwise we have to touch multiple projects (settings, etc). For now, all client-side code assumes only a single sensor, so that's what we'll support from FingerprintService. Bug: 168843828 Test: No effect on existing devices Test: atest com.android.server.biometrics Test: atest com.android.systemui.biometrics Change-Id: Icca5bc1e128afa1bb7b2c05227e87567e564e4cf
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions