Update IFace TestHal with close and reset methods

Bug: 13606126
Test: atest CtsBiometricsTestCases
Change-Id: Idd9610eb67de6a1909d619598cdef35c8fcd63f3
This commit is contained in:
Ilya Matyukhin
2021-02-17 17:27:32 -08:00
parent 20fcf469a3
commit 4234802fda

View File

@@ -22,6 +22,7 @@ import android.hardware.biometrics.face.IFace;
import android.hardware.biometrics.face.ISession;
import android.hardware.biometrics.face.ISessionCallback;
import android.hardware.biometrics.face.SensorProps;
import android.hardware.biometrics.face.SessionState;
import android.hardware.common.NativeHandle;
import android.hardware.keymaster.HardwareAuthToken;
import android.os.RemoteException;
@@ -131,6 +132,15 @@ public class TestHal extends IFace.Stub {
Slog.w(TAG, "resetLockout, cookie: " + cookie);
cb.onLockoutCleared();
}
@Override
public void close(int cookie) throws RemoteException {
cb.onStateChanged(cookie, SessionState.CLOSED);
}
};
}
@Override
public void reset() {
}
}