Update TestHal with new getFeatures/setFeature

Bug: 185384721
Test: atest CtsBiometricsTestCases
Change-Id: Idba1d817e4f3771918f1208c957b99a6b69c0d17
This commit is contained in:
Ilya Matyukhin
2021-04-14 14:04:13 -07:00
parent 72870e1173
commit cf864d9964
2 changed files with 8 additions and 7 deletions

View File

@@ -375,12 +375,12 @@ public class Sensor {
}
@Override
public void onFeaturesRetrieved(byte[] features, int enrollmentId) {
public void onFeaturesRetrieved(byte[] features) {
}
@Override
public void onFeatureSet(int enrollmentId, byte feature) {
public void onFeatureSet(byte feature) {
}

View File

@@ -32,6 +32,7 @@ import android.util.Slog;
*/
public class TestHal extends IFace.Stub {
private static final String TAG = "face.aidl.TestHal";
@Override
public SensorProps[] getSensorProps() {
Slog.w(TAG, "getSensorProps");
@@ -102,16 +103,16 @@ public class TestHal extends IFace.Stub {
}
@Override
public void getFeatures(int enrollmentId) throws RemoteException {
public void getFeatures() throws RemoteException {
Slog.w(TAG, "getFeatures");
cb.onFeaturesRetrieved(new byte[0], enrollmentId);
cb.onFeaturesRetrieved(new byte[0]);
}
@Override
public void setFeature(HardwareAuthToken hat, int enrollmentId,
byte feature, boolean enabled) throws RemoteException {
public void setFeature(HardwareAuthToken hat, byte feature, boolean enabled)
throws RemoteException {
Slog.w(TAG, "setFeature");
cb.onFeatureSet(enrollmentId, feature);
cb.onFeatureSet(feature);
}
@Override