interfaces: fingerprints: extension: 1.0: Reverse the remaining interfaces
Change-Id: I53175dc6125b485c6007685938181a169f4d3b87
This commit is contained in:
parent
3a14026963
commit
5f0a38d22e
@ -5,7 +5,24 @@ hidl_interface {
|
|||||||
root: "com.fingerprints",
|
root: "com.fingerprints",
|
||||||
system_ext_specific: true,
|
system_ext_specific: true,
|
||||||
srcs: [
|
srcs: [
|
||||||
|
"ICalibrationCallback.hal",
|
||||||
|
"ICryptCallback.hal",
|
||||||
|
"IFingerprintAuthenticator.hal",
|
||||||
|
"IFingerprintCalibration.hal",
|
||||||
|
"IFingerprintEngineering.hal",
|
||||||
"IFingerprintNavigation.hal",
|
"IFingerprintNavigation.hal",
|
||||||
|
"IFingerprintOptical.hal",
|
||||||
|
"IFingerprintOpticalCallback.hal",
|
||||||
|
"IFingerprintRecalibration.hal",
|
||||||
|
"IFingerprintSenseTouch.hal",
|
||||||
|
"IFingerprintSensorTest.hal",
|
||||||
|
"IIlluminationTuningCallback.hal",
|
||||||
|
"IImageCaptureCallback.hal",
|
||||||
|
"IImageInjectionCallback.hal",
|
||||||
|
"IRecalibrationCallback.hal",
|
||||||
|
"ISensorTestCallback.hal",
|
||||||
|
"ISensorTestCaptureCallback.hal",
|
||||||
|
"IVerifyUserCallback.hal",
|
||||||
],
|
],
|
||||||
interfaces: [
|
interfaces: [
|
||||||
"android.hidl.base@1.0",
|
"android.hidl.base@1.0",
|
||||||
|
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
interface ICalibrationCallback {
|
||||||
|
oneway onStatus(uint32_t code);
|
||||||
|
|
||||||
|
oneway onError(uint32_t error);
|
||||||
|
|
||||||
|
oneway onInitTransferData(uint32_t totalSize);
|
||||||
|
|
||||||
|
oneway onTransferData(vec<uint8_t> buffer, uint32_t remaning);
|
||||||
|
};
|
11
interfaces/fingerprints/extension/1.0/ICryptCallback.hal
Normal file
11
interfaces/fingerprints/extension/1.0/ICryptCallback.hal
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
interface ICryptCallback {
|
||||||
|
oneway onResult(uint32_t result);
|
||||||
|
};
|
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
import IVerifyUserCallback;
|
||||||
|
|
||||||
|
interface IFingerprintAuthenticator {
|
||||||
|
verifyUser(IVerifyUserCallback callback, vec<uint8_t> fido_auth_input_1, vec<uint8_t> fido_auth_input_2, vec<uint8_t> dstAppName) generates (int32_t result);
|
||||||
|
|
||||||
|
isUserValid(uint64_t userId) generates (bool userValid);
|
||||||
|
|
||||||
|
oneway cancel();
|
||||||
|
};
|
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
import ICalibrationCallback;
|
||||||
|
|
||||||
|
interface IFingerprintCalibration {
|
||||||
|
oneway calibrate(ICalibrationCallback callback);
|
||||||
|
};
|
@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
import IImageCaptureCallback;
|
||||||
|
import IImageInjectionCallback;
|
||||||
|
import ICryptCallback;
|
||||||
|
import ICalibrationCallback;
|
||||||
|
import IIlluminationTuningCallback;
|
||||||
|
|
||||||
|
interface IFingerprintEngineering {
|
||||||
|
struct SensorSize {
|
||||||
|
int32_t width;
|
||||||
|
int32_t height;
|
||||||
|
};
|
||||||
|
|
||||||
|
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);
|
||||||
|
|
||||||
|
oneway cryptBlob(ICryptCallback callback, uint32_t mode);
|
||||||
|
|
||||||
|
oneway startCalibration(ICalibrationCallback callback);
|
||||||
|
|
||||||
|
oneway captureCalibration(ICalibrationCallback callback, uint32_t type, uint32_t level);
|
||||||
|
|
||||||
|
oneway finishCalibration(ICalibrationCallback callback, uint32_t level);
|
||||||
|
|
||||||
|
oneway saveCalibration(ICalibrationCallback callback, uint32_t level);
|
||||||
|
|
||||||
|
oneway saveCalibrationDecrypted(ICalibrationCallback callback, uint32_t level);
|
||||||
|
|
||||||
|
oneway cancelCalibration(ICalibrationCallback callback);
|
||||||
|
|
||||||
|
oneway getCalibrationData(ICalibrationCallback callback);
|
||||||
|
|
||||||
|
oneway startBarTarget(ICalibrationCallback callback);
|
||||||
|
|
||||||
|
oneway captureBarTarget(ICalibrationCallback callback, uint32_t level);
|
||||||
|
|
||||||
|
oneway finishBarTarget(ICalibrationCallback callback, uint32_t level);
|
||||||
|
|
||||||
|
oneway saveBarTarget(ICalibrationCallback callback, uint32_t level);
|
||||||
|
|
||||||
|
oneway cancelBarTarget(ICalibrationCallback callback);
|
||||||
|
|
||||||
|
oneway setIlluminationLevel(IIlluminationTuningCallback callback, uint32_t level);
|
||||||
|
};
|
@ -1,22 +1,26 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2021 The LineageOS Project
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.fingerprints.extension@1.0;
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
interface IFingerprintNavigation {
|
interface IFingerprintNavigation {
|
||||||
|
struct NavigationConfig {
|
||||||
|
int32_t tapNoImageMaxThreshold;
|
||||||
|
int32_t holdNoImageMinThreshold;
|
||||||
|
int32_t doubleClickTimeInterval;
|
||||||
|
int32_t tapImageTransMaxThreshold;
|
||||||
|
int32_t swipeImageTransMinThreshold;
|
||||||
|
int32_t backGroundAlgo;
|
||||||
|
};
|
||||||
|
|
||||||
setNavigation(bool enabled);
|
setNavigation(bool enabled);
|
||||||
|
|
||||||
|
getNavigationConfig() generates (NavigationConfig navigationConfig);
|
||||||
|
|
||||||
|
oneway setNavigationConfig(NavigationConfig navigationConfig);
|
||||||
|
|
||||||
isEnabled() generates (bool isEnabled);
|
isEnabled() generates (bool isEnabled);
|
||||||
};
|
};
|
||||||
|
@ -0,0 +1,52 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
import IFingerprintOpticalCallback;
|
||||||
|
|
||||||
|
interface IFingerprintOptical {
|
||||||
|
struct HotZoneData {
|
||||||
|
int32_t left;
|
||||||
|
int32_t right;
|
||||||
|
int32_t top;
|
||||||
|
int32_t bottom;
|
||||||
|
int32_t update;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct TouchEventData {
|
||||||
|
int32_t hotzone_top;
|
||||||
|
int32_t hotzone_left;
|
||||||
|
int32_t hotzone_right;
|
||||||
|
int32_t hotzone_bottom;
|
||||||
|
int32_t pos_x;
|
||||||
|
int32_t pos_y;
|
||||||
|
float pressure;
|
||||||
|
float size;
|
||||||
|
int32_t major;
|
||||||
|
int32_t minor;
|
||||||
|
};
|
||||||
|
|
||||||
|
oneway setNotify(IFingerprintOpticalCallback callback);
|
||||||
|
|
||||||
|
oneway setIlluminationStatus(uint32_t value);
|
||||||
|
|
||||||
|
oneway etFingerListenerStatus(uint32_t value);
|
||||||
|
|
||||||
|
setExposure(uint16_t exposureTime) generates (bool result);
|
||||||
|
|
||||||
|
getExposure() generates (int16_t retVal);
|
||||||
|
|
||||||
|
setAnalogGain(uint16_t gain) generates (bool result);
|
||||||
|
|
||||||
|
getAnalogGain() generates (int16_t retVal);
|
||||||
|
|
||||||
|
oneway setHotZoneData(HotZoneData hotZoneData);
|
||||||
|
|
||||||
|
oneway setTouchEventData(TouchEventData touchEventData);
|
||||||
|
|
||||||
|
getToutchEventData() generates (TouchEventData touchEventData);
|
||||||
|
};
|
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
interface IFingerprintOpticalCallback {
|
||||||
|
oneway onStartWaitingForFinger();
|
||||||
|
|
||||||
|
oneway onStopWaitingForFinger();
|
||||||
|
|
||||||
|
oneway onFingerDown();
|
||||||
|
|
||||||
|
oneway onFingerLost();
|
||||||
|
};
|
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
import IRecalibrationCallback;
|
||||||
|
|
||||||
|
interface IFingerprintRecalibration {
|
||||||
|
oneway recalibrate(vec<uint8_t> token, IRecalibrationCallback callback);
|
||||||
|
|
||||||
|
preRecalibrate() generates (int64_t challenge);
|
||||||
|
|
||||||
|
oneway cancel();
|
||||||
|
};
|
@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
interface IFingerprintSenseTouch {
|
||||||
|
struct SenseTouchConfig {
|
||||||
|
bool success;
|
||||||
|
int32_t version;
|
||||||
|
int32_t ground;
|
||||||
|
int32_t triggerThreshold;
|
||||||
|
int32_t untriggerThreshold;
|
||||||
|
bool authTriggerOnDown;
|
||||||
|
bool authTriggerOnUp;
|
||||||
|
int32_t authButtonTimeoutMs;
|
||||||
|
};
|
||||||
|
|
||||||
|
getForce() generates (int32_t force);
|
||||||
|
|
||||||
|
isSupported() generates (bool isSupported);
|
||||||
|
|
||||||
|
finishCalibration(uint32_t ground, uint32_t threshold) generates (bool result);
|
||||||
|
|
||||||
|
setAuthMode(uint32_t mode, uint32_t buttonTimeoutMs) generates (bool result);
|
||||||
|
|
||||||
|
readConfig() generates (SenseTouchConfig senseTouchConfig);
|
||||||
|
};
|
@ -0,0 +1,53 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
import ISensorTestCaptureCallback;
|
||||||
|
import ISensorTestCallback;
|
||||||
|
|
||||||
|
interface IFingerprintSensorTest {
|
||||||
|
struct SensorInfo {
|
||||||
|
int32_t sensorDieValidFlag;
|
||||||
|
int32_t hardwareId;
|
||||||
|
string lotId;
|
||||||
|
int32_t waferId;
|
||||||
|
int32_t waferPositionX;
|
||||||
|
int32_t waferPositionY;
|
||||||
|
string productionTimestamp;
|
||||||
|
int32_t companionDieValidFlag;
|
||||||
|
int32_t companionChipHardwareId;
|
||||||
|
string companionChipLotId;
|
||||||
|
int32_t vendorHwValidFlag;
|
||||||
|
vec<int8_t> vendorData;
|
||||||
|
int32_t totalNumOtpBitErrors;
|
||||||
|
int32_t maxNumOtpBitErrorsInByte;
|
||||||
|
int32_t productType;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct SensorTest {
|
||||||
|
string name;
|
||||||
|
string description;
|
||||||
|
bool waitForFingerDown;
|
||||||
|
string rubberStampType;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct SensorTestInput {
|
||||||
|
string testLimitsKeyValuePair;
|
||||||
|
};
|
||||||
|
|
||||||
|
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,11 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
interface IIlluminationTuningCallback {
|
||||||
|
oneway onResult(uint32_t code);
|
||||||
|
};
|
@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
interface IImageCaptureCallback {
|
||||||
|
struct ImageCaptureData {
|
||||||
|
int32_t mode;
|
||||||
|
int32_t captureResult;
|
||||||
|
int32_t identifyResult;
|
||||||
|
int32_t templateUpdateResult;
|
||||||
|
int32_t enrollResult;
|
||||||
|
int32_t cacResult;
|
||||||
|
int32_t userId;
|
||||||
|
int32_t remainingSamples;
|
||||||
|
int32_t coverage;
|
||||||
|
int32_t quality;
|
||||||
|
vec<int8_t> rawImage;
|
||||||
|
vec<int8_t> enhancedImage;
|
||||||
|
};
|
||||||
|
|
||||||
|
oneway onImage(ImageCaptureData imageCaptureData);
|
||||||
|
|
||||||
|
oneway onImageTransferData(uint8_t type, vec<uint8_t> buffer);
|
||||||
|
|
||||||
|
oneway onImageFinish();
|
||||||
|
};
|
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
interface IImageInjectionCallback {
|
||||||
|
onInject() generates (vec<int8_t> imageData);
|
||||||
|
|
||||||
|
oneway onCancel();
|
||||||
|
};
|
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
interface IRecalibrationCallback {
|
||||||
|
oneway onStatus(uint32_t code, bool imageDecision, uint32_t imageQuality, uint32_t pnQuality, uint32_t progress);
|
||||||
|
|
||||||
|
oneway onError(uint32_t error);
|
||||||
|
};
|
@ -0,0 +1,28 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
interface ISensorTestCallback {
|
||||||
|
struct SensorTestResult {
|
||||||
|
int32_t resultCode;
|
||||||
|
string resultString;
|
||||||
|
int32_t errorCode;
|
||||||
|
string errorString;
|
||||||
|
vec<int8_t> imageData;
|
||||||
|
string log;
|
||||||
|
};
|
||||||
|
|
||||||
|
oneway onResult(SensorTestResult result);
|
||||||
|
|
||||||
|
onResultInit(uint32_t resultCode, uint32_t errorCode, bool imageFetched) generates (int32_t result);
|
||||||
|
|
||||||
|
onResultTransfer(uint8_t type, string input) generates (int32_t result);
|
||||||
|
|
||||||
|
onResultTransferImg(vec<uint8_t> input) generates (int32_t result);
|
||||||
|
|
||||||
|
oneway onResultFinish();
|
||||||
|
};
|
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
interface ISensorTestCaptureCallback {
|
||||||
|
oneway onAcquired(uint32_t acquiredInfo);
|
||||||
|
|
||||||
|
oneway onError(uint32_t error);
|
||||||
|
};
|
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2023 The LineageOS Project
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.fingerprints.extension@1.0;
|
||||||
|
|
||||||
|
interface IVerifyUserCallback {
|
||||||
|
oneway onResult(uint32_t result, uint64_t userId, uint64_t userEntityId, vec<uint8_t> encapsulatedResult);
|
||||||
|
|
||||||
|
oneway onHelp(uint32_t helpCode);
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user