blob: 06510344ef7d49ec8b2e8eba10bdc04f26bec057 [file] [log] [blame]
Ilya Matyukhin671c5992020-01-21 15:44:10 -08001/*
2 * Copyright 2020 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.biometrics.fingerprint@2.2;
18
19import @2.1::IBiometricsFingerprint;
20import @2.1::RequestStatus;
21
22interface IBiometricsFingerprint extends @2.1::IBiometricsFingerprint {
23 /**
24 * Fingerprint enroll request:
25 * Switches the HAL state machine to collect and store a new fingerprint
26 * template. Switches back as soon as enroll is complete, signalled by
27 * (fingerprintMsg.type == FINGERPRINT_TEMPLATE_ENROLLING &&
28 * fingerprintMsg.data.enroll.samplesRemaining == 0)
29 * or after timeoutSec seconds.
30 * The fingerprint template must be assigned to the group gid.
31 *
32 * @param hat a valid Hardware Authentication Token (HAT), generated
33 * as a result of a preEnroll() call.
34 * @param gid a framework defined fingerprint set (group) id.
35 * @param timeoutSec a timeout in seconds.
36 * @param windowId optional ID of an illumination window for optical under
37 * display fingerprint sensors. Must contain a null pointer if not used.
38 *
39 * @return debugErrno is a value the framework logs in case it is not 0.
40 *
41 * A notify() function may be called with a more detailed error structure.
42 */
43 enroll_2_2(vec<uint8_t> hat, uint32_t gid, uint32_t timeoutSec, handle windowId)
44 generates (RequestStatus debugErrno);
45
46 /**
47 * Authenticates an operation identified by operationId
48 *
49 * @param operationId operation id.
50 * @param gid fingerprint group id.
51 * @param windowId optional ID of an illumination window for optical under
52 * display fingerprint sensors. Must contain a null pointer if not used.
53 *
54 * @return debugErrno is a value the framework logs in case it is not 0.
55 */
56 authenticate_2_2(uint64_t operationId, uint32_t gid, handle windowId)
57 generates (RequestStatus debugErrno);
58};