apkfuckery/com.discord/smali/androidx/fragment/app/FragmentTransitionImpl.smali

742 lines
18 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public abstract Landroidx/fragment/app/FragmentTransitionImpl;
.super Ljava/lang/Object;
.source "FragmentTransitionImpl.java"
2019-12-06 03:29:40 +00:00
# annotations
.annotation build Landroid/annotation/SuppressLint;
value = {
"UnknownNullness"
}
.end annotation
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
2019-07-24 11:27:29 +00:00
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public static bfsAddViewChildren(Ljava/util/List;Landroid/view/View;)V
2019-07-24 11:27:29 +00:00
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Landroid/view/View;",
">;",
"Landroid/view/View;",
")V"
}
.end annotation
invoke-interface {p0}, Ljava/util/List;->size()I
move-result v0
invoke-static {p0, p1, v0}, Landroidx/fragment/app/FragmentTransitionImpl;->containedBeforeIndex(Ljava/util/List;Landroid/view/View;I)Z
move-result v1
if-eqz v1, :cond_0
return-void
:cond_0
invoke-interface {p0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
move p1, v0
:goto_0
invoke-interface {p0}, Ljava/util/List;->size()I
move-result v1
if-ge p1, v1, :cond_3
invoke-interface {p0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/view/View;
instance-of v2, v1, Landroid/view/ViewGroup;
if-eqz v2, :cond_2
check-cast v1, Landroid/view/ViewGroup;
invoke-virtual {v1}, Landroid/view/ViewGroup;->getChildCount()I
move-result v2
const/4 v3, 0x0
:goto_1
if-ge v3, v2, :cond_2
invoke-virtual {v1, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v4
invoke-static {p0, v4, v0}, Landroidx/fragment/app/FragmentTransitionImpl;->containedBeforeIndex(Ljava/util/List;Landroid/view/View;I)Z
move-result v5
if-nez v5, :cond_1
invoke-interface {p0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_1
add-int/lit8 v3, v3, 0x1
goto :goto_1
:cond_2
add-int/lit8 p1, p1, 0x1
goto :goto_0
:cond_3
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public static containedBeforeIndex(Ljava/util/List;Landroid/view/View;I)Z
2019-07-24 11:27:29 +00:00
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Landroid/view/View;",
">;",
"Landroid/view/View;",
"I)Z"
}
.end annotation
const/4 v0, 0x0
const/4 v1, 0x0
:goto_0
if-ge v1, p2, :cond_1
invoke-interface {p0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v2
if-ne v2, p1, :cond_0
const/4 p0, 0x1
return p0
:cond_0
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_1
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public static findKeyForValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;",
"Ljava/lang/String;",
")",
"Ljava/lang/String;"
}
.end annotation
invoke-interface {p0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object p0
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p0
:cond_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map$Entry;
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v1
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/String;
return-object p0
:cond_1
const/4 p0, 0x0
return-object p0
.end method
.method public static isNullOrEmpty(Ljava/util/List;)Z
.locals 0
if-eqz p0, :cond_1
invoke-interface {p0}, Ljava/util/List;->isEmpty()Z
move-result p0
if-eqz p0, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
2019-12-06 03:29:40 +00:00
goto :goto_1
2019-07-24 11:27:29 +00:00
:cond_1
:goto_0
const/4 p0, 0x1
2019-12-06 03:29:40 +00:00
:goto_1
2019-07-24 11:27:29 +00:00
return p0
.end method
# virtual methods
.method public abstract addTarget(Ljava/lang/Object;Landroid/view/View;)V
.end method
.method public abstract addTargets(Ljava/lang/Object;Ljava/util/ArrayList;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;)V"
}
.end annotation
.end method
.method public abstract beginDelayedTransition(Landroid/view/ViewGroup;Ljava/lang/Object;)V
.end method
.method public abstract canHandle(Ljava/lang/Object;)Z
.end method
2019-12-06 03:29:40 +00:00
.method public captureTransitioningViews(Ljava/util/ArrayList;Landroid/view/View;)V
2019-07-24 11:27:29 +00:00
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;",
"Landroid/view/View;",
")V"
}
.end annotation
invoke-virtual {p2}, Landroid/view/View;->getVisibility()I
move-result v0
2019-12-06 03:29:40 +00:00
if-nez v0, :cond_2
2019-07-24 11:27:29 +00:00
instance-of v0, p2, Landroid/view/ViewGroup;
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_1
2019-07-24 11:27:29 +00:00
check-cast p2, Landroid/view/ViewGroup;
invoke-static {p2}, Landroidx/core/view/ViewGroupCompat;->isTransitionGroup(Landroid/view/ViewGroup;)Z
move-result v0
if-eqz v0, :cond_0
invoke-virtual {p1, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
2019-12-06 03:29:40 +00:00
goto :goto_1
2019-07-24 11:27:29 +00:00
:cond_0
invoke-virtual {p2}, Landroid/view/ViewGroup;->getChildCount()I
move-result v0
const/4 v1, 0x0
:goto_0
2019-12-06 03:29:40 +00:00
if-ge v1, v0, :cond_2
2019-07-24 11:27:29 +00:00
invoke-virtual {p2, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v2
invoke-virtual {p0, p1, v2}, Landroidx/fragment/app/FragmentTransitionImpl;->captureTransitioningViews(Ljava/util/ArrayList;Landroid/view/View;)V
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_1
invoke-virtual {p1, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
2019-12-06 03:29:40 +00:00
:cond_2
:goto_1
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public abstract cloneTransition(Ljava/lang/Object;)Ljava/lang/Object;
.end method
2019-12-06 03:29:40 +00:00
.method public findNamedViews(Ljava/util/Map;Landroid/view/View;)V
2019-07-24 11:27:29 +00:00
.locals 3
2019-12-06 03:29:40 +00:00
.param p2 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Landroid/view/View;",
">;",
"Landroid/view/View;",
")V"
}
.end annotation
invoke-virtual {p2}, Landroid/view/View;->getVisibility()I
move-result v0
if-nez v0, :cond_1
invoke-static {p2}, Landroidx/core/view/ViewCompat;->getTransitionName(Landroid/view/View;)Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_0
invoke-interface {p1, v0, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_0
instance-of v0, p2, Landroid/view/ViewGroup;
if-eqz v0, :cond_1
check-cast p2, Landroid/view/ViewGroup;
invoke-virtual {p2}, Landroid/view/ViewGroup;->getChildCount()I
move-result v0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_1
invoke-virtual {p2, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v2
invoke-virtual {p0, p1, v2}, Landroidx/fragment/app/FragmentTransitionImpl;->findNamedViews(Ljava/util/Map;Landroid/view/View;)V
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_1
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public getBoundsOnScreen(Landroid/view/View;Landroid/graphics/Rect;)V
2019-07-24 11:27:29 +00:00
.locals 6
const/4 v0, 0x2
new-array v0, v0, [I
invoke-virtual {p1, v0}, Landroid/view/View;->getLocationOnScreen([I)V
const/4 v1, 0x0
aget v2, v0, v1
const/4 v3, 0x1
aget v4, v0, v3
aget v1, v0, v1
invoke-virtual {p1}, Landroid/view/View;->getWidth()I
move-result v5
2019-12-06 03:29:40 +00:00
add-int/2addr v5, v1
2019-07-24 11:27:29 +00:00
aget v0, v0, v3
invoke-virtual {p1}, Landroid/view/View;->getHeight()I
move-result p1
2019-12-06 03:29:40 +00:00
add-int/2addr p1, v0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p2, v2, v4, v5, p1}, Landroid/graphics/Rect;->set(IIII)V
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public abstract mergeTransitionsInSequence(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.end method
.method public abstract mergeTransitionsTogether(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.end method
2019-12-06 03:29:40 +00:00
.method public prepareSetNameOverridesReordered(Ljava/util/ArrayList;)Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;)",
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;"
}
.end annotation
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
move-result v1
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
invoke-virtual {p1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroid/view/View;
invoke-static {v3}, Landroidx/core/view/ViewCompat;->getTransitionName(Landroid/view/View;)Ljava/lang/String;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
const/4 v4, 0x0
invoke-static {v3, v4}, Landroidx/core/view/ViewCompat;->setTransitionName(Landroid/view/View;Ljava/lang/String;)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object v0
.end method
.method public abstract removeTarget(Ljava/lang/Object;Landroid/view/View;)V
.end method
.method public abstract replaceTargets(Ljava/lang/Object;Ljava/util/ArrayList;Ljava/util/ArrayList;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;)V"
}
.end annotation
.end method
.method public abstract scheduleHideFragmentView(Ljava/lang/Object;Landroid/view/View;Ljava/util/ArrayList;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Landroid/view/View;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;)V"
}
.end annotation
.end method
2019-12-06 03:29:40 +00:00
.method public scheduleNameReset(Landroid/view/ViewGroup;Ljava/util/ArrayList;Ljava/util/Map;)V
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/view/ViewGroup;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)V"
}
.end annotation
new-instance v0, Landroidx/fragment/app/FragmentTransitionImpl$3;
invoke-direct {v0, p0, p2, p3}, Landroidx/fragment/app/FragmentTransitionImpl$3;-><init>(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/util/ArrayList;Ljava/util/Map;)V
2019-10-07 23:23:22 +00:00
invoke-static {p1, v0}, Landroidx/core/view/OneShotPreDrawListener;->add(Landroid/view/View;Ljava/lang/Runnable;)Landroidx/core/view/OneShotPreDrawListener;
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public abstract scheduleRemoveTargets(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/util/ArrayList;Ljava/lang/Object;Ljava/util/ArrayList;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/lang/Object;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;",
"Ljava/lang/Object;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;",
"Ljava/lang/Object;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;)V"
}
.end annotation
.end method
.method public abstract setEpicenter(Ljava/lang/Object;Landroid/graphics/Rect;)V
.end method
.method public abstract setEpicenter(Ljava/lang/Object;Landroid/view/View;)V
.end method
2019-12-06 03:29:40 +00:00
.method public setNameOverridesOrdered(Landroid/view/View;Ljava/util/ArrayList;Ljava/util/Map;)V
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/view/View;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)V"
}
.end annotation
new-instance v0, Landroidx/fragment/app/FragmentTransitionImpl$2;
invoke-direct {v0, p0, p2, p3}, Landroidx/fragment/app/FragmentTransitionImpl$2;-><init>(Landroidx/fragment/app/FragmentTransitionImpl;Ljava/util/ArrayList;Ljava/util/Map;)V
2019-10-07 23:23:22 +00:00
invoke-static {p1, v0}, Landroidx/core/view/OneShotPreDrawListener;->add(Landroid/view/View;Ljava/lang/Runnable;)Landroidx/core/view/OneShotPreDrawListener;
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public setNameOverridesReordered(Landroid/view/View;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/Map;)V
2019-07-24 11:27:29 +00:00
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/view/View;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;",
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)V"
}
.end annotation
invoke-virtual {p3}, Ljava/util/ArrayList;->size()I
move-result v2
new-instance v6, Ljava/util/ArrayList;
invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V
const/4 v0, 0x0
const/4 v1, 0x0
:goto_0
2019-12-06 03:29:40 +00:00
if-ge v1, v2, :cond_3
2019-07-24 11:27:29 +00:00
invoke-virtual {p2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroid/view/View;
invoke-static {v3}, Landroidx/core/view/ViewCompat;->getTransitionName(Landroid/view/View;)Ljava/lang/String;
move-result-object v4
invoke-virtual {v6, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
2019-12-06 03:29:40 +00:00
if-nez v4, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_2
:cond_0
2019-07-24 11:27:29 +00:00
const/4 v5, 0x0
invoke-static {v3, v5}, Landroidx/core/view/ViewCompat;->setTransitionName(Landroid/view/View;Ljava/lang/String;)V
invoke-interface {p5, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
const/4 v5, 0x0
:goto_1
2019-12-06 03:29:40 +00:00
if-ge v5, v2, :cond_2
2019-07-24 11:27:29 +00:00
invoke-virtual {p4, v5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v7
invoke-virtual {v3, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v7
2019-12-06 03:29:40 +00:00
if-eqz v7, :cond_1
2019-07-24 11:27:29 +00:00
invoke-virtual {p3, v5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroid/view/View;
invoke-static {v3, v4}, Landroidx/core/view/ViewCompat;->setTransitionName(Landroid/view/View;Ljava/lang/String;)V
goto :goto_2
2019-12-06 03:29:40 +00:00
:cond_1
2019-07-24 11:27:29 +00:00
add-int/lit8 v5, v5, 0x1
goto :goto_1
2019-12-06 03:29:40 +00:00
:cond_2
2019-07-24 11:27:29 +00:00
:goto_2
add-int/lit8 v1, v1, 0x1
goto :goto_0
2019-12-06 03:29:40 +00:00
:cond_3
2019-07-24 11:27:29 +00:00
new-instance p5, Landroidx/fragment/app/FragmentTransitionImpl$1;
move-object v0, p5
move-object v1, p0
move-object v3, p3
move-object v4, p4
move-object v5, p2
invoke-direct/range {v0 .. v6}, Landroidx/fragment/app/FragmentTransitionImpl$1;-><init>(Landroidx/fragment/app/FragmentTransitionImpl;ILjava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/ArrayList;)V
2019-10-07 23:23:22 +00:00
invoke-static {p1, p5}, Landroidx/core/view/OneShotPreDrawListener;->add(Landroid/view/View;Ljava/lang/Runnable;)Landroidx/core/view/OneShotPreDrawListener;
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public abstract setSharedElementTargets(Ljava/lang/Object;Landroid/view/View;Ljava/util/ArrayList;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Landroid/view/View;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;)V"
}
.end annotation
.end method
.method public abstract swapSharedElementTargets(Ljava/lang/Object;Ljava/util/ArrayList;Ljava/util/ArrayList;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;",
"Ljava/util/ArrayList<",
"Landroid/view/View;",
">;)V"
}
.end annotation
.end method
.method public abstract wrapTransitionInSet(Ljava/lang/Object;)Ljava/lang/Object;
.end method