package androidx.credentials.provider; import androidx.annotation.RestrictTo; import java.util.LinkedHashMap; import java.util.Objects; import kotlin.TuplesKt; import kotlin.collections.MapsKt__MapsKt; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.Intrinsics; /* loaded from: classes.dex */ public final class AuthenticationResult { public static final Companion Companion = new Companion(null); @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) public static final String EXTRA_BIOMETRIC_AUTH_RESULT_TYPE = "androidx.credentials.provider.BIOMETRIC_AUTH_RESULT"; @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) public static final String EXTRA_BIOMETRIC_AUTH_RESULT_TYPE_FALLBACK = "BIOMETRIC_AUTH_RESULT"; private static final LinkedHashMap biometricFrameworkToJetpackResultMap; private final int authenticationType; public final int getAuthenticationType() { return this.authenticationType; } public AuthenticationResult(int i) { this.authenticationType = i; } public static final class Companion { public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) { this(); } @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) public final AuthenticationResult createFrom$credentials_release(int i) { return createFrom$credentials_release$default(this, i, false, 2, null); } private Companion() { } public final LinkedHashMap getBiometricFrameworkToJetpackResultMap$credentials_release() { return AuthenticationResult.biometricFrameworkToJetpackResultMap; } public final int convertFrameworkBiometricResultToJetpack$credentials_release(int i) { if (getBiometricFrameworkToJetpackResultMap$credentials_release().containsKey(Integer.valueOf(i))) { Integer num = getBiometricFrameworkToJetpackResultMap$credentials_release().get(Integer.valueOf(i)); Intrinsics.checkNotNull(num); Intrinsics.checkNotNullExpressionValue(num, "{\n biomet…workCode]!!\n }"); return num.intValue(); } AuthenticationError.Companion.getTAG$credentials_release(); StringBuilder sb = new StringBuilder(); sb.append("Non framework result code, "); sb.append(i); sb.append(", "); return i; } public static /* synthetic */ AuthenticationResult createFrom$credentials_release$default(Companion companion, int i, boolean z, int i2, Object obj) { if ((i2 & 2) != 0) { z = true; } return companion.createFrom$credentials_release(i, z); } @RestrictTo({RestrictTo.Scope.LIBRARY_GROUP}) public final AuthenticationResult createFrom$credentials_release(int i, boolean z) { if (z) { i = convertFrameworkBiometricResultToJetpack$credentials_release(i); } return new AuthenticationResult(i); } } static { LinkedHashMap linkedMapOf; linkedMapOf = MapsKt__MapsKt.linkedMapOf(TuplesKt.to(2, 2), TuplesKt.to(1, 1)); biometricFrameworkToJetpackResultMap = linkedMapOf; } public boolean equals(Object obj) { if (this == obj) { return true; } return (obj instanceof AuthenticationResult) && this.authenticationType == ((AuthenticationResult) obj).authenticationType; } public int hashCode() { return Objects.hash(Integer.valueOf(this.authenticationType)); } }