1 /*
2  * Copyright (C) 2021 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 
17 package android.hardware.fingerprint;
18 
19 import android.os.RemoteException;
20 
21 /**
22  * Provides default methods for callers who only need a subset of the functionality.
23  * @hide
24  */
25 public class FingerprintServiceReceiver extends IFingerprintServiceReceiver.Stub {
26     @Override
onEnrollResult(Fingerprint fp, int remaining)27     public void onEnrollResult(Fingerprint fp, int remaining) throws RemoteException {
28 
29     }
30 
31     @Override
onAcquired(int acquiredInfo, int vendorCode)32     public void onAcquired(int acquiredInfo, int vendorCode) throws RemoteException {
33 
34     }
35 
36     @Override
onAuthenticationSucceeded(Fingerprint fp, int userId, boolean isStrongBiometric)37     public void onAuthenticationSucceeded(Fingerprint fp, int userId, boolean isStrongBiometric)
38             throws RemoteException {
39 
40     }
41 
42     @Override
onFingerprintDetected(int sensorId, int userId, boolean isStrongBiometric)43     public void onFingerprintDetected(int sensorId, int userId, boolean isStrongBiometric)
44             throws RemoteException {
45 
46     }
47 
48     @Override
onAuthenticationFailed()49     public void onAuthenticationFailed() throws RemoteException {
50 
51     }
52 
53     @Override
onError(int error, int vendorCode)54     public void onError(int error, int vendorCode) throws RemoteException {
55 
56     }
57 
58     @Override
onRemoved(Fingerprint fp, int remaining)59     public void onRemoved(Fingerprint fp, int remaining) throws RemoteException {
60 
61     }
62 
63     @Override
onChallengeGenerated(int sensorId, int userId, long challenge)64     public void onChallengeGenerated(int sensorId, int userId, long challenge)
65             throws RemoteException {
66 
67     }
68 
69     @Override
onUdfpsPointerDown(int sensorId)70     public void onUdfpsPointerDown(int sensorId) throws RemoteException {
71 
72     }
73 
74     @Override
onUdfpsPointerUp(int sensorId)75     public void onUdfpsPointerUp(int sensorId) throws RemoteException {
76 
77     }
78 
79     @Override
onUdfpsOverlayShown()80     public void onUdfpsOverlayShown() throws RemoteException {
81 
82     }
83 }
84