2019-02-04 20:08:30 +00:00
|
|
|
.class Landroidx/constraintlayout/solver/Pools$SimplePool;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "Pools.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Landroidx/constraintlayout/solver/Pools$Pool;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Landroidx/constraintlayout/solver/Pools;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x8
|
|
|
|
name = "SimplePool"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Landroidx/constraintlayout/solver/Pools$Pool<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field private final mPool:[Ljava/lang/Object;
|
|
|
|
|
|
|
|
.field private mPoolSize:I
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method constructor <init>(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
|
|
|
|
new-array p1, p1, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/solver/Pools$SimplePool;->mPool:[Ljava/lang/Object;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
const-string v0, "The max pool size must be > 0"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private isInPool(Ljava/lang/Object;)Z
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(TT;)Z"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/solver/Pools$SimplePool;->mPoolSize:I
|
|
|
|
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/solver/Pools$SimplePool;->mPool:[Ljava/lang/Object;
|
|
|
|
|
|
|
|
aget-object v2, v2, v1
|
|
|
|
|
|
|
|
if-ne v2, p1, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public acquire()Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.locals 5
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/solver/Pools$SimplePool;->mPoolSize:I
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
add-int/lit8 v2, v0, -0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/constraintlayout/solver/Pools$SimplePool;->mPool:[Ljava/lang/Object;
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
aget-object v4, v3, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
aput-object v1, v3, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/solver/Pools$SimplePool;->mPoolSize:I
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
return-object v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public release(Ljava/lang/Object;)Z
|
2019-02-04 20:29:01 +00:00
|
|
|
.locals 3
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(TT;)Z"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/solver/Pools$SimplePool;->mPoolSize:I
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/solver/Pools$SimplePool;->mPool:[Ljava/lang/Object;
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
array-length v2, v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-ge v0, v2, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
aput-object p1, v1, v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const/4 p1, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
add-int/2addr v0, p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
iput v0, p0, Landroidx/constraintlayout/solver/Pools$SimplePool;->mPoolSize:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
return p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public releaseAll([Ljava/lang/Object;I)V
|
2019-02-04 20:29:01 +00:00
|
|
|
.locals 5
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"([TT;I)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
array-length v0, p1
|
|
|
|
|
|
|
|
if-le p2, v0, :cond_0
|
|
|
|
|
|
|
|
array-length p2, p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge v0, p2, :cond_2
|
|
|
|
|
|
|
|
aget-object v1, p1, v0
|
|
|
|
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/solver/Pools$SimplePool;->mPoolSize:I
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/constraintlayout/solver/Pools$SimplePool;->mPool:[Ljava/lang/Object;
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
array-length v4, v3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-ge v2, v4, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
aput-object v1, v3, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
add-int/lit8 v2, v2, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
iput v2, p0, Landroidx/constraintlayout/solver/Pools$SimplePool;->mPoolSize:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return-void
|
|
|
|
.end method
|