Merge "Update TestHal with new getFeatures/setFeature" into sc-dev

This commit is contained in:
Ilya Matyukhin
2021-04-15 17:35:30 +00:00
committed by Android (Google) Code Review
2 changed files with 8 additions and 7 deletions

View File

@@ -375,12 +375,12 @@ public class Sensor {
} }
@Override @Override
public void onFeaturesRetrieved(byte[] features, int enrollmentId) { public void onFeaturesRetrieved(byte[] features) {
} }
@Override @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 { public class TestHal extends IFace.Stub {
private static final String TAG = "face.aidl.TestHal"; private static final String TAG = "face.aidl.TestHal";
@Override @Override
public SensorProps[] getSensorProps() { public SensorProps[] getSensorProps() {
Slog.w(TAG, "getSensorProps"); Slog.w(TAG, "getSensorProps");
@@ -102,16 +103,16 @@ public class TestHal extends IFace.Stub {
} }
@Override @Override
public void getFeatures(int enrollmentId) throws RemoteException { public void getFeatures() throws RemoteException {
Slog.w(TAG, "getFeatures"); Slog.w(TAG, "getFeatures");
cb.onFeaturesRetrieved(new byte[0], enrollmentId); cb.onFeaturesRetrieved(new byte[0]);
} }
@Override @Override
public void setFeature(HardwareAuthToken hat, int enrollmentId, public void setFeature(HardwareAuthToken hat, byte feature, boolean enabled)
byte feature, boolean enabled) throws RemoteException { throws RemoteException {
Slog.w(TAG, "setFeature"); Slog.w(TAG, "setFeature");
cb.onFeatureSet(enrollmentId, feature); cb.onFeatureSet(feature);
} }
@Override @Override