Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4234802f authored by Ilya Matyukhin's avatar Ilya Matyukhin
Browse files

Update IFace TestHal with close and reset methods

Bug: 13606126
Test: atest CtsBiometricsTestCases
Change-Id: Idd9610eb67de6a1909d619598cdef35c8fcd63f3
parent 20fcf469
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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() {
    }
}