[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:
parent
c06dfc4ac5
commit
00cbc89715
|
@ -6,6 +6,7 @@ hidl_interface {
|
|||
system_ext_specific: true,
|
||||
srcs: [
|
||||
"IFingerprintInscreen.hal",
|
||||
"IFingerprintInscreenCallback.hal",
|
||||
],
|
||||
interfaces: [
|
||||
"android.hidl.base@1.0",
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
|
@ -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();
|
||||
};
|
Loading…
Reference in New Issue