.class public Landroidx/transition/TransitionInflater; .super Ljava/lang/Object; .source "TransitionInflater.java" # static fields .field private static final CONSTRUCTORS:Landroidx/collection/ArrayMap; .annotation system Ldalvik/annotation/Signature; value = { "Landroidx/collection/ArrayMap<", "Ljava/lang/String;", "Ljava/lang/reflect/Constructor<", "*>;>;" } .end annotation .end field .field private static final CONSTRUCTOR_SIGNATURE:[Ljava/lang/Class; .annotation system Ldalvik/annotation/Signature; value = { "[", "Ljava/lang/Class<", "*>;" } .end annotation .end field # instance fields .field private final mContext:Landroid/content/Context; # direct methods .method static constructor ()V .locals 3 const/4 v0, 0x2 new-array v0, v0, [Ljava/lang/Class; const/4 v1, 0x0 .line 44 const-class v2, Landroid/content/Context; aput-object v2, v0, v1 const/4 v1, 0x1 const-class v2, Landroid/util/AttributeSet; aput-object v2, v0, v1 sput-object v0, Landroidx/transition/TransitionInflater;->CONSTRUCTOR_SIGNATURE:[Ljava/lang/Class; .line 46 new-instance v0, Landroidx/collection/ArrayMap; invoke-direct {v0}, Landroidx/collection/ArrayMap;->()V sput-object v0, Landroidx/transition/TransitionInflater;->CONSTRUCTORS:Landroidx/collection/ArrayMap; return-void .end method .method private constructor (Landroid/content/Context;)V .locals 0 .line 50 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; return-void .end method .method private createCustom(Landroid/util/AttributeSet;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object; .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/util/AttributeSet;", "Ljava/lang/Class<", "*>;", "Ljava/lang/String;", ")", "Ljava/lang/Object;" } .end annotation const/4 v0, 0x0 const-string v1, "class" .line 195 invoke-interface {p1, v0, v1}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; move-result-object v0 if-eqz v0, :cond_1 :try_start_0 sget-object p3, Landroidx/transition/TransitionInflater;->CONSTRUCTORS:Landroidx/collection/ArrayMap; .line 202 monitor-enter p3 :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 .line 203 :try_start_1 invoke-virtual {p3, v0}, Landroidx/collection/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/lang/reflect/Constructor; const/4 v2, 0x1 const/4 v3, 0x0 if-nez v1, :cond_0 iget-object v4, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; .line 206 invoke-virtual {v4}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader; move-result-object v4 invoke-static {v0, v3, v4}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class; move-result-object v4 .line 207 invoke-virtual {v4, p2}, Ljava/lang/Class;->asSubclass(Ljava/lang/Class;)Ljava/lang/Class; move-result-object v4 if-eqz v4, :cond_0 sget-object v1, Landroidx/transition/TransitionInflater;->CONSTRUCTOR_SIGNATURE:[Ljava/lang/Class; .line 209 invoke-virtual {v4, v1}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor; move-result-object v1 .line 210 invoke-virtual {v1, v2}, Ljava/lang/reflect/Constructor;->setAccessible(Z)V .line 211 invoke-virtual {p3, v0, v1}, Landroidx/collection/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; :cond_0 const/4 v4, 0x2 new-array v4, v4, [Ljava/lang/Object; iget-object p0, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; aput-object p0, v4, v3 aput-object p1, v4, v2 .line 215 invoke-virtual {v1, v4}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 monitor-exit p3 return-object p0 :catchall_0 move-exception p0 .line 216 monitor-exit p3 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 :try_start_2 throw p0 :try_end_2 .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0 :catch_0 move-exception p0 .line 218 new-instance p1, Landroid/view/InflateException; new-instance p3, Ljava/lang/StringBuilder; const-string v1, "Could not instantiate " invoke-direct {p3, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object p2 const-string p3, " class " invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p2 invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p2 invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p2 invoke-direct {p1, p2, p0}, Landroid/view/InflateException;->(Ljava/lang/String;Ljava/lang/Throwable;)V throw p1 .line 198 :cond_1 new-instance p0, Landroid/view/InflateException; new-instance p1, Ljava/lang/StringBuilder; invoke-direct {p1}, Ljava/lang/StringBuilder;->()V invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 const-string p2, " tag must have a \'class\' attribute" invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Landroid/view/InflateException;->(Ljava/lang/String;)V throw p0 .end method .method private createTransitionFromXml(Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroidx/transition/Transition;)Landroidx/transition/Transition; .locals 7 .annotation system Ldalvik/annotation/Throws; value = { Lorg/xmlpull/v1/XmlPullParserException;, Ljava/io/IOException; } .end annotation .line 122 invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getDepth()I move-result v0 .line 124 instance-of v1, p3, Landroidx/transition/TransitionSet; const/4 v2, 0x0 if-eqz v1, :cond_0 .line 125 move-object v1, p3 check-cast v1, Landroidx/transition/TransitionSet; goto :goto_0 :cond_0 move-object v1, v2 :goto_0 move-object v3, v2 .line 127 :cond_1 :goto_1 invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->next()I move-result v4 const/4 v5, 0x3 if-ne v4, v5, :cond_2 invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getDepth()I move-result v5 if-le v5, v0, :cond_19 :cond_2 const/4 v5, 0x1 if-eq v4, v5, :cond_19 const/4 v5, 0x2 if-eq v4, v5, :cond_3 goto :goto_1 .line 134 :cond_3 invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String; move-result-object v4 const-string v5, "fade" .line 135 invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v5 if-eqz v5, :cond_4 .line 136 new-instance v3, Landroidx/transition/Fade; iget-object v4, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; invoke-direct {v3, v4, p2}, Landroidx/transition/Fade;->(Landroid/content/Context;Landroid/util/AttributeSet;)V goto/16 :goto_2 :cond_4 const-string v5, "changeBounds" .line 137 invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v5 if-eqz v5, :cond_5 .line 138 new-instance v3, Landroidx/transition/ChangeBounds; iget-object v4, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; invoke-direct {v3, v4, p2}, Landroidx/transition/ChangeBounds;->(Landroid/content/Context;Landroid/util/AttributeSet;)V goto/16 :goto_2 :cond_5 const-string v5, "slide" .line 139 invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v5 if-eqz v5, :cond_6 .line 140 new-instance v3, Landroidx/transition/Slide; iget-object v4, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; invoke-direct {v3, v4, p2}, Landroidx/transition/Slide;->(Landroid/content/Context;Landroid/util/AttributeSet;)V goto/16 :goto_2 :cond_6 const-string v5, "explode" .line 141 invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v5 if-eqz v5, :cond_7 .line 142 new-instance v3, Landroidx/transition/Explode; iget-object v4, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; invoke-direct {v3, v4, p2}, Landroidx/transition/Explode;->(Landroid/content/Context;Landroid/util/AttributeSet;)V goto/16 :goto_2 :cond_7 const-string v5, "changeImageTransform" .line 143 invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v5 if-eqz v5, :cond_8 .line 144 new-instance v3, Landroidx/transition/ChangeImageTransform; iget-object v4, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; invoke-direct {v3, v4, p2}, Landroidx/transition/ChangeImageTransform;->(Landroid/content/Context;Landroid/util/AttributeSet;)V goto/16 :goto_2 :cond_8 const-string v5, "changeTransform" .line 145 invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v5 if-eqz v5, :cond_9 .line 146 new-instance v3, Landroidx/transition/ChangeTransform; iget-object v4, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; invoke-direct {v3, v4, p2}, Landroidx/transition/ChangeTransform;->(Landroid/content/Context;Landroid/util/AttributeSet;)V goto/16 :goto_2 :cond_9 const-string v5, "changeClipBounds" .line 147 invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v5 if-eqz v5, :cond_a .line 148 new-instance v3, Landroidx/transition/ChangeClipBounds; iget-object v4, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; invoke-direct {v3, v4, p2}, Landroidx/transition/ChangeClipBounds;->(Landroid/content/Context;Landroid/util/AttributeSet;)V goto/16 :goto_2 :cond_a const-string v5, "autoTransition" .line 149 invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v5 if-eqz v5, :cond_b .line 150 new-instance v3, Landroidx/transition/AutoTransition; iget-object v4, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; invoke-direct {v3, v4, p2}, Landroidx/transition/AutoTransition;->(Landroid/content/Context;Landroid/util/AttributeSet;)V goto/16 :goto_2 :cond_b const-string v5, "changeScroll" .line 151 invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v5 if-eqz v5, :cond_c .line 152 new-instance v3, Landroidx/transition/ChangeScroll; iget-object v4, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; invoke-direct {v3, v4, p2}, Landroidx/transition/ChangeScroll;->(Landroid/content/Context;Landroid/util/AttributeSet;)V goto/16 :goto_2 :cond_c const-string v5, "transitionSet" .line 153 invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v5 if-eqz v5, :cond_d .line 154 new-instance v3, Landroidx/transition/TransitionSet; iget-object v4, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; invoke-direct {v3, v4, p2}, Landroidx/transition/TransitionSet;->(Landroid/content/Context;Landroid/util/AttributeSet;)V goto :goto_2 :cond_d const-string v5, "transition" .line 155 invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v6 if-eqz v6, :cond_e .line 156 const-class v3, Landroidx/transition/Transition; invoke-direct {p0, p2, v3, v5}, Landroidx/transition/TransitionInflater;->createCustom(Landroid/util/AttributeSet;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object; move-result-object v3 check-cast v3, Landroidx/transition/Transition; goto :goto_2 :cond_e const-string v5, "targets" .line 157 invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v5 if-eqz v5, :cond_f .line 158 invoke-direct {p0, p1, p2, p3}, Landroidx/transition/TransitionInflater;->getTargetIds(Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroidx/transition/Transition;)V goto :goto_2 :cond_f const-string v5, "arcMotion" .line 159 invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v5 if-eqz v5, :cond_11 if-eqz p3, :cond_10 .line 163 new-instance v4, Landroidx/transition/ArcMotion; iget-object v5, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; invoke-direct {v4, v5, p2}, Landroidx/transition/ArcMotion;->(Landroid/content/Context;Landroid/util/AttributeSet;)V invoke-virtual {p3, v4}, Landroidx/transition/Transition;->setPathMotion(Landroidx/transition/PathMotion;)V goto :goto_2 .line 161 :cond_10 new-instance p0, Ljava/lang/RuntimeException; const-string p1, "Invalid use of arcMotion element" invoke-direct {p0, p1}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V throw p0 :cond_11 const-string v5, "pathMotion" .line 164 invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v6 if-eqz v6, :cond_13 if-eqz p3, :cond_12 .line 168 const-class v4, Landroidx/transition/PathMotion; invoke-direct {p0, p2, v4, v5}, Landroidx/transition/TransitionInflater;->createCustom(Landroid/util/AttributeSet;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object; move-result-object v4 check-cast v4, Landroidx/transition/PathMotion; invoke-virtual {p3, v4}, Landroidx/transition/Transition;->setPathMotion(Landroidx/transition/PathMotion;)V goto :goto_2 .line 166 :cond_12 new-instance p0, Ljava/lang/RuntimeException; const-string p1, "Invalid use of pathMotion element" invoke-direct {p0, p1}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V throw p0 :cond_13 const-string v5, "patternPathMotion" .line 170 invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v4 if-eqz v4, :cond_18 if-eqz p3, :cond_17 .line 174 new-instance v4, Landroidx/transition/PatternPathMotion; iget-object v5, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; invoke-direct {v4, v5, p2}, Landroidx/transition/PatternPathMotion;->(Landroid/content/Context;Landroid/util/AttributeSet;)V invoke-virtual {p3, v4}, Landroidx/transition/Transition;->setPathMotion(Landroidx/transition/PathMotion;)V :goto_2 if-eqz v3, :cond_1 .line 179 invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->isEmptyElementTag()Z move-result v4 if-nez v4, :cond_14 .line 180 invoke-direct {p0, p1, p2, v3}, Landroidx/transition/TransitionInflater;->createTransitionFromXml(Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroidx/transition/Transition;)Landroidx/transition/Transition; :cond_14 if-eqz v1, :cond_15 .line 183 invoke-virtual {v1, v3}, Landroidx/transition/TransitionSet;->addTransition(Landroidx/transition/Transition;)Landroidx/transition/TransitionSet; goto/16 :goto_0 :cond_15 if-nez p3, :cond_16 goto/16 :goto_1 .line 186 :cond_16 new-instance p0, Landroid/view/InflateException; const-string p1, "Could not add transition to another transition." invoke-direct {p0, p1}, Landroid/view/InflateException;->(Ljava/lang/String;)V throw p0 .line 172 :cond_17 new-instance p0, Ljava/lang/RuntimeException; const-string p1, "Invalid use of patternPathMotion element" invoke-direct {p0, p1}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V throw p0 .line 176 :cond_18 new-instance p0, Ljava/lang/RuntimeException; new-instance p2, Ljava/lang/StringBuilder; const-string p3, "Unknown scene name: " invoke-direct {p2, p3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String; move-result-object p1 invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V throw p0 :cond_19 return-object v3 .end method .method private createTransitionManagerFromXml(Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/view/ViewGroup;)Landroidx/transition/TransitionManager; .locals 4 .annotation system Ldalvik/annotation/Throws; value = { Lorg/xmlpull/v1/XmlPullParserException;, Ljava/io/IOException; } .end annotation .line 289 invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getDepth()I move-result v0 const/4 v1, 0x0 .line 292 :goto_0 invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->next()I move-result v2 const/4 v3, 0x3 if-ne v2, v3, :cond_0 invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getDepth()I move-result v3 if-le v3, v0, :cond_4 :cond_0 const/4 v3, 0x1 if-eq v2, v3, :cond_4 const/4 v3, 0x2 if-eq v2, v3, :cond_1 goto :goto_0 .line 299 :cond_1 invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String; move-result-object v2 const-string v3, "transitionManager" .line 300 invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v3 if-eqz v3, :cond_2 .line 301 new-instance v1, Landroidx/transition/TransitionManager; invoke-direct {v1}, Landroidx/transition/TransitionManager;->()V goto :goto_0 :cond_2 const-string v3, "transition" .line 302 invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v2 if-eqz v2, :cond_3 if-eqz v1, :cond_3 .line 303 invoke-direct {p0, p2, p1, p3, v1}, Landroidx/transition/TransitionInflater;->loadTransition(Landroid/util/AttributeSet;Lorg/xmlpull/v1/XmlPullParser;Landroid/view/ViewGroup;Landroidx/transition/TransitionManager;)V goto :goto_0 .line 305 :cond_3 new-instance p0, Ljava/lang/RuntimeException; new-instance p2, Ljava/lang/StringBuilder; const-string p3, "Unknown scene name: " invoke-direct {p2, p3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String; move-result-object p1 invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V throw p0 :cond_4 return-object v1 .end method .method public static from(Landroid/content/Context;)Landroidx/transition/TransitionInflater; .locals 1 .line 59 new-instance v0, Landroidx/transition/TransitionInflater; invoke-direct {v0, p0}, Landroidx/transition/TransitionInflater;->(Landroid/content/Context;)V return-object v0 .end method .method private getTargetIds(Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroidx/transition/Transition;)V .locals 7 .annotation system Ldalvik/annotation/Throws; value = { Lorg/xmlpull/v1/XmlPullParserException;, Ljava/io/IOException; } .end annotation .line 230 invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getDepth()I move-result v0 .line 232 :goto_0 invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->next()I move-result v1 const/4 v2, 0x3 if-ne v1, v2, :cond_0 invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getDepth()I move-result v3 if-le v3, v0, :cond_9 :cond_0 const/4 v3, 0x1 if-eq v1, v3, :cond_9 const/4 v4, 0x2 if-eq v1, v4, :cond_1 goto :goto_0 .line 239 :cond_1 invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String; move-result-object v1 const-string v5, "target" .line 240 invoke-virtual {v1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_8 iget-object v1, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; .line 241 sget-object v5, Landroidx/transition/Styleable;->TRANSITION_TARGET:[I invoke-virtual {v1, p2, v5}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray; move-result-object v1 const-string v5, "targetId" const/4 v6, 0x0 .line 242 invoke-static {v1, p1, v5, v3, v6}, Landroidx/core/content/res/TypedArrayUtils;->getNamedResourceId(Landroid/content/res/TypedArray;Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;II)I move-result v5 if-eqz v5, :cond_2 .line 246 invoke-virtual {p3, v5}, Landroidx/transition/Transition;->addTarget(I)Landroidx/transition/Transition; goto :goto_1 :cond_2 const-string v5, "excludeId" .line 247 invoke-static {v1, p1, v5, v4, v6}, Landroidx/core/content/res/TypedArrayUtils;->getNamedResourceId(Landroid/content/res/TypedArray;Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;II)I move-result v4 if-eqz v4, :cond_3 .line 249 invoke-virtual {p3, v4, v3}, Landroidx/transition/Transition;->excludeTarget(IZ)Landroidx/transition/Transition; goto :goto_1 :cond_3 const-string v4, "targetName" const/4 v5, 0x4 .line 250 invoke-static {v1, p1, v4, v5}, Landroidx/core/content/res/TypedArrayUtils;->getNamedString(Landroid/content/res/TypedArray;Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;I)Ljava/lang/String; move-result-object v4 if-eqz v4, :cond_4 .line 252 invoke-virtual {p3, v4}, Landroidx/transition/Transition;->addTarget(Ljava/lang/String;)Landroidx/transition/Transition; goto :goto_1 :cond_4 const-string v4, "excludeName" const/4 v5, 0x5 .line 253 invoke-static {v1, p1, v4, v5}, Landroidx/core/content/res/TypedArrayUtils;->getNamedString(Landroid/content/res/TypedArray;Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;I)Ljava/lang/String; move-result-object v4 if-eqz v4, :cond_5 .line 255 invoke-virtual {p3, v4, v3}, Landroidx/transition/Transition;->excludeTarget(Ljava/lang/String;Z)Landroidx/transition/Transition; goto :goto_1 :cond_5 const-string v4, "excludeClass" .line 257 invoke-static {v1, p1, v4, v2}, Landroidx/core/content/res/TypedArrayUtils;->getNamedString(Landroid/content/res/TypedArray;Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;I)Ljava/lang/String; move-result-object v2 if-eqz v2, :cond_6 .line 261 :try_start_0 invoke-static {v2}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; move-result-object v4 .line 262 invoke-virtual {p3, v4, v3}, Landroidx/transition/Transition;->excludeTarget(Ljava/lang/Class;Z)Landroidx/transition/Transition; goto :goto_1 :cond_6 const-string v3, "targetClass" .line 263 invoke-static {v1, p1, v3, v6}, Landroidx/core/content/res/TypedArrayUtils;->getNamedString(Landroid/content/res/TypedArray;Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;I)Ljava/lang/String; move-result-object v2 if-eqz v2, :cond_7 .line 265 invoke-static {v2}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; move-result-object v3 .line 266 invoke-virtual {p3, v3}, Landroidx/transition/Transition;->addTarget(Ljava/lang/Class;)Landroidx/transition/Transition; :try_end_0 .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 .line 273 :cond_7 :goto_1 invoke-virtual {v1}, Landroid/content/res/TypedArray;->recycle()V goto :goto_0 :catch_0 move-exception p0 .line 269 invoke-virtual {v1}, Landroid/content/res/TypedArray;->recycle()V .line 270 new-instance p1, Ljava/lang/RuntimeException; new-instance p2, Ljava/lang/StringBuilder; const-string p3, "Could not create " invoke-direct {p2, p3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p2 invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p2 invoke-direct {p1, p2, p0}, Ljava/lang/RuntimeException;->(Ljava/lang/String;Ljava/lang/Throwable;)V throw p1 .line 275 :cond_8 new-instance p0, Ljava/lang/RuntimeException; new-instance p2, Ljava/lang/StringBuilder; const-string p3, "Unknown scene name: " invoke-direct {p2, p3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String; move-result-object p1 invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V throw p0 :cond_9 return-void .end method .method private loadTransition(Landroid/util/AttributeSet;Lorg/xmlpull/v1/XmlPullParser;Landroid/view/ViewGroup;Landroidx/transition/TransitionManager;)V .locals 6 .annotation system Ldalvik/annotation/Throws; value = { Landroid/content/res/Resources$NotFoundException; } .end annotation iget-object v0, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; .line 316 sget-object v1, Landroidx/transition/Styleable;->TRANSITION_MANAGER:[I invoke-virtual {v0, p1, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray; move-result-object p1 const-string v0, "transition" const/4 v1, 0x2 const/4 v2, -0x1 .line 317 invoke-static {p1, p2, v0, v1, v2}, Landroidx/core/content/res/TypedArrayUtils;->getNamedResourceId(Landroid/content/res/TypedArray;Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;II)I move-result v0 const-string v1, "fromScene" const/4 v3, 0x0 .line 319 invoke-static {p1, p2, v1, v3, v2}, Landroidx/core/content/res/TypedArrayUtils;->getNamedResourceId(Landroid/content/res/TypedArray;Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;II)I move-result v1 const/4 v3, 0x0 if-gez v1, :cond_0 move-object v1, v3 goto :goto_0 :cond_0 iget-object v4, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; .line 321 invoke-static {p3, v1, v4}, Landroidx/transition/Scene;->getSceneForLayout(Landroid/view/ViewGroup;ILandroid/content/Context;)Landroidx/transition/Scene; move-result-object v1 :goto_0 const-string v4, "toScene" const/4 v5, 0x1 .line 323 invoke-static {p1, p2, v4, v5, v2}, Landroidx/core/content/res/TypedArrayUtils;->getNamedResourceId(Landroid/content/res/TypedArray;Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;II)I move-result p2 if-gez p2, :cond_1 goto :goto_1 :cond_1 iget-object v2, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; .line 325 invoke-static {p3, p2, v2}, Landroidx/transition/Scene;->getSceneForLayout(Landroid/view/ViewGroup;ILandroid/content/Context;)Landroidx/transition/Scene; move-result-object v3 :goto_1 if-ltz v0, :cond_4 .line 328 invoke-virtual {p0, v0}, Landroidx/transition/TransitionInflater;->inflateTransition(I)Landroidx/transition/Transition; move-result-object p0 if-eqz p0, :cond_4 if-eqz v3, :cond_3 if-nez v1, :cond_2 .line 334 invoke-virtual {p4, v3, p0}, Landroidx/transition/TransitionManager;->setTransition(Landroidx/transition/Scene;Landroidx/transition/Transition;)V goto :goto_2 .line 336 :cond_2 invoke-virtual {p4, v1, v3, p0}, Landroidx/transition/TransitionManager;->setTransition(Landroidx/transition/Scene;Landroidx/transition/Scene;Landroidx/transition/Transition;)V goto :goto_2 .line 331 :cond_3 new-instance p0, Ljava/lang/RuntimeException; new-instance p1, Ljava/lang/StringBuilder; const-string p2, "No toScene for transition ID " invoke-direct {p1, p2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V throw p0 .line 340 :cond_4 :goto_2 invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V return-void .end method # virtual methods .method public inflateTransition(I)Landroidx/transition/Transition; .locals 3 iget-object v0, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; .line 71 invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources; move-result-object v0 invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getXml(I)Landroid/content/res/XmlResourceParser; move-result-object p1 .line 73 :try_start_0 invoke-static {p1}, Landroid/util/Xml;->asAttributeSet(Lorg/xmlpull/v1/XmlPullParser;)Landroid/util/AttributeSet; move-result-object v0 const/4 v1, 0x0 invoke-direct {p0, p1, v0, v1}, Landroidx/transition/TransitionInflater;->createTransitionFromXml(Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroidx/transition/Transition;)Landroidx/transition/Transition; move-result-object p0 :try_end_0 .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_0 .. :try_end_0} :catch_1 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 80 invoke-interface {p1}, Landroid/content/res/XmlResourceParser;->close()V return-object p0 :catchall_0 move-exception p0 goto :goto_0 :catch_0 move-exception p0 .line 77 :try_start_1 new-instance v0, Landroid/view/InflateException; new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V .line 78 invoke-interface {p1}, Landroid/content/res/XmlResourceParser;->getPositionDescription()Ljava/lang/String; move-result-object v2 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 const-string v2, ": " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {p0}, Ljava/io/IOException;->getMessage()Ljava/lang/String; move-result-object v2 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1, p0}, Landroid/view/InflateException;->(Ljava/lang/String;Ljava/lang/Throwable;)V throw v0 :catch_1 move-exception p0 .line 75 new-instance v0, Landroid/view/InflateException; invoke-virtual {p0}, Lorg/xmlpull/v1/XmlPullParserException;->getMessage()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1, p0}, Landroid/view/InflateException;->(Ljava/lang/String;Ljava/lang/Throwable;)V throw v0 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 .line 80 :goto_0 invoke-interface {p1}, Landroid/content/res/XmlResourceParser;->close()V .line 81 throw p0 .end method .method public inflateTransitionManager(ILandroid/view/ViewGroup;)Landroidx/transition/TransitionManager; .locals 2 iget-object v0, p0, Landroidx/transition/TransitionInflater;->mContext:Landroid/content/Context; .line 93 invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources; move-result-object v0 invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getXml(I)Landroid/content/res/XmlResourceParser; move-result-object p1 .line 95 :try_start_0 invoke-static {p1}, Landroid/util/Xml;->asAttributeSet(Lorg/xmlpull/v1/XmlPullParser;)Landroid/util/AttributeSet; move-result-object v0 invoke-direct {p0, p1, v0, p2}, Landroidx/transition/TransitionInflater;->createTransitionManagerFromXml(Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/view/ViewGroup;)Landroidx/transition/TransitionManager; move-result-object p0 :try_end_0 .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_0 .. :try_end_0} :catch_1 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 107 invoke-interface {p1}, Landroid/content/res/XmlResourceParser;->close()V return-object p0 :catchall_0 move-exception p0 goto :goto_0 :catch_0 move-exception p0 .line 101 :try_start_1 new-instance p2, Landroid/view/InflateException; new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V .line 102 invoke-interface {p1}, Landroid/content/res/XmlResourceParser;->getPositionDescription()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ": " invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 .line 103 invoke-virtual {p0}, Ljava/io/IOException;->getMessage()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p2, v0}, Landroid/view/InflateException;->(Ljava/lang/String;)V .line 104 invoke-virtual {p2, p0}, Landroid/view/InflateException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable; .line 105 throw p2 :catch_1 move-exception p0 .line 97 new-instance p2, Landroid/view/InflateException; invoke-virtual {p0}, Lorg/xmlpull/v1/XmlPullParserException;->getMessage()Ljava/lang/String; move-result-object v0 invoke-direct {p2, v0}, Landroid/view/InflateException;->(Ljava/lang/String;)V .line 98 invoke-virtual {p2, p0}, Landroid/view/InflateException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable; .line 99 throw p2 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 .line 107 :goto_0 invoke-interface {p1}, Landroid/content/res/XmlResourceParser;->close()V .line 108 throw p0 .end method