192 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			192 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Landroidx/biometric/j;
 | |
| .super Ljava/lang/Object;
 | |
| .source "ErrorUtils.java"
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static a(Landroid/content/Context;I)Ljava/lang/String;
 | |
|     .locals 2
 | |
|     .param p0    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     if-nez p0, :cond_0
 | |
| 
 | |
|     const-string p0, ""
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     if-eq p1, v0, :cond_2
 | |
| 
 | |
|     const/4 v0, 0x7
 | |
| 
 | |
|     if-eq p1, v0, :cond_1
 | |
| 
 | |
|     packed-switch p1, :pswitch_data_0
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
 | |
| 
 | |
|     const-string v1, "Unknown error code: "
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     const-string v0, "BiometricUtils"
 | |
| 
 | |
|     invoke-static {v0, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
 | |
| 
 | |
|     .line 2
 | |
|     sget p1, Landroidx/biometric/R$string;->default_error_msg:I
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 3
 | |
|     :pswitch_0
 | |
|     sget p1, Landroidx/biometric/R$string;->fingerprint_error_hw_not_present:I
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 4
 | |
|     :pswitch_1
 | |
|     sget p1, Landroidx/biometric/R$string;->fingerprint_error_no_fingerprints:I
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 5
 | |
|     :pswitch_2
 | |
|     sget p1, Landroidx/biometric/R$string;->fingerprint_error_user_canceled:I
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     :pswitch_3
 | |
|     sget p1, Landroidx/biometric/R$string;->fingerprint_error_lockout:I
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 7
 | |
|     :cond_2
 | |
|     sget p1, Landroidx/biometric/R$string;->fingerprint_error_hw_not_available:I
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     :pswitch_data_0
 | |
|     .packed-switch 0x9
 | |
|         :pswitch_3
 | |
|         :pswitch_2
 | |
|         :pswitch_1
 | |
|         :pswitch_0
 | |
|     .end packed-switch
 | |
| .end method
 | |
| 
 | |
| .method public static b(I)Z
 | |
|     .locals 0
 | |
| 
 | |
|     packed-switch p0, :pswitch_data_0
 | |
| 
 | |
|     :pswitch_0
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     return p0
 | |
| 
 | |
|     :pswitch_1
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     return p0
 | |
| 
 | |
|     nop
 | |
| 
 | |
|     :pswitch_data_0
 | |
|     .packed-switch 0x1
 | |
|         :pswitch_1
 | |
|         :pswitch_1
 | |
|         :pswitch_1
 | |
|         :pswitch_1
 | |
|         :pswitch_1
 | |
|         :pswitch_0
 | |
|         :pswitch_1
 | |
|         :pswitch_1
 | |
|         :pswitch_1
 | |
|         :pswitch_1
 | |
|         :pswitch_1
 | |
|         :pswitch_1
 | |
|         :pswitch_1
 | |
|         :pswitch_1
 | |
|         :pswitch_1
 | |
|     .end packed-switch
 | |
| .end method
 | |
| 
 | |
| .method public static c(I)Z
 | |
|     .locals 1
 | |
| 
 | |
|     const/4 v0, 0x7
 | |
| 
 | |
|     if-eq p0, v0, :cond_1
 | |
| 
 | |
|     const/16 v0, 0x9
 | |
| 
 | |
|     if-ne p0, v0, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_1
 | |
|     :goto_0
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     :goto_1
 | |
|     return p0
 | |
| .end method
 |