Loading services/core/java/com/android/server/biometrics/BiometricServiceBase.java +1 −1 Original line number Diff line number Diff line Loading @@ -279,7 +279,7 @@ public abstract class BiometricServiceBase extends SystemService } } protected class EnrollClientImpl extends EnrollClient { protected abstract class EnrollClientImpl extends EnrollClient { public EnrollClientImpl(Context context, DaemonWrapper daemon, long halDeviceId, IBinder token, ServiceListener listener, int userId, int groupId, Loading services/core/java/com/android/server/biometrics/EnrollClient.java +5 −1 Original line number Diff line number Diff line Loading @@ -36,6 +36,8 @@ public abstract class EnrollClient extends ClientMonitor { private final BiometricUtils mBiometricUtils; private final int[] mDisabledFeatures; public abstract boolean shouldVibrate(); public EnrollClient(Context context, Metrics metrics, BiometricServiceBase.DaemonWrapper daemon, long halDeviceId, IBinder token, BiometricServiceBase.ServiceListener listener, int userId, int groupId, Loading @@ -62,7 +64,9 @@ public abstract class EnrollClient extends ClientMonitor { */ private boolean sendEnrollResult(BiometricAuthenticator.Identifier identifier, int remaining) { if (shouldVibrate()) { vibrateSuccess(); } mMetricsLogger.action(mMetrics.actionBiometricEnroll()); try { getListener().onEnrollResult(identifier, remaining); Loading services/core/java/com/android/server/biometrics/face/FaceService.java +6 −1 Original line number Diff line number Diff line Loading @@ -121,7 +121,12 @@ public class FaceService extends BiometricServiceBase { final boolean restricted = isRestricted(); final EnrollClientImpl client = new EnrollClientImpl(getContext(), mDaemonWrapper, mHalDeviceId, token, new ServiceListenerImpl(receiver), mCurrentUserId, 0 /* groupId */, cryptoToken, restricted, opPackageName, disabledFeatures); 0 /* groupId */, cryptoToken, restricted, opPackageName, disabledFeatures) { @Override public boolean shouldVibrate() { return false; } }; enrollInternal(client, UserHandle.getCallingUserId()); } Loading services/core/java/com/android/server/biometrics/fingerprint/FingerprintService.java +6 −1 Original line number Diff line number Diff line Loading @@ -142,7 +142,12 @@ public class FingerprintService extends BiometricServiceBase { final int groupId = userId; // default group for fingerprint enrollment final EnrollClientImpl client = new EnrollClientImpl(getContext(), mDaemonWrapper, mHalDeviceId, token, new ServiceListenerImpl(receiver), mCurrentUserId, groupId, cryptoToken, restricted, opPackageName, new int[0] /* disabledFeatures */); cryptoToken, restricted, opPackageName, new int[0] /* disabledFeatures */) { @Override public boolean shouldVibrate() { return true; } }; enrollInternal(client, userId); } Loading Loading
services/core/java/com/android/server/biometrics/BiometricServiceBase.java +1 −1 Original line number Diff line number Diff line Loading @@ -279,7 +279,7 @@ public abstract class BiometricServiceBase extends SystemService } } protected class EnrollClientImpl extends EnrollClient { protected abstract class EnrollClientImpl extends EnrollClient { public EnrollClientImpl(Context context, DaemonWrapper daemon, long halDeviceId, IBinder token, ServiceListener listener, int userId, int groupId, Loading
services/core/java/com/android/server/biometrics/EnrollClient.java +5 −1 Original line number Diff line number Diff line Loading @@ -36,6 +36,8 @@ public abstract class EnrollClient extends ClientMonitor { private final BiometricUtils mBiometricUtils; private final int[] mDisabledFeatures; public abstract boolean shouldVibrate(); public EnrollClient(Context context, Metrics metrics, BiometricServiceBase.DaemonWrapper daemon, long halDeviceId, IBinder token, BiometricServiceBase.ServiceListener listener, int userId, int groupId, Loading @@ -62,7 +64,9 @@ public abstract class EnrollClient extends ClientMonitor { */ private boolean sendEnrollResult(BiometricAuthenticator.Identifier identifier, int remaining) { if (shouldVibrate()) { vibrateSuccess(); } mMetricsLogger.action(mMetrics.actionBiometricEnroll()); try { getListener().onEnrollResult(identifier, remaining); Loading
services/core/java/com/android/server/biometrics/face/FaceService.java +6 −1 Original line number Diff line number Diff line Loading @@ -121,7 +121,12 @@ public class FaceService extends BiometricServiceBase { final boolean restricted = isRestricted(); final EnrollClientImpl client = new EnrollClientImpl(getContext(), mDaemonWrapper, mHalDeviceId, token, new ServiceListenerImpl(receiver), mCurrentUserId, 0 /* groupId */, cryptoToken, restricted, opPackageName, disabledFeatures); 0 /* groupId */, cryptoToken, restricted, opPackageName, disabledFeatures) { @Override public boolean shouldVibrate() { return false; } }; enrollInternal(client, UserHandle.getCallingUserId()); } Loading
services/core/java/com/android/server/biometrics/fingerprint/FingerprintService.java +6 −1 Original line number Diff line number Diff line Loading @@ -142,7 +142,12 @@ public class FingerprintService extends BiometricServiceBase { final int groupId = userId; // default group for fingerprint enrollment final EnrollClientImpl client = new EnrollClientImpl(getContext(), mDaemonWrapper, mHalDeviceId, token, new ServiceListenerImpl(receiver), mCurrentUserId, groupId, cryptoToken, restricted, opPackageName, new int[0] /* disabledFeatures */); cryptoToken, restricted, opPackageName, new int[0] /* disabledFeatures */) { @Override public boolean shouldVibrate() { return true; } }; enrollInternal(client, userId); } Loading