interfaces: Add fingerprints extension 2.0

Change-Id: I56038622e2e9b4ca7de9ee2e05eaa9fade853fa8
This commit is contained in:
Dhina17 2024-09-18 01:27:21 +05:30 committed by Bruno Martins
parent 9929c6a01f
commit 613dfc6690
10 changed files with 176 additions and 0 deletions

View File

@ -0,0 +1,23 @@
// This file is autogenerated by hidl-gen -Landroidbp.
hidl_interface {
name: "com.fingerprints.extension@2.0",
root: "com.fingerprints",
system_ext_specific: true,
srcs: [
"ICalibrationCallback.hal",
"IFingerprintAuthenticator.hal",
"IFingerprintCalibration.hal",
"IFingerprintEngineering.hal",
"IFingerprintNavigation.hal",
"IFingerprintRecalibration.hal",
"IFingerprintSenseTouch.hal",
"IFingerprintSensorTest.hal",
"ISensorTestCallback.hal",
],
interfaces: [
"android.hidl.base@1.0",
"com.fingerprints.extension@1.0",
],
gen_java: true,
}

View File

@ -0,0 +1,13 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.fingerprints.extension@2.0;
interface ICalibrationCallback {
oneway onStatus(uint32_t code);
oneway onError(uint32_t error);
};

View File

@ -0,0 +1,13 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.fingerprints.extension@2.0;
import @1.0::IFingerprintAuthenticator;
interface IFingerprintAuthenticator extends @1.0::IFingerprintAuthenticator {
};

View File

@ -0,0 +1,13 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.fingerprints.extension@2.0;
import ICalibrationCallback;
interface IFingerprintCalibration {
oneway calibrate(ICalibrationCallback callback);
};

View File

@ -0,0 +1,34 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.fingerprints.extension@2.0;
import @1.0::IImageCaptureCallback;
import @1.0::IImageInjectionCallback;
import @1.0::SensorSize;
interface IFingerprintEngineering {
getSensorSize() generates (SensorSize sensorSize);
oneway startImageSubscription(IImageCaptureCallback callback);
oneway stopImageSubscription();
oneway startImageInjection(IImageInjectionCallback callback);
oneway stopImageInjection();
oneway startCapture(IImageCaptureCallback callback, uint32_t mode);
oneway cancelCapture();
oneway setEnrollToken(vec<uint8_t> token);
getEnrollChallenge() generates (int64_t enrollChallenge);
getBuildInfo() generates (string buildInfo);
};

View File

@ -0,0 +1,13 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.fingerprints.extension@2.0;
import @1.0::IFingerprintNavigation;
interface IFingerprintNavigation extends @1.0::IFingerprintNavigation {
};

View File

@ -0,0 +1,13 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.fingerprints.extension@2.0;
import @1.0::IFingerprintRecalibration;
interface IFingerprintRecalibration extends @1.0::IFingerprintRecalibration {
};

View File

@ -0,0 +1,13 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.fingerprints.extension@2.0;
import @1.0::IFingerprintSenseTouch;
interface IFingerprintSenseTouch extends @1.0::IFingerprintSenseTouch {
};

View File

@ -0,0 +1,28 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.fingerprints.extension@2.0;
import @1.0::ISensorTestCaptureCallback;
import @1.0::SensorInfo;
import @1.0::SensorTest;
import @1.0::SensorTestInput;
import ISensorTestCallback;
interface IFingerprintSensorTest {
getSensorInfo() generates (SensorInfo sensorInfo);
getSensorTests() generates (vec<SensorTest> sensorTests);
oneway runSensorTest(ISensorTestCallback callback, SensorTest test, SensorTestInput input);
oneway cancelSensorTest();
oneway capture(ISensorTestCaptureCallback callback, bool waitForFinger, bool uncalibrated);
oneway cancelCapture();
};

View File

@ -0,0 +1,13 @@
/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.fingerprints.extension@2.0;
import @1.0::SensorTestResult;
interface ISensorTestCallback {
oneway onResult(SensorTestResult result);
};