423 lines
		
	
	
		
			9.9 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			423 lines
		
	
	
		
			9.9 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public final Lg/a;
 | |
| .super Ljava/lang/Object;
 | |
| .source "AppCompatResources.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation build Landroid/annotation/SuppressLint;
 | |
|     value = {
 | |
|         "RestrictedAPI"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/MemberClasses;
 | |
|     value = {
 | |
|         Lg/a$a;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field public static final a:Ljava/lang/String; = "AppCompatResources"
 | |
| 
 | |
| .field public static final b:Ljava/lang/ThreadLocal;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/lang/ThreadLocal<",
 | |
|             "Landroid/util/TypedValue;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public static final c:Ljava/util/WeakHashMap;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/util/WeakHashMap<",
 | |
|             "Landroid/content/Context;",
 | |
|             "Landroid/util/SparseArray<",
 | |
|             "Lg/a$a;",
 | |
|             ">;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public static final d:Ljava/lang/Object;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/lang/ThreadLocal;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/lang/ThreadLocal;-><init>()V
 | |
| 
 | |
|     sput-object v0, Lg/a;->b:Ljava/lang/ThreadLocal;
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Ljava/util/WeakHashMap;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-direct {v0, v1}, Ljava/util/WeakHashMap;-><init>(I)V
 | |
| 
 | |
|     sput-object v0, Lg/a;->c:Ljava/util/WeakHashMap;
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Ljava/lang/Object;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     sput-object v0, Lg/a;->d:Ljava/lang/Object;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .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;ILandroid/content/res/ColorStateList;)V
 | |
|     .locals 3
 | |
|     .param p0    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/ColorRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lg/a;->d:Ljava/lang/Object;
 | |
| 
 | |
|     monitor-enter v0
 | |
| 
 | |
|     .line 2
 | |
|     :try_start_0
 | |
|     sget-object v1, Lg/a;->c:Ljava/util/WeakHashMap;
 | |
| 
 | |
|     invoke-virtual {v1, p0}, Ljava/util/WeakHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     check-cast v2, Landroid/util/SparseArray;
 | |
| 
 | |
|     if-nez v2, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v2, Landroid/util/SparseArray;
 | |
| 
 | |
|     invoke-direct {v2}, Landroid/util/SparseArray;-><init>()V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v1, p0, v2}, Ljava/util/WeakHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     new-instance v1, Lg/a$a;
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-direct {v1, p2, p0}, Lg/a$a;-><init>(Landroid/content/res/ColorStateList;Landroid/content/res/Configuration;)V
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v2, p1, v1}, Landroid/util/SparseArray;->append(ILjava/lang/Object;)V
 | |
| 
 | |
|     .line 8
 | |
|     monitor-exit v0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p0
 | |
| 
 | |
|     monitor-exit v0
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     throw p0
 | |
| .end method
 | |
| 
 | |
| .method public static b(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
 | |
|     .locals 4
 | |
|     .param p0    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/ColorRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lg/a;->d:Ljava/lang/Object;
 | |
| 
 | |
|     monitor-enter v0
 | |
| 
 | |
|     .line 2
 | |
|     :try_start_0
 | |
|     sget-object v1, Lg/a;->c:Ljava/util/WeakHashMap;
 | |
| 
 | |
|     invoke-virtual {v1, p0}, Ljava/util/WeakHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     check-cast v1, Landroid/util/SparseArray;
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v1}, Landroid/util/SparseArray;->size()I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     if-lez v2, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v1, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     check-cast v2, Lg/a$a;
 | |
| 
 | |
|     if-eqz v2, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v3, v2, Lg/a$a;->b:Landroid/content/res/Configuration;
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-virtual {v3, p0}, Landroid/content/res/Configuration;->equals(Landroid/content/res/Configuration;)Z
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     if-eqz p0, :cond_0
 | |
| 
 | |
|     .line 6
 | |
|     iget-object p0, v2, Lg/a$a;->a:Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     monitor-exit v0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 7
 | |
|     :cond_0
 | |
|     invoke-virtual {v1, p1}, Landroid/util/SparseArray;->remove(I)V
 | |
| 
 | |
|     .line 8
 | |
|     :cond_1
 | |
|     monitor-exit v0
 | |
| 
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p0
 | |
| 
 | |
|     monitor-exit v0
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     throw p0
 | |
| .end method
 | |
| 
 | |
| .method public static c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
 | |
|     .locals 0
 | |
|     .param p0    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/ColorRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, p1}, Landroid/content/Context;->getColorStateList(I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static d(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
 | |
|     .locals 1
 | |
|     .param p0    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DrawableRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {}, Landroidx/appcompat/widget/w;->h()Landroidx/appcompat/widget/w;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p0, p1}, Landroidx/appcompat/widget/w;->j(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static e()Landroid/util/TypedValue;
 | |
|     .locals 2
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lg/a;->b:Ljava/lang/ThreadLocal;
 | |
| 
 | |
|     invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     check-cast v1, Landroid/util/TypedValue;
 | |
| 
 | |
|     if-nez v1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v1, Landroid/util/TypedValue;
 | |
| 
 | |
|     invoke-direct {v1}, Landroid/util/TypedValue;-><init>()V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-object v1
 | |
| .end method
 | |
| 
 | |
| .method public static f(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
 | |
|     .locals 2
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, p1}, Lg/a;->g(Landroid/content/Context;I)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     return-object v1
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getXml(I)Landroid/content/res/XmlResourceParser;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 4
 | |
|     :try_start_0
 | |
|     invoke-virtual {p0}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-static {v0, p1, p0}, Lz0/c;->a(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/content/res/Resources$Theme;)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p0
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception p0
 | |
| 
 | |
|     const-string p1, "AppCompatResources"
 | |
| 
 | |
|     const-string v0, "Failed to inflate ColorStateList, leaving it to the framework"
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {p1, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
 | |
| 
 | |
|     return-object v1
 | |
| .end method
 | |
| 
 | |
| .method public static g(Landroid/content/Context;I)Z
 | |
|     .locals 2
 | |
|     .param p0    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/ColorRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {}, Lg/a;->e()Landroid/util/TypedValue;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0, p1, v0, v1}, Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V
 | |
| 
 | |
|     .line 4
 | |
|     iget p0, v0, Landroid/util/TypedValue;->type:I
 | |
| 
 | |
|     const/16 p1, 0x1c
 | |
| 
 | |
|     if-lt p0, p1, :cond_0
 | |
| 
 | |
|     const/16 p1, 0x1f
 | |
| 
 | |
|     if-gt p0, p1, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v1
 | |
| .end method
 |