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.face;
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 FaceServiceReceiver extends IFaceServiceReceiver.Stub {
26     @Override
onEnrollResult(Face face, int remaining)27     public void onEnrollResult(Face face, 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(Face face, int userId, boolean isStrongBiometric)37     public void onAuthenticationSucceeded(Face face, int userId, boolean isStrongBiometric)
38             throws RemoteException {
39 
40     }
41 
42     @Override
onFaceDetected(int sensorId, int userId, boolean isStrongBiometric)43     public void onFaceDetected(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(Face face, int remaining)59     public void onRemoved(Face face, int remaining) throws RemoteException {
60 
61     }
62 
63     @Override
onFeatureSet(boolean success, int feature)64     public void onFeatureSet(boolean success, int feature) throws RemoteException {
65 
66     }
67 
68     @Override
onFeatureGet(boolean success, int[] features, boolean[] featureState)69     public void onFeatureGet(boolean success, int[] features, boolean[] featureState)
70                 throws RemoteException {
71 
72     }
73 
74     @Override
onChallengeGenerated(int sensorId, int userId, long challenge)75     public void onChallengeGenerated(int sensorId, int userId, long challenge)
76             throws RemoteException {
77 
78     }
79 
80     @Override
onAuthenticationFrame(FaceAuthenticationFrame frame)81     public void onAuthenticationFrame(FaceAuthenticationFrame frame) throws RemoteException {
82 
83     }
84 
85     @Override
onEnrollmentFrame(FaceEnrollFrame frame)86     public void onEnrollmentFrame(FaceEnrollFrame frame) throws RemoteException {
87 
88     }
89 }
90