1 /* 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 */ 16 package android.hardware.face; 17 18 import android.hardware.face.Face; 19 import android.hardware.face.FaceAuthenticationFrame; 20 import android.hardware.face.FaceEnrollFrame; 21 22 /** 23 * Communication channel from the FaceService back to FaceAuthenticationManager. 24 * @hide 25 */ 26 oneway interface IFaceServiceReceiver { onEnrollResult(in Face face, int remaining)27 void onEnrollResult(in Face face, int remaining); onAcquired(int acquiredInfo, int vendorCode)28 void onAcquired(int acquiredInfo, int vendorCode); onAuthenticationSucceeded(in Face face, int userId, boolean isStrongBiometric)29 void onAuthenticationSucceeded(in Face face, int userId, boolean isStrongBiometric); onFaceDetected(int sensorId, int userId, boolean isStrongBiometric)30 void onFaceDetected(int sensorId, int userId, boolean isStrongBiometric); onAuthenticationFailed()31 void onAuthenticationFailed(); onError(int error, int vendorCode)32 void onError(int error, int vendorCode); onRemoved(in Face face, int remaining)33 void onRemoved(in Face face, int remaining); onFeatureSet(boolean success, int feature)34 void onFeatureSet(boolean success, int feature); onFeatureGet(boolean success, in int[] features, in boolean[] featureState)35 void onFeatureGet(boolean success, in int[] features, in boolean[] featureState); onChallengeGenerated(int sensorId, int userId, long challenge)36 void onChallengeGenerated(int sensorId, int userId, long challenge); onAuthenticationFrame(in FaceAuthenticationFrame frame)37 void onAuthenticationFrame(in FaceAuthenticationFrame frame); onEnrollmentFrame(in FaceEnrollFrame frame)38 void onEnrollmentFrame(in FaceEnrollFrame frame); 39 } 40