blob: 1d43aa640b402b8de8e1b2c2f66ad96ead900fed [file] [log] [blame]
Kevin Chyna24e9fd2018-08-27 12:39:17 -07001/*
2 * Copyright (C) 2018 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 */
16package android.hardware.biometrics;
17
Kevin Chyna24e9fd2018-08-27 12:39:17 -070018/**
Kevin Chyn23289ef2018-11-28 16:32:36 -080019 * Communication channel from BiometricService back to BiometricPrompt
Kevin Chyna24e9fd2018-08-27 12:39:17 -070020 * @hide
21 */
Kevin Chyn352adfe2018-09-20 22:28:50 -070022oneway interface IBiometricServiceReceiver {
Curtis Belmonte6601bc32020-01-09 17:46:31 -080023 // Notify BiometricPrompt that authentication was successful.
24 void onAuthenticationSucceeded(int authenticationType);
Kevin Chyne92cdae2018-11-21 16:35:04 -080025 // Noties that authentication failed.
26 void onAuthenticationFailed();
Kevin Chyn87f257a2018-11-27 16:26:07 -080027 // Notify BiometricPrompt that an error has occurred.
Ilya Matyukhin0f9da352019-10-03 14:10:01 -070028 void onError(int modality, int error, int vendorCode);
Kevin Chyne92cdae2018-11-21 16:35:04 -080029 // Notifies that a biometric has been acquired.
30 void onAcquired(int acquiredInfo, String message);
31 // Notifies that the SystemUI dialog has been dismissed.
32 void onDialogDismissed(int reason);
Kevin Chyna24e9fd2018-08-27 12:39:17 -070033}