Loading core/java/android/hardware/biometrics/IBiometricAuthenticator.aidl +1 −1 Original line number Original line Diff line number Diff line Loading @@ -36,7 +36,7 @@ interface IBiometricAuthenticator { // Retrieve static sensor properties // Retrieve static sensor properties SensorPropertiesInternal getSensorProperties(String opPackageName); SensorPropertiesInternal getSensorProperties(String opPackageName); // Requests a proto dump of the service. See biometrics.proto // Requests a proto dump of the sensor. See biometrics.proto byte[] dumpSensorServiceStateProto(); byte[] dumpSensorServiceStateProto(); // This method prepares the service to start authenticating, but doesn't start authentication. // This method prepares the service to start authenticating, but doesn't start authentication. Loading core/java/android/hardware/face/IFaceService.aidl +2 −2 Original line number Original line Diff line number Diff line Loading @@ -33,8 +33,8 @@ interface IFaceService { // Creates a test session with the specified sensorId // Creates a test session with the specified sensorId ITestSession createTestSession(int sensorId, String opPackageName); ITestSession createTestSession(int sensorId, String opPackageName); // Requests a proto dump of the service to the specified fd // Requests a proto dump of the specified sensor byte[] dumpSensorServiceStateProto(); byte[] dumpSensorServiceStateProto(int sensorId); // Retrieve static sensor properties for all face sensors // Retrieve static sensor properties for all face sensors List<FaceSensorPropertiesInternal> getSensorPropertiesInternal(String opPackageName); List<FaceSensorPropertiesInternal> getSensorPropertiesInternal(String opPackageName); Loading core/java/android/hardware/fingerprint/IFingerprintService.aidl +2 −2 Original line number Original line Diff line number Diff line Loading @@ -34,8 +34,8 @@ interface IFingerprintService { // Creates a test session with the specified sensorId // Creates a test session with the specified sensorId ITestSession createTestSession(int sensorId, String opPackageName); ITestSession createTestSession(int sensorId, String opPackageName); // Requests a proto dump of the service to the specified fd // Requests a proto dump of the specified sensor byte[] dumpSensorServiceStateProto(); byte[] dumpSensorServiceStateProto(int sensorId); // Retrieve static sensor properties for all fingerprint sensors // Retrieve static sensor properties for all fingerprint sensors List<FingerprintSensorPropertiesInternal> getSensorPropertiesInternal(String opPackageName); List<FingerprintSensorPropertiesInternal> getSensorPropertiesInternal(String opPackageName); Loading services/core/java/com/android/server/biometrics/sensors/face/FaceAuthenticator.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -53,7 +53,7 @@ public final class FaceAuthenticator extends IBiometricAuthenticator.Stub { @Override @Override public byte[] dumpSensorServiceStateProto() throws RemoteException { public byte[] dumpSensorServiceStateProto() throws RemoteException { return mFaceService.dumpSensorServiceStateProto(); return mFaceService.dumpSensorServiceStateProto(mSensorId); } } @Override @Override Loading services/core/java/com/android/server/biometrics/sensors/face/FaceService.java +4 −5 Original line number Original line Diff line number Diff line Loading @@ -157,14 +157,13 @@ public class FaceService extends SystemService implements BiometricServiceCallba } } @Override @Override public byte[] dumpSensorServiceStateProto() { public byte[] dumpSensorServiceStateProto(int sensorId) { Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); final ProtoOutputStream proto = new ProtoOutputStream(); final ProtoOutputStream proto = new ProtoOutputStream(); for (ServiceProvider provider : mServiceProviders) { final ServiceProvider provider = getProviderForSensor(sensorId); for (FaceSensorPropertiesInternal props : provider.getSensorProperties()) { if (provider != null) { provider.dumpProtoState(props.sensorId, proto); provider.dumpProtoState(sensorId, proto); } } } proto.flush(); proto.flush(); return proto.getBytes(); return proto.getBytes(); Loading Loading
core/java/android/hardware/biometrics/IBiometricAuthenticator.aidl +1 −1 Original line number Original line Diff line number Diff line Loading @@ -36,7 +36,7 @@ interface IBiometricAuthenticator { // Retrieve static sensor properties // Retrieve static sensor properties SensorPropertiesInternal getSensorProperties(String opPackageName); SensorPropertiesInternal getSensorProperties(String opPackageName); // Requests a proto dump of the service. See biometrics.proto // Requests a proto dump of the sensor. See biometrics.proto byte[] dumpSensorServiceStateProto(); byte[] dumpSensorServiceStateProto(); // This method prepares the service to start authenticating, but doesn't start authentication. // This method prepares the service to start authenticating, but doesn't start authentication. Loading
core/java/android/hardware/face/IFaceService.aidl +2 −2 Original line number Original line Diff line number Diff line Loading @@ -33,8 +33,8 @@ interface IFaceService { // Creates a test session with the specified sensorId // Creates a test session with the specified sensorId ITestSession createTestSession(int sensorId, String opPackageName); ITestSession createTestSession(int sensorId, String opPackageName); // Requests a proto dump of the service to the specified fd // Requests a proto dump of the specified sensor byte[] dumpSensorServiceStateProto(); byte[] dumpSensorServiceStateProto(int sensorId); // Retrieve static sensor properties for all face sensors // Retrieve static sensor properties for all face sensors List<FaceSensorPropertiesInternal> getSensorPropertiesInternal(String opPackageName); List<FaceSensorPropertiesInternal> getSensorPropertiesInternal(String opPackageName); Loading
core/java/android/hardware/fingerprint/IFingerprintService.aidl +2 −2 Original line number Original line Diff line number Diff line Loading @@ -34,8 +34,8 @@ interface IFingerprintService { // Creates a test session with the specified sensorId // Creates a test session with the specified sensorId ITestSession createTestSession(int sensorId, String opPackageName); ITestSession createTestSession(int sensorId, String opPackageName); // Requests a proto dump of the service to the specified fd // Requests a proto dump of the specified sensor byte[] dumpSensorServiceStateProto(); byte[] dumpSensorServiceStateProto(int sensorId); // Retrieve static sensor properties for all fingerprint sensors // Retrieve static sensor properties for all fingerprint sensors List<FingerprintSensorPropertiesInternal> getSensorPropertiesInternal(String opPackageName); List<FingerprintSensorPropertiesInternal> getSensorPropertiesInternal(String opPackageName); Loading
services/core/java/com/android/server/biometrics/sensors/face/FaceAuthenticator.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -53,7 +53,7 @@ public final class FaceAuthenticator extends IBiometricAuthenticator.Stub { @Override @Override public byte[] dumpSensorServiceStateProto() throws RemoteException { public byte[] dumpSensorServiceStateProto() throws RemoteException { return mFaceService.dumpSensorServiceStateProto(); return mFaceService.dumpSensorServiceStateProto(mSensorId); } } @Override @Override Loading
services/core/java/com/android/server/biometrics/sensors/face/FaceService.java +4 −5 Original line number Original line Diff line number Diff line Loading @@ -157,14 +157,13 @@ public class FaceService extends SystemService implements BiometricServiceCallba } } @Override @Override public byte[] dumpSensorServiceStateProto() { public byte[] dumpSensorServiceStateProto(int sensorId) { Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); Utils.checkPermission(getContext(), USE_BIOMETRIC_INTERNAL); final ProtoOutputStream proto = new ProtoOutputStream(); final ProtoOutputStream proto = new ProtoOutputStream(); for (ServiceProvider provider : mServiceProviders) { final ServiceProvider provider = getProviderForSensor(sensorId); for (FaceSensorPropertiesInternal props : provider.getSensorProperties()) { if (provider != null) { provider.dumpProtoState(props.sensorId, proto); provider.dumpProtoState(sensorId, proto); } } } proto.flush(); proto.flush(); return proto.getBytes(); return proto.getBytes(); Loading