interfaces: Add fingerprints extension 2.0
Change-Id: I56038622e2e9b4ca7de9ee2e05eaa9fade853fa8
This commit is contained in:
parent
9929c6a01f
commit
613dfc6690
23
interfaces/fingerprints/extension/2.0/Android.bp
Normal file
23
interfaces/fingerprints/extension/2.0/Android.bp
Normal 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,
|
||||
}
|
@ -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);
|
||||
};
|
@ -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 {
|
||||
|
||||
};
|
@ -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);
|
||||
};
|
@ -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);
|
||||
};
|
@ -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 {
|
||||
|
||||
};
|
@ -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 {
|
||||
|
||||
};
|
@ -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 {
|
||||
|
||||
};
|
@ -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();
|
||||
};
|
@ -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);
|
||||
};
|
Loading…
Reference in New Issue
Block a user