[lineage-18.0] IFingerprintInscreen: Allow HALs to provide finger up/down callback

Change-Id: I31058d0184ce40abcb8c72584fa0bc21fee04bb6
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
LuK1337 2019-06-30 15:42:55 +02:00 committed by Alexander Koskovich
parent c06dfc4ac5
commit 00cbc89715
3 changed files with 34 additions and 0 deletions

View File

@ -6,6 +6,7 @@ hidl_interface {
system_ext_specific: true,
srcs: [
"IFingerprintInscreen.hal",
"IFingerprintInscreenCallback.hal",
],
interfaces: [
"android.hidl.base@1.0",

View File

@ -16,6 +16,8 @@
package vendor.aospa.biometrics.fingerprint.inscreen@1.0;
import IFingerprintInscreenCallback;
interface IFingerprintInscreen {
/**
* Called when fingerprint enrollment started
@ -70,4 +72,9 @@ interface IFingerprintInscreen {
* according to the previous events.
*/
shouldBoostBrightness() generates (bool ret);
/**
* This function is used to register a callback function which is
* called by the HAL whenever there is a finger up/down event.
*/
oneway setCallback(IFingerprintInscreenCallback callback);
};

View File

@ -0,0 +1,26 @@
/*
* Copyright (C) 2019 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.aospa.biometrics.fingerprint.inscreen@1.0;
/**
* IFingerprintInscreenCallback is the callback interface to
* {@link IFingerprintInscreen.setCallback}.
*/
interface IFingerprintInscreenCallback {
oneway onFingerDown();
oneway onFingerUp();
};