From 133ccc02c9e21fa1a8c591ba425072abe5f5db9e Mon Sep 17 00:00:00 2001 From: SagarMakhar Date: Mon, 19 Sep 2022 15:13:01 +0000 Subject: [PATCH] dubai: Add com.motorola.hardware.biometric.fingerprint interface Co-authored-by: sb6596 Change-Id: I4167ca648cb7291989222c80cab8693a26111afd --- interfaces/motorola/Android.bp | 4 +++ .../biometric/fingerprint/1.0/Android.bp | 16 ++++++++++ .../fingerprint/1.0/IMotoFingerPrint.hal | 23 ++++++++++++++ .../1.0/IMotoFingerPrintSensorTest.hal | 28 +++++++++++++++++ .../biometric/fingerprint/1.0/types.hal | 31 +++++++++++++++++++ 5 files changed, 102 insertions(+) create mode 100644 interfaces/motorola/Android.bp create mode 100644 interfaces/motorola/hardware/biometric/fingerprint/1.0/Android.bp create mode 100644 interfaces/motorola/hardware/biometric/fingerprint/1.0/IMotoFingerPrint.hal create mode 100644 interfaces/motorola/hardware/biometric/fingerprint/1.0/IMotoFingerPrintSensorTest.hal create mode 100644 interfaces/motorola/hardware/biometric/fingerprint/1.0/types.hal diff --git a/interfaces/motorola/Android.bp b/interfaces/motorola/Android.bp new file mode 100644 index 0000000..114bca5 --- /dev/null +++ b/interfaces/motorola/Android.bp @@ -0,0 +1,4 @@ +hidl_package_root { + name: "com.motorola", + path: "device/motorola/dubai/interfaces/motorola", +} diff --git a/interfaces/motorola/hardware/biometric/fingerprint/1.0/Android.bp b/interfaces/motorola/hardware/biometric/fingerprint/1.0/Android.bp new file mode 100644 index 0000000..ff9d716 --- /dev/null +++ b/interfaces/motorola/hardware/biometric/fingerprint/1.0/Android.bp @@ -0,0 +1,16 @@ +// This file is autogenerated by hidl-gen -Landroidbp. + +hidl_interface { + name: "com.motorola.hardware.biometric.fingerprint@1.0", + root: "com.motorola", + srcs: [ + "IMotoFingerPrint.hal", + "IMotoFingerPrintSensorTest.hal", + "types.hal", + ], + interfaces: [ + "android.hidl.base@1.0", + ], + gen_java: true, +} + diff --git a/interfaces/motorola/hardware/biometric/fingerprint/1.0/IMotoFingerPrint.hal b/interfaces/motorola/hardware/biometric/fingerprint/1.0/IMotoFingerPrint.hal new file mode 100644 index 0000000..a54e561 --- /dev/null +++ b/interfaces/motorola/hardware/biometric/fingerprint/1.0/IMotoFingerPrint.hal @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2022 The Android Open Source 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 com.motorola.hardware.biometric.fingerprint@1.0; + +interface IMotoFingerPrint { + +sendFodEvent(IMotFodEventType eventType, vec eventId) generates (IMotFodEventResult result, vec eventId); + +}; diff --git a/interfaces/motorola/hardware/biometric/fingerprint/1.0/IMotoFingerPrintSensorTest.hal b/interfaces/motorola/hardware/biometric/fingerprint/1.0/IMotoFingerPrintSensorTest.hal new file mode 100644 index 0000000..f75a15e --- /dev/null +++ b/interfaces/motorola/hardware/biometric/fingerprint/1.0/IMotoFingerPrintSensorTest.hal @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2022 The Android Open Source 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 com.motorola.hardware.biometric.fingerprint@1.0; + +interface IMotoFingerPrintSensorTest { + +getSensorInfo(); +checkerboardTest(); +finishSensorTest(int32_t id); +imagequalityTest(); +otpvalidationTest(); +selfTest(); + +}; diff --git a/interfaces/motorola/hardware/biometric/fingerprint/1.0/types.hal b/interfaces/motorola/hardware/biometric/fingerprint/1.0/types.hal new file mode 100644 index 0000000..e91a8c5 --- /dev/null +++ b/interfaces/motorola/hardware/biometric/fingerprint/1.0/types.hal @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2022 The Android Open Source 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 com.motorola.hardware.biometric.fingerprint@1.0; + +enum IMotFodEventType : int32_t { + FINGER_DOWN = 0, + FINGER_UP = 1, + CANCEL = 2, + EXTEND_1 = 3, + EXTEND_2 = 4, + UNKNOWN = 5, +}; + +enum IMotFodEventResult : int32_t { + RESULT_OK = 0, + RESULT_ERR = 1, +};