From b336b8146cf84e66eb3a232ccaec29d073eb0b93 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Mon, 11 Apr 2022 16:01:53 +0200 Subject: [PATCH] interfaces: Add vendor.oplus.hardware.biometrics.fingerprint@2.1 Change-Id: I542c979b72b82dfb517f2c9f7f9cbfe58fab54bf --- interfaces/Android.bp | 4 +++ .../biometrics/fingerprint/2.1/Android.bp | 18 +++++++++++++ .../2.1/IBiometricsFingerprint.hal | 26 +++++++++++++++++++ ...IBiometricsFingerprintClientCallbackEx.hal | 22 ++++++++++++++++ interfaces/update-makefiles.sh | 6 +++++ 5 files changed, 76 insertions(+) create mode 100644 interfaces/Android.bp create mode 100644 interfaces/oplus/hardware/biometrics/fingerprint/2.1/Android.bp create mode 100644 interfaces/oplus/hardware/biometrics/fingerprint/2.1/IBiometricsFingerprint.hal create mode 100644 interfaces/oplus/hardware/biometrics/fingerprint/2.1/IBiometricsFingerprintClientCallbackEx.hal create mode 100755 interfaces/update-makefiles.sh diff --git a/interfaces/Android.bp b/interfaces/Android.bp new file mode 100644 index 0000000..0bc459f --- /dev/null +++ b/interfaces/Android.bp @@ -0,0 +1,4 @@ +hidl_package_root { + name: "vendor.oplus", + path: "hardware/oplus/interfaces/oplus", +} diff --git a/interfaces/oplus/hardware/biometrics/fingerprint/2.1/Android.bp b/interfaces/oplus/hardware/biometrics/fingerprint/2.1/Android.bp new file mode 100644 index 0000000..1e8e244 --- /dev/null +++ b/interfaces/oplus/hardware/biometrics/fingerprint/2.1/Android.bp @@ -0,0 +1,18 @@ +// This file is autogenerated by hidl-gen -Landroidbp. + +hidl_interface { + name: "vendor.oplus.hardware.biometrics.fingerprint@2.1", + root: "vendor.oplus", + system_ext_specific: true, + srcs: [ + "IBiometricsFingerprint.hal", + "IBiometricsFingerprintClientCallbackEx.hal", + ], + interfaces: [ + "android.hardware.biometrics.fingerprint@2.1", + "android.hardware.biometrics.fingerprint@2.2", + "android.hardware.biometrics.fingerprint@2.3", + "android.hidl.base@1.0", + ], + gen_java: true, +} diff --git a/interfaces/oplus/hardware/biometrics/fingerprint/2.1/IBiometricsFingerprint.hal b/interfaces/oplus/hardware/biometrics/fingerprint/2.1/IBiometricsFingerprint.hal new file mode 100644 index 0000000..478c764 --- /dev/null +++ b/interfaces/oplus/hardware/biometrics/fingerprint/2.1/IBiometricsFingerprint.hal @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2022 The LineageOS Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * 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 vendor.oplus.hardware.biometrics.fingerprint@2.1; + +import android.hardware.biometrics.fingerprint@2.1::types; +import android.hardware.biometrics.fingerprint@2.3; +import IBiometricsFingerprintClientCallbackEx; + +interface IBiometricsFingerprint extends @2.3::IBiometricsFingerprint { + setHalCallback(IBiometricsFingerprintClientCallbackEx clientCallback) generates (uint64_t deviceId); + sendFingerprintCmd(int32_t cmdId, vec in_buf) generates (RequestStatus debugErrno); +}; diff --git a/interfaces/oplus/hardware/biometrics/fingerprint/2.1/IBiometricsFingerprintClientCallbackEx.hal b/interfaces/oplus/hardware/biometrics/fingerprint/2.1/IBiometricsFingerprintClientCallbackEx.hal new file mode 100644 index 0000000..9c1a9e7 --- /dev/null +++ b/interfaces/oplus/hardware/biometrics/fingerprint/2.1/IBiometricsFingerprintClientCallbackEx.hal @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2022 The LineageOS Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * 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 vendor.oplus.hardware.biometrics.fingerprint@2.1; + +interface IBiometricsFingerprintClientCallbackEx { + oneway onEngineeringInfoUpdated(uint32_t lenth, vec keys, vec values); + oneway onFingerprintCmd(int32_t cmdId, vec result, uint32_t resultLen); +}; diff --git a/interfaces/update-makefiles.sh b/interfaces/update-makefiles.sh new file mode 100755 index 0000000..ed0ce48 --- /dev/null +++ b/interfaces/update-makefiles.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +source $ANDROID_BUILD_TOP/system/tools/hidl/update-makefiles-helper.sh + +do_makefiles_update \ + "vendor.oplus:hardware/oplus/interfaces/oplus"