229 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			229 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Landroidx/navigation/x$a;
 | |
| .super Ljava/lang/Object;
 | |
| .source "NavDeepLinkRequest.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Landroidx/navigation/x;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x19
 | |
|     name = "a"
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public a:Landroid/net/Uri;
 | |
| 
 | |
| .field public b:Ljava/lang/String;
 | |
| 
 | |
| .field public c:Ljava/lang/String;
 | |
| 
 | |
| 
 | |
| # 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 b(Ljava/lang/String;)Landroidx/navigation/x$a;
 | |
|     .locals 1
 | |
|     .param p0    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Ljava/lang/String;->isEmpty()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Landroidx/navigation/x$a;
 | |
| 
 | |
|     invoke-direct {v0}, Landroidx/navigation/x$a;-><init>()V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0, p0}, Landroidx/navigation/x$a;->e(Ljava/lang/String;)Landroidx/navigation/x$a;
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     new-instance p0, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string v0, "The NavDeepLinkRequest cannot have an empty action."
 | |
| 
 | |
|     invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p0
 | |
| .end method
 | |
| 
 | |
| .method public static c(Ljava/lang/String;)Landroidx/navigation/x$a;
 | |
|     .locals 1
 | |
|     .param p0    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Landroidx/navigation/x$a;
 | |
| 
 | |
|     invoke-direct {v0}, Landroidx/navigation/x$a;-><init>()V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0, p0}, Landroidx/navigation/x$a;->f(Ljava/lang/String;)Landroidx/navigation/x$a;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static d(Landroid/net/Uri;)Landroidx/navigation/x$a;
 | |
|     .locals 1
 | |
|     .param p0    # Landroid/net/Uri;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Landroidx/navigation/x$a;
 | |
| 
 | |
|     invoke-direct {v0}, Landroidx/navigation/x$a;-><init>()V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0, p0}, Landroidx/navigation/x$a;->g(Landroid/net/Uri;)Landroidx/navigation/x$a;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public a()Landroidx/navigation/x;
 | |
|     .locals 4
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Landroidx/navigation/x;
 | |
| 
 | |
|     iget-object v1, p0, Landroidx/navigation/x$a;->a:Landroid/net/Uri;
 | |
| 
 | |
|     iget-object v2, p0, Landroidx/navigation/x$a;->b:Ljava/lang/String;
 | |
| 
 | |
|     iget-object v3, p0, Landroidx/navigation/x$a;->c:Ljava/lang/String;
 | |
| 
 | |
|     invoke-direct {v0, v1, v2, v3}, Landroidx/navigation/x;-><init>(Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;)V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public e(Ljava/lang/String;)Landroidx/navigation/x$a;
 | |
|     .locals 1
 | |
|     .param p1    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p1}, Ljava/lang/String;->isEmpty()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Landroidx/navigation/x$a;->b:Ljava/lang/String;
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     new-instance p1, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string v0, "The NavDeepLinkRequest cannot have an empty action."
 | |
| 
 | |
|     invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public f(Ljava/lang/String;)Landroidx/navigation/x$a;
 | |
|     .locals 3
 | |
|     .param p1    # Ljava/lang/String;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "^[-\\w*.]+/[-\\w+*.]+$"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0, p1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0}, Ljava/util/regex/Matcher;->matches()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     iput-object p1, p0, Landroidx/navigation/x$a;->c:Ljava/lang/String;
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string v1, "The given mimeType "
 | |
| 
 | |
|     const-string v2, " does not match to required \"type/subtype\" format"
 | |
| 
 | |
|     invoke-static {v1, p1, v2}, Landroid/support/v4/media/f;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw v0
 | |
| .end method
 | |
| 
 | |
| .method public g(Landroid/net/Uri;)Landroidx/navigation/x$a;
 | |
|     .locals 0
 | |
|     .param p1    # Landroid/net/Uri;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iput-object p1, p0, Landroidx/navigation/x$a;->a:Landroid/net/Uri;
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 |