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
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