Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44d1fcdf authored by Kevin Chyn's avatar Kevin Chyn Committed by Android (Google) Code Review
Browse files

Merge "Use userId instead of callingUserId"

parents 7bfe7b0c 3b9777b5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -653,7 +653,7 @@ public class BiometricService extends SystemService {
            }

            mHandler.post(() -> {
                final Pair<Integer, Integer> result = checkAndGetBiometricModality(callingUserId);
                final Pair<Integer, Integer> result = checkAndGetBiometricModality(userId);
                final int modality = result.first;
                final int error = result.second;

@@ -950,7 +950,7 @@ public class BiometricService extends SystemService {
     * {@link BiometricAuthenticator#TYPE_FACE}
     * and the error containing one of the {@link BiometricConstants} errors.
     */
    private Pair<Integer, Integer> checkAndGetBiometricModality(int callingUid) {
    private Pair<Integer, Integer> checkAndGetBiometricModality(int userId) {
        int modality = TYPE_NONE;

        // No biometric features, send error
@@ -979,7 +979,7 @@ public class BiometricService extends SystemService {
                    // order.
                    firstHwAvailable = modality;
                }
                if (authenticator.hasEnrolledTemplates(callingUid)) {
                if (authenticator.hasEnrolledTemplates(userId)) {
                    hasTemplatesEnrolled = true;
                    if (isEnabledForApp(modality)) {
                        // TODO(b/110907543): When face settings (and other settings) have both a