Merge "Update IFace TestHal with close and reset methods" into sc-dev

This commit is contained in:
Ilya Matyukhin
2021-02-19 21:02:00 +00:00
committed by Android (Google) Code Review

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() {
}
}