293 lines
		
	
	
		
			6.9 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			293 lines
		
	
	
		
			6.9 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Li3/d;
 | |
| .super Ljava/lang/Object;
 | |
| .source "AnimationUtilsCompat.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation build Landroidx/annotation/RestrictTo;
 | |
|     value = {
 | |
|         .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # 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;Landroid/content/res/Resources;Landroid/content/res/Resources$Theme;Lorg/xmlpull/v1/XmlPullParser;)Landroid/view/animation/Interpolator;
 | |
|     .locals 2
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Lorg/xmlpull/v1/XmlPullParserException;,
 | |
|             Ljava/io/IOException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-interface {p3}, Lorg/xmlpull/v1/XmlPullParser;->getDepth()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     const/4 p2, 0x0
 | |
| 
 | |
|     .line 2
 | |
|     :goto_0
 | |
|     invoke-interface {p3}, Lorg/xmlpull/v1/XmlPullParser;->next()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/4 v1, 0x3
 | |
| 
 | |
|     if-ne v0, v1, :cond_0
 | |
| 
 | |
|     invoke-interface {p3}, Lorg/xmlpull/v1/XmlPullParser;->getDepth()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-le v1, p1, :cond_c
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     if-eq v0, v1, :cond_c
 | |
| 
 | |
|     const/4 v1, 0x2
 | |
| 
 | |
|     if-eq v0, v1, :cond_1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_1
 | |
|     invoke-static {p3}, Landroid/util/Xml;->asAttributeSet(Lorg/xmlpull/v1/XmlPullParser;)Landroid/util/AttributeSet;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     .line 4
 | |
|     invoke-interface {p3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     const-string v1, "linearInterpolator"
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_2
 | |
| 
 | |
|     .line 6
 | |
|     new-instance p2, Landroid/view/animation/LinearInterpolator;
 | |
| 
 | |
|     invoke-direct {p2}, Landroid/view/animation/LinearInterpolator;-><init>()V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_2
 | |
|     const-string v1, "accelerateInterpolator"
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_3
 | |
| 
 | |
|     .line 8
 | |
|     new-instance v0, Landroid/view/animation/AccelerateInterpolator;
 | |
| 
 | |
|     invoke-direct {v0, p0, p2}, Landroid/view/animation/AccelerateInterpolator;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
 | |
| 
 | |
|     :goto_1
 | |
|     move-object p2, v0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_3
 | |
|     const-string v1, "decelerateInterpolator"
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_4
 | |
| 
 | |
|     .line 10
 | |
|     new-instance v0, Landroid/view/animation/DecelerateInterpolator;
 | |
| 
 | |
|     invoke-direct {v0, p0, p2}, Landroid/view/animation/DecelerateInterpolator;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_4
 | |
|     const-string v1, "accelerateDecelerateInterpolator"
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_5
 | |
| 
 | |
|     .line 12
 | |
|     new-instance p2, Landroid/view/animation/AccelerateDecelerateInterpolator;
 | |
| 
 | |
|     invoke-direct {p2}, Landroid/view/animation/AccelerateDecelerateInterpolator;-><init>()V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_5
 | |
|     const-string v1, "cycleInterpolator"
 | |
| 
 | |
|     .line 13
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_6
 | |
| 
 | |
|     .line 14
 | |
|     new-instance v0, Landroid/view/animation/CycleInterpolator;
 | |
| 
 | |
|     invoke-direct {v0, p0, p2}, Landroid/view/animation/CycleInterpolator;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_6
 | |
|     const-string v1, "anticipateInterpolator"
 | |
| 
 | |
|     .line 15
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_7
 | |
| 
 | |
|     .line 16
 | |
|     new-instance v0, Landroid/view/animation/AnticipateInterpolator;
 | |
| 
 | |
|     invoke-direct {v0, p0, p2}, Landroid/view/animation/AnticipateInterpolator;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_7
 | |
|     const-string v1, "overshootInterpolator"
 | |
| 
 | |
|     .line 17
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_8
 | |
| 
 | |
|     .line 18
 | |
|     new-instance v0, Landroid/view/animation/OvershootInterpolator;
 | |
| 
 | |
|     invoke-direct {v0, p0, p2}, Landroid/view/animation/OvershootInterpolator;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_8
 | |
|     const-string v1, "anticipateOvershootInterpolator"
 | |
| 
 | |
|     .line 19
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_9
 | |
| 
 | |
|     .line 20
 | |
|     new-instance v0, Landroid/view/animation/AnticipateOvershootInterpolator;
 | |
| 
 | |
|     invoke-direct {v0, p0, p2}, Landroid/view/animation/AnticipateOvershootInterpolator;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_9
 | |
|     const-string v1, "bounceInterpolator"
 | |
| 
 | |
|     .line 21
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_a
 | |
| 
 | |
|     .line 22
 | |
|     new-instance p2, Landroid/view/animation/BounceInterpolator;
 | |
| 
 | |
|     invoke-direct {p2}, Landroid/view/animation/BounceInterpolator;-><init>()V
 | |
| 
 | |
|     goto/16 :goto_0
 | |
| 
 | |
|     :cond_a
 | |
|     const-string v1, "pathInterpolator"
 | |
| 
 | |
|     .line 23
 | |
|     invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_b
 | |
| 
 | |
|     .line 24
 | |
|     new-instance v0, Li3/g;
 | |
| 
 | |
|     invoke-direct {v0, p0, p2, p3}, Li3/g;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;Lorg/xmlpull/v1/XmlPullParser;)V
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     .line 25
 | |
|     :cond_b
 | |
|     new-instance p0, Ljava/lang/RuntimeException;
 | |
| 
 | |
|     const-string p1, "Unknown interpolator name: "
 | |
| 
 | |
|     invoke-static {p1}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-interface {p3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p0
 | |
| 
 | |
|     :cond_c
 | |
|     return-object p2
 | |
| .end method
 | |
| 
 | |
| .method public static b(Landroid/content/Context;I)Landroid/view/animation/Interpolator;
 | |
|     .locals 0
 | |
|     .annotation system Ldalvik/annotation/Throws;
 | |
|         value = {
 | |
|             Landroid/content/res/Resources$NotFoundException;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0, p1}, Landroid/view/animation/AnimationUtils;->loadInterpolator(Landroid/content/Context;I)Landroid/view/animation/Interpolator;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 |