65 lines
2.5 KiB
Java
65 lines
2.5 KiB
Java
package o;
|
|
|
|
import android.app.KeyguardManager;
|
|
import android.hardware.fingerprint.FingerprintManager;
|
|
import android.os.CancellationSignal;
|
|
import com.scb.phone.view.activity.prelogin.FingerprintHelperInterface;
|
|
|
|
/* renamed from: o.egF, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C11482egF extends FingerprintManager.AuthenticationCallback implements FingerprintHelperInterface {
|
|
private final KeyguardManager a;
|
|
public FingerprintHelperInterface.LWm b;
|
|
public final FingerprintManager d;
|
|
public CancellationSignal e;
|
|
|
|
@InterfaceC13391fZD
|
|
public C11482egF(KeyguardManager keyguardManager, FingerprintManager fingerprintManager) {
|
|
this.a = keyguardManager;
|
|
this.d = fingerprintManager;
|
|
}
|
|
|
|
public final boolean a() {
|
|
KeyguardManager keyguardManager = this.a;
|
|
return keyguardManager != null && this.d != null && keyguardManager.isKeyguardSecure() && this.d.isHardwareDetected();
|
|
}
|
|
|
|
@Override // android.hardware.fingerprint.FingerprintManager.AuthenticationCallback
|
|
public final void onAuthenticationError(int i, CharSequence charSequence) {
|
|
super.onAuthenticationError(i, charSequence);
|
|
FingerprintHelperInterface.LWm lWm = this.b;
|
|
if (lWm != null) {
|
|
lWm.e(new FingerprintHelperInterface.FingerprintException(charSequence.toString()));
|
|
this.b = null;
|
|
}
|
|
}
|
|
|
|
@Override // android.hardware.fingerprint.FingerprintManager.AuthenticationCallback
|
|
public final void onAuthenticationHelp(int i, CharSequence charSequence) {
|
|
super.onAuthenticationHelp(i, charSequence);
|
|
FingerprintHelperInterface.LWm lWm = this.b;
|
|
if (lWm != null) {
|
|
lWm.d(charSequence.toString());
|
|
}
|
|
}
|
|
|
|
@Override // android.hardware.fingerprint.FingerprintManager.AuthenticationCallback
|
|
public final void onAuthenticationSucceeded(FingerprintManager.AuthenticationResult authenticationResult) {
|
|
super.onAuthenticationSucceeded(authenticationResult);
|
|
FingerprintHelperInterface.LWm lWm = this.b;
|
|
if (lWm != null) {
|
|
lWm.c();
|
|
this.b = null;
|
|
}
|
|
}
|
|
|
|
@Override // android.hardware.fingerprint.FingerprintManager.AuthenticationCallback
|
|
public final void onAuthenticationFailed() {
|
|
super.onAuthenticationFailed();
|
|
FingerprintHelperInterface.LWm lWm = this.b;
|
|
if (lWm != null) {
|
|
lWm.d("Fingerprint is valid but not recognized.");
|
|
}
|
|
}
|
|
}
|