4904 lines
87 KiB
Smali
4904 lines
87 KiB
Smali
.class public Le/k/a/c/c;
|
|
.super Ljava/lang/Object;
|
|
.source "FlexboxHelper.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Le/k/a/c/c$b;,
|
|
Le/k/a/c/c$c;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Le/k/a/c/a;
|
|
|
|
.field public b:[Z
|
|
|
|
.field public c:[I
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public d:[J
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public e:[J
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Le/k/a/c/a;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(ILcom/google/android/flexbox/FlexItem;I)I
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0}, Le/k/a/c/a;->getPaddingTop()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v2}, Le/k/a/c/a;->getPaddingBottom()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
invoke-interface {p2}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
invoke-interface {p2}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
add-int/2addr v2, p3
|
|
|
|
invoke-interface {p2}, Lcom/google/android/flexbox/FlexItem;->getHeight()I
|
|
|
|
move-result p3
|
|
|
|
invoke-interface {v0, p1, v2, p3}, Le/k/a/c/a;->a(III)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result p3
|
|
|
|
invoke-interface {p2}, Lcom/google/android/flexbox/FlexItem;->k()I
|
|
|
|
move-result v0
|
|
|
|
if-le p3, v0, :cond_0
|
|
|
|
invoke-interface {p2}, Lcom/google/android/flexbox/FlexItem;->k()I
|
|
|
|
move-result p2
|
|
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p2, p1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-interface {p2}, Lcom/google/android/flexbox/FlexItem;->h()I
|
|
|
|
move-result v0
|
|
|
|
if-ge p3, v0, :cond_1
|
|
|
|
invoke-interface {p2}, Lcom/google/android/flexbox/FlexItem;->h()I
|
|
|
|
move-result p2
|
|
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p2, p1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public a(J)I
|
|
.locals 1
|
|
|
|
const/16 v0, 0x20
|
|
|
|
shr-long/2addr p1, v0
|
|
|
|
long-to-int p2, p1
|
|
|
|
return p2
|
|
.end method
|
|
|
|
.method public final a(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
.locals 0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-interface {p1}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
invoke-interface {p1}, Lcom/google/android/flexbox/FlexItem;->g()I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final a(I)Ljava/util/List;
|
|
.locals 5
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I)",
|
|
"Ljava/util/List<",
|
|
"Le/k/a/c/c$c;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0, p1}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, p1, :cond_0
|
|
|
|
iget-object v2, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v2, v1}, Le/k/a/c/a;->a(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/google/android/flexbox/FlexItem;
|
|
|
|
new-instance v3, Le/k/a/c/c$c;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-direct {v3, v4}, Le/k/a/c/c$c;-><init>(Le/k/a/c/c$a;)V
|
|
|
|
invoke-interface {v2}, Lcom/google/android/flexbox/FlexItem;->getOrder()I
|
|
|
|
move-result v2
|
|
|
|
iput v2, v3, Le/k/a/c/c$c;->e:I
|
|
|
|
iput v1, v3, Le/k/a/c/c$c;->d:I
|
|
|
|
invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final a(Ljava/util/List;II)Ljava/util/List;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Le/k/a/c/b;",
|
|
">;II)",
|
|
"Ljava/util/List<",
|
|
"Le/k/a/c/b;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
sub-int/2addr p2, p3
|
|
|
|
div-int/lit8 p2, p2, 0x2
|
|
|
|
new-instance p3, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p3}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
new-instance v0, Le/k/a/c/b;
|
|
|
|
invoke-direct {v0}, Le/k/a/c/b;-><init>()V
|
|
|
|
iput p2, v0, Le/k/a/c/b;->g:I
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result p2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, p2, :cond_2
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
invoke-interface {p3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_0
|
|
invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Le/k/a/c/b;
|
|
|
|
invoke-interface {p3, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
if-ne v1, v2, :cond_1
|
|
|
|
invoke-interface {p3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-object p3
|
|
.end method
|
|
|
|
.method public a(III)V
|
|
.locals 11
|
|
|
|
iget-object v0, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0}, Le/k/a/c/a;->getFlexDirection()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x3
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
if-eq v0, v3, :cond_2
|
|
|
|
if-eq v0, v2, :cond_1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "Invalid flex direction: "
|
|
|
|
invoke-static {p2, v0}, Le/e/b/a/a;->a(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result p2
|
|
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result p1
|
|
|
|
move v10, p2
|
|
|
|
move p2, p1
|
|
|
|
move p1, v10
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result p2
|
|
|
|
:goto_1
|
|
iget-object v0, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0}, Le/k/a/c/a;->getFlexLinesInternal()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
const/high16 v4, 0x40000000 # 2.0f
|
|
|
|
if-ne p1, v4, :cond_15
|
|
|
|
iget-object p1, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {p1}, Le/k/a/c/a;->getSumOfCrossSize()I
|
|
|
|
move-result p1
|
|
|
|
add-int/2addr p1, p3
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-ne v4, v3, :cond_3
|
|
|
|
invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Le/k/a/c/b;
|
|
|
|
sub-int/2addr p2, p3
|
|
|
|
iput p2, p1, Le/k/a/c/b;->g:I
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_3
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result p3
|
|
|
|
if-lt p3, v2, :cond_15
|
|
|
|
iget-object p3, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {p3}, Le/k/a/c/a;->getAlignContent()I
|
|
|
|
move-result p3
|
|
|
|
if-eq p3, v3, :cond_14
|
|
|
|
if-eq p3, v2, :cond_13
|
|
|
|
const/high16 v4, -0x40800000 # -1.0f
|
|
|
|
const/high16 v6, 0x3f800000 # 1.0f
|
|
|
|
if-eq p3, v1, :cond_c
|
|
|
|
const/4 v1, 0x4
|
|
|
|
if-eq p3, v1, :cond_9
|
|
|
|
const/4 v1, 0x5
|
|
|
|
if-eq p3, v1, :cond_4
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_4
|
|
if-lt p1, p2, :cond_5
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_5
|
|
sub-int/2addr p2, p1
|
|
|
|
int-to-float p1, p2
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result p2
|
|
|
|
int-to-float p2, p2
|
|
|
|
div-float/2addr p1, p2
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result p2
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:goto_2
|
|
if-ge v5, p2, :cond_15
|
|
|
|
invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Le/k/a/c/b;
|
|
|
|
iget v2, v1, Le/k/a/c/b;->g:I
|
|
|
|
int-to-float v2, v2
|
|
|
|
add-float/2addr v2, p1
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v7
|
|
|
|
sub-int/2addr v7, v3
|
|
|
|
if-ne v5, v7, :cond_6
|
|
|
|
add-float/2addr v2, p3
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:cond_6
|
|
invoke-static {v2}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v7
|
|
|
|
int-to-float v8, v7
|
|
|
|
sub-float/2addr v2, v8
|
|
|
|
add-float/2addr v2, p3
|
|
|
|
cmpl-float p3, v2, v6
|
|
|
|
if-lez p3, :cond_7
|
|
|
|
add-int/lit8 v7, v7, 0x1
|
|
|
|
sub-float/2addr v2, v6
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
cmpg-float p3, v2, v4
|
|
|
|
if-gez p3, :cond_8
|
|
|
|
add-int/lit8 v7, v7, -0x1
|
|
|
|
add-float/2addr v2, v6
|
|
|
|
:cond_8
|
|
:goto_3
|
|
move p3, v2
|
|
|
|
iput v7, v1, Le/k/a/c/b;->g:I
|
|
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_9
|
|
if-lt p1, p2, :cond_a
|
|
|
|
iget-object p3, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-virtual {p0, v0, p2, p1}, Le/k/a/c/c;->a(Ljava/util/List;II)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p3, p1}, Le/k/a/c/a;->setFlexLines(Ljava/util/List;)V
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_a
|
|
sub-int/2addr p2, p1
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result p1
|
|
|
|
mul-int/lit8 p1, p1, 0x2
|
|
|
|
div-int/2addr p2, p1
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
new-instance p3, Le/k/a/c/b;
|
|
|
|
invoke-direct {p3}, Le/k/a/c/b;-><init>()V
|
|
|
|
iput p2, p3, Le/k/a/c/b;->g:I
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p2
|
|
|
|
:goto_4
|
|
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_b
|
|
|
|
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Le/k/a/c/b;
|
|
|
|
invoke-interface {p1, p3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
invoke-interface {p1, p3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_4
|
|
|
|
:cond_b
|
|
iget-object p2, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {p2, p1}, Le/k/a/c/a;->setFlexLines(Ljava/util/List;)V
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_c
|
|
if-lt p1, p2, :cond_d
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_d
|
|
sub-int/2addr p2, p1
|
|
|
|
int-to-float p1, p2
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p2, v3
|
|
|
|
int-to-float p2, p2
|
|
|
|
div-float/2addr p1, p2
|
|
|
|
new-instance p2, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result p3
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_5
|
|
if-ge v5, p3, :cond_12
|
|
|
|
invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v7
|
|
|
|
check-cast v7, Le/k/a/c/b;
|
|
|
|
invoke-interface {p2, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v7
|
|
|
|
sub-int/2addr v7, v3
|
|
|
|
if-eq v5, v7, :cond_11
|
|
|
|
new-instance v7, Le/k/a/c/b;
|
|
|
|
invoke-direct {v7}, Le/k/a/c/b;-><init>()V
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v8
|
|
|
|
sub-int/2addr v8, v2
|
|
|
|
if-ne v5, v8, :cond_e
|
|
|
|
add-float/2addr v1, p1
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, v7, Le/k/a/c/b;->g:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_6
|
|
|
|
:cond_e
|
|
invoke-static {p1}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v8
|
|
|
|
iput v8, v7, Le/k/a/c/b;->g:I
|
|
|
|
:goto_6
|
|
iget v8, v7, Le/k/a/c/b;->g:I
|
|
|
|
int-to-float v9, v8
|
|
|
|
sub-float v9, p1, v9
|
|
|
|
add-float/2addr v9, v1
|
|
|
|
cmpl-float v1, v9, v6
|
|
|
|
if-lez v1, :cond_f
|
|
|
|
add-int/lit8 v8, v8, 0x1
|
|
|
|
iput v8, v7, Le/k/a/c/b;->g:I
|
|
|
|
sub-float/2addr v9, v6
|
|
|
|
goto :goto_7
|
|
|
|
:cond_f
|
|
cmpg-float v1, v9, v4
|
|
|
|
if-gez v1, :cond_10
|
|
|
|
add-int/lit8 v8, v8, -0x1
|
|
|
|
iput v8, v7, Le/k/a/c/b;->g:I
|
|
|
|
add-float/2addr v9, v6
|
|
|
|
:cond_10
|
|
:goto_7
|
|
invoke-interface {p2, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
move v1, v9
|
|
|
|
:cond_11
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_12
|
|
iget-object p1, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {p1, p2}, Le/k/a/c/a;->setFlexLines(Ljava/util/List;)V
|
|
|
|
goto :goto_8
|
|
|
|
:cond_13
|
|
iget-object p3, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-virtual {p0, v0, p2, p1}, Le/k/a/c/c;->a(Ljava/util/List;II)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p3, p1}, Le/k/a/c/a;->setFlexLines(Ljava/util/List;)V
|
|
|
|
goto :goto_8
|
|
|
|
:cond_14
|
|
sub-int/2addr p2, p1
|
|
|
|
new-instance p1, Le/k/a/c/b;
|
|
|
|
invoke-direct {p1}, Le/k/a/c/b;-><init>()V
|
|
|
|
iput p2, p1, Le/k/a/c/b;->g:I
|
|
|
|
invoke-interface {v0, v5, p1}, Ljava/util/List;->add(ILjava/lang/Object;)V
|
|
|
|
:cond_15
|
|
:goto_8
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(IIILandroid/view/View;)V
|
|
.locals 6
|
|
|
|
iget-object v0, p0, Le/k/a/c/c;->d:[J
|
|
|
|
const-wide v1, 0xffffffffL
|
|
|
|
const/16 v3, 0x20
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
int-to-long v4, p3
|
|
|
|
shl-long/2addr v4, v3
|
|
|
|
int-to-long p2, p2
|
|
|
|
and-long/2addr p2, v1
|
|
|
|
or-long/2addr p2, v4
|
|
|
|
aput-wide p2, v0, p1
|
|
|
|
:cond_0
|
|
iget-object p2, p0, Le/k/a/c/c;->e:[J
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
invoke-virtual {p4}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result p3
|
|
|
|
invoke-virtual {p4}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result p4
|
|
|
|
int-to-long v4, p4
|
|
|
|
shl-long v3, v4, v3
|
|
|
|
int-to-long p3, p3
|
|
|
|
and-long/2addr p3, v1
|
|
|
|
or-long/2addr p3, v3
|
|
|
|
aput-wide p3, p2, p1
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(IILe/k/a/c/b;IIZ)V
|
|
.locals 22
|
|
|
|
move-object/from16 v7, p0
|
|
|
|
move-object/from16 v3, p3
|
|
|
|
move/from16 v4, p4
|
|
|
|
iget v0, v3, Le/k/a/c/b;->j:F
|
|
|
|
const/4 v1, 0x0
|
|
|
|
cmpg-float v2, v0, v1
|
|
|
|
if-lez v2, :cond_15
|
|
|
|
iget v2, v3, Le/k/a/c/b;->e:I
|
|
|
|
if-ge v4, v2, :cond_0
|
|
|
|
goto/16 :goto_c
|
|
|
|
:cond_0
|
|
sub-int v5, v4, v2
|
|
|
|
int-to-float v5, v5
|
|
|
|
div-float/2addr v5, v0
|
|
|
|
iget v0, v3, Le/k/a/c/b;->f:I
|
|
|
|
add-int v0, p5, v0
|
|
|
|
iput v0, v3, Le/k/a/c/b;->e:I
|
|
|
|
if-nez p6, :cond_1
|
|
|
|
const/high16 v0, -0x80000000
|
|
|
|
iput v0, v3, Le/k/a/c/b;->g:I
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
:goto_0
|
|
iget v10, v3, Le/k/a/c/b;->h:I
|
|
|
|
if-ge v0, v10, :cond_14
|
|
|
|
iget v10, v3, Le/k/a/c/b;->o:I
|
|
|
|
add-int/2addr v10, v0
|
|
|
|
iget-object v11, v7, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v11, v10}, Le/k/a/c/a;->b(I)Landroid/view/View;
|
|
|
|
move-result-object v11
|
|
|
|
if-eqz v11, :cond_13
|
|
|
|
invoke-virtual {v11}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v12
|
|
|
|
const/16 v13, 0x8
|
|
|
|
if-ne v12, v13, :cond_2
|
|
|
|
goto/16 :goto_a
|
|
|
|
:cond_2
|
|
invoke-virtual {v11}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v12
|
|
|
|
check-cast v12, Lcom/google/android/flexbox/FlexItem;
|
|
|
|
iget-object v13, v7, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v13}, Le/k/a/c/a;->getFlexDirection()I
|
|
|
|
move-result v13
|
|
|
|
const-wide/high16 v17, 0x3ff0000000000000L # 1.0
|
|
|
|
const/4 v14, 0x1
|
|
|
|
if-eqz v13, :cond_b
|
|
|
|
if-ne v13, v14, :cond_3
|
|
|
|
goto/16 :goto_4
|
|
|
|
:cond_3
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v13
|
|
|
|
iget-object v15, v7, Le/k/a/c/c;->e:[J
|
|
|
|
if-eqz v15, :cond_4
|
|
|
|
aget-wide v14, v15, v10
|
|
|
|
invoke-virtual {v7, v14, v15}, Le/k/a/c/c;->a(J)I
|
|
|
|
move-result v13
|
|
|
|
:cond_4
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v14
|
|
|
|
iget-object v15, v7, Le/k/a/c/c;->e:[J
|
|
|
|
if-eqz v15, :cond_5
|
|
|
|
aget-wide v14, v15, v10
|
|
|
|
long-to-int v14, v14
|
|
|
|
:cond_5
|
|
iget-object v15, v7, Le/k/a/c/c;->b:[Z
|
|
|
|
aget-boolean v15, v15, v10
|
|
|
|
if-nez v15, :cond_a
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->c()F
|
|
|
|
move-result v15
|
|
|
|
cmpl-float v15, v15, v1
|
|
|
|
if-lez v15, :cond_a
|
|
|
|
int-to-float v13, v13
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->c()F
|
|
|
|
move-result v14
|
|
|
|
mul-float v14, v14, v5
|
|
|
|
add-float/2addr v14, v13
|
|
|
|
iget v13, v3, Le/k/a/c/b;->h:I
|
|
|
|
const/4 v15, 0x1
|
|
|
|
sub-int/2addr v13, v15
|
|
|
|
if-ne v0, v13, :cond_6
|
|
|
|
add-float/2addr v14, v8
|
|
|
|
const/4 v8, 0x0
|
|
|
|
:cond_6
|
|
invoke-static {v14}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v13
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->k()I
|
|
|
|
move-result v1
|
|
|
|
if-le v13, v1, :cond_7
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->k()I
|
|
|
|
move-result v13
|
|
|
|
iget-object v1, v7, Le/k/a/c/c;->b:[Z
|
|
|
|
aput-boolean v15, v1, v10
|
|
|
|
iget v1, v3, Le/k/a/c/b;->j:F
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->c()F
|
|
|
|
move-result v6
|
|
|
|
sub-float/2addr v1, v6
|
|
|
|
iput v1, v3, Le/k/a/c/b;->j:F
|
|
|
|
move v15, v2
|
|
|
|
const/4 v6, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
int-to-float v1, v13
|
|
|
|
sub-float/2addr v14, v1
|
|
|
|
add-float/2addr v14, v8
|
|
|
|
move v15, v2
|
|
|
|
float-to-double v1, v14
|
|
|
|
cmpl-double v8, v1, v17
|
|
|
|
if-lez v8, :cond_8
|
|
|
|
add-int/lit8 v13, v13, 0x1
|
|
|
|
sub-double v1, v1, v17
|
|
|
|
:goto_1
|
|
double-to-float v1, v1
|
|
|
|
move v8, v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
const-wide/high16 v19, -0x4010000000000000L # -1.0
|
|
|
|
cmpg-double v8, v1, v19
|
|
|
|
if-gez v8, :cond_9
|
|
|
|
add-int/lit8 v13, v13, -0x1
|
|
|
|
add-double v1, v1, v17
|
|
|
|
goto :goto_1
|
|
|
|
:cond_9
|
|
move v8, v14
|
|
|
|
:goto_2
|
|
iget v1, v3, Le/k/a/c/b;->m:I
|
|
|
|
move/from16 v2, p1
|
|
|
|
invoke-virtual {v7, v2, v12, v1}, Le/k/a/c/c;->b(ILcom/google/android/flexbox/FlexItem;I)I
|
|
|
|
move-result v1
|
|
|
|
const/high16 v14, 0x40000000 # 2.0f
|
|
|
|
invoke-static {v13, v14}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v13
|
|
|
|
invoke-virtual {v11, v1, v13}, Landroid/view/View;->measure(II)V
|
|
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v14
|
|
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v16
|
|
|
|
invoke-virtual {v7, v10, v1, v13, v11}, Le/k/a/c/c;->a(IIILandroid/view/View;)V
|
|
|
|
iget-object v1, v7, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v1, v10, v11}, Le/k/a/c/a;->a(ILandroid/view/View;)V
|
|
|
|
move/from16 v13, v16
|
|
|
|
goto :goto_3
|
|
|
|
:cond_a
|
|
move v15, v2
|
|
|
|
move/from16 v2, p1
|
|
|
|
:goto_3
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->m()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v14
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->g()I
|
|
|
|
move-result v10
|
|
|
|
add-int/2addr v10, v1
|
|
|
|
iget-object v1, v7, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v1, v11}, Le/k/a/c/a;->a(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v10
|
|
|
|
invoke-static {v9, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
iget v9, v3, Le/k/a/c/b;->e:I
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result v10
|
|
|
|
add-int/2addr v10, v13
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result v11
|
|
|
|
add-int/2addr v11, v10
|
|
|
|
add-int/2addr v11, v9
|
|
|
|
iput v11, v3, Le/k/a/c/b;->e:I
|
|
|
|
move/from16 v13, p2
|
|
|
|
move/from16 v21, v15
|
|
|
|
goto/16 :goto_9
|
|
|
|
:cond_b
|
|
:goto_4
|
|
move v15, v2
|
|
|
|
move/from16 v2, p1
|
|
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v13, v7, Le/k/a/c/c;->e:[J
|
|
|
|
if-eqz v13, :cond_c
|
|
|
|
aget-wide v1, v13, v10
|
|
|
|
long-to-int v1, v1
|
|
|
|
:cond_c
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v2
|
|
|
|
iget-object v13, v7, Le/k/a/c/c;->e:[J
|
|
|
|
move/from16 v21, v15
|
|
|
|
if-eqz v13, :cond_d
|
|
|
|
aget-wide v14, v13, v10
|
|
|
|
invoke-virtual {v7, v14, v15}, Le/k/a/c/c;->a(J)I
|
|
|
|
move-result v2
|
|
|
|
:cond_d
|
|
iget-object v13, v7, Le/k/a/c/c;->b:[Z
|
|
|
|
aget-boolean v13, v13, v10
|
|
|
|
if-nez v13, :cond_12
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->c()F
|
|
|
|
move-result v13
|
|
|
|
const/4 v14, 0x0
|
|
|
|
cmpl-float v13, v13, v14
|
|
|
|
if-lez v13, :cond_12
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->c()F
|
|
|
|
move-result v2
|
|
|
|
mul-float v2, v2, v5
|
|
|
|
add-float/2addr v2, v1
|
|
|
|
iget v1, v3, Le/k/a/c/b;->h:I
|
|
|
|
const/4 v13, 0x1
|
|
|
|
sub-int/2addr v1, v13
|
|
|
|
if-ne v0, v1, :cond_e
|
|
|
|
add-float/2addr v2, v8
|
|
|
|
const/4 v8, 0x0
|
|
|
|
:cond_e
|
|
invoke-static {v2}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v1
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->n()I
|
|
|
|
move-result v15
|
|
|
|
if-le v1, v15, :cond_f
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->n()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, v7, Le/k/a/c/c;->b:[Z
|
|
|
|
aput-boolean v13, v2, v10
|
|
|
|
iget v2, v3, Le/k/a/c/b;->j:F
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->c()F
|
|
|
|
move-result v6
|
|
|
|
sub-float/2addr v2, v6
|
|
|
|
iput v2, v3, Le/k/a/c/b;->j:F
|
|
|
|
const/4 v6, 0x1
|
|
|
|
goto :goto_7
|
|
|
|
:cond_f
|
|
int-to-float v13, v1
|
|
|
|
sub-float/2addr v2, v13
|
|
|
|
add-float/2addr v2, v8
|
|
|
|
float-to-double v14, v2
|
|
|
|
cmpl-double v8, v14, v17
|
|
|
|
if-lez v8, :cond_10
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
sub-double v14, v14, v17
|
|
|
|
:goto_5
|
|
double-to-float v2, v14
|
|
|
|
goto :goto_6
|
|
|
|
:cond_10
|
|
const-wide/high16 v19, -0x4010000000000000L # -1.0
|
|
|
|
cmpg-double v8, v14, v19
|
|
|
|
if-gez v8, :cond_11
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
add-double v14, v14, v17
|
|
|
|
goto :goto_5
|
|
|
|
:cond_11
|
|
:goto_6
|
|
move v8, v2
|
|
|
|
:goto_7
|
|
iget v2, v3, Le/k/a/c/b;->m:I
|
|
|
|
move/from16 v13, p2
|
|
|
|
invoke-virtual {v7, v13, v12, v2}, Le/k/a/c/c;->a(ILcom/google/android/flexbox/FlexItem;I)I
|
|
|
|
move-result v2
|
|
|
|
const/high16 v14, 0x40000000 # 2.0f
|
|
|
|
invoke-static {v1, v14}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v11, v1, v2}, Landroid/view/View;->measure(II)V
|
|
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v14
|
|
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v15
|
|
|
|
invoke-virtual {v7, v10, v1, v2, v11}, Le/k/a/c/c;->a(IIILandroid/view/View;)V
|
|
|
|
iget-object v1, v7, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v1, v10, v11}, Le/k/a/c/a;->a(ILandroid/view/View;)V
|
|
|
|
goto :goto_8
|
|
|
|
:cond_12
|
|
move/from16 v13, p2
|
|
|
|
move v14, v1
|
|
|
|
move v15, v2
|
|
|
|
:goto_8
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v15
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
iget-object v1, v7, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v1, v11}, Le/k/a/c/a;->a(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
invoke-static {v9, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
iget v2, v3, Le/k/a/c/b;->e:I
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->m()I
|
|
|
|
move-result v9
|
|
|
|
add-int/2addr v9, v14
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->g()I
|
|
|
|
move-result v10
|
|
|
|
add-int/2addr v10, v9
|
|
|
|
add-int/2addr v10, v2
|
|
|
|
iput v10, v3, Le/k/a/c/b;->e:I
|
|
|
|
:goto_9
|
|
iget v2, v3, Le/k/a/c/b;->g:I
|
|
|
|
invoke-static {v2, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v2
|
|
|
|
iput v2, v3, Le/k/a/c/b;->g:I
|
|
|
|
move v9, v1
|
|
|
|
goto :goto_b
|
|
|
|
:cond_13
|
|
:goto_a
|
|
move/from16 v13, p2
|
|
|
|
move/from16 v21, v2
|
|
|
|
:goto_b
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
move/from16 v2, v21
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_14
|
|
move/from16 v13, p2
|
|
|
|
move/from16 v21, v2
|
|
|
|
if-eqz v6, :cond_15
|
|
|
|
iget v0, v3, Le/k/a/c/b;->e:I
|
|
|
|
move/from16 v1, v21
|
|
|
|
if-eq v1, v0, :cond_15
|
|
|
|
const/4 v6, 0x1
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move/from16 v1, p1
|
|
|
|
move/from16 v2, p2
|
|
|
|
move-object/from16 v3, p3
|
|
|
|
move/from16 v4, p4
|
|
|
|
move/from16 v5, p5
|
|
|
|
invoke-virtual/range {v0 .. v6}, Le/k/a/c/c;->a(IILe/k/a/c/b;IIZ)V
|
|
|
|
:cond_15
|
|
:goto_c
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Landroid/view/View;I)V
|
|
.locals 6
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/android/flexbox/FlexItem;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v2
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->i()I
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-ge v1, v3, :cond_0
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->i()I
|
|
|
|
move-result v1
|
|
|
|
:goto_0
|
|
const/4 v3, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->n()I
|
|
|
|
move-result v3
|
|
|
|
if-le v1, v3, :cond_1
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->n()I
|
|
|
|
move-result v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v3, 0x0
|
|
|
|
:goto_1
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->h()I
|
|
|
|
move-result v5
|
|
|
|
if-ge v2, v5, :cond_2
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->h()I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->k()I
|
|
|
|
move-result v5
|
|
|
|
if-le v2, v5, :cond_3
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->k()I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
move v4, v3
|
|
|
|
:goto_2
|
|
if-eqz v4, :cond_4
|
|
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
invoke-static {v1, v0}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v2, v0}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v1, v0}, Landroid/view/View;->measure(II)V
|
|
|
|
invoke-virtual {p0, p2, v1, v0, p1}, Le/k/a/c/c;->a(IIILandroid/view/View;)V
|
|
|
|
iget-object v0, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0, p2, p1}, Le/k/a/c/a;->a(ILandroid/view/View;)V
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Landroid/view/View;II)V
|
|
.locals 3
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/android/flexbox/FlexItem;
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->m()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr p2, v1
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->g()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr p2, v1
|
|
|
|
iget-object v1, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v1, p1}, Le/k/a/c/a;->a(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr p2, v1
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->i()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {p2, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->n()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p2, v0}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p2
|
|
|
|
iget-object v0, p0, Le/k/a/c/c;->e:[J
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
aget-wide v1, v0, p3
|
|
|
|
invoke-virtual {p0, v1, v2}, Le/k/a/c/c;->a(J)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
const/high16 v1, 0x40000000 # 2.0f
|
|
|
|
invoke-static {v0, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p2, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/view/View;->measure(II)V
|
|
|
|
invoke-virtual {p0, p3, p2, v0, p1}, Le/k/a/c/c;->a(IIILandroid/view/View;)V
|
|
|
|
iget-object p2, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {p2, p3, p1}, Le/k/a/c/a;->a(ILandroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Landroid/view/View;Le/k/a/c/b;IIII)V
|
|
.locals 5
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/android/flexbox/FlexItem;
|
|
|
|
iget-object v1, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v1}, Le/k/a/c/a;->getAlignItems()I
|
|
|
|
move-result v1
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->e()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, -0x1
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->e()I
|
|
|
|
move-result v1
|
|
|
|
:cond_0
|
|
iget v2, p2, Le/k/a/c/b;->g:I
|
|
|
|
const/4 v3, 0x2
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-eq v1, v4, :cond_5
|
|
|
|
if-eq v1, v3, :cond_3
|
|
|
|
const/4 v2, 0x3
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
const/4 p2, 0x4
|
|
|
|
if-eq v1, p2, :cond_7
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_1
|
|
iget-object v1, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v1}, Le/k/a/c/a;->getFlexWrap()I
|
|
|
|
move-result v1
|
|
|
|
if-eq v1, v3, :cond_2
|
|
|
|
iget p2, p2, Le/k/a/c/b;->l:I
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getBaseline()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr p2, v1
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p2, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p2
|
|
|
|
add-int/2addr p4, p2
|
|
|
|
add-int/2addr p6, p2
|
|
|
|
invoke-virtual {p1, p3, p4, p5, p6}, Landroid/view/View;->layout(IIII)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_2
|
|
iget p2, p2, Le/k/a/c/b;->l:I
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr p2, v1
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getBaseline()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, p2
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result p2
|
|
|
|
invoke-static {v1, p2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p4, p2
|
|
|
|
sub-int/2addr p6, p2
|
|
|
|
invoke-virtual {p1, p3, p4, p5, p6}, Landroid/view/View;->layout(IIII)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_3
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr v2, p2
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result p2
|
|
|
|
add-int/2addr p2, v2
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result p6
|
|
|
|
sub-int/2addr p2, p6
|
|
|
|
div-int/2addr p2, v3
|
|
|
|
iget-object p6, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {p6}, Le/k/a/c/a;->getFlexWrap()I
|
|
|
|
move-result p6
|
|
|
|
if-eq p6, v3, :cond_4
|
|
|
|
add-int/2addr p4, p2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result p2
|
|
|
|
add-int/2addr p2, p4
|
|
|
|
invoke-virtual {p1, p3, p4, p5, p2}, Landroid/view/View;->layout(IIII)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
sub-int/2addr p4, p2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result p2
|
|
|
|
add-int/2addr p2, p4
|
|
|
|
invoke-virtual {p1, p3, p4, p5, p2}, Landroid/view/View;->layout(IIII)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
iget-object p2, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {p2}, Le/k/a/c/a;->getFlexWrap()I
|
|
|
|
move-result p2
|
|
|
|
if-eq p2, v3, :cond_6
|
|
|
|
add-int/2addr p4, v2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result p2
|
|
|
|
sub-int p2, p4, p2
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result p6
|
|
|
|
sub-int/2addr p2, p6
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result p6
|
|
|
|
sub-int/2addr p4, p6
|
|
|
|
invoke-virtual {p1, p3, p2, p5, p4}, Landroid/view/View;->layout(IIII)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
sub-int/2addr p4, v2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result p2
|
|
|
|
add-int/2addr p2, p4
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result p4
|
|
|
|
add-int/2addr p4, p2
|
|
|
|
sub-int/2addr p6, v2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result p2
|
|
|
|
add-int/2addr p2, p6
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result p6
|
|
|
|
add-int/2addr p6, p2
|
|
|
|
invoke-virtual {p1, p3, p4, p5, p6}, Landroid/view/View;->layout(IIII)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_7
|
|
iget-object p2, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {p2}, Le/k/a/c/a;->getFlexWrap()I
|
|
|
|
move-result p2
|
|
|
|
if-eq p2, v3, :cond_8
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result p2
|
|
|
|
add-int/2addr p2, p4
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result p4
|
|
|
|
add-int/2addr p4, p6
|
|
|
|
invoke-virtual {p1, p3, p2, p5, p4}, Landroid/view/View;->layout(IIII)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_8
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p4, p2
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p6, p2
|
|
|
|
invoke-virtual {p1, p3, p4, p5, p6}, Landroid/view/View;->layout(IIII)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Landroid/view/View;Le/k/a/c/b;ZIIII)V
|
|
.locals 4
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/android/flexbox/FlexItem;
|
|
|
|
iget-object v1, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v1}, Le/k/a/c/a;->getAlignItems()I
|
|
|
|
move-result v1
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->e()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, -0x1
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->e()I
|
|
|
|
move-result v1
|
|
|
|
:cond_0
|
|
iget p2, p2, Le/k/a/c/b;->g:I
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eq v1, v2, :cond_3
|
|
|
|
const/4 v2, 0x2
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
const/4 p2, 0x3
|
|
|
|
if-eq v1, p2, :cond_5
|
|
|
|
const/4 p2, 0x4
|
|
|
|
if-eq v1, p2, :cond_5
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr p2, v1
|
|
|
|
invoke-static {v0}, Landroidx/core/view/MarginLayoutParamsCompat;->getMarginStart(Landroid/view/ViewGroup$MarginLayoutParams;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, p2
|
|
|
|
invoke-static {v0}, Landroidx/core/view/MarginLayoutParamsCompat;->getMarginEnd(Landroid/view/ViewGroup$MarginLayoutParams;)I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr v1, p2
|
|
|
|
div-int/2addr v1, v2
|
|
|
|
if-nez p3, :cond_2
|
|
|
|
add-int/2addr p4, v1
|
|
|
|
add-int/2addr p6, v1
|
|
|
|
invoke-virtual {p1, p4, p5, p6, p7}, Landroid/view/View;->layout(IIII)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
sub-int/2addr p4, v1
|
|
|
|
sub-int/2addr p6, v1
|
|
|
|
invoke-virtual {p1, p4, p5, p6, p7}, Landroid/view/View;->layout(IIII)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
if-nez p3, :cond_4
|
|
|
|
add-int/2addr p4, p2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result p3
|
|
|
|
sub-int/2addr p4, p3
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->g()I
|
|
|
|
move-result p3
|
|
|
|
sub-int/2addr p4, p3
|
|
|
|
add-int/2addr p6, p2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p6, p2
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->g()I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p6, p2
|
|
|
|
invoke-virtual {p1, p4, p5, p6, p7}, Landroid/view/View;->layout(IIII)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
sub-int/2addr p4, p2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result p3
|
|
|
|
add-int/2addr p3, p4
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->m()I
|
|
|
|
move-result p4
|
|
|
|
add-int/2addr p4, p3
|
|
|
|
sub-int/2addr p6, p2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result p2
|
|
|
|
add-int/2addr p2, p6
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->m()I
|
|
|
|
move-result p3
|
|
|
|
add-int/2addr p3, p2
|
|
|
|
invoke-virtual {p1, p4, p5, p3, p7}, Landroid/view/View;->layout(IIII)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
if-nez p3, :cond_6
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->m()I
|
|
|
|
move-result p2
|
|
|
|
add-int/2addr p2, p4
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->m()I
|
|
|
|
move-result p3
|
|
|
|
add-int/2addr p3, p6
|
|
|
|
invoke-virtual {p1, p2, p5, p3, p7}, Landroid/view/View;->layout(IIII)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->g()I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p4, p2
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->g()I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p6, p2
|
|
|
|
invoke-virtual {p1, p4, p5, p6, p7}, Landroid/view/View;->layout(IIII)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Le/k/a/c/c$b;IIIIILjava/util/List;)V
|
|
.locals 24
|
|
.param p7 # Ljava/util/List;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Le/k/a/c/c$b;",
|
|
"IIIII",
|
|
"Ljava/util/List<",
|
|
"Le/k/a/c/b;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move/from16 v2, p2
|
|
|
|
move/from16 v3, p3
|
|
|
|
move/from16 v4, p6
|
|
|
|
iget-object v5, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v5}, Le/k/a/c/a;->a()Z
|
|
|
|
move-result v5
|
|
|
|
invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result v6
|
|
|
|
invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result v7
|
|
|
|
if-nez p7, :cond_0
|
|
|
|
new-instance v8, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v8}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object/from16 v8, p7
|
|
|
|
:goto_0
|
|
iput-object v8, v1, Le/k/a/c/c$b;->a:Ljava/util/List;
|
|
|
|
const/4 v9, -0x1
|
|
|
|
if-ne v4, v9, :cond_1
|
|
|
|
const/4 v9, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v9, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v5, :cond_2
|
|
|
|
iget-object v10, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v10}, Le/k/a/c/a;->getPaddingStart()I
|
|
|
|
move-result v10
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
iget-object v10, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v10}, Le/k/a/c/a;->getPaddingTop()I
|
|
|
|
move-result v10
|
|
|
|
:goto_2
|
|
if-eqz v5, :cond_3
|
|
|
|
iget-object v11, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v11}, Le/k/a/c/a;->getPaddingEnd()I
|
|
|
|
move-result v11
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
iget-object v11, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v11}, Le/k/a/c/a;->getPaddingBottom()I
|
|
|
|
move-result v11
|
|
|
|
:goto_3
|
|
if-eqz v5, :cond_4
|
|
|
|
iget-object v12, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v12}, Le/k/a/c/a;->getPaddingTop()I
|
|
|
|
move-result v12
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
iget-object v12, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v12}, Le/k/a/c/a;->getPaddingStart()I
|
|
|
|
move-result v12
|
|
|
|
:goto_4
|
|
if-eqz v5, :cond_5
|
|
|
|
iget-object v13, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v13}, Le/k/a/c/a;->getPaddingBottom()I
|
|
|
|
move-result v13
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
iget-object v13, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v13}, Le/k/a/c/a;->getPaddingEnd()I
|
|
|
|
move-result v13
|
|
|
|
:goto_5
|
|
new-instance v14, Le/k/a/c/b;
|
|
|
|
invoke-direct {v14}, Le/k/a/c/b;-><init>()V
|
|
|
|
move/from16 v15, p5
|
|
|
|
iput v15, v14, Le/k/a/c/b;->o:I
|
|
|
|
add-int/2addr v10, v11
|
|
|
|
iput v10, v14, Le/k/a/c/b;->e:I
|
|
|
|
iget-object v11, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v11}, Le/k/a/c/a;->getFlexItemCount()I
|
|
|
|
move-result v11
|
|
|
|
const/16 v16, 0x0
|
|
|
|
const/16 v17, 0x0
|
|
|
|
const/16 v18, 0x0
|
|
|
|
const/high16 v19, -0x80000000
|
|
|
|
move/from16 v16, v9
|
|
|
|
move-object v1, v14
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:goto_6
|
|
if-ge v15, v11, :cond_24
|
|
|
|
move/from16 v17, v9
|
|
|
|
iget-object v9, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v9, v15}, Le/k/a/c/a;->b(I)Landroid/view/View;
|
|
|
|
move-result-object v9
|
|
|
|
if-nez v9, :cond_7
|
|
|
|
invoke-virtual {v0, v15, v11, v1}, Le/k/a/c/c;->a(IILe/k/a/c/b;)Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_6
|
|
|
|
invoke-virtual {v0, v8, v1, v15, v4}, Le/k/a/c/c;->a(Ljava/util/List;Le/k/a/c/b;II)V
|
|
|
|
:cond_6
|
|
move/from16 v18, v14
|
|
|
|
goto :goto_7
|
|
|
|
:cond_7
|
|
move/from16 v18, v14
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v14
|
|
|
|
const/16 v3, 0x8
|
|
|
|
if-ne v14, v3, :cond_9
|
|
|
|
iget v3, v1, Le/k/a/c/b;->i:I
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
iput v3, v1, Le/k/a/c/b;->i:I
|
|
|
|
iget v3, v1, Le/k/a/c/b;->h:I
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
iput v3, v1, Le/k/a/c/b;->h:I
|
|
|
|
invoke-virtual {v0, v15, v11, v1}, Le/k/a/c/c;->a(IILe/k/a/c/b;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_8
|
|
|
|
invoke-virtual {v0, v8, v1, v15, v4}, Le/k/a/c/c;->a(Ljava/util/List;Le/k/a/c/b;II)V
|
|
|
|
:cond_8
|
|
:goto_7
|
|
move/from16 v9, p6
|
|
|
|
move/from16 v21, v6
|
|
|
|
move/from16 v20, v7
|
|
|
|
move-object v6, v8
|
|
|
|
move v3, v11
|
|
|
|
move/from16 v23, v12
|
|
|
|
move/from16 v14, v18
|
|
|
|
move/from16 v8, p3
|
|
|
|
move v11, v4
|
|
|
|
move/from16 v4, p4
|
|
|
|
goto/16 :goto_18
|
|
|
|
:cond_9
|
|
invoke-virtual {v9}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/google/android/flexbox/FlexItem;
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->e()I
|
|
|
|
move-result v14
|
|
|
|
move/from16 p7, v11
|
|
|
|
const/4 v11, 0x4
|
|
|
|
if-ne v14, v11, :cond_a
|
|
|
|
iget-object v11, v1, Le/k/a/c/b;->n:Ljava/util/List;
|
|
|
|
invoke-static {v15}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v14
|
|
|
|
invoke-interface {v11, v14}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_a
|
|
if-eqz v5, :cond_b
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->getWidth()I
|
|
|
|
move-result v11
|
|
|
|
goto :goto_8
|
|
|
|
:cond_b
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->getHeight()I
|
|
|
|
move-result v11
|
|
|
|
:goto_8
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->d()F
|
|
|
|
move-result v14
|
|
|
|
const/high16 v20, -0x40800000 # -1.0f
|
|
|
|
cmpl-float v14, v14, v20
|
|
|
|
if-eqz v14, :cond_c
|
|
|
|
const/high16 v14, 0x40000000 # 2.0f
|
|
|
|
if-ne v6, v14, :cond_c
|
|
|
|
int-to-float v11, v7
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->d()F
|
|
|
|
move-result v14
|
|
|
|
mul-float v14, v14, v11
|
|
|
|
invoke-static {v14}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v11
|
|
|
|
:cond_c
|
|
if-eqz v5, :cond_d
|
|
|
|
iget-object v14, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
move/from16 v20, v7
|
|
|
|
const/4 v7, 0x1
|
|
|
|
invoke-virtual {v0, v3, v7}, Le/k/a/c/c;->d(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
|
|
move-result v21
|
|
|
|
add-int v21, v21, v10
|
|
|
|
invoke-virtual {v0, v3, v7}, Le/k/a/c/c;->b(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
|
|
move-result v7
|
|
|
|
add-int v7, v7, v21
|
|
|
|
invoke-interface {v14, v2, v7, v11}, Le/k/a/c/a;->b(III)I
|
|
|
|
move-result v7
|
|
|
|
iget-object v11, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
add-int v14, v12, v13
|
|
|
|
move/from16 v21, v6
|
|
|
|
const/4 v6, 0x1
|
|
|
|
invoke-virtual {v0, v3, v6}, Le/k/a/c/c;->c(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
|
|
move-result v22
|
|
|
|
add-int v22, v22, v14
|
|
|
|
invoke-virtual {v0, v3, v6}, Le/k/a/c/c;->a(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
|
|
move-result v6
|
|
|
|
add-int v6, v6, v22
|
|
|
|
add-int/2addr v6, v4
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->getHeight()I
|
|
|
|
move-result v14
|
|
|
|
move-object/from16 v22, v8
|
|
|
|
move/from16 v8, p3
|
|
|
|
invoke-interface {v11, v8, v6, v14}, Le/k/a/c/a;->a(III)I
|
|
|
|
move-result v6
|
|
|
|
invoke-virtual {v9, v7, v6}, Landroid/view/View;->measure(II)V
|
|
|
|
invoke-virtual {v0, v15, v7, v6, v9}, Le/k/a/c/c;->a(IIILandroid/view/View;)V
|
|
|
|
goto :goto_9
|
|
|
|
:cond_d
|
|
move/from16 v21, v6
|
|
|
|
move/from16 v20, v7
|
|
|
|
move-object/from16 v22, v8
|
|
|
|
move/from16 v8, p3
|
|
|
|
iget-object v6, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
add-int v7, v12, v13
|
|
|
|
const/4 v14, 0x0
|
|
|
|
invoke-virtual {v0, v3, v14}, Le/k/a/c/c;->c(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
|
|
move-result v23
|
|
|
|
add-int v23, v23, v7
|
|
|
|
invoke-virtual {v0, v3, v14}, Le/k/a/c/c;->a(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
|
|
move-result v7
|
|
|
|
add-int v7, v7, v23
|
|
|
|
add-int/2addr v7, v4
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->getWidth()I
|
|
|
|
move-result v14
|
|
|
|
invoke-interface {v6, v8, v7, v14}, Le/k/a/c/a;->b(III)I
|
|
|
|
move-result v6
|
|
|
|
iget-object v7, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
const/4 v14, 0x0
|
|
|
|
invoke-virtual {v0, v3, v14}, Le/k/a/c/c;->d(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
|
|
move-result v23
|
|
|
|
add-int v23, v23, v10
|
|
|
|
invoke-virtual {v0, v3, v14}, Le/k/a/c/c;->b(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
|
|
move-result v14
|
|
|
|
add-int v14, v14, v23
|
|
|
|
invoke-interface {v7, v2, v14, v11}, Le/k/a/c/a;->a(III)I
|
|
|
|
move-result v7
|
|
|
|
invoke-virtual {v9, v6, v7}, Landroid/view/View;->measure(II)V
|
|
|
|
invoke-virtual {v0, v15, v6, v7, v9}, Le/k/a/c/c;->a(IIILandroid/view/View;)V
|
|
|
|
:goto_9
|
|
iget-object v6, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v6, v15, v9}, Le/k/a/c/a;->a(ILandroid/view/View;)V
|
|
|
|
invoke-virtual {v0, v9, v15}, Le/k/a/c/c;->a(Landroid/view/View;I)V
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getMeasuredState()I
|
|
|
|
move-result v6
|
|
|
|
move/from16 v11, v18
|
|
|
|
invoke-static {v11, v6}, Landroid/view/View;->combineMeasuredStates(II)I
|
|
|
|
move-result v14
|
|
|
|
iget v6, v1, Le/k/a/c/b;->e:I
|
|
|
|
if-eqz v5, :cond_e
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v11
|
|
|
|
goto :goto_a
|
|
|
|
:cond_e
|
|
invoke-virtual {v9}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v11
|
|
|
|
:goto_a
|
|
invoke-virtual {v0, v3, v5}, Le/k/a/c/c;->d(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
|
|
move-result v18
|
|
|
|
add-int v18, v18, v11
|
|
|
|
invoke-virtual {v0, v3, v5}, Le/k/a/c/c;->b(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
|
|
move-result v11
|
|
|
|
add-int v11, v11, v18
|
|
|
|
invoke-interface/range {v22 .. v22}, Ljava/util/List;->size()I
|
|
|
|
move-result v18
|
|
|
|
iget-object v2, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v2}, Le/k/a/c/a;->getFlexWrap()I
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_f
|
|
|
|
goto :goto_b
|
|
|
|
:cond_f
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->j()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_10
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_c
|
|
|
|
:cond_10
|
|
if-nez v21, :cond_11
|
|
|
|
:goto_b
|
|
const/4 v2, 0x0
|
|
|
|
:goto_c
|
|
move v6, v2
|
|
|
|
move/from16 v23, v12
|
|
|
|
move/from16 v12, v17
|
|
|
|
move/from16 v2, v20
|
|
|
|
goto :goto_e
|
|
|
|
:cond_11
|
|
iget-object v2, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v2}, Le/k/a/c/a;->getMaxLine()I
|
|
|
|
move-result v2
|
|
|
|
move/from16 v23, v12
|
|
|
|
const/4 v12, -0x1
|
|
|
|
if-eq v2, v12, :cond_12
|
|
|
|
add-int/lit8 v12, v18, 0x1
|
|
|
|
if-gt v2, v12, :cond_12
|
|
|
|
move/from16 v12, v17
|
|
|
|
move/from16 v2, v20
|
|
|
|
goto :goto_d
|
|
|
|
:cond_12
|
|
iget-object v2, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
move/from16 v12, v17
|
|
|
|
invoke-interface {v2, v9, v15, v12}, Le/k/a/c/a;->a(Landroid/view/View;II)I
|
|
|
|
move-result v2
|
|
|
|
if-lez v2, :cond_13
|
|
|
|
add-int/2addr v11, v2
|
|
|
|
:cond_13
|
|
add-int/2addr v6, v11
|
|
|
|
move/from16 v2, v20
|
|
|
|
if-ge v2, v6, :cond_14
|
|
|
|
const/4 v6, 0x1
|
|
|
|
goto :goto_e
|
|
|
|
:cond_14
|
|
:goto_d
|
|
const/4 v6, 0x0
|
|
|
|
:goto_e
|
|
if-eqz v6, :cond_19
|
|
|
|
invoke-virtual {v1}, Le/k/a/c/b;->a()I
|
|
|
|
move-result v6
|
|
|
|
if-lez v6, :cond_16
|
|
|
|
if-lez v15, :cond_15
|
|
|
|
add-int/lit8 v6, v15, -0x1
|
|
|
|
move v11, v6
|
|
|
|
move-object/from16 v6, v22
|
|
|
|
goto :goto_f
|
|
|
|
:cond_15
|
|
const/4 v6, 0x0
|
|
|
|
move-object/from16 v6, v22
|
|
|
|
const/4 v11, 0x0
|
|
|
|
:goto_f
|
|
invoke-virtual {v0, v6, v1, v11, v4}, Le/k/a/c/c;->a(Ljava/util/List;Le/k/a/c/b;II)V
|
|
|
|
iget v1, v1, Le/k/a/c/b;->g:I
|
|
|
|
add-int/2addr v4, v1
|
|
|
|
goto :goto_10
|
|
|
|
:cond_16
|
|
move-object/from16 v6, v22
|
|
|
|
:goto_10
|
|
if-eqz v5, :cond_17
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->getHeight()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v11, -0x1
|
|
|
|
if-ne v1, v11, :cond_18
|
|
|
|
iget-object v1, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v1}, Le/k/a/c/a;->getPaddingTop()I
|
|
|
|
move-result v11
|
|
|
|
iget-object v12, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v12}, Le/k/a/c/a;->getPaddingBottom()I
|
|
|
|
move-result v12
|
|
|
|
add-int/2addr v12, v11
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result v11
|
|
|
|
add-int/2addr v11, v12
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result v12
|
|
|
|
add-int/2addr v12, v11
|
|
|
|
add-int/2addr v12, v4
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->getHeight()I
|
|
|
|
move-result v11
|
|
|
|
invoke-interface {v1, v8, v12, v11}, Le/k/a/c/a;->a(III)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v9, v7, v1}, Landroid/view/View;->measure(II)V
|
|
|
|
invoke-virtual {v0, v9, v15}, Le/k/a/c/c;->a(Landroid/view/View;I)V
|
|
|
|
goto :goto_11
|
|
|
|
:cond_17
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->getWidth()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v11, -0x1
|
|
|
|
if-ne v1, v11, :cond_18
|
|
|
|
iget-object v1, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v1}, Le/k/a/c/a;->getPaddingLeft()I
|
|
|
|
move-result v11
|
|
|
|
iget-object v12, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v12}, Le/k/a/c/a;->getPaddingRight()I
|
|
|
|
move-result v12
|
|
|
|
add-int/2addr v12, v11
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->m()I
|
|
|
|
move-result v11
|
|
|
|
add-int/2addr v11, v12
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->g()I
|
|
|
|
move-result v12
|
|
|
|
add-int/2addr v12, v11
|
|
|
|
add-int/2addr v12, v4
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->getWidth()I
|
|
|
|
move-result v11
|
|
|
|
invoke-interface {v1, v8, v12, v11}, Le/k/a/c/a;->b(III)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v9, v1, v7}, Landroid/view/View;->measure(II)V
|
|
|
|
invoke-virtual {v0, v9, v15}, Le/k/a/c/c;->a(Landroid/view/View;I)V
|
|
|
|
:cond_18
|
|
:goto_11
|
|
new-instance v1, Le/k/a/c/b;
|
|
|
|
invoke-direct {v1}, Le/k/a/c/b;-><init>()V
|
|
|
|
const/4 v7, 0x1
|
|
|
|
iput v7, v1, Le/k/a/c/b;->h:I
|
|
|
|
iput v10, v1, Le/k/a/c/b;->e:I
|
|
|
|
iput v15, v1, Le/k/a/c/b;->o:I
|
|
|
|
const/high16 v19, -0x80000000
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move v11, v4
|
|
|
|
const/high16 v4, -0x80000000
|
|
|
|
goto :goto_12
|
|
|
|
:cond_19
|
|
move-object/from16 v6, v22
|
|
|
|
iget v7, v1, Le/k/a/c/b;->h:I
|
|
|
|
add-int/lit8 v7, v7, 0x1
|
|
|
|
iput v7, v1, Le/k/a/c/b;->h:I
|
|
|
|
add-int/lit8 v7, v12, 0x1
|
|
|
|
move v11, v4
|
|
|
|
move/from16 v4, v19
|
|
|
|
:goto_12
|
|
iget-boolean v12, v1, Le/k/a/c/b;->q:Z
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->c()F
|
|
|
|
move-result v17
|
|
|
|
const/16 v18, 0x0
|
|
|
|
cmpl-float v17, v17, v18
|
|
|
|
if-eqz v17, :cond_1a
|
|
|
|
const/16 v17, 0x1
|
|
|
|
goto :goto_13
|
|
|
|
:cond_1a
|
|
const/16 v17, 0x0
|
|
|
|
:goto_13
|
|
or-int v12, v12, v17
|
|
|
|
iput-boolean v12, v1, Le/k/a/c/b;->q:Z
|
|
|
|
iget-boolean v12, v1, Le/k/a/c/b;->r:Z
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->f()F
|
|
|
|
move-result v17
|
|
|
|
cmpl-float v17, v17, v18
|
|
|
|
if-eqz v17, :cond_1b
|
|
|
|
const/16 v17, 0x1
|
|
|
|
goto :goto_14
|
|
|
|
:cond_1b
|
|
const/16 v17, 0x0
|
|
|
|
:goto_14
|
|
or-int v12, v12, v17
|
|
|
|
iput-boolean v12, v1, Le/k/a/c/b;->r:Z
|
|
|
|
iget-object v12, v0, Le/k/a/c/c;->c:[I
|
|
|
|
if-eqz v12, :cond_1c
|
|
|
|
invoke-interface {v6}, Ljava/util/List;->size()I
|
|
|
|
move-result v17
|
|
|
|
aput v17, v12, v15
|
|
|
|
:cond_1c
|
|
iget v12, v1, Le/k/a/c/b;->e:I
|
|
|
|
if-eqz v5, :cond_1d
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v17
|
|
|
|
goto :goto_15
|
|
|
|
:cond_1d
|
|
invoke-virtual {v9}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v17
|
|
|
|
:goto_15
|
|
invoke-virtual {v0, v3, v5}, Le/k/a/c/c;->d(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
|
|
move-result v18
|
|
|
|
add-int v18, v18, v17
|
|
|
|
invoke-virtual {v0, v3, v5}, Le/k/a/c/c;->b(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
|
|
move-result v17
|
|
|
|
add-int v17, v17, v18
|
|
|
|
add-int v12, v17, v12
|
|
|
|
iput v12, v1, Le/k/a/c/b;->e:I
|
|
|
|
iget v12, v1, Le/k/a/c/b;->j:F
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->c()F
|
|
|
|
move-result v17
|
|
|
|
add-float v12, v17, v12
|
|
|
|
iput v12, v1, Le/k/a/c/b;->j:F
|
|
|
|
iget v12, v1, Le/k/a/c/b;->k:F
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->f()F
|
|
|
|
move-result v17
|
|
|
|
add-float v12, v17, v12
|
|
|
|
iput v12, v1, Le/k/a/c/b;->k:F
|
|
|
|
iget-object v12, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v12, v9, v15, v7, v1}, Le/k/a/c/a;->a(Landroid/view/View;IILe/k/a/c/b;)V
|
|
|
|
if-eqz v5, :cond_1e
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v12
|
|
|
|
goto :goto_16
|
|
|
|
:cond_1e
|
|
invoke-virtual {v9}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v12
|
|
|
|
:goto_16
|
|
invoke-virtual {v0, v3, v5}, Le/k/a/c/c;->c(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
|
|
move-result v17
|
|
|
|
add-int v17, v17, v12
|
|
|
|
invoke-virtual {v0, v3, v5}, Le/k/a/c/c;->a(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
|
|
move-result v12
|
|
|
|
add-int v12, v12, v17
|
|
|
|
move/from16 v20, v2
|
|
|
|
iget-object v2, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v2, v9}, Le/k/a/c/a;->a(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v12
|
|
|
|
invoke-static {v4, v2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v2
|
|
|
|
iget v4, v1, Le/k/a/c/b;->g:I
|
|
|
|
invoke-static {v4, v2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v4
|
|
|
|
iput v4, v1, Le/k/a/c/b;->g:I
|
|
|
|
if-eqz v5, :cond_20
|
|
|
|
iget-object v4, v0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v4}, Le/k/a/c/a;->getFlexWrap()I
|
|
|
|
move-result v4
|
|
|
|
const/4 v12, 0x2
|
|
|
|
if-eq v4, v12, :cond_1f
|
|
|
|
iget v4, v1, Le/k/a/c/b;->l:I
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getBaseline()I
|
|
|
|
move-result v9
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v3, v9
|
|
|
|
invoke-static {v4, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v3
|
|
|
|
iput v3, v1, Le/k/a/c/b;->l:I
|
|
|
|
goto :goto_17
|
|
|
|
:cond_1f
|
|
iget v4, v1, Le/k/a/c/b;->l:I
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v12
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getBaseline()I
|
|
|
|
move-result v9
|
|
|
|
sub-int/2addr v12, v9
|
|
|
|
invoke-interface {v3}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v3, v12
|
|
|
|
invoke-static {v4, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v3
|
|
|
|
iput v3, v1, Le/k/a/c/b;->l:I
|
|
|
|
:cond_20
|
|
:goto_17
|
|
move/from16 v3, p7
|
|
|
|
invoke-virtual {v0, v15, v3, v1}, Le/k/a/c/c;->a(IILe/k/a/c/b;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_21
|
|
|
|
invoke-virtual {v0, v6, v1, v15, v11}, Le/k/a/c/c;->a(Ljava/util/List;Le/k/a/c/b;II)V
|
|
|
|
iget v4, v1, Le/k/a/c/b;->g:I
|
|
|
|
add-int/2addr v11, v4
|
|
|
|
:cond_21
|
|
const/4 v4, -0x1
|
|
|
|
move/from16 v9, p6
|
|
|
|
if-eq v9, v4, :cond_22
|
|
|
|
invoke-interface {v6}, Ljava/util/List;->size()I
|
|
|
|
move-result v12
|
|
|
|
if-lez v12, :cond_22
|
|
|
|
invoke-interface {v6}, Ljava/util/List;->size()I
|
|
|
|
move-result v12
|
|
|
|
add-int/2addr v12, v4
|
|
|
|
invoke-interface {v6, v12}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Le/k/a/c/b;
|
|
|
|
iget v4, v4, Le/k/a/c/b;->p:I
|
|
|
|
if-lt v4, v9, :cond_22
|
|
|
|
if-lt v15, v9, :cond_22
|
|
|
|
if-nez v16, :cond_22
|
|
|
|
iget v4, v1, Le/k/a/c/b;->g:I
|
|
|
|
neg-int v11, v4
|
|
|
|
const/16 v16, 0x1
|
|
|
|
:cond_22
|
|
move/from16 v4, p4
|
|
|
|
if-le v11, v4, :cond_23
|
|
|
|
if-eqz v16, :cond_23
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move v11, v14
|
|
|
|
goto :goto_19
|
|
|
|
:cond_23
|
|
move/from16 v19, v2
|
|
|
|
move/from16 v17, v7
|
|
|
|
:goto_18
|
|
add-int/lit8 v15, v15, 0x1
|
|
|
|
move/from16 v2, p2
|
|
|
|
move v4, v11
|
|
|
|
move/from16 v9, v17
|
|
|
|
move/from16 v7, v20
|
|
|
|
move/from16 v12, v23
|
|
|
|
move v11, v3
|
|
|
|
move v3, v8
|
|
|
|
move-object v8, v6
|
|
|
|
move/from16 v6, v21
|
|
|
|
goto/16 :goto_6
|
|
|
|
:cond_24
|
|
move v11, v14
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
:goto_19
|
|
iput v11, v1, Le/k/a/c/c$b;->b:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Ljava/util/List;I)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Le/k/a/c/b;",
|
|
">;I)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Le/k/a/c/c;->c:[I
|
|
|
|
aget v0, v0, p2
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:cond_0
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
:goto_0
|
|
if-lt v2, v0, :cond_1
|
|
|
|
invoke-interface {p1, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object p1, p0, Le/k/a/c/c;->c:[I
|
|
|
|
array-length v0, p1
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
if-le p2, v0, :cond_2
|
|
|
|
invoke-static {p1, v1}, Ljava/util/Arrays;->fill([II)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-static {p1, p2, v0, v1}, Ljava/util/Arrays;->fill([IIII)V
|
|
|
|
:goto_1
|
|
iget-object p1, p0, Le/k/a/c/c;->d:[J
|
|
|
|
array-length v0, p1
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
if-le p2, v0, :cond_3
|
|
|
|
invoke-static {p1, v1, v2}, Ljava/util/Arrays;->fill([JJ)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
invoke-static {p1, p2, v0, v1, v2}, Ljava/util/Arrays;->fill([JIIJ)V
|
|
|
|
:goto_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Ljava/util/List;Le/k/a/c/b;II)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Le/k/a/c/b;",
|
|
">;",
|
|
"Le/k/a/c/b;",
|
|
"II)V"
|
|
}
|
|
.end annotation
|
|
|
|
iput p4, p2, Le/k/a/c/b;->m:I
|
|
|
|
iget-object p4, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {p4, p2}, Le/k/a/c/a;->a(Le/k/a/c/b;)V
|
|
|
|
iput p3, p2, Le/k/a/c/b;->p:I
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(IILe/k/a/c/b;)Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
sub-int/2addr p2, v0
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
invoke-virtual {p3}, Le/k/a/c/b;->a()I
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public final a(ILjava/util/List;Landroid/util/SparseIntArray;)[I
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I",
|
|
"Ljava/util/List<",
|
|
"Le/k/a/c/c$c;",
|
|
">;",
|
|
"Landroid/util/SparseIntArray;",
|
|
")[I"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-static {p2}, Ljava/util/Collections;->sort(Ljava/util/List;)V
|
|
|
|
invoke-virtual {p3}, Landroid/util/SparseIntArray;->clear()V
|
|
|
|
new-array p1, p1, [I
|
|
|
|
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Le/k/a/c/c$c;
|
|
|
|
iget v2, v1, Le/k/a/c/c$c;->d:I
|
|
|
|
aput v2, p1, v0
|
|
|
|
iget v1, v1, Le/k/a/c/c$c;->e:I
|
|
|
|
invoke-virtual {p3, v2, v1}, Landroid/util/SparseIntArray;->append(II)V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final b(ILcom/google/android/flexbox/FlexItem;I)I
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0}, Le/k/a/c/a;->getPaddingLeft()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v2}, Le/k/a/c/a;->getPaddingRight()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
invoke-interface {p2}, Lcom/google/android/flexbox/FlexItem;->m()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
invoke-interface {p2}, Lcom/google/android/flexbox/FlexItem;->g()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
add-int/2addr v2, p3
|
|
|
|
invoke-interface {p2}, Lcom/google/android/flexbox/FlexItem;->getWidth()I
|
|
|
|
move-result p3
|
|
|
|
invoke-interface {v0, p1, v2, p3}, Le/k/a/c/a;->b(III)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result p3
|
|
|
|
invoke-interface {p2}, Lcom/google/android/flexbox/FlexItem;->n()I
|
|
|
|
move-result v0
|
|
|
|
if-le p3, v0, :cond_0
|
|
|
|
invoke-interface {p2}, Lcom/google/android/flexbox/FlexItem;->n()I
|
|
|
|
move-result p2
|
|
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p2, p1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-interface {p2}, Lcom/google/android/flexbox/FlexItem;->i()I
|
|
|
|
move-result v0
|
|
|
|
if-ge p3, v0, :cond_1
|
|
|
|
invoke-interface {p2}, Lcom/google/android/flexbox/FlexItem;->i()I
|
|
|
|
move-result p2
|
|
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p2, p1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public b(J)I
|
|
.locals 0
|
|
|
|
long-to-int p2, p1
|
|
|
|
return p2
|
|
.end method
|
|
|
|
.method public final b(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
.locals 0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-interface {p1}, Lcom/google/android/flexbox/FlexItem;->g()I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
invoke-interface {p1}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public b(I)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Le/k/a/c/c;->c:[I
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const/16 v0, 0xa
|
|
|
|
if-ge p1, v0, :cond_0
|
|
|
|
const/16 p1, 0xa
|
|
|
|
:cond_0
|
|
new-array p1, p1, [I
|
|
|
|
iput-object p1, p0, Le/k/a/c/c;->c:[I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
array-length v1, v0
|
|
|
|
if-ge v1, p1, :cond_3
|
|
|
|
array-length v0, v0
|
|
|
|
mul-int/lit8 v0, v0, 0x2
|
|
|
|
if-lt v0, p1, :cond_2
|
|
|
|
move p1, v0
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Le/k/a/c/c;->c:[I
|
|
|
|
invoke-static {v0, p1}, Ljava/util/Arrays;->copyOf([II)[I
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Le/k/a/c/c;->c:[I
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(III)V
|
|
.locals 11
|
|
|
|
iget-object v0, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0}, Le/k/a/c/a;->getFlexItemCount()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Le/k/a/c/c;->b:[Z
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
const/16 v1, 0xa
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
const/16 v0, 0xa
|
|
|
|
:cond_0
|
|
new-array v0, v0, [Z
|
|
|
|
iput-object v0, p0, Le/k/a/c/c;->b:[Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
array-length v4, v1
|
|
|
|
if-ge v4, v0, :cond_3
|
|
|
|
array-length v1, v1
|
|
|
|
mul-int/lit8 v1, v1, 0x2
|
|
|
|
if-lt v1, v0, :cond_2
|
|
|
|
move v0, v1
|
|
|
|
:cond_2
|
|
new-array v0, v0, [Z
|
|
|
|
iput-object v0, p0, Le/k/a/c/c;->b:[Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
invoke-static {v1, v3}, Ljava/util/Arrays;->fill([ZZ)V
|
|
|
|
:goto_0
|
|
iget-object v0, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0}, Le/k/a/c/a;->getFlexItemCount()I
|
|
|
|
move-result v0
|
|
|
|
if-lt p3, v0, :cond_4
|
|
|
|
return-void
|
|
|
|
:cond_4
|
|
iget-object v0, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0}, Le/k/a/c/a;->getFlexDirection()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v1}, Le/k/a/c/a;->getFlexDirection()I
|
|
|
|
move-result v1
|
|
|
|
const/high16 v4, 0x40000000 # 2.0f
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
const/4 v5, 0x1
|
|
|
|
if-eq v1, v5, :cond_8
|
|
|
|
if-eq v1, v2, :cond_6
|
|
|
|
const/4 v2, 0x3
|
|
|
|
if-ne v1, v2, :cond_5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "Invalid flex direction: "
|
|
|
|
invoke-static {p2, v0}, Le/e/b/a/a;->a(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_6
|
|
:goto_1
|
|
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result v1
|
|
|
|
if-ne v0, v4, :cond_7
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
iget-object v0, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0}, Le/k/a/c/a;->getLargestMainSize()I
|
|
|
|
move-result v1
|
|
|
|
:goto_2
|
|
iget-object v0, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0}, Le/k/a/c/a;->getPaddingTop()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v2, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v2}, Le/k/a/c/a;->getPaddingBottom()I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_4
|
|
|
|
:cond_8
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result v1
|
|
|
|
if-ne v0, v4, :cond_9
|
|
|
|
goto :goto_3
|
|
|
|
:cond_9
|
|
iget-object v0, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0}, Le/k/a/c/a;->getLargestMainSize()I
|
|
|
|
move-result v0
|
|
|
|
move v1, v0
|
|
|
|
:goto_3
|
|
iget-object v0, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0}, Le/k/a/c/a;->getPaddingLeft()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v2, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v2}, Le/k/a/c/a;->getPaddingRight()I
|
|
|
|
move-result v2
|
|
|
|
:goto_4
|
|
add-int/2addr v0, v2
|
|
|
|
iget-object v2, p0, Le/k/a/c/c;->c:[I
|
|
|
|
if-eqz v2, :cond_a
|
|
|
|
aget v3, v2, p3
|
|
|
|
:cond_a
|
|
iget-object p3, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {p3}, Le/k/a/c/a;->getFlexLinesInternal()Ljava/util/List;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-interface {p3}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
:goto_5
|
|
if-ge v3, v2, :cond_d
|
|
|
|
invoke-interface {p3, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
move-object v7, v4
|
|
|
|
check-cast v7, Le/k/a/c/b;
|
|
|
|
iget v4, v7, Le/k/a/c/b;->e:I
|
|
|
|
if-ge v4, v1, :cond_b
|
|
|
|
iget-boolean v4, v7, Le/k/a/c/b;->q:Z
|
|
|
|
if-eqz v4, :cond_b
|
|
|
|
const/4 v10, 0x0
|
|
|
|
move-object v4, p0
|
|
|
|
move v5, p1
|
|
|
|
move v6, p2
|
|
|
|
move v8, v1
|
|
|
|
move v9, v0
|
|
|
|
invoke-virtual/range {v4 .. v10}, Le/k/a/c/c;->a(IILe/k/a/c/b;IIZ)V
|
|
|
|
goto :goto_6
|
|
|
|
:cond_b
|
|
iget v4, v7, Le/k/a/c/b;->e:I
|
|
|
|
if-le v4, v1, :cond_c
|
|
|
|
iget-boolean v4, v7, Le/k/a/c/b;->r:Z
|
|
|
|
if-eqz v4, :cond_c
|
|
|
|
const/4 v10, 0x0
|
|
|
|
move-object v4, p0
|
|
|
|
move v5, p1
|
|
|
|
move v6, p2
|
|
|
|
move v8, v1
|
|
|
|
move v9, v0
|
|
|
|
invoke-virtual/range {v4 .. v10}, Le/k/a/c/c;->b(IILe/k/a/c/b;IIZ)V
|
|
|
|
:cond_c
|
|
:goto_6
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_d
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b(IILe/k/a/c/b;IIZ)V
|
|
.locals 21
|
|
|
|
move-object/from16 v7, p0
|
|
|
|
move-object/from16 v3, p3
|
|
|
|
move/from16 v4, p4
|
|
|
|
iget v0, v3, Le/k/a/c/b;->e:I
|
|
|
|
iget v1, v3, Le/k/a/c/b;->k:F
|
|
|
|
const/4 v2, 0x0
|
|
|
|
cmpg-float v5, v1, v2
|
|
|
|
if-lez v5, :cond_15
|
|
|
|
if-le v4, v0, :cond_0
|
|
|
|
goto/16 :goto_b
|
|
|
|
:cond_0
|
|
sub-int v5, v0, v4
|
|
|
|
int-to-float v5, v5
|
|
|
|
div-float/2addr v5, v1
|
|
|
|
iget v1, v3, Le/k/a/c/b;->f:I
|
|
|
|
add-int v1, p5, v1
|
|
|
|
iput v1, v3, Le/k/a/c/b;->e:I
|
|
|
|
if-nez p6, :cond_1
|
|
|
|
const/high16 v1, -0x80000000
|
|
|
|
iput v1, v3, Le/k/a/c/b;->g:I
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
:goto_0
|
|
iget v10, v3, Le/k/a/c/b;->h:I
|
|
|
|
if-ge v1, v10, :cond_14
|
|
|
|
iget v10, v3, Le/k/a/c/b;->o:I
|
|
|
|
add-int/2addr v10, v1
|
|
|
|
iget-object v11, v7, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v11, v10}, Le/k/a/c/a;->b(I)Landroid/view/View;
|
|
|
|
move-result-object v11
|
|
|
|
if-eqz v11, :cond_13
|
|
|
|
invoke-virtual {v11}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v12
|
|
|
|
const/16 v13, 0x8
|
|
|
|
if-ne v12, v13, :cond_2
|
|
|
|
goto/16 :goto_9
|
|
|
|
:cond_2
|
|
invoke-virtual {v11}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v12
|
|
|
|
check-cast v12, Lcom/google/android/flexbox/FlexItem;
|
|
|
|
iget-object v13, v7, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v13}, Le/k/a/c/a;->getFlexDirection()I
|
|
|
|
move-result v13
|
|
|
|
const-wide/high16 v17, 0x3ff0000000000000L # 1.0
|
|
|
|
const/high16 v19, 0x3f800000 # 1.0f
|
|
|
|
const/4 v14, 0x1
|
|
|
|
if-eqz v13, :cond_b
|
|
|
|
if-ne v13, v14, :cond_3
|
|
|
|
goto/16 :goto_4
|
|
|
|
:cond_3
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v13
|
|
|
|
iget-object v15, v7, Le/k/a/c/c;->e:[J
|
|
|
|
if-eqz v15, :cond_4
|
|
|
|
aget-wide v14, v15, v10
|
|
|
|
invoke-virtual {v7, v14, v15}, Le/k/a/c/c;->a(J)I
|
|
|
|
move-result v13
|
|
|
|
:cond_4
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v14
|
|
|
|
iget-object v15, v7, Le/k/a/c/c;->e:[J
|
|
|
|
if-eqz v15, :cond_5
|
|
|
|
aget-wide v14, v15, v10
|
|
|
|
long-to-int v14, v14
|
|
|
|
:cond_5
|
|
iget-object v15, v7, Le/k/a/c/c;->b:[Z
|
|
|
|
aget-boolean v15, v15, v10
|
|
|
|
if-nez v15, :cond_a
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->f()F
|
|
|
|
move-result v15
|
|
|
|
cmpl-float v15, v15, v2
|
|
|
|
if-lez v15, :cond_a
|
|
|
|
int-to-float v13, v13
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->f()F
|
|
|
|
move-result v14
|
|
|
|
mul-float v14, v14, v5
|
|
|
|
sub-float/2addr v13, v14
|
|
|
|
iget v14, v3, Le/k/a/c/b;->h:I
|
|
|
|
const/4 v15, 0x1
|
|
|
|
sub-int/2addr v14, v15
|
|
|
|
if-ne v1, v14, :cond_6
|
|
|
|
add-float/2addr v13, v8
|
|
|
|
const/4 v8, 0x0
|
|
|
|
:cond_6
|
|
invoke-static {v13}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v14
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->h()I
|
|
|
|
move-result v2
|
|
|
|
if-ge v14, v2, :cond_7
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->h()I
|
|
|
|
move-result v14
|
|
|
|
iget-object v2, v7, Le/k/a/c/c;->b:[Z
|
|
|
|
aput-boolean v15, v2, v10
|
|
|
|
iget v2, v3, Le/k/a/c/b;->k:F
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->f()F
|
|
|
|
move-result v6
|
|
|
|
sub-float/2addr v2, v6
|
|
|
|
iput v2, v3, Le/k/a/c/b;->k:F
|
|
|
|
move v2, v0
|
|
|
|
move v15, v1
|
|
|
|
const/4 v6, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
int-to-float v2, v14
|
|
|
|
sub-float/2addr v13, v2
|
|
|
|
add-float/2addr v13, v8
|
|
|
|
move v2, v0
|
|
|
|
move v15, v1
|
|
|
|
float-to-double v0, v13
|
|
|
|
cmpl-double v8, v0, v17
|
|
|
|
if-lez v8, :cond_8
|
|
|
|
add-int/lit8 v14, v14, 0x1
|
|
|
|
sub-float v13, v13, v19
|
|
|
|
goto :goto_1
|
|
|
|
:cond_8
|
|
const-wide/high16 v16, -0x4010000000000000L # -1.0
|
|
|
|
cmpg-double v8, v0, v16
|
|
|
|
if-gez v8, :cond_9
|
|
|
|
add-int/lit8 v14, v14, -0x1
|
|
|
|
add-float v13, v13, v19
|
|
|
|
:cond_9
|
|
:goto_1
|
|
move v8, v13
|
|
|
|
:goto_2
|
|
iget v0, v3, Le/k/a/c/b;->m:I
|
|
|
|
move/from16 v1, p1
|
|
|
|
invoke-virtual {v7, v1, v12, v0}, Le/k/a/c/c;->b(ILcom/google/android/flexbox/FlexItem;I)I
|
|
|
|
move-result v0
|
|
|
|
const/high16 v13, 0x40000000 # 2.0f
|
|
|
|
invoke-static {v14, v13}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v13
|
|
|
|
invoke-virtual {v11, v0, v13}, Landroid/view/View;->measure(II)V
|
|
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v14
|
|
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v16
|
|
|
|
invoke-virtual {v7, v10, v0, v13, v11}, Le/k/a/c/c;->a(IIILandroid/view/View;)V
|
|
|
|
iget-object v0, v7, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0, v10, v11}, Le/k/a/c/a;->a(ILandroid/view/View;)V
|
|
|
|
move/from16 v13, v16
|
|
|
|
goto :goto_3
|
|
|
|
:cond_a
|
|
move v2, v0
|
|
|
|
move v15, v1
|
|
|
|
move/from16 v1, p1
|
|
|
|
:goto_3
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->m()I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v0, v14
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->g()I
|
|
|
|
move-result v10
|
|
|
|
add-int/2addr v10, v0
|
|
|
|
iget-object v0, v7, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0, v11}, Le/k/a/c/a;->a(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v0, v10
|
|
|
|
invoke-static {v9, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
iget v9, v3, Le/k/a/c/b;->e:I
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result v10
|
|
|
|
add-int/2addr v10, v13
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result v11
|
|
|
|
add-int/2addr v11, v10
|
|
|
|
add-int/2addr v11, v9
|
|
|
|
iput v11, v3, Le/k/a/c/b;->e:I
|
|
|
|
move/from16 v13, p2
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_b
|
|
:goto_4
|
|
move v2, v0
|
|
|
|
move v15, v1
|
|
|
|
move/from16 v1, p1
|
|
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v13, v7, Le/k/a/c/c;->e:[J
|
|
|
|
if-eqz v13, :cond_c
|
|
|
|
aget-wide v0, v13, v10
|
|
|
|
long-to-int v0, v0
|
|
|
|
:cond_c
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v13, v7, Le/k/a/c/c;->e:[J
|
|
|
|
move/from16 v20, v15
|
|
|
|
if-eqz v13, :cond_d
|
|
|
|
aget-wide v14, v13, v10
|
|
|
|
invoke-virtual {v7, v14, v15}, Le/k/a/c/c;->a(J)I
|
|
|
|
move-result v1
|
|
|
|
:cond_d
|
|
iget-object v13, v7, Le/k/a/c/c;->b:[Z
|
|
|
|
aget-boolean v13, v13, v10
|
|
|
|
if-nez v13, :cond_12
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->f()F
|
|
|
|
move-result v13
|
|
|
|
const/4 v14, 0x0
|
|
|
|
cmpl-float v13, v13, v14
|
|
|
|
if-lez v13, :cond_12
|
|
|
|
int-to-float v0, v0
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->f()F
|
|
|
|
move-result v1
|
|
|
|
mul-float v1, v1, v5
|
|
|
|
sub-float/2addr v0, v1
|
|
|
|
iget v1, v3, Le/k/a/c/b;->h:I
|
|
|
|
const/4 v13, 0x1
|
|
|
|
sub-int/2addr v1, v13
|
|
|
|
move/from16 v15, v20
|
|
|
|
if-ne v15, v1, :cond_e
|
|
|
|
add-float/2addr v0, v8
|
|
|
|
const/4 v8, 0x0
|
|
|
|
:cond_e
|
|
invoke-static {v0}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v1
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->i()I
|
|
|
|
move-result v14
|
|
|
|
if-ge v1, v14, :cond_f
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->i()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v0, v7, Le/k/a/c/c;->b:[Z
|
|
|
|
aput-boolean v13, v0, v10
|
|
|
|
iget v0, v3, Le/k/a/c/b;->k:F
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->f()F
|
|
|
|
move-result v6
|
|
|
|
sub-float/2addr v0, v6
|
|
|
|
iput v0, v3, Le/k/a/c/b;->k:F
|
|
|
|
const/4 v6, 0x1
|
|
|
|
goto :goto_6
|
|
|
|
:cond_f
|
|
int-to-float v13, v1
|
|
|
|
sub-float/2addr v0, v13
|
|
|
|
add-float/2addr v0, v8
|
|
|
|
float-to-double v13, v0
|
|
|
|
cmpl-double v8, v13, v17
|
|
|
|
if-lez v8, :cond_10
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
sub-float v0, v0, v19
|
|
|
|
goto :goto_5
|
|
|
|
:cond_10
|
|
const-wide/high16 v16, -0x4010000000000000L # -1.0
|
|
|
|
cmpg-double v8, v13, v16
|
|
|
|
if-gez v8, :cond_11
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
add-float v0, v0, v19
|
|
|
|
:cond_11
|
|
:goto_5
|
|
move v8, v0
|
|
|
|
:goto_6
|
|
iget v0, v3, Le/k/a/c/b;->m:I
|
|
|
|
move/from16 v13, p2
|
|
|
|
invoke-virtual {v7, v13, v12, v0}, Le/k/a/c/c;->a(ILcom/google/android/flexbox/FlexItem;I)I
|
|
|
|
move-result v0
|
|
|
|
const/high16 v14, 0x40000000 # 2.0f
|
|
|
|
invoke-static {v1, v14}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v11, v1, v0}, Landroid/view/View;->measure(II)V
|
|
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v14
|
|
|
|
invoke-virtual {v11}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v16
|
|
|
|
invoke-virtual {v7, v10, v1, v0, v11}, Le/k/a/c/c;->a(IIILandroid/view/View;)V
|
|
|
|
iget-object v0, v7, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0, v10, v11}, Le/k/a/c/a;->a(ILandroid/view/View;)V
|
|
|
|
goto :goto_7
|
|
|
|
:cond_12
|
|
move/from16 v13, p2
|
|
|
|
move/from16 v15, v20
|
|
|
|
move v14, v0
|
|
|
|
move/from16 v16, v1
|
|
|
|
:goto_7
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result v0
|
|
|
|
add-int v0, v0, v16
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
iget-object v0, v7, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0, v11}, Le/k/a/c/a;->a(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
invoke-static {v9, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
iget v1, v3, Le/k/a/c/b;->e:I
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->m()I
|
|
|
|
move-result v9
|
|
|
|
add-int/2addr v9, v14
|
|
|
|
invoke-interface {v12}, Lcom/google/android/flexbox/FlexItem;->g()I
|
|
|
|
move-result v10
|
|
|
|
add-int/2addr v10, v9
|
|
|
|
add-int/2addr v10, v1
|
|
|
|
iput v10, v3, Le/k/a/c/b;->e:I
|
|
|
|
:goto_8
|
|
iget v1, v3, Le/k/a/c/b;->g:I
|
|
|
|
invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, v3, Le/k/a/c/b;->g:I
|
|
|
|
move v9, v0
|
|
|
|
goto :goto_a
|
|
|
|
:cond_13
|
|
:goto_9
|
|
move/from16 v13, p2
|
|
|
|
move v2, v0
|
|
|
|
move v15, v1
|
|
|
|
:goto_a
|
|
add-int/lit8 v1, v15, 0x1
|
|
|
|
move v0, v2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_14
|
|
move/from16 v13, p2
|
|
|
|
move v2, v0
|
|
|
|
if-eqz v6, :cond_15
|
|
|
|
iget v0, v3, Le/k/a/c/b;->e:I
|
|
|
|
if-eq v2, v0, :cond_15
|
|
|
|
const/4 v6, 0x1
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move/from16 v1, p1
|
|
|
|
move/from16 v2, p2
|
|
|
|
move-object/from16 v3, p3
|
|
|
|
move/from16 v4, p4
|
|
|
|
move/from16 v5, p5
|
|
|
|
invoke-virtual/range {v0 .. v6}, Le/k/a/c/c;->b(IILe/k/a/c/b;IIZ)V
|
|
|
|
:cond_15
|
|
:goto_b
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b(Landroid/view/View;II)V
|
|
.locals 3
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/android/flexbox/FlexItem;
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr p2, v1
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->l()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr p2, v1
|
|
|
|
iget-object v1, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v1, p1}, Le/k/a/c/a;->a(Landroid/view/View;)I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr p2, v1
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->h()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {p2, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->k()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p2, v0}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p2
|
|
|
|
iget-object v0, p0, Le/k/a/c/c;->e:[J
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
aget-wide v1, v0, p3
|
|
|
|
long-to-int v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
const/high16 v1, 0x40000000 # 2.0f
|
|
|
|
invoke-static {v0, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p2, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p1, v0, p2}, Landroid/view/View;->measure(II)V
|
|
|
|
invoke-virtual {p0, p3, v0, p2, p1}, Le/k/a/c/c;->a(IIILandroid/view/View;)V
|
|
|
|
iget-object p2, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {p2, p3, p1}, Le/k/a/c/a;->a(ILandroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final c(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
.locals 0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-interface {p1}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
invoke-interface {p1}, Lcom/google/android/flexbox/FlexItem;->m()I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public c(I)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Le/k/a/c/c;->d:[J
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const/16 v0, 0xa
|
|
|
|
if-ge p1, v0, :cond_0
|
|
|
|
const/16 p1, 0xa
|
|
|
|
:cond_0
|
|
new-array p1, p1, [J
|
|
|
|
iput-object p1, p0, Le/k/a/c/c;->d:[J
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
array-length v1, v0
|
|
|
|
if-ge v1, p1, :cond_3
|
|
|
|
array-length v0, v0
|
|
|
|
mul-int/lit8 v0, v0, 0x2
|
|
|
|
if-lt v0, p1, :cond_2
|
|
|
|
move p1, v0
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Le/k/a/c/c;->d:[J
|
|
|
|
invoke-static {v0, p1}, Ljava/util/Arrays;->copyOf([JI)[J
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Le/k/a/c/c;->d:[J
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final d(Lcom/google/android/flexbox/FlexItem;Z)I
|
|
.locals 0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-interface {p1}, Lcom/google/android/flexbox/FlexItem;->m()I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
invoke-interface {p1}, Lcom/google/android/flexbox/FlexItem;->o()I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public d(I)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Le/k/a/c/c;->e:[J
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const/16 v0, 0xa
|
|
|
|
if-ge p1, v0, :cond_0
|
|
|
|
const/16 p1, 0xa
|
|
|
|
:cond_0
|
|
new-array p1, p1, [J
|
|
|
|
iput-object p1, p0, Le/k/a/c/c;->e:[J
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
array-length v1, v0
|
|
|
|
if-ge v1, p1, :cond_3
|
|
|
|
array-length v0, v0
|
|
|
|
mul-int/lit8 v0, v0, 0x2
|
|
|
|
if-lt v0, p1, :cond_2
|
|
|
|
move p1, v0
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Le/k/a/c/c;->e:[J
|
|
|
|
invoke-static {v0, p1}, Ljava/util/Arrays;->copyOf([JI)[J
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Le/k/a/c/c;->e:[J
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public e(I)V
|
|
.locals 14
|
|
|
|
iget-object v0, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0}, Le/k/a/c/a;->getFlexItemCount()I
|
|
|
|
move-result v0
|
|
|
|
if-lt p1, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v0}, Le/k/a/c/a;->getFlexDirection()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v1}, Le/k/a/c/a;->getAlignItems()I
|
|
|
|
move-result v1
|
|
|
|
const-string v2, "Invalid flex direction: "
|
|
|
|
const/4 v3, 0x4
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-ne v1, v3, :cond_a
|
|
|
|
iget-object v1, p0, Le/k/a/c/c;->c:[I
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
aget p1, v1, p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
iget-object v1, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v1}, Le/k/a/c/a;->getFlexLinesInternal()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v5
|
|
|
|
:goto_1
|
|
if-ge p1, v5, :cond_f
|
|
|
|
invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Le/k/a/c/b;
|
|
|
|
iget v7, v6, Le/k/a/c/b;->h:I
|
|
|
|
const/4 v8, 0x0
|
|
|
|
:goto_2
|
|
if-ge v8, v7, :cond_9
|
|
|
|
iget v9, v6, Le/k/a/c/b;->o:I
|
|
|
|
add-int/2addr v9, v8
|
|
|
|
iget-object v10, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v10}, Le/k/a/c/a;->getFlexItemCount()I
|
|
|
|
move-result v10
|
|
|
|
if-lt v8, v10, :cond_2
|
|
|
|
goto :goto_4
|
|
|
|
:cond_2
|
|
iget-object v10, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {v10, v9}, Le/k/a/c/a;->b(I)Landroid/view/View;
|
|
|
|
move-result-object v10
|
|
|
|
if-eqz v10, :cond_8
|
|
|
|
invoke-virtual {v10}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v11
|
|
|
|
const/16 v12, 0x8
|
|
|
|
if-ne v11, v12, :cond_3
|
|
|
|
goto :goto_4
|
|
|
|
:cond_3
|
|
invoke-virtual {v10}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v11
|
|
|
|
check-cast v11, Lcom/google/android/flexbox/FlexItem;
|
|
|
|
invoke-interface {v11}, Lcom/google/android/flexbox/FlexItem;->e()I
|
|
|
|
move-result v12
|
|
|
|
const/4 v13, -0x1
|
|
|
|
if-eq v12, v13, :cond_4
|
|
|
|
invoke-interface {v11}, Lcom/google/android/flexbox/FlexItem;->e()I
|
|
|
|
move-result v11
|
|
|
|
if-eq v11, v3, :cond_4
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
if-eqz v0, :cond_7
|
|
|
|
if-eq v0, v4, :cond_7
|
|
|
|
const/4 v11, 0x2
|
|
|
|
if-eq v0, v11, :cond_6
|
|
|
|
const/4 v11, 0x3
|
|
|
|
if-ne v0, v11, :cond_5
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-static {v2, v0}, Le/e/b/a/a;->a(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_6
|
|
:goto_3
|
|
iget v11, v6, Le/k/a/c/b;->g:I
|
|
|
|
invoke-virtual {p0, v10, v11, v9}, Le/k/a/c/c;->a(Landroid/view/View;II)V
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
iget v11, v6, Le/k/a/c/b;->g:I
|
|
|
|
invoke-virtual {p0, v10, v11, v9}, Le/k/a/c/c;->b(Landroid/view/View;II)V
|
|
|
|
:cond_8
|
|
:goto_4
|
|
add-int/lit8 v8, v8, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_9
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_a
|
|
iget-object p1, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-interface {p1}, Le/k/a/c/a;->getFlexLinesInternal()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_b
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Le/k/a/c/b;
|
|
|
|
iget-object v3, v1, Le/k/a/c/b;->n:Ljava/util/List;
|
|
|
|
invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v3
|
|
|
|
:goto_5
|
|
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_b
|
|
|
|
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Ljava/lang/Integer;
|
|
|
|
iget-object v6, p0, Le/k/a/c/c;->a:Le/k/a/c/a;
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v7
|
|
|
|
invoke-interface {v6, v7}, Le/k/a/c/a;->b(I)Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
if-eqz v0, :cond_e
|
|
|
|
if-eq v0, v4, :cond_e
|
|
|
|
const/4 v7, 0x2
|
|
|
|
const/4 v8, 0x3
|
|
|
|
if-eq v0, v7, :cond_d
|
|
|
|
if-ne v0, v8, :cond_c
|
|
|
|
goto :goto_6
|
|
|
|
:cond_c
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-static {v2, v0}, Le/e/b/a/a;->a(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_d
|
|
:goto_6
|
|
iget v7, v1, Le/k/a/c/b;->g:I
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v5
|
|
|
|
invoke-virtual {p0, v6, v7, v5}, Le/k/a/c/c;->a(Landroid/view/View;II)V
|
|
|
|
goto :goto_5
|
|
|
|
:cond_e
|
|
iget v7, v1, Le/k/a/c/b;->g:I
|
|
|
|
invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v5
|
|
|
|
invoke-virtual {p0, v6, v7, v5}, Le/k/a/c/c;->b(Landroid/view/View;II)V
|
|
|
|
goto :goto_5
|
|
|
|
:cond_f
|
|
return-void
|
|
.end method
|