xref: /aosp_15_r20/hardware/interfaces/biometrics/fingerprint/2.3/IBiometricsFingerprint.hal (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1*4d7e907cSAndroid Build Coastguard Worker/*
2*4d7e907cSAndroid Build Coastguard Worker * Copyright 2020 The Android Open Source Project
3*4d7e907cSAndroid Build Coastguard Worker *
4*4d7e907cSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License");
5*4d7e907cSAndroid Build Coastguard Worker * you may not use this file except in compliance with the License.
6*4d7e907cSAndroid Build Coastguard Worker * You may obtain a copy of the License at
7*4d7e907cSAndroid Build Coastguard Worker *
8*4d7e907cSAndroid Build Coastguard Worker *      http://www.apache.org/licenses/LICENSE-2.0
9*4d7e907cSAndroid Build Coastguard Worker *
10*4d7e907cSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software
11*4d7e907cSAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS,
12*4d7e907cSAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*4d7e907cSAndroid Build Coastguard Worker * See the License for the specific language governing permissions and
14*4d7e907cSAndroid Build Coastguard Worker * limitations under the License.
15*4d7e907cSAndroid Build Coastguard Worker */
16*4d7e907cSAndroid Build Coastguard Worker
17*4d7e907cSAndroid Build Coastguard Workerpackage [email protected];
18*4d7e907cSAndroid Build Coastguard Worker
19*4d7e907cSAndroid Build Coastguard Workerimport @2.2::IBiometricsFingerprint;
20*4d7e907cSAndroid Build Coastguard Worker
21*4d7e907cSAndroid Build Coastguard Worker/**
22*4d7e907cSAndroid Build Coastguard Worker * New use of this interface is strongly discouraged. The recommended option is
23*4d7e907cSAndroid Build Coastguard Worker * to use the AIDL interface, android.hardware.biometrics.fingerprint
24*4d7e907cSAndroid Build Coastguard Worker * (IFingerprint).
25*4d7e907cSAndroid Build Coastguard Worker *
26*4d7e907cSAndroid Build Coastguard Worker * The interface for biometric fingerprint authentication.
27*4d7e907cSAndroid Build Coastguard Worker */
28*4d7e907cSAndroid Build Coastguard Workerinterface IBiometricsFingerprint extends @2.2::IBiometricsFingerprint {
29*4d7e907cSAndroid Build Coastguard Worker    /**
30*4d7e907cSAndroid Build Coastguard Worker     * Returns whether the fingerprint sensor is an under-display fingerprint
31*4d7e907cSAndroid Build Coastguard Worker     * sensor.
32*4d7e907cSAndroid Build Coastguard Worker     * @param sensorId the unique sensor ID for which the operation should be
33*4d7e907cSAndroid Build Coastguard Worker     * performed.
34*4d7e907cSAndroid Build Coastguard Worker     * @return isUdfps indicating whether the specified sensor is an
35*4d7e907cSAndroid Build Coastguard Worker     * under-display fingerprint sensor.
36*4d7e907cSAndroid Build Coastguard Worker     */
37*4d7e907cSAndroid Build Coastguard Worker    isUdfps(uint32_t sensorId) generates (bool isUdfps);
38*4d7e907cSAndroid Build Coastguard Worker
39*4d7e907cSAndroid Build Coastguard Worker    /**
40*4d7e907cSAndroid Build Coastguard Worker     * Notifies about a touch occurring within the under-display fingerprint
41*4d7e907cSAndroid Build Coastguard Worker     * sensor area.
42*4d7e907cSAndroid Build Coastguard Worker     *
43*4d7e907cSAndroid Build Coastguard Worker     * It it assumed that the device can only have one active under-display
44*4d7e907cSAndroid Build Coastguard Worker     * fingerprint sensor at a time.
45*4d7e907cSAndroid Build Coastguard Worker     *
46*4d7e907cSAndroid Build Coastguard Worker     * If multiple fingers are detected within the sensor area, only the
47*4d7e907cSAndroid Build Coastguard Worker     * chronologically first event will be reported.
48*4d7e907cSAndroid Build Coastguard Worker     *
49*4d7e907cSAndroid Build Coastguard Worker     * @param x The screen x-coordinate of the center of the touch contact area, in
50*4d7e907cSAndroid Build Coastguard Worker     * display pixels.
51*4d7e907cSAndroid Build Coastguard Worker     * @param y The screen y-coordinate of the center of the touch contact area, in
52*4d7e907cSAndroid Build Coastguard Worker     * display pixels.
53*4d7e907cSAndroid Build Coastguard Worker     * @param minor The length of the minor axis of an ellipse that describes the
54*4d7e907cSAndroid Build Coastguard Worker     * touch area, in display pixels.
55*4d7e907cSAndroid Build Coastguard Worker     * @param major The length of the major axis of an ellipse that describes the
56*4d7e907cSAndroid Build Coastguard Worker     * touch area, in display pixels.
57*4d7e907cSAndroid Build Coastguard Worker     */
58*4d7e907cSAndroid Build Coastguard Worker    onFingerDown(uint32_t x, uint32_t y, float minor, float major);
59*4d7e907cSAndroid Build Coastguard Worker
60*4d7e907cSAndroid Build Coastguard Worker    /**
61*4d7e907cSAndroid Build Coastguard Worker     * Notifies about a finger leaving the under-display fingerprint sensor area.
62*4d7e907cSAndroid Build Coastguard Worker     *
63*4d7e907cSAndroid Build Coastguard Worker     * It it assumed that the device can only have one active under-display
64*4d7e907cSAndroid Build Coastguard Worker     * fingerprint sensor at a time.
65*4d7e907cSAndroid Build Coastguard Worker     *
66*4d7e907cSAndroid Build Coastguard Worker     * If multiple fingers have left the sensor area, only the finger which
67*4d7e907cSAndroid Build Coastguard Worker     * previously caused a "finger down" event will be reported.
68*4d7e907cSAndroid Build Coastguard Worker     */
69*4d7e907cSAndroid Build Coastguard Worker    onFingerUp();
70*4d7e907cSAndroid Build Coastguard Worker};
71