.class public abstract Landroidx/transition/VisibilityPropagation; .super Landroidx/transition/TransitionPropagation; .source "VisibilityPropagation.java" # static fields .field private static final PROPNAME_VIEW_CENTER:Ljava/lang/String; = "android:visibilityPropagation:center" .field private static final PROPNAME_VISIBILITY:Ljava/lang/String; = "android:visibilityPropagation:visibility" .field private static final VISIBILITY_PROPAGATION_VALUES:[Ljava/lang/String; # direct methods .method static constructor ()V .locals 2 const-string v0, "android:visibilityPropagation:visibility" const-string v1, "android:visibilityPropagation:center" .line 38 filled-new-array {v0, v1}, [Ljava/lang/String; move-result-object v0 sput-object v0, Landroidx/transition/VisibilityPropagation;->VISIBILITY_PROPAGATION_VALUES:[Ljava/lang/String; return-void .end method .method public constructor ()V .locals 0 .line 25 invoke-direct {p0}, Landroidx/transition/TransitionPropagation;->()V return-void .end method .method private static getViewCoordinate(Landroidx/transition/TransitionValues;I)I .locals 2 const/4 v0, -0x1 if-nez p0, :cond_0 return v0 .line 110 :cond_0 iget-object p0, p0, Landroidx/transition/TransitionValues;->values:Ljava/util/Map; const-string v1, "android:visibilityPropagation:center" invoke-interface {p0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, [I if-nez p0, :cond_1 return v0 .line 115 :cond_1 aget p0, p0, p1 return p0 .end method # virtual methods .method public captureValues(Landroidx/transition/TransitionValues;)V .locals 5 .line 45 iget-object p0, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View; .line 46 iget-object v0, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map; const-string v1, "android:visibility:visibility" invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/lang/Integer; if-nez v0, :cond_0 .line 48 invoke-virtual {p0}, Landroid/view/View;->getVisibility()I move-result v0 invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v0 .line 50 :cond_0 iget-object v1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map; const-string v2, "android:visibilityPropagation:visibility" invoke-interface {v1, v2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; const/4 v0, 0x2 new-array v1, v0, [I .line 52 invoke-virtual {p0, v1}, Landroid/view/View;->getLocationOnScreen([I)V const/4 v2, 0x0 aget v3, v1, v2 .line 53 invoke-virtual {p0}, Landroid/view/View;->getTranslationX()F move-result v4 invoke-static {v4}, Ljava/lang/Math;->round(F)I move-result v4 add-int/2addr v3, v4 aput v3, v1, v2 .line 54 invoke-virtual {p0}, Landroid/view/View;->getWidth()I move-result v4 div-int/2addr v4, v0 add-int/2addr v3, v4 aput v3, v1, v2 const/4 v2, 0x1 aget v3, v1, v2 .line 55 invoke-virtual {p0}, Landroid/view/View;->getTranslationY()F move-result v4 invoke-static {v4}, Ljava/lang/Math;->round(F)I move-result v4 add-int/2addr v3, v4 aput v3, v1, v2 .line 56 invoke-virtual {p0}, Landroid/view/View;->getHeight()I move-result p0 div-int/2addr p0, v0 add-int/2addr v3, p0 aput v3, v1, v2 .line 57 iget-object p0, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map; const-string p1, "android:visibilityPropagation:center" invoke-interface {p0, p1, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; return-void .end method .method public getPropagationProperties()[Ljava/lang/String; .locals 0 sget-object p0, Landroidx/transition/VisibilityPropagation;->VISIBILITY_PROPAGATION_VALUES:[Ljava/lang/String; return-object p0 .end method .method public getViewVisibility(Landroidx/transition/TransitionValues;)I .locals 1 const/16 p0, 0x8 if-nez p1, :cond_0 return p0 .line 76 :cond_0 iget-object p1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map; const-string v0, "android:visibilityPropagation:visibility" invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p1 check-cast p1, Ljava/lang/Integer; if-nez p1, :cond_1 return p0 .line 80 :cond_1 invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I move-result p0 return p0 .end method .method public getViewX(Landroidx/transition/TransitionValues;)I .locals 0 const/4 p0, 0x0 .line 91 invoke-static {p1, p0}, Landroidx/transition/VisibilityPropagation;->getViewCoordinate(Landroidx/transition/TransitionValues;I)I move-result p0 return p0 .end method .method public getViewY(Landroidx/transition/TransitionValues;)I .locals 0 const/4 p0, 0x1 .line 102 invoke-static {p1, p0}, Landroidx/transition/VisibilityPropagation;->getViewCoordinate(Landroidx/transition/TransitionValues;I)I move-result p0 return p0 .end method