interfaces: com.fingerprints: Add IFpcFingerprintAuthenticator

* From sunstone fpc stack

Change-Id: I5a3ba0161bec5bc4788c02a5aa896a9ad1b1f3d0
This commit is contained in:
Giovanni Ricca 2024-09-07 16:08:24 +02:00 committed by basamaryan
parent 088c127231
commit 263cc79a71
No known key found for this signature in database
GPG Key ID: 210D5384FB2A5885
3 changed files with 46 additions and 0 deletions

View File

@ -6,6 +6,7 @@ hidl_interface {
system_ext_specific: true,
srcs: [
"types.hal",
"IAuthenticatorCallback.hal",
"ICalibrationCallback.hal",
"ICryptCallback.hal",
"IFingerprintAuthenticator.hal",
@ -17,6 +18,7 @@ hidl_interface {
"IFingerprintRecalibration.hal",
"IFingerprintSenseTouch.hal",
"IFingerprintSensorTest.hal",
"IFpcFingerprintAuthenticator.hal",
"IIlluminationTuningCallback.hal",
"IImageCaptureCallback.hal",
"IImageInjectionCallback.hal",

View File

@ -0,0 +1,21 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.fingerprints.extension@1.0;
interface IAuthenticatorCallback {
oneway onAcquired(uint32_t status);
oneway onAuthenticated(uint32_t fingerId);
oneway onEnrollResult(uint32_t fingerId, uint32_t remaining);
oneway onEnumerate(uint32_t fingerId, uint32_t remaining);
oneway onError(uint32_t errorCode);
oneway onRemoved(uint32_t fingerId, uint32_t remaining);
};

View File

@ -0,0 +1,23 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.fingerprints.extension@1.0;
import IAuthenticatorCallback;
interface IFpcFingerprintAuthenticator {
oneway authenticate();
oneway cancel();
oneway enroll();
oneway enumerate();
oneway remove(uint32_t fingerId);
oneway setNotify(IAuthenticatorCallback callback);
};