179 lines
3.3 KiB
Smali
179 lines
3.3 KiB
Smali
.class public final Lcom/google/android/flexbox/b;
|
|
.super Ljava/lang/Object;
|
|
.source "FlexLine.java"
|
|
|
|
|
|
# instance fields
|
|
.field abl:I
|
|
|
|
.field abm:I
|
|
|
|
.field abn:I
|
|
|
|
.field abo:I
|
|
|
|
.field abp:F
|
|
|
|
.field abq:F
|
|
|
|
.field abr:I
|
|
|
|
.field abs:I
|
|
|
|
.field abt:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field abu:I
|
|
|
|
.field mBottom:I
|
|
|
|
.field mItemCount:I
|
|
|
|
.field mLastIndex:I
|
|
|
|
.field mLeft:I
|
|
|
|
.field mRight:I
|
|
|
|
.field mTop:I
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const v0, 0x7fffffff
|
|
|
|
iput v0, p0, Lcom/google/android/flexbox/b;->mLeft:I
|
|
|
|
iput v0, p0, Lcom/google/android/flexbox/b;->mTop:I
|
|
|
|
const/high16 v0, -0x80000000
|
|
|
|
iput v0, p0, Lcom/google/android/flexbox/b;->mRight:I
|
|
|
|
iput v0, p0, Lcom/google/android/flexbox/b;->mBottom:I
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/android/flexbox/b;->abt:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method final a(Landroid/view/View;IIII)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 v1, p0, Lcom/google/android/flexbox/b;->mLeft:I
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLeft()I
|
|
|
|
move-result v2
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->ky()I
|
|
|
|
move-result v3
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
sub-int/2addr v2, p2
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Lcom/google/android/flexbox/b;->mLeft:I
|
|
|
|
iget p2, p0, Lcom/google/android/flexbox/b;->mTop:I
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v1
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->kz()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
sub-int/2addr v1, p3
|
|
|
|
invoke-static {p2, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Lcom/google/android/flexbox/b;->mTop:I
|
|
|
|
iget p2, p0, Lcom/google/android/flexbox/b;->mRight:I
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getRight()I
|
|
|
|
move-result p3
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->kA()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr p3, v1
|
|
|
|
add-int/2addr p3, p4
|
|
|
|
invoke-static {p2, p3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Lcom/google/android/flexbox/b;->mRight:I
|
|
|
|
iget p2, p0, Lcom/google/android/flexbox/b;->mBottom:I
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result p1
|
|
|
|
invoke-interface {v0}, Lcom/google/android/flexbox/FlexItem;->kB()I
|
|
|
|
move-result p3
|
|
|
|
add-int/2addr p1, p3
|
|
|
|
add-int/2addr p1, p5
|
|
|
|
invoke-static {p2, p1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/google/android/flexbox/b;->mBottom:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final kC()I
|
|
.locals 2
|
|
|
|
iget v0, p0, Lcom/google/android/flexbox/b;->mItemCount:I
|
|
|
|
iget v1, p0, Lcom/google/android/flexbox/b;->abo:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|