changed repo structure
This commit is contained in:
@@ -0,0 +1,166 @@
|
||||
.class Landroidx/collection/ArrayMap$1;
|
||||
.super Landroidx/collection/MapCollections;
|
||||
.source "ArrayMap.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Landroidx/collection/ArrayMap;->getCollection()Landroidx/collection/MapCollections;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Landroidx/collection/MapCollections<",
|
||||
"TK;TV;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic this$0:Landroidx/collection/ArrayMap;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/collection/ArrayMap;)V
|
||||
.locals 0
|
||||
|
||||
.line 76
|
||||
iput-object p1, p0, Landroidx/collection/ArrayMap$1;->this$0:Landroidx/collection/ArrayMap;
|
||||
|
||||
invoke-direct {p0}, Landroidx/collection/MapCollections;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method protected colClear()V
|
||||
.locals 1
|
||||
|
||||
.line 119
|
||||
iget-object v0, p0, Landroidx/collection/ArrayMap$1;->this$0:Landroidx/collection/ArrayMap;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/ArrayMap;->clear()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method protected colGetEntry(II)Ljava/lang/Object;
|
||||
.locals 1
|
||||
|
||||
.line 84
|
||||
iget-object v0, p0, Landroidx/collection/ArrayMap$1;->this$0:Landroidx/collection/ArrayMap;
|
||||
|
||||
iget-object v0, v0, Landroidx/collection/ArrayMap;->mArray:[Ljava/lang/Object;
|
||||
|
||||
shl-int/lit8 p1, p1, 0x1
|
||||
|
||||
add-int/2addr p1, p2
|
||||
|
||||
aget-object p1, v0, p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method protected colGetMap()Ljava/util/Map;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Map<",
|
||||
"TK;TV;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 99
|
||||
iget-object v0, p0, Landroidx/collection/ArrayMap$1;->this$0:Landroidx/collection/ArrayMap;
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method protected colGetSize()I
|
||||
.locals 1
|
||||
|
||||
.line 79
|
||||
iget-object v0, p0, Landroidx/collection/ArrayMap$1;->this$0:Landroidx/collection/ArrayMap;
|
||||
|
||||
iget v0, v0, Landroidx/collection/ArrayMap;->mSize:I
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method protected colIndexOfKey(Ljava/lang/Object;)I
|
||||
.locals 1
|
||||
|
||||
.line 89
|
||||
iget-object v0, p0, Landroidx/collection/ArrayMap$1;->this$0:Landroidx/collection/ArrayMap;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/collection/ArrayMap;->indexOfKey(Ljava/lang/Object;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method protected colIndexOfValue(Ljava/lang/Object;)I
|
||||
.locals 1
|
||||
|
||||
.line 94
|
||||
iget-object v0, p0, Landroidx/collection/ArrayMap$1;->this$0:Landroidx/collection/ArrayMap;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/collection/ArrayMap;->indexOfValue(Ljava/lang/Object;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method protected colPut(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TK;TV;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 104
|
||||
iget-object v0, p0, Landroidx/collection/ArrayMap$1;->this$0:Landroidx/collection/ArrayMap;
|
||||
|
||||
invoke-virtual {v0, p1, p2}, Landroidx/collection/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method protected colRemoveAt(I)V
|
||||
.locals 1
|
||||
|
||||
.line 114
|
||||
iget-object v0, p0, Landroidx/collection/ArrayMap$1;->this$0:Landroidx/collection/ArrayMap;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/collection/ArrayMap;->removeAt(I)Ljava/lang/Object;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method protected colSetValue(ILjava/lang/Object;)Ljava/lang/Object;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(ITV;)TV;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 109
|
||||
iget-object v0, p0, Landroidx/collection/ArrayMap$1;->this$0:Landroidx/collection/ArrayMap;
|
||||
|
||||
invoke-virtual {v0, p1, p2}, Landroidx/collection/ArrayMap;->setValueAt(ILjava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
@@ -0,0 +1,274 @@
|
||||
.class public Landroidx/collection/ArrayMap;
|
||||
.super Landroidx/collection/SimpleArrayMap;
|
||||
.source "ArrayMap.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/util/Map;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<K:",
|
||||
"Ljava/lang/Object;",
|
||||
"V:",
|
||||
"Ljava/lang/Object;",
|
||||
">",
|
||||
"Landroidx/collection/SimpleArrayMap<",
|
||||
"TK;TV;>;",
|
||||
"Ljava/util/Map<",
|
||||
"TK;TV;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field mCollections:Landroidx/collection/MapCollections;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Landroidx/collection/MapCollections<",
|
||||
"TK;TV;>;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
.line 57
|
||||
invoke-direct {p0}, Landroidx/collection/SimpleArrayMap;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(I)V
|
||||
.locals 0
|
||||
|
||||
.line 64
|
||||
invoke-direct {p0, p1}, Landroidx/collection/SimpleArrayMap;-><init>(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Landroidx/collection/SimpleArrayMap;)V
|
||||
.locals 0
|
||||
|
||||
.line 71
|
||||
invoke-direct {p0, p1}, Landroidx/collection/SimpleArrayMap;-><init>(Landroidx/collection/SimpleArrayMap;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method private getCollection()Landroidx/collection/MapCollections;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Landroidx/collection/MapCollections<",
|
||||
"TK;TV;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 75
|
||||
iget-object v0, p0, Landroidx/collection/ArrayMap;->mCollections:Landroidx/collection/MapCollections;
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
.line 76
|
||||
new-instance v0, Landroidx/collection/ArrayMap$1;
|
||||
|
||||
invoke-direct {v0, p0}, Landroidx/collection/ArrayMap$1;-><init>(Landroidx/collection/ArrayMap;)V
|
||||
|
||||
iput-object v0, p0, Landroidx/collection/ArrayMap;->mCollections:Landroidx/collection/MapCollections;
|
||||
|
||||
.line 123
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/collection/ArrayMap;->mCollections:Landroidx/collection/MapCollections;
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public containsAll(Ljava/util/Collection;)Z
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"*>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 133
|
||||
invoke-static {p0, p1}, Landroidx/collection/MapCollections;->containsAllHelper(Ljava/util/Map;Ljava/util/Collection;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public entrySet()Ljava/util/Set;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Set<",
|
||||
"Ljava/util/Map$Entry<",
|
||||
"TK;TV;>;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 182
|
||||
invoke-direct {p0}, Landroidx/collection/ArrayMap;->getCollection()Landroidx/collection/MapCollections;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->getEntrySet()Ljava/util/Set;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public keySet()Ljava/util/Set;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Set<",
|
||||
"TK;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 194
|
||||
invoke-direct {p0}, Landroidx/collection/ArrayMap;->getCollection()Landroidx/collection/MapCollections;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->getKeySet()Ljava/util/Set;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public putAll(Ljava/util/Map;)V
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Map<",
|
||||
"+TK;+TV;>;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 142
|
||||
iget v0, p0, Landroidx/collection/ArrayMap;->mSize:I
|
||||
|
||||
invoke-interface {p1}, Ljava/util/Map;->size()I
|
||||
|
||||
move-result v1
|
||||
|
||||
add-int/2addr v0, v1
|
||||
|
||||
invoke-virtual {p0, v0}, Landroidx/collection/ArrayMap;->ensureCapacity(I)V
|
||||
|
||||
.line 143
|
||||
invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
:goto_0
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
check-cast v0, Ljava/util/Map$Entry;
|
||||
|
||||
.line 144
|
||||
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {p0, v1, v0}, Landroidx/collection/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public removeAll(Ljava/util/Collection;)Z
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"*>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 154
|
||||
invoke-static {p0, p1}, Landroidx/collection/MapCollections;->removeAllHelper(Ljava/util/Map;Ljava/util/Collection;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public retainAll(Ljava/util/Collection;)Z
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"*>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 164
|
||||
invoke-static {p0, p1}, Landroidx/collection/MapCollections;->retainAllHelper(Ljava/util/Map;Ljava/util/Collection;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public values()Ljava/util/Collection;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Collection<",
|
||||
"TV;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 206
|
||||
invoke-direct {p0}, Landroidx/collection/ArrayMap;->getCollection()Landroidx/collection/MapCollections;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->getValues()Ljava/util/Collection;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
@@ -0,0 +1,166 @@
|
||||
.class Landroidx/collection/ArraySet$1;
|
||||
.super Landroidx/collection/MapCollections;
|
||||
.source "ArraySet.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Landroidx/collection/ArraySet;->getCollection()Landroidx/collection/MapCollections;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x0
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Landroidx/collection/MapCollections<",
|
||||
"TE;TE;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic this$0:Landroidx/collection/ArraySet;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/collection/ArraySet;)V
|
||||
.locals 0
|
||||
|
||||
.line 635
|
||||
iput-object p1, p0, Landroidx/collection/ArraySet$1;->this$0:Landroidx/collection/ArraySet;
|
||||
|
||||
invoke-direct {p0}, Landroidx/collection/MapCollections;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method protected colClear()V
|
||||
.locals 1
|
||||
|
||||
.line 678
|
||||
iget-object v0, p0, Landroidx/collection/ArraySet$1;->this$0:Landroidx/collection/ArraySet;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/ArraySet;->clear()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method protected colGetEntry(II)Ljava/lang/Object;
|
||||
.locals 0
|
||||
|
||||
.line 643
|
||||
iget-object p2, p0, Landroidx/collection/ArraySet$1;->this$0:Landroidx/collection/ArraySet;
|
||||
|
||||
iget-object p2, p2, Landroidx/collection/ArraySet;->mArray:[Ljava/lang/Object;
|
||||
|
||||
aget-object p1, p2, p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method protected colGetMap()Ljava/util/Map;
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Map<",
|
||||
"TE;TE;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 658
|
||||
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
const-string v1, "not a map"
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method protected colGetSize()I
|
||||
.locals 1
|
||||
|
||||
.line 638
|
||||
iget-object v0, p0, Landroidx/collection/ArraySet$1;->this$0:Landroidx/collection/ArraySet;
|
||||
|
||||
iget v0, v0, Landroidx/collection/ArraySet;->mSize:I
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method protected colIndexOfKey(Ljava/lang/Object;)I
|
||||
.locals 1
|
||||
|
||||
.line 648
|
||||
iget-object v0, p0, Landroidx/collection/ArraySet$1;->this$0:Landroidx/collection/ArraySet;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/collection/ArraySet;->indexOf(Ljava/lang/Object;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method protected colIndexOfValue(Ljava/lang/Object;)I
|
||||
.locals 1
|
||||
|
||||
.line 653
|
||||
iget-object v0, p0, Landroidx/collection/ArraySet$1;->this$0:Landroidx/collection/ArraySet;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/collection/ArraySet;->indexOf(Ljava/lang/Object;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method protected colPut(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TE;TE;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 663
|
||||
iget-object p2, p0, Landroidx/collection/ArraySet$1;->this$0:Landroidx/collection/ArraySet;
|
||||
|
||||
invoke-virtual {p2, p1}, Landroidx/collection/ArraySet;->add(Ljava/lang/Object;)Z
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method protected colRemoveAt(I)V
|
||||
.locals 1
|
||||
|
||||
.line 673
|
||||
iget-object v0, p0, Landroidx/collection/ArraySet$1;->this$0:Landroidx/collection/ArraySet;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/collection/ArraySet;->removeAt(I)Ljava/lang/Object;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method protected colSetValue(ILjava/lang/Object;)Ljava/lang/Object;
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(ITE;)TE;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 668
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
const-string p2, "not a map"
|
||||
|
||||
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,689 @@
|
||||
.class public final Landroidx/collection/CircularArray;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CircularArray.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<E:",
|
||||
"Ljava/lang/Object;",
|
||||
">",
|
||||
"Ljava/lang/Object;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private mCapacityBitmask:I
|
||||
|
||||
.field private mElements:[Ljava/lang/Object;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"[TE;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field private mHead:I
|
||||
|
||||
.field private mTail:I
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
const/16 v0, 0x8
|
||||
|
||||
.line 49
|
||||
invoke-direct {p0, v0}, Landroidx/collection/CircularArray;-><init>(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(I)V
|
||||
.locals 2
|
||||
|
||||
.line 58
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
if-lt p1, v0, :cond_2
|
||||
|
||||
const/high16 v1, 0x40000000 # 2.0f
|
||||
|
||||
if-gt p1, v1, :cond_1
|
||||
|
||||
.line 69
|
||||
invoke-static {p1}, Ljava/lang/Integer;->bitCount(I)I
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eq v1, v0, :cond_0
|
||||
|
||||
add-int/lit8 p1, p1, -0x1
|
||||
|
||||
.line 70
|
||||
invoke-static {p1}, Ljava/lang/Integer;->highestOneBit(I)I
|
||||
|
||||
move-result p1
|
||||
|
||||
shl-int/2addr p1, v0
|
||||
|
||||
:cond_0
|
||||
add-int/lit8 v0, p1, -0x1
|
||||
|
||||
.line 75
|
||||
iput v0, p0, Landroidx/collection/CircularArray;->mCapacityBitmask:I
|
||||
|
||||
.line 76
|
||||
new-array p1, p1, [Ljava/lang/Object;
|
||||
|
||||
check-cast p1, [Ljava/lang/Object;
|
||||
|
||||
iput-object p1, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
return-void
|
||||
|
||||
.line 63
|
||||
:cond_1
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string v0, "capacity must be <= 2^30"
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
|
||||
.line 60
|
||||
:cond_2
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string v0, "capacity must be >= 1"
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method private doubleCapacity()V
|
||||
.locals 7
|
||||
|
||||
.line 30
|
||||
iget-object v0, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
array-length v1, v0
|
||||
|
||||
.line 31
|
||||
iget v2, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
sub-int v3, v1, v2
|
||||
|
||||
shl-int/lit8 v4, v1, 0x1
|
||||
|
||||
if-ltz v4, :cond_0
|
||||
|
||||
.line 36
|
||||
new-array v5, v4, [Ljava/lang/Object;
|
||||
|
||||
const/4 v6, 0x0
|
||||
|
||||
.line 37
|
||||
invoke-static {v0, v2, v5, v6, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
||||
|
||||
.line 38
|
||||
iget-object v0, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
iget v2, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
invoke-static {v0, v6, v5, v3, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
||||
|
||||
.line 39
|
||||
check-cast v5, [Ljava/lang/Object;
|
||||
|
||||
iput-object v5, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
.line 40
|
||||
iput v6, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
.line 41
|
||||
iput v1, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
add-int/lit8 v4, v4, -0x1
|
||||
|
||||
.line 42
|
||||
iput v4, p0, Landroidx/collection/CircularArray;->mCapacityBitmask:I
|
||||
|
||||
return-void
|
||||
|
||||
.line 34
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/RuntimeException;
|
||||
|
||||
const-string v1, "Max array capacity exceeded"
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public addFirst(Ljava/lang/Object;)V
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TE;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 84
|
||||
iget v0, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
add-int/lit8 v0, v0, -0x1
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr v0, v1
|
||||
|
||||
iput v0, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
.line 85
|
||||
iget-object v1, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
aput-object p1, v1, v0
|
||||
|
||||
.line 86
|
||||
iget p1, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
if-ne v0, p1, :cond_0
|
||||
|
||||
.line 87
|
||||
invoke-direct {p0}, Landroidx/collection/CircularArray;->doubleCapacity()V
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public addLast(Ljava/lang/Object;)V
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TE;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 96
|
||||
iget-object v0, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
aput-object p1, v0, v1
|
||||
|
||||
add-int/lit8 v1, v1, 0x1
|
||||
|
||||
.line 97
|
||||
iget p1, p0, Landroidx/collection/CircularArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr p1, v1
|
||||
|
||||
iput p1, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
.line 98
|
||||
iget v0, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
if-ne p1, v0, :cond_0
|
||||
|
||||
.line 99
|
||||
invoke-direct {p0}, Landroidx/collection/CircularArray;->doubleCapacity()V
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public clear()V
|
||||
.locals 1
|
||||
|
||||
.line 138
|
||||
invoke-virtual {p0}, Landroidx/collection/CircularArray;->size()I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-virtual {p0, v0}, Landroidx/collection/CircularArray;->removeFromStart(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public get(I)Ljava/lang/Object;
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(I)TE;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
if-ltz p1, :cond_0
|
||||
|
||||
.line 240
|
||||
invoke-virtual {p0}, Landroidx/collection/CircularArray;->size()I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-ge p1, v0, :cond_0
|
||||
|
||||
.line 243
|
||||
iget-object v0, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
add-int/2addr v1, p1
|
||||
|
||||
iget p1, p0, Landroidx/collection/CircularArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr p1, v1
|
||||
|
||||
aget-object p1, v0, p1
|
||||
|
||||
return-object p1
|
||||
|
||||
.line 241
|
||||
:cond_0
|
||||
new-instance p1, Ljava/lang/ArrayIndexOutOfBoundsException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public getFirst()Ljava/lang/Object;
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()TE;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 215
|
||||
iget v0, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
if-eq v0, v1, :cond_0
|
||||
|
||||
.line 218
|
||||
iget-object v1, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
aget-object v0, v1, v0
|
||||
|
||||
return-object v0
|
||||
|
||||
.line 216
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/ArrayIndexOutOfBoundsException;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public getLast()Ljava/lang/Object;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()TE;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 227
|
||||
iget v0, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
if-eq v0, v1, :cond_0
|
||||
|
||||
.line 230
|
||||
iget-object v0, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
add-int/lit8 v1, v1, -0x1
|
||||
|
||||
iget v2, p0, Landroidx/collection/CircularArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr v1, v2
|
||||
|
||||
aget-object v0, v0, v1
|
||||
|
||||
return-object v0
|
||||
|
||||
.line 228
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/ArrayIndexOutOfBoundsException;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public isEmpty()Z
|
||||
.locals 2
|
||||
|
||||
.line 259
|
||||
iget v0, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
if-ne v0, v1, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public popFirst()Ljava/lang/Object;
|
||||
.locals 4
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()TE;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 109
|
||||
iget v0, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
if-eq v0, v1, :cond_0
|
||||
|
||||
.line 112
|
||||
iget-object v1, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
aget-object v2, v1, v0
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
.line 113
|
||||
aput-object v3, v1, v0
|
||||
|
||||
add-int/lit8 v0, v0, 0x1
|
||||
|
||||
.line 114
|
||||
iget v1, p0, Landroidx/collection/CircularArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr v0, v1
|
||||
|
||||
iput v0, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
return-object v2
|
||||
|
||||
.line 110
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/ArrayIndexOutOfBoundsException;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public popLast()Ljava/lang/Object;
|
||||
.locals 4
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()TE;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 124
|
||||
iget v0, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
if-eq v0, v1, :cond_0
|
||||
|
||||
add-int/lit8 v1, v1, -0x1
|
||||
|
||||
.line 127
|
||||
iget v0, p0, Landroidx/collection/CircularArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr v0, v1
|
||||
|
||||
.line 128
|
||||
iget-object v1, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
aget-object v2, v1, v0
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
.line 129
|
||||
aput-object v3, v1, v0
|
||||
|
||||
.line 130
|
||||
iput v0, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
return-object v2
|
||||
|
||||
.line 125
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/ArrayIndexOutOfBoundsException;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public removeFromEnd(I)V
|
||||
.locals 4
|
||||
|
||||
if-gtz p1, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
.line 185
|
||||
:cond_0
|
||||
invoke-virtual {p0}, Landroidx/collection/CircularArray;->size()I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-gt p1, v0, :cond_5
|
||||
|
||||
.line 189
|
||||
iget v0, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
if-ge p1, v0, :cond_1
|
||||
|
||||
sub-int/2addr v0, p1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
move v1, v0
|
||||
|
||||
.line 192
|
||||
:goto_1
|
||||
iget v2, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
if-ge v1, v2, :cond_2
|
||||
|
||||
.line 193
|
||||
iget-object v2, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
aput-object v3, v2, v1
|
||||
|
||||
add-int/lit8 v1, v1, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_2
|
||||
sub-int v0, v2, v0
|
||||
|
||||
sub-int/2addr p1, v0
|
||||
|
||||
sub-int/2addr v2, v0
|
||||
|
||||
.line 197
|
||||
iput v2, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
if-lez p1, :cond_4
|
||||
|
||||
.line 200
|
||||
iget-object v0, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
array-length v0, v0
|
||||
|
||||
iput v0, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
sub-int/2addr v0, p1
|
||||
|
||||
move p1, v0
|
||||
|
||||
.line 202
|
||||
:goto_2
|
||||
iget v1, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
if-ge p1, v1, :cond_3
|
||||
|
||||
.line 203
|
||||
iget-object v1, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
aput-object v3, v1, p1
|
||||
|
||||
add-int/lit8 p1, p1, 0x1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
.line 205
|
||||
:cond_3
|
||||
iput v0, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
:cond_4
|
||||
return-void
|
||||
|
||||
.line 186
|
||||
:cond_5
|
||||
new-instance p1, Ljava/lang/ArrayIndexOutOfBoundsException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public removeFromStart(I)V
|
||||
.locals 4
|
||||
|
||||
if-gtz p1, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
.line 152
|
||||
:cond_0
|
||||
invoke-virtual {p0}, Landroidx/collection/CircularArray;->size()I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-gt p1, v0, :cond_5
|
||||
|
||||
.line 155
|
||||
iget-object v0, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
array-length v0, v0
|
||||
|
||||
.line 156
|
||||
iget v1, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
sub-int v2, v0, v1
|
||||
|
||||
if-ge p1, v2, :cond_1
|
||||
|
||||
add-int v0, v1, p1
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
const/4 v2, 0x0
|
||||
|
||||
if-ge v1, v0, :cond_2
|
||||
|
||||
.line 160
|
||||
iget-object v3, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
aput-object v2, v3, v1
|
||||
|
||||
add-int/lit8 v1, v1, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 162
|
||||
:cond_2
|
||||
iget v1, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
sub-int/2addr v0, v1
|
||||
|
||||
sub-int/2addr p1, v0
|
||||
|
||||
add-int/2addr v1, v0
|
||||
|
||||
.line 164
|
||||
iget v0, p0, Landroidx/collection/CircularArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr v0, v1
|
||||
|
||||
iput v0, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
if-lez p1, :cond_4
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_1
|
||||
if-ge v0, p1, :cond_3
|
||||
|
||||
.line 168
|
||||
iget-object v1, p0, Landroidx/collection/CircularArray;->mElements:[Ljava/lang/Object;
|
||||
|
||||
aput-object v2, v1, v0
|
||||
|
||||
add-int/lit8 v0, v0, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
.line 170
|
||||
:cond_3
|
||||
iput p1, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
:cond_4
|
||||
return-void
|
||||
|
||||
.line 153
|
||||
:cond_5
|
||||
new-instance p1, Ljava/lang/ArrayIndexOutOfBoundsException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public size()I
|
||||
.locals 2
|
||||
|
||||
.line 251
|
||||
iget v0, p0, Landroidx/collection/CircularArray;->mTail:I
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularArray;->mHead:I
|
||||
|
||||
sub-int/2addr v0, v1
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr v0, v1
|
||||
|
||||
return v0
|
||||
.end method
|
||||
@@ -0,0 +1,501 @@
|
||||
.class public final Landroidx/collection/CircularIntArray;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CircularIntArray.java"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private mCapacityBitmask:I
|
||||
|
||||
.field private mElements:[I
|
||||
|
||||
.field private mHead:I
|
||||
|
||||
.field private mTail:I
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
const/16 v0, 0x8
|
||||
|
||||
.line 50
|
||||
invoke-direct {p0, v0}, Landroidx/collection/CircularIntArray;-><init>(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(I)V
|
||||
.locals 2
|
||||
|
||||
.line 59
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
if-lt p1, v0, :cond_2
|
||||
|
||||
const/high16 v1, 0x40000000 # 2.0f
|
||||
|
||||
if-gt p1, v1, :cond_1
|
||||
|
||||
.line 70
|
||||
invoke-static {p1}, Ljava/lang/Integer;->bitCount(I)I
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eq v1, v0, :cond_0
|
||||
|
||||
add-int/lit8 p1, p1, -0x1
|
||||
|
||||
.line 71
|
||||
invoke-static {p1}, Ljava/lang/Integer;->highestOneBit(I)I
|
||||
|
||||
move-result p1
|
||||
|
||||
shl-int/2addr p1, v0
|
||||
|
||||
:cond_0
|
||||
add-int/lit8 v0, p1, -0x1
|
||||
|
||||
.line 76
|
||||
iput v0, p0, Landroidx/collection/CircularIntArray;->mCapacityBitmask:I
|
||||
|
||||
.line 77
|
||||
new-array p1, p1, [I
|
||||
|
||||
iput-object p1, p0, Landroidx/collection/CircularIntArray;->mElements:[I
|
||||
|
||||
return-void
|
||||
|
||||
.line 64
|
||||
:cond_1
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string v0, "capacity must be <= 2^30"
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
|
||||
.line 61
|
||||
:cond_2
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string v0, "capacity must be >= 1"
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method private doubleCapacity()V
|
||||
.locals 7
|
||||
|
||||
.line 31
|
||||
iget-object v0, p0, Landroidx/collection/CircularIntArray;->mElements:[I
|
||||
|
||||
array-length v1, v0
|
||||
|
||||
.line 32
|
||||
iget v2, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
sub-int v3, v1, v2
|
||||
|
||||
shl-int/lit8 v4, v1, 0x1
|
||||
|
||||
if-ltz v4, :cond_0
|
||||
|
||||
.line 37
|
||||
new-array v5, v4, [I
|
||||
|
||||
const/4 v6, 0x0
|
||||
|
||||
.line 38
|
||||
invoke-static {v0, v2, v5, v6, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
||||
|
||||
.line 39
|
||||
iget-object v0, p0, Landroidx/collection/CircularIntArray;->mElements:[I
|
||||
|
||||
iget v2, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
invoke-static {v0, v6, v5, v3, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
||||
|
||||
.line 40
|
||||
iput-object v5, p0, Landroidx/collection/CircularIntArray;->mElements:[I
|
||||
|
||||
.line 41
|
||||
iput v6, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
.line 42
|
||||
iput v1, p0, Landroidx/collection/CircularIntArray;->mTail:I
|
||||
|
||||
add-int/lit8 v4, v4, -0x1
|
||||
|
||||
.line 43
|
||||
iput v4, p0, Landroidx/collection/CircularIntArray;->mCapacityBitmask:I
|
||||
|
||||
return-void
|
||||
|
||||
.line 35
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/RuntimeException;
|
||||
|
||||
const-string v1, "Max array capacity exceeded"
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public addFirst(I)V
|
||||
.locals 2
|
||||
|
||||
.line 85
|
||||
iget v0, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
add-int/lit8 v0, v0, -0x1
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularIntArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr v0, v1
|
||||
|
||||
iput v0, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
.line 86
|
||||
iget-object v1, p0, Landroidx/collection/CircularIntArray;->mElements:[I
|
||||
|
||||
aput p1, v1, v0
|
||||
|
||||
.line 87
|
||||
iget p1, p0, Landroidx/collection/CircularIntArray;->mTail:I
|
||||
|
||||
if-ne v0, p1, :cond_0
|
||||
|
||||
.line 88
|
||||
invoke-direct {p0}, Landroidx/collection/CircularIntArray;->doubleCapacity()V
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public addLast(I)V
|
||||
.locals 2
|
||||
|
||||
.line 97
|
||||
iget-object v0, p0, Landroidx/collection/CircularIntArray;->mElements:[I
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularIntArray;->mTail:I
|
||||
|
||||
aput p1, v0, v1
|
||||
|
||||
add-int/lit8 v1, v1, 0x1
|
||||
|
||||
.line 98
|
||||
iget p1, p0, Landroidx/collection/CircularIntArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr p1, v1
|
||||
|
||||
iput p1, p0, Landroidx/collection/CircularIntArray;->mTail:I
|
||||
|
||||
.line 99
|
||||
iget v0, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
if-ne p1, v0, :cond_0
|
||||
|
||||
.line 100
|
||||
invoke-direct {p0}, Landroidx/collection/CircularIntArray;->doubleCapacity()V
|
||||
|
||||
:cond_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public clear()V
|
||||
.locals 1
|
||||
|
||||
.line 133
|
||||
iget v0, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
iput v0, p0, Landroidx/collection/CircularIntArray;->mTail:I
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public get(I)I
|
||||
.locals 2
|
||||
|
||||
if-ltz p1, :cond_0
|
||||
|
||||
.line 197
|
||||
invoke-virtual {p0}, Landroidx/collection/CircularIntArray;->size()I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-ge p1, v0, :cond_0
|
||||
|
||||
.line 198
|
||||
iget-object v0, p0, Landroidx/collection/CircularIntArray;->mElements:[I
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
add-int/2addr v1, p1
|
||||
|
||||
iget p1, p0, Landroidx/collection/CircularIntArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr p1, v1
|
||||
|
||||
aget p1, v0, p1
|
||||
|
||||
return p1
|
||||
|
||||
.line 197
|
||||
:cond_0
|
||||
new-instance p1, Ljava/lang/ArrayIndexOutOfBoundsException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public getFirst()I
|
||||
.locals 2
|
||||
|
||||
.line 176
|
||||
iget v0, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularIntArray;->mTail:I
|
||||
|
||||
if-eq v0, v1, :cond_0
|
||||
|
||||
.line 177
|
||||
iget-object v1, p0, Landroidx/collection/CircularIntArray;->mElements:[I
|
||||
|
||||
aget v0, v1, v0
|
||||
|
||||
return v0
|
||||
|
||||
.line 176
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/ArrayIndexOutOfBoundsException;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public getLast()I
|
||||
.locals 3
|
||||
|
||||
.line 186
|
||||
iget v0, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularIntArray;->mTail:I
|
||||
|
||||
if-eq v0, v1, :cond_0
|
||||
|
||||
.line 187
|
||||
iget-object v0, p0, Landroidx/collection/CircularIntArray;->mElements:[I
|
||||
|
||||
add-int/lit8 v1, v1, -0x1
|
||||
|
||||
iget v2, p0, Landroidx/collection/CircularIntArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr v1, v2
|
||||
|
||||
aget v0, v0, v1
|
||||
|
||||
return v0
|
||||
|
||||
.line 186
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/ArrayIndexOutOfBoundsException;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public isEmpty()Z
|
||||
.locals 2
|
||||
|
||||
.line 214
|
||||
iget v0, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularIntArray;->mTail:I
|
||||
|
||||
if-ne v0, v1, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public popFirst()I
|
||||
.locals 3
|
||||
|
||||
.line 110
|
||||
iget v0, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularIntArray;->mTail:I
|
||||
|
||||
if-eq v0, v1, :cond_0
|
||||
|
||||
.line 111
|
||||
iget-object v1, p0, Landroidx/collection/CircularIntArray;->mElements:[I
|
||||
|
||||
aget v1, v1, v0
|
||||
|
||||
add-int/lit8 v0, v0, 0x1
|
||||
|
||||
.line 112
|
||||
iget v2, p0, Landroidx/collection/CircularIntArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr v0, v2
|
||||
|
||||
iput v0, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
return v1
|
||||
|
||||
.line 110
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/ArrayIndexOutOfBoundsException;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public popLast()I
|
||||
.locals 2
|
||||
|
||||
.line 122
|
||||
iget v0, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularIntArray;->mTail:I
|
||||
|
||||
if-eq v0, v1, :cond_0
|
||||
|
||||
add-int/lit8 v1, v1, -0x1
|
||||
|
||||
.line 123
|
||||
iget v0, p0, Landroidx/collection/CircularIntArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr v0, v1
|
||||
|
||||
.line 124
|
||||
iget-object v1, p0, Landroidx/collection/CircularIntArray;->mElements:[I
|
||||
|
||||
aget v1, v1, v0
|
||||
|
||||
.line 125
|
||||
iput v0, p0, Landroidx/collection/CircularIntArray;->mTail:I
|
||||
|
||||
return v1
|
||||
|
||||
.line 122
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/ArrayIndexOutOfBoundsException;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public removeFromEnd(I)V
|
||||
.locals 1
|
||||
|
||||
if-gtz p1, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
.line 164
|
||||
:cond_0
|
||||
invoke-virtual {p0}, Landroidx/collection/CircularIntArray;->size()I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-gt p1, v0, :cond_1
|
||||
|
||||
.line 167
|
||||
iget v0, p0, Landroidx/collection/CircularIntArray;->mTail:I
|
||||
|
||||
sub-int/2addr v0, p1
|
||||
|
||||
iget p1, p0, Landroidx/collection/CircularIntArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr p1, v0
|
||||
|
||||
iput p1, p0, Landroidx/collection/CircularIntArray;->mTail:I
|
||||
|
||||
return-void
|
||||
|
||||
.line 165
|
||||
:cond_1
|
||||
new-instance p1, Ljava/lang/ArrayIndexOutOfBoundsException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public removeFromStart(I)V
|
||||
.locals 1
|
||||
|
||||
if-gtz p1, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
.line 147
|
||||
:cond_0
|
||||
invoke-virtual {p0}, Landroidx/collection/CircularIntArray;->size()I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-gt p1, v0, :cond_1
|
||||
|
||||
.line 150
|
||||
iget v0, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
add-int/2addr v0, p1
|
||||
|
||||
iget p1, p0, Landroidx/collection/CircularIntArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr p1, v0
|
||||
|
||||
iput p1, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
return-void
|
||||
|
||||
.line 148
|
||||
:cond_1
|
||||
new-instance p1, Ljava/lang/ArrayIndexOutOfBoundsException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public size()I
|
||||
.locals 2
|
||||
|
||||
.line 206
|
||||
iget v0, p0, Landroidx/collection/CircularIntArray;->mTail:I
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularIntArray;->mHead:I
|
||||
|
||||
sub-int/2addr v0, v1
|
||||
|
||||
iget v1, p0, Landroidx/collection/CircularIntArray;->mCapacityBitmask:I
|
||||
|
||||
and-int/2addr v0, v1
|
||||
|
||||
return v0
|
||||
.end method
|
||||
@@ -0,0 +1,221 @@
|
||||
.class Landroidx/collection/ContainerHelpers;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ContainerHelpers.java"
|
||||
|
||||
|
||||
# static fields
|
||||
.field static final EMPTY_INTS:[I
|
||||
|
||||
.field static final EMPTY_LONGS:[J
|
||||
|
||||
.field static final EMPTY_OBJECTS:[Ljava/lang/Object;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method static constructor <clinit>()V
|
||||
.locals 2
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
.line 20
|
||||
new-array v1, v0, [I
|
||||
|
||||
sput-object v1, Landroidx/collection/ContainerHelpers;->EMPTY_INTS:[I
|
||||
|
||||
.line 21
|
||||
new-array v1, v0, [J
|
||||
|
||||
sput-object v1, Landroidx/collection/ContainerHelpers;->EMPTY_LONGS:[J
|
||||
|
||||
.line 22
|
||||
new-array v0, v0, [Ljava/lang/Object;
|
||||
|
||||
sput-object v0, Landroidx/collection/ContainerHelpers;->EMPTY_OBJECTS:[Ljava/lang/Object;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method private constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
.line 83
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method static binarySearch([III)I
|
||||
.locals 3
|
||||
|
||||
add-int/lit8 p1, p1, -0x1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
if-gt v0, p1, :cond_2
|
||||
|
||||
add-int v1, v0, p1
|
||||
|
||||
ushr-int/lit8 v1, v1, 0x1
|
||||
|
||||
.line 51
|
||||
aget v2, p0, v1
|
||||
|
||||
if-ge v2, p2, :cond_0
|
||||
|
||||
add-int/lit8 v1, v1, 0x1
|
||||
|
||||
move v0, v1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
if-le v2, p2, :cond_1
|
||||
|
||||
add-int/lit8 v1, v1, -0x1
|
||||
|
||||
move p1, v1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
return v1
|
||||
|
||||
:cond_2
|
||||
not-int p0, v0
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method static binarySearch([JIJ)I
|
||||
.locals 4
|
||||
|
||||
add-int/lit8 p1, p1, -0x1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
if-gt v0, p1, :cond_2
|
||||
|
||||
add-int v1, v0, p1
|
||||
|
||||
ushr-int/lit8 v1, v1, 0x1
|
||||
|
||||
.line 70
|
||||
aget-wide v2, p0, v1
|
||||
|
||||
cmp-long v2, v2, p2
|
||||
|
||||
if-gez v2, :cond_0
|
||||
|
||||
add-int/lit8 v1, v1, 0x1
|
||||
|
||||
move v0, v1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
if-lez v2, :cond_1
|
||||
|
||||
add-int/lit8 v1, v1, -0x1
|
||||
|
||||
move p1, v1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
return v1
|
||||
|
||||
:cond_2
|
||||
not-int p0, v0
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method public static equal(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
.locals 0
|
||||
|
||||
if-eq p0, p1, :cond_1
|
||||
|
||||
if-eqz p0, :cond_0
|
||||
|
||||
.line 41
|
||||
invoke-virtual {p0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||||
|
||||
move-result p0
|
||||
|
||||
if-eqz p0, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 p0, 0x0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
const/4 p0, 0x1
|
||||
|
||||
:goto_1
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method public static idealByteArraySize(I)I
|
||||
.locals 2
|
||||
|
||||
const/4 v0, 0x4
|
||||
|
||||
:goto_0
|
||||
const/16 v1, 0x20
|
||||
|
||||
if-ge v0, v1, :cond_1
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
shl-int/2addr v1, v0
|
||||
|
||||
add-int/lit8 v1, v1, -0xc
|
||||
|
||||
if-gt p0, v1, :cond_0
|
||||
|
||||
return v1
|
||||
|
||||
:cond_0
|
||||
add-int/lit8 v0, v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method public static idealIntArraySize(I)I
|
||||
.locals 0
|
||||
|
||||
mul-int/lit8 p0, p0, 0x4
|
||||
|
||||
.line 25
|
||||
invoke-static {p0}, Landroidx/collection/ContainerHelpers;->idealByteArraySize(I)I
|
||||
|
||||
move-result p0
|
||||
|
||||
div-int/lit8 p0, p0, 0x4
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method public static idealLongArraySize(I)I
|
||||
.locals 0
|
||||
|
||||
mul-int/lit8 p0, p0, 0x8
|
||||
|
||||
.line 29
|
||||
invoke-static {p0}, Landroidx/collection/ContainerHelpers;->idealByteArraySize(I)I
|
||||
|
||||
move-result p0
|
||||
|
||||
div-int/lit8 p0, p0, 0x8
|
||||
|
||||
return p0
|
||||
.end method
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,997 @@
|
||||
.class public Landroidx/collection/LruCache;
|
||||
.super Ljava/lang/Object;
|
||||
.source "LruCache.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<K:",
|
||||
"Ljava/lang/Object;",
|
||||
"V:",
|
||||
"Ljava/lang/Object;",
|
||||
">",
|
||||
"Ljava/lang/Object;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private createCount:I
|
||||
|
||||
.field private evictionCount:I
|
||||
|
||||
.field private hitCount:I
|
||||
|
||||
.field private final map:Ljava/util/LinkedHashMap;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/LinkedHashMap<",
|
||||
"TK;TV;>;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field private maxSize:I
|
||||
|
||||
.field private missCount:I
|
||||
|
||||
.field private putCount:I
|
||||
|
||||
.field private size:I
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(I)V
|
||||
.locals 3
|
||||
|
||||
.line 51
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
if-lez p1, :cond_0
|
||||
|
||||
.line 55
|
||||
iput p1, p0, Landroidx/collection/LruCache;->maxSize:I
|
||||
|
||||
.line 56
|
||||
new-instance p1, Ljava/util/LinkedHashMap;
|
||||
|
||||
const/high16 v0, 0x3f400000 # 0.75f
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-direct {p1, v2, v0, v1}, Ljava/util/LinkedHashMap;-><init>(IFZ)V
|
||||
|
||||
iput-object p1, p0, Landroidx/collection/LruCache;->map:Ljava/util/LinkedHashMap;
|
||||
|
||||
return-void
|
||||
|
||||
.line 53
|
||||
:cond_0
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string v0, "maxSize <= 0"
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method private safeSizeOf(Ljava/lang/Object;Ljava/lang/Object;)I
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TK;TV;)I"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 259
|
||||
invoke-virtual {p0, p1, p2}, Landroidx/collection/LruCache;->sizeOf(Ljava/lang/Object;Ljava/lang/Object;)I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-ltz v0, :cond_0
|
||||
|
||||
return v0
|
||||
|
||||
.line 261
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/IllegalStateException;
|
||||
|
||||
new-instance v1, Ljava/lang/StringBuilder;
|
||||
|
||||
const-string v2, "Negative size: "
|
||||
|
||||
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
const-string v1, "="
|
||||
|
||||
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method protected create(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TK;)TV;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public final declared-synchronized createCount()I
|
||||
.locals 1
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
.line 322
|
||||
:try_start_0
|
||||
iget v0, p0, Landroidx/collection/LruCache;->createCount:I
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return v0
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method protected entryRemoved(ZLjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(ZTK;TV;TV;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public final evictAll()V
|
||||
.locals 1
|
||||
|
||||
const/4 v0, -0x1
|
||||
|
||||
.line 281
|
||||
invoke-virtual {p0, v0}, Landroidx/collection/LruCache;->trimToSize(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public final declared-synchronized evictionCount()I
|
||||
.locals 1
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
.line 336
|
||||
:try_start_0
|
||||
iget v0, p0, Landroidx/collection/LruCache;->evictionCount:I
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return v0
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public final get(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
.locals 4
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TK;)TV;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
if-eqz p1, :cond_4
|
||||
|
||||
.line 88
|
||||
monitor-enter p0
|
||||
|
||||
.line 89
|
||||
:try_start_0
|
||||
iget-object v0, p0, Landroidx/collection/LruCache;->map:Ljava/util/LinkedHashMap;
|
||||
|
||||
invoke-virtual {v0, p1}, Ljava/util/LinkedHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
.line 91
|
||||
iget p1, p0, Landroidx/collection/LruCache;->hitCount:I
|
||||
|
||||
add-int/lit8 p1, p1, 0x1
|
||||
|
||||
iput p1, p0, Landroidx/collection/LruCache;->hitCount:I
|
||||
|
||||
.line 92
|
||||
monitor-exit p0
|
||||
|
||||
return-object v0
|
||||
|
||||
.line 94
|
||||
:cond_0
|
||||
iget v0, p0, Landroidx/collection/LruCache;->missCount:I
|
||||
|
||||
add-int/lit8 v0, v0, 0x1
|
||||
|
||||
iput v0, p0, Landroidx/collection/LruCache;->missCount:I
|
||||
|
||||
.line 95
|
||||
monitor-exit p0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||||
|
||||
.line 104
|
||||
invoke-virtual {p0, p1}, Landroidx/collection/LruCache;->create(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
return-object p1
|
||||
|
||||
.line 109
|
||||
:cond_1
|
||||
monitor-enter p0
|
||||
|
||||
.line 110
|
||||
:try_start_1
|
||||
iget v1, p0, Landroidx/collection/LruCache;->createCount:I
|
||||
|
||||
add-int/lit8 v1, v1, 0x1
|
||||
|
||||
iput v1, p0, Landroidx/collection/LruCache;->createCount:I
|
||||
|
||||
.line 111
|
||||
iget-object v1, p0, Landroidx/collection/LruCache;->map:Ljava/util/LinkedHashMap;
|
||||
|
||||
invoke-virtual {v1, p1, v0}, Ljava/util/LinkedHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
if-eqz v1, :cond_2
|
||||
|
||||
.line 115
|
||||
iget-object v2, p0, Landroidx/collection/LruCache;->map:Ljava/util/LinkedHashMap;
|
||||
|
||||
invoke-virtual {v2, p1, v1}, Ljava/util/LinkedHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 117
|
||||
:cond_2
|
||||
iget v2, p0, Landroidx/collection/LruCache;->size:I
|
||||
|
||||
invoke-direct {p0, p1, v0}, Landroidx/collection/LruCache;->safeSizeOf(Ljava/lang/Object;Ljava/lang/Object;)I
|
||||
|
||||
move-result v3
|
||||
|
||||
add-int/2addr v2, v3
|
||||
|
||||
iput v2, p0, Landroidx/collection/LruCache;->size:I
|
||||
|
||||
.line 119
|
||||
:goto_0
|
||||
monitor-exit p0
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
if-eqz v1, :cond_3
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
.line 122
|
||||
invoke-virtual {p0, v2, p1, v0, v1}, Landroidx/collection/LruCache;->entryRemoved(ZLjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
|
||||
return-object v1
|
||||
|
||||
.line 125
|
||||
:cond_3
|
||||
iget p1, p0, Landroidx/collection/LruCache;->maxSize:I
|
||||
|
||||
invoke-virtual {p0, p1}, Landroidx/collection/LruCache;->trimToSize(I)V
|
||||
|
||||
return-object v0
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
.line 119
|
||||
:try_start_2
|
||||
monitor-exit p0
|
||||
:try_end_2
|
||||
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||||
|
||||
throw p1
|
||||
|
||||
:catchall_1
|
||||
move-exception p1
|
||||
|
||||
.line 95
|
||||
:try_start_3
|
||||
monitor-exit p0
|
||||
:try_end_3
|
||||
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||||
|
||||
throw p1
|
||||
|
||||
.line 84
|
||||
:cond_4
|
||||
new-instance p1, Ljava/lang/NullPointerException;
|
||||
|
||||
const-string v0, "key == null"
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public final declared-synchronized hitCount()I
|
||||
.locals 1
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
.line 307
|
||||
:try_start_0
|
||||
iget v0, p0, Landroidx/collection/LruCache;->hitCount:I
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return v0
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public final declared-synchronized maxSize()I
|
||||
.locals 1
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
.line 299
|
||||
:try_start_0
|
||||
iget v0, p0, Landroidx/collection/LruCache;->maxSize:I
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return v0
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public final declared-synchronized missCount()I
|
||||
.locals 1
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
.line 315
|
||||
:try_start_0
|
||||
iget v0, p0, Landroidx/collection/LruCache;->missCount:I
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return v0
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public final put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TK;TV;)TV;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
if-eqz p1, :cond_2
|
||||
|
||||
if-eqz p2, :cond_2
|
||||
|
||||
.line 143
|
||||
monitor-enter p0
|
||||
|
||||
.line 144
|
||||
:try_start_0
|
||||
iget v0, p0, Landroidx/collection/LruCache;->putCount:I
|
||||
|
||||
add-int/lit8 v0, v0, 0x1
|
||||
|
||||
iput v0, p0, Landroidx/collection/LruCache;->putCount:I
|
||||
|
||||
.line 145
|
||||
iget v0, p0, Landroidx/collection/LruCache;->size:I
|
||||
|
||||
invoke-direct {p0, p1, p2}, Landroidx/collection/LruCache;->safeSizeOf(Ljava/lang/Object;Ljava/lang/Object;)I
|
||||
|
||||
move-result v1
|
||||
|
||||
add-int/2addr v0, v1
|
||||
|
||||
iput v0, p0, Landroidx/collection/LruCache;->size:I
|
||||
|
||||
.line 146
|
||||
iget-object v0, p0, Landroidx/collection/LruCache;->map:Ljava/util/LinkedHashMap;
|
||||
|
||||
invoke-virtual {v0, p1, p2}, Ljava/util/LinkedHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
.line 148
|
||||
iget v1, p0, Landroidx/collection/LruCache;->size:I
|
||||
|
||||
invoke-direct {p0, p1, v0}, Landroidx/collection/LruCache;->safeSizeOf(Ljava/lang/Object;Ljava/lang/Object;)I
|
||||
|
||||
move-result v2
|
||||
|
||||
sub-int/2addr v1, v2
|
||||
|
||||
iput v1, p0, Landroidx/collection/LruCache;->size:I
|
||||
|
||||
.line 150
|
||||
:cond_0
|
||||
monitor-exit p0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
.line 153
|
||||
invoke-virtual {p0, v1, p1, v0, p2}, Landroidx/collection/LruCache;->entryRemoved(ZLjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
|
||||
.line 156
|
||||
:cond_1
|
||||
iget p1, p0, Landroidx/collection/LruCache;->maxSize:I
|
||||
|
||||
invoke-virtual {p0, p1}, Landroidx/collection/LruCache;->trimToSize(I)V
|
||||
|
||||
return-object v0
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
.line 150
|
||||
:try_start_1
|
||||
monitor-exit p0
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
throw p1
|
||||
|
||||
.line 139
|
||||
:cond_2
|
||||
new-instance p1, Ljava/lang/NullPointerException;
|
||||
|
||||
const-string p2, "key == null || value == null"
|
||||
|
||||
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public final declared-synchronized putCount()I
|
||||
.locals 1
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
.line 329
|
||||
:try_start_0
|
||||
iget v0, p0, Landroidx/collection/LruCache;->putCount:I
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return v0
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public final remove(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TK;)TV;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
if-eqz p1, :cond_2
|
||||
|
||||
.line 205
|
||||
monitor-enter p0
|
||||
|
||||
.line 206
|
||||
:try_start_0
|
||||
iget-object v0, p0, Landroidx/collection/LruCache;->map:Ljava/util/LinkedHashMap;
|
||||
|
||||
invoke-virtual {v0, p1}, Ljava/util/LinkedHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
.line 208
|
||||
iget v1, p0, Landroidx/collection/LruCache;->size:I
|
||||
|
||||
invoke-direct {p0, p1, v0}, Landroidx/collection/LruCache;->safeSizeOf(Ljava/lang/Object;Ljava/lang/Object;)I
|
||||
|
||||
move-result v2
|
||||
|
||||
sub-int/2addr v1, v2
|
||||
|
||||
iput v1, p0, Landroidx/collection/LruCache;->size:I
|
||||
|
||||
.line 210
|
||||
:cond_0
|
||||
monitor-exit p0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
.line 213
|
||||
invoke-virtual {p0, v1, p1, v0, v2}, Landroidx/collection/LruCache;->entryRemoved(ZLjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
|
||||
:cond_1
|
||||
return-object v0
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
.line 210
|
||||
:try_start_1
|
||||
monitor-exit p0
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
throw p1
|
||||
|
||||
.line 201
|
||||
:cond_2
|
||||
new-instance p1, Ljava/lang/NullPointerException;
|
||||
|
||||
const-string v0, "key == null"
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public resize(I)V
|
||||
.locals 1
|
||||
|
||||
if-lez p1, :cond_0
|
||||
|
||||
.line 69
|
||||
monitor-enter p0
|
||||
|
||||
.line 70
|
||||
:try_start_0
|
||||
iput p1, p0, Landroidx/collection/LruCache;->maxSize:I
|
||||
|
||||
.line 71
|
||||
monitor-exit p0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
.line 72
|
||||
invoke-virtual {p0, p1}, Landroidx/collection/LruCache;->trimToSize(I)V
|
||||
|
||||
return-void
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
.line 71
|
||||
:try_start_1
|
||||
monitor-exit p0
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
throw p1
|
||||
|
||||
.line 66
|
||||
:cond_0
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string v0, "maxSize <= 0"
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public final declared-synchronized size()I
|
||||
.locals 1
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
.line 290
|
||||
:try_start_0
|
||||
iget v0, p0, Landroidx/collection/LruCache;->size:I
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return v0
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method protected sizeOf(Ljava/lang/Object;Ljava/lang/Object;)I
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TK;TV;)I"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const/4 p1, 0x1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public final declared-synchronized snapshot()Ljava/util/Map;
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Map<",
|
||||
"TK;TV;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
.line 344
|
||||
:try_start_0
|
||||
new-instance v0, Ljava/util/LinkedHashMap;
|
||||
|
||||
iget-object v1, p0, Landroidx/collection/LruCache;->map:Ljava/util/LinkedHashMap;
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/util/LinkedHashMap;-><init>(Ljava/util/Map;)V
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return-object v0
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public final declared-synchronized toString()Ljava/lang/String;
|
||||
.locals 6
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
.line 348
|
||||
:try_start_0
|
||||
iget v0, p0, Landroidx/collection/LruCache;->hitCount:I
|
||||
|
||||
iget v1, p0, Landroidx/collection/LruCache;->missCount:I
|
||||
|
||||
add-int/2addr v1, v0
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
mul-int/lit8 v0, v0, 0x64
|
||||
|
||||
.line 349
|
||||
div-int/2addr v0, v1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
move v0, v2
|
||||
|
||||
.line 350
|
||||
:goto_0
|
||||
sget-object v1, Ljava/util/Locale;->US:Ljava/util/Locale;
|
||||
|
||||
const-string v3, "LruCache[maxSize=%d,hits=%d,misses=%d,hitRate=%d%%]"
|
||||
|
||||
const/4 v4, 0x4
|
||||
|
||||
new-array v4, v4, [Ljava/lang/Object;
|
||||
|
||||
iget v5, p0, Landroidx/collection/LruCache;->maxSize:I
|
||||
|
||||
.line 351
|
||||
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v5
|
||||
|
||||
aput-object v5, v4, v2
|
||||
|
||||
iget v2, p0, Landroidx/collection/LruCache;->hitCount:I
|
||||
|
||||
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
const/4 v5, 0x1
|
||||
|
||||
aput-object v2, v4, v5
|
||||
|
||||
iget v2, p0, Landroidx/collection/LruCache;->missCount:I
|
||||
|
||||
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
const/4 v5, 0x2
|
||||
|
||||
aput-object v2, v4, v5
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const/4 v2, 0x3
|
||||
|
||||
aput-object v0, v4, v2
|
||||
|
||||
.line 350
|
||||
invoke-static {v1, v3, v4}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return-object v0
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public trimToSize(I)V
|
||||
.locals 4
|
||||
|
||||
.line 171
|
||||
:goto_0
|
||||
monitor-enter p0
|
||||
|
||||
.line 172
|
||||
:try_start_0
|
||||
iget v0, p0, Landroidx/collection/LruCache;->size:I
|
||||
|
||||
if-ltz v0, :cond_3
|
||||
|
||||
iget-object v0, p0, Landroidx/collection/LruCache;->map:Ljava/util/LinkedHashMap;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/LinkedHashMap;->isEmpty()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
iget v0, p0, Landroidx/collection/LruCache;->size:I
|
||||
|
||||
if-nez v0, :cond_3
|
||||
|
||||
.line 177
|
||||
:cond_0
|
||||
iget v0, p0, Landroidx/collection/LruCache;->size:I
|
||||
|
||||
if-le v0, p1, :cond_2
|
||||
|
||||
iget-object v0, p0, Landroidx/collection/LruCache;->map:Ljava/util/LinkedHashMap;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/LinkedHashMap;->isEmpty()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
.line 181
|
||||
:cond_1
|
||||
iget-object v0, p0, Landroidx/collection/LruCache;->map:Ljava/util/LinkedHashMap;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/LinkedHashMap;->entrySet()Ljava/util/Set;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
check-cast v0, Ljava/util/Map$Entry;
|
||||
|
||||
.line 182
|
||||
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
.line 183
|
||||
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
.line 184
|
||||
iget-object v2, p0, Landroidx/collection/LruCache;->map:Ljava/util/LinkedHashMap;
|
||||
|
||||
invoke-virtual {v2, v1}, Ljava/util/LinkedHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
.line 185
|
||||
iget v2, p0, Landroidx/collection/LruCache;->size:I
|
||||
|
||||
invoke-direct {p0, v1, v0}, Landroidx/collection/LruCache;->safeSizeOf(Ljava/lang/Object;Ljava/lang/Object;)I
|
||||
|
||||
move-result v3
|
||||
|
||||
sub-int/2addr v2, v3
|
||||
|
||||
iput v2, p0, Landroidx/collection/LruCache;->size:I
|
||||
|
||||
.line 186
|
||||
iget v2, p0, Landroidx/collection/LruCache;->evictionCount:I
|
||||
|
||||
const/4 v3, 0x1
|
||||
|
||||
add-int/2addr v2, v3
|
||||
|
||||
iput v2, p0, Landroidx/collection/LruCache;->evictionCount:I
|
||||
|
||||
.line 187
|
||||
monitor-exit p0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
.line 189
|
||||
invoke-virtual {p0, v3, v1, v0, v2}, Landroidx/collection/LruCache;->entryRemoved(ZLjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 178
|
||||
:cond_2
|
||||
:goto_1
|
||||
:try_start_1
|
||||
monitor-exit p0
|
||||
|
||||
return-void
|
||||
|
||||
.line 173
|
||||
:cond_3
|
||||
new-instance p1, Ljava/lang/IllegalStateException;
|
||||
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, ".sizeOf() is reporting inconsistent results!"
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
.line 187
|
||||
monitor-exit p0
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
@@ -0,0 +1,183 @@
|
||||
.class final Landroidx/collection/MapCollections$ArrayIterator;
|
||||
.super Ljava/lang/Object;
|
||||
.source "MapCollections.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/util/Iterator;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/collection/MapCollections;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x10
|
||||
name = "ArrayIterator"
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<T:",
|
||||
"Ljava/lang/Object;",
|
||||
">",
|
||||
"Ljava/lang/Object;",
|
||||
"Ljava/util/Iterator<",
|
||||
"TT;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field mCanRemove:Z
|
||||
|
||||
.field mIndex:I
|
||||
|
||||
.field final mOffset:I
|
||||
|
||||
.field mSize:I
|
||||
|
||||
.field final synthetic this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/collection/MapCollections;I)V
|
||||
.locals 1
|
||||
|
||||
.line 43
|
||||
iput-object p1, p0, Landroidx/collection/MapCollections$ArrayIterator;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
.line 41
|
||||
iput-boolean v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->mCanRemove:Z
|
||||
|
||||
.line 44
|
||||
iput p2, p0, Landroidx/collection/MapCollections$ArrayIterator;->mOffset:I
|
||||
|
||||
.line 45
|
||||
invoke-virtual {p1}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result p1
|
||||
|
||||
iput p1, p0, Landroidx/collection/MapCollections$ArrayIterator;->mSize:I
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public hasNext()Z
|
||||
.locals 2
|
||||
|
||||
.line 50
|
||||
iget v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->mIndex:I
|
||||
|
||||
iget v1, p0, Landroidx/collection/MapCollections$ArrayIterator;->mSize:I
|
||||
|
||||
if-ge v0, v1, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public next()Ljava/lang/Object;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()TT;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 55
|
||||
invoke-virtual {p0}, Landroidx/collection/MapCollections$ArrayIterator;->hasNext()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
.line 56
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
iget v1, p0, Landroidx/collection/MapCollections$ArrayIterator;->mIndex:I
|
||||
|
||||
iget v2, p0, Landroidx/collection/MapCollections$ArrayIterator;->mOffset:I
|
||||
|
||||
invoke-virtual {v0, v1, v2}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
.line 57
|
||||
iget v1, p0, Landroidx/collection/MapCollections$ArrayIterator;->mIndex:I
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
add-int/2addr v1, v2
|
||||
|
||||
iput v1, p0, Landroidx/collection/MapCollections$ArrayIterator;->mIndex:I
|
||||
|
||||
.line 58
|
||||
iput-boolean v2, p0, Landroidx/collection/MapCollections$ArrayIterator;->mCanRemove:Z
|
||||
|
||||
return-object v0
|
||||
|
||||
.line 55
|
||||
:cond_0
|
||||
new-instance v0, Ljava/util/NoSuchElementException;
|
||||
|
||||
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public remove()V
|
||||
.locals 2
|
||||
|
||||
.line 64
|
||||
iget-boolean v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->mCanRemove:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
.line 67
|
||||
iget v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->mIndex:I
|
||||
|
||||
add-int/lit8 v0, v0, -0x1
|
||||
|
||||
iput v0, p0, Landroidx/collection/MapCollections$ArrayIterator;->mIndex:I
|
||||
|
||||
.line 68
|
||||
iget v1, p0, Landroidx/collection/MapCollections$ArrayIterator;->mSize:I
|
||||
|
||||
add-int/lit8 v1, v1, -0x1
|
||||
|
||||
iput v1, p0, Landroidx/collection/MapCollections$ArrayIterator;->mSize:I
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
.line 69
|
||||
iput-boolean v1, p0, Landroidx/collection/MapCollections$ArrayIterator;->mCanRemove:Z
|
||||
|
||||
.line 70
|
||||
iget-object v1, p0, Landroidx/collection/MapCollections$ArrayIterator;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v1, v0}, Landroidx/collection/MapCollections;->colRemoveAt(I)V
|
||||
|
||||
return-void
|
||||
|
||||
.line 65
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/IllegalStateException;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
@@ -0,0 +1,474 @@
|
||||
.class final Landroidx/collection/MapCollections$EntrySet;
|
||||
.super Ljava/lang/Object;
|
||||
.source "MapCollections.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/util/Set;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/collection/MapCollections;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x10
|
||||
name = "EntrySet"
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/Object;",
|
||||
"Ljava/util/Set<",
|
||||
"Ljava/util/Map$Entry<",
|
||||
"TK;TV;>;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/collection/MapCollections;)V
|
||||
.locals 0
|
||||
|
||||
.line 167
|
||||
iput-object p1, p0, Landroidx/collection/MapCollections$EntrySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public bridge synthetic add(Ljava/lang/Object;)Z
|
||||
.locals 0
|
||||
|
||||
.line 167
|
||||
check-cast p1, Ljava/util/Map$Entry;
|
||||
|
||||
invoke-virtual {p0, p1}, Landroidx/collection/MapCollections$EntrySet;->add(Ljava/util/Map$Entry;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public add(Ljava/util/Map$Entry;)Z
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Map$Entry<",
|
||||
"TK;TV;>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 170
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public addAll(Ljava/util/Collection;)Z
|
||||
.locals 4
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"+",
|
||||
"Ljava/util/Map$Entry<",
|
||||
"TK;TV;>;>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 175
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$EntrySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result v0
|
||||
|
||||
.line 176
|
||||
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
:goto_0
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
check-cast v1, Ljava/util/Map$Entry;
|
||||
|
||||
.line 177
|
||||
iget-object v2, p0, Landroidx/collection/MapCollections$EntrySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {v2, v3, v1}, Landroidx/collection/MapCollections;->colPut(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 179
|
||||
:cond_0
|
||||
iget-object p1, p0, Landroidx/collection/MapCollections$EntrySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {p1}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result p1
|
||||
|
||||
if-eq v0, p1, :cond_1
|
||||
|
||||
const/4 p1, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
const/4 p1, 0x0
|
||||
|
||||
:goto_1
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public clear()V
|
||||
.locals 1
|
||||
|
||||
.line 184
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$EntrySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colClear()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public contains(Ljava/lang/Object;)Z
|
||||
.locals 3
|
||||
|
||||
.line 189
|
||||
instance-of v0, p1, Ljava/util/Map$Entry;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
return v1
|
||||
|
||||
.line 191
|
||||
:cond_0
|
||||
check-cast p1, Ljava/util/Map$Entry;
|
||||
|
||||
.line 192
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$EntrySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-virtual {v0, v2}, Landroidx/collection/MapCollections;->colIndexOfKey(Ljava/lang/Object;)I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-gez v0, :cond_1
|
||||
|
||||
return v1
|
||||
|
||||
.line 196
|
||||
:cond_1
|
||||
iget-object v1, p0, Landroidx/collection/MapCollections$EntrySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
invoke-virtual {v1, v0, v2}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
.line 197
|
||||
invoke-interface {p1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-static {v0, p1}, Landroidx/collection/ContainerHelpers;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public containsAll(Ljava/util/Collection;)Z
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"*>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 202
|
||||
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
.line 203
|
||||
:cond_0
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
.line 204
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {p0, v0}, Landroidx/collection/MapCollections$EntrySet;->contains(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
return p1
|
||||
|
||||
:cond_1
|
||||
const/4 p1, 0x1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public equals(Ljava/lang/Object;)Z
|
||||
.locals 0
|
||||
|
||||
.line 253
|
||||
invoke-static {p0, p1}, Landroidx/collection/MapCollections;->equalsSetHelper(Ljava/util/Set;Ljava/lang/Object;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public hashCode()I
|
||||
.locals 6
|
||||
|
||||
.line 259
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$EntrySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
sub-int/2addr v0, v1
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
move v3, v2
|
||||
|
||||
:goto_0
|
||||
if-ltz v0, :cond_2
|
||||
|
||||
.line 260
|
||||
iget-object v4, p0, Landroidx/collection/MapCollections$EntrySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v4, v0, v2}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
.line 261
|
||||
iget-object v5, p0, Landroidx/collection/MapCollections$EntrySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v5, v0, v1}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
|
||||
|
||||
move-result-object v5
|
||||
|
||||
if-nez v4, :cond_0
|
||||
|
||||
move v4, v2
|
||||
|
||||
goto :goto_1
|
||||
|
||||
.line 262
|
||||
:cond_0
|
||||
invoke-virtual {v4}, Ljava/lang/Object;->hashCode()I
|
||||
|
||||
move-result v4
|
||||
|
||||
:goto_1
|
||||
if-nez v5, :cond_1
|
||||
|
||||
move v5, v2
|
||||
|
||||
goto :goto_2
|
||||
|
||||
.line 263
|
||||
:cond_1
|
||||
invoke-virtual {v5}, Ljava/lang/Object;->hashCode()I
|
||||
|
||||
move-result v5
|
||||
|
||||
:goto_2
|
||||
xor-int/2addr v4, v5
|
||||
|
||||
add-int/2addr v3, v4
|
||||
|
||||
add-int/lit8 v0, v0, -0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
return v3
|
||||
.end method
|
||||
|
||||
.method public isEmpty()Z
|
||||
.locals 1
|
||||
|
||||
.line 213
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$EntrySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public iterator()Ljava/util/Iterator;
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Iterator<",
|
||||
"Ljava/util/Map$Entry<",
|
||||
"TK;TV;>;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 218
|
||||
new-instance v0, Landroidx/collection/MapCollections$MapIterator;
|
||||
|
||||
iget-object v1, p0, Landroidx/collection/MapCollections$EntrySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-direct {v0, v1}, Landroidx/collection/MapCollections$MapIterator;-><init>(Landroidx/collection/MapCollections;)V
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public remove(Ljava/lang/Object;)Z
|
||||
.locals 0
|
||||
|
||||
.line 223
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public removeAll(Ljava/util/Collection;)Z
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"*>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 228
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public retainAll(Ljava/util/Collection;)Z
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"*>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 233
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public size()I
|
||||
.locals 1
|
||||
|
||||
.line 238
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$EntrySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public toArray()[Ljava/lang/Object;
|
||||
.locals 1
|
||||
|
||||
.line 243
|
||||
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<T:",
|
||||
"Ljava/lang/Object;",
|
||||
">([TT;)[TT;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 248
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
@@ -0,0 +1,366 @@
|
||||
.class final Landroidx/collection/MapCollections$KeySet;
|
||||
.super Ljava/lang/Object;
|
||||
.source "MapCollections.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/util/Set;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/collection/MapCollections;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x10
|
||||
name = "KeySet"
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/Object;",
|
||||
"Ljava/util/Set<",
|
||||
"TK;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/collection/MapCollections;)V
|
||||
.locals 0
|
||||
|
||||
.line 269
|
||||
iput-object p1, p0, Landroidx/collection/MapCollections$KeySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public add(Ljava/lang/Object;)Z
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TK;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 273
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public addAll(Ljava/util/Collection;)Z
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"+TK;>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 278
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public clear()V
|
||||
.locals 1
|
||||
|
||||
.line 283
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$KeySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colClear()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public contains(Ljava/lang/Object;)Z
|
||||
.locals 1
|
||||
|
||||
.line 288
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$KeySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/collection/MapCollections;->colIndexOfKey(Ljava/lang/Object;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
if-ltz p1, :cond_0
|
||||
|
||||
const/4 p1, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 p1, 0x0
|
||||
|
||||
:goto_0
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public containsAll(Ljava/util/Collection;)Z
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"*>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 293
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$KeySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colGetMap()Ljava/util/Map;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {v0, p1}, Landroidx/collection/MapCollections;->containsAllHelper(Ljava/util/Map;Ljava/util/Collection;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public equals(Ljava/lang/Object;)Z
|
||||
.locals 0
|
||||
|
||||
.line 343
|
||||
invoke-static {p0, p1}, Landroidx/collection/MapCollections;->equalsSetHelper(Ljava/util/Set;Ljava/lang/Object;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public hashCode()I
|
||||
.locals 4
|
||||
|
||||
.line 349
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$KeySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result v0
|
||||
|
||||
add-int/lit8 v0, v0, -0x1
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
move v2, v1
|
||||
|
||||
:goto_0
|
||||
if-ltz v0, :cond_1
|
||||
|
||||
.line 350
|
||||
iget-object v3, p0, Landroidx/collection/MapCollections$KeySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v3, v0, v1}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
if-nez v3, :cond_0
|
||||
|
||||
move v3, v1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
.line 351
|
||||
:cond_0
|
||||
invoke-virtual {v3}, Ljava/lang/Object;->hashCode()I
|
||||
|
||||
move-result v3
|
||||
|
||||
:goto_1
|
||||
add-int/2addr v2, v3
|
||||
|
||||
add-int/lit8 v0, v0, -0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
return v2
|
||||
.end method
|
||||
|
||||
.method public isEmpty()Z
|
||||
.locals 1
|
||||
|
||||
.line 298
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$KeySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public iterator()Ljava/util/Iterator;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Iterator<",
|
||||
"TK;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 303
|
||||
new-instance v0, Landroidx/collection/MapCollections$ArrayIterator;
|
||||
|
||||
iget-object v1, p0, Landroidx/collection/MapCollections$KeySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-direct {v0, v1, v2}, Landroidx/collection/MapCollections$ArrayIterator;-><init>(Landroidx/collection/MapCollections;I)V
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public remove(Ljava/lang/Object;)Z
|
||||
.locals 1
|
||||
|
||||
.line 308
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$KeySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/collection/MapCollections;->colIndexOfKey(Ljava/lang/Object;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
if-ltz p1, :cond_0
|
||||
|
||||
.line 310
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$KeySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/collection/MapCollections;->colRemoveAt(I)V
|
||||
|
||||
const/4 p1, 0x1
|
||||
|
||||
return p1
|
||||
|
||||
:cond_0
|
||||
const/4 p1, 0x0
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public removeAll(Ljava/util/Collection;)Z
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"*>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 318
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$KeySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colGetMap()Ljava/util/Map;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {v0, p1}, Landroidx/collection/MapCollections;->removeAllHelper(Ljava/util/Map;Ljava/util/Collection;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public retainAll(Ljava/util/Collection;)Z
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"*>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 323
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$KeySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colGetMap()Ljava/util/Map;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {v0, p1}, Landroidx/collection/MapCollections;->retainAllHelper(Ljava/util/Map;Ljava/util/Collection;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public size()I
|
||||
.locals 1
|
||||
|
||||
.line 328
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$KeySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public toArray()[Ljava/lang/Object;
|
||||
.locals 2
|
||||
|
||||
.line 333
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$KeySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-virtual {v0, v1}, Landroidx/collection/MapCollections;->toArrayHelper(I)[Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<T:",
|
||||
"Ljava/lang/Object;",
|
||||
">([TT;)[TT;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 338
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$KeySet;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-virtual {v0, p1, v1}, Landroidx/collection/MapCollections;->toArrayHelper([Ljava/lang/Object;I)[Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
@@ -0,0 +1,482 @@
|
||||
.class final Landroidx/collection/MapCollections$MapIterator;
|
||||
.super Ljava/lang/Object;
|
||||
.source "MapCollections.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/util/Iterator;
|
||||
.implements Ljava/util/Map$Entry;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/collection/MapCollections;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x10
|
||||
name = "MapIterator"
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/Object;",
|
||||
"Ljava/util/Iterator<",
|
||||
"Ljava/util/Map$Entry<",
|
||||
"TK;TV;>;>;",
|
||||
"Ljava/util/Map$Entry<",
|
||||
"TK;TV;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field mEnd:I
|
||||
|
||||
.field mEntryValid:Z
|
||||
|
||||
.field mIndex:I
|
||||
|
||||
.field final synthetic this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/collection/MapCollections;)V
|
||||
.locals 1
|
||||
|
||||
.line 79
|
||||
iput-object p1, p0, Landroidx/collection/MapCollections$MapIterator;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
.line 77
|
||||
iput-boolean v0, p0, Landroidx/collection/MapCollections$MapIterator;->mEntryValid:Z
|
||||
|
||||
.line 80
|
||||
invoke-virtual {p1}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result p1
|
||||
|
||||
add-int/lit8 p1, p1, -0x1
|
||||
|
||||
iput p1, p0, Landroidx/collection/MapCollections$MapIterator;->mEnd:I
|
||||
|
||||
const/4 p1, -0x1
|
||||
|
||||
.line 81
|
||||
iput p1, p0, Landroidx/collection/MapCollections$MapIterator;->mIndex:I
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public equals(Ljava/lang/Object;)Z
|
||||
.locals 4
|
||||
|
||||
.line 137
|
||||
iget-boolean v0, p0, Landroidx/collection/MapCollections$MapIterator;->mEntryValid:Z
|
||||
|
||||
if-eqz v0, :cond_2
|
||||
|
||||
.line 141
|
||||
instance-of v0, p1, Ljava/util/Map$Entry;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
return v1
|
||||
|
||||
.line 144
|
||||
:cond_0
|
||||
check-cast p1, Ljava/util/Map$Entry;
|
||||
|
||||
.line 145
|
||||
invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
iget-object v2, p0, Landroidx/collection/MapCollections$MapIterator;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
iget v3, p0, Landroidx/collection/MapCollections$MapIterator;->mIndex:I
|
||||
|
||||
invoke-virtual {v2, v3, v1}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-static {v0, v2}, Landroidx/collection/ContainerHelpers;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
.line 146
|
||||
invoke-interface {p1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$MapIterator;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
iget v2, p0, Landroidx/collection/MapCollections$MapIterator;->mIndex:I
|
||||
|
||||
const/4 v3, 0x1
|
||||
|
||||
invoke-virtual {v0, v2, v3}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {p1, v0}, Landroidx/collection/ContainerHelpers;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-eqz p1, :cond_1
|
||||
|
||||
move v1, v3
|
||||
|
||||
:cond_1
|
||||
return v1
|
||||
|
||||
.line 138
|
||||
:cond_2
|
||||
new-instance p1, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v0, "This container does not support retaining Map.Entry objects"
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public getKey()Ljava/lang/Object;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()TK;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 110
|
||||
iget-boolean v0, p0, Landroidx/collection/MapCollections$MapIterator;->mEntryValid:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
.line 114
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$MapIterator;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
iget v1, p0, Landroidx/collection/MapCollections$MapIterator;->mIndex:I
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-virtual {v0, v1, v2}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
|
||||
.line 111
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v1, "This container does not support retaining Map.Entry objects"
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public getValue()Ljava/lang/Object;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()TV;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 119
|
||||
iget-boolean v0, p0, Landroidx/collection/MapCollections$MapIterator;->mEntryValid:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
.line 123
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$MapIterator;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
iget v1, p0, Landroidx/collection/MapCollections$MapIterator;->mIndex:I
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
invoke-virtual {v0, v1, v2}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
|
||||
.line 120
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v1, "This container does not support retaining Map.Entry objects"
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public hasNext()Z
|
||||
.locals 2
|
||||
|
||||
.line 86
|
||||
iget v0, p0, Landroidx/collection/MapCollections$MapIterator;->mIndex:I
|
||||
|
||||
iget v1, p0, Landroidx/collection/MapCollections$MapIterator;->mEnd:I
|
||||
|
||||
if-ge v0, v1, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public hashCode()I
|
||||
.locals 5
|
||||
|
||||
.line 151
|
||||
iget-boolean v0, p0, Landroidx/collection/MapCollections$MapIterator;->mEntryValid:Z
|
||||
|
||||
if-eqz v0, :cond_2
|
||||
|
||||
.line 155
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$MapIterator;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
iget v1, p0, Landroidx/collection/MapCollections$MapIterator;->mIndex:I
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-virtual {v0, v1, v2}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
.line 156
|
||||
iget-object v1, p0, Landroidx/collection/MapCollections$MapIterator;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
iget v3, p0, Landroidx/collection/MapCollections$MapIterator;->mIndex:I
|
||||
|
||||
const/4 v4, 0x1
|
||||
|
||||
invoke-virtual {v1, v3, v4}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
move v0, v2
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 157
|
||||
:cond_0
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
||||
|
||||
move-result v0
|
||||
|
||||
:goto_0
|
||||
if-nez v1, :cond_1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
.line 158
|
||||
:cond_1
|
||||
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
|
||||
|
||||
move-result v2
|
||||
|
||||
:goto_1
|
||||
xor-int/2addr v0, v2
|
||||
|
||||
return v0
|
||||
|
||||
.line 152
|
||||
:cond_2
|
||||
new-instance v0, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v1, "This container does not support retaining Map.Entry objects"
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public bridge synthetic next()Ljava/lang/Object;
|
||||
.locals 1
|
||||
|
||||
.line 74
|
||||
invoke-virtual {p0}, Landroidx/collection/MapCollections$MapIterator;->next()Ljava/util/Map$Entry;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public next()Ljava/util/Map$Entry;
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Map$Entry<",
|
||||
"TK;TV;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 91
|
||||
invoke-virtual {p0}, Landroidx/collection/MapCollections$MapIterator;->hasNext()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
.line 92
|
||||
iget v0, p0, Landroidx/collection/MapCollections$MapIterator;->mIndex:I
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
add-int/2addr v0, v1
|
||||
|
||||
iput v0, p0, Landroidx/collection/MapCollections$MapIterator;->mIndex:I
|
||||
|
||||
.line 93
|
||||
iput-boolean v1, p0, Landroidx/collection/MapCollections$MapIterator;->mEntryValid:Z
|
||||
|
||||
return-object p0
|
||||
|
||||
.line 91
|
||||
:cond_0
|
||||
new-instance v0, Ljava/util/NoSuchElementException;
|
||||
|
||||
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public remove()V
|
||||
.locals 2
|
||||
|
||||
.line 99
|
||||
iget-boolean v0, p0, Landroidx/collection/MapCollections$MapIterator;->mEntryValid:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
.line 102
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$MapIterator;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
iget v1, p0, Landroidx/collection/MapCollections$MapIterator;->mIndex:I
|
||||
|
||||
invoke-virtual {v0, v1}, Landroidx/collection/MapCollections;->colRemoveAt(I)V
|
||||
|
||||
.line 103
|
||||
iget v0, p0, Landroidx/collection/MapCollections$MapIterator;->mIndex:I
|
||||
|
||||
add-int/lit8 v0, v0, -0x1
|
||||
|
||||
iput v0, p0, Landroidx/collection/MapCollections$MapIterator;->mIndex:I
|
||||
|
||||
.line 104
|
||||
iget v0, p0, Landroidx/collection/MapCollections$MapIterator;->mEnd:I
|
||||
|
||||
add-int/lit8 v0, v0, -0x1
|
||||
|
||||
iput v0, p0, Landroidx/collection/MapCollections$MapIterator;->mEnd:I
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
.line 105
|
||||
iput-boolean v0, p0, Landroidx/collection/MapCollections$MapIterator;->mEntryValid:Z
|
||||
|
||||
return-void
|
||||
|
||||
.line 100
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/IllegalStateException;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public setValue(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TV;)TV;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 128
|
||||
iget-boolean v0, p0, Landroidx/collection/MapCollections$MapIterator;->mEntryValid:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
.line 132
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$MapIterator;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
iget v1, p0, Landroidx/collection/MapCollections$MapIterator;->mIndex:I
|
||||
|
||||
invoke-virtual {v0, v1, p1}, Landroidx/collection/MapCollections;->colSetValue(ILjava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
|
||||
.line 129
|
||||
:cond_0
|
||||
new-instance p1, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v0, "This container does not support retaining Map.Entry objects"
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public toString()Ljava/lang/String;
|
||||
.locals 2
|
||||
|
||||
.line 163
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
invoke-virtual {p0}, Landroidx/collection/MapCollections$MapIterator;->getKey()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, "="
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {p0}, Landroidx/collection/MapCollections$MapIterator;->getValue()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
@@ -0,0 +1,398 @@
|
||||
.class final Landroidx/collection/MapCollections$ValuesCollection;
|
||||
.super Ljava/lang/Object;
|
||||
.source "MapCollections.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/util/Collection;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/collection/MapCollections;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x10
|
||||
name = "ValuesCollection"
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/Object;",
|
||||
"Ljava/util/Collection<",
|
||||
"TV;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/collection/MapCollections;)V
|
||||
.locals 0
|
||||
|
||||
.line 357
|
||||
iput-object p1, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public add(Ljava/lang/Object;)Z
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TV;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 361
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public addAll(Ljava/util/Collection;)Z
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"+TV;>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 366
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public clear()V
|
||||
.locals 1
|
||||
|
||||
.line 371
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colClear()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public contains(Ljava/lang/Object;)Z
|
||||
.locals 1
|
||||
|
||||
.line 376
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/collection/MapCollections;->colIndexOfValue(Ljava/lang/Object;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
if-ltz p1, :cond_0
|
||||
|
||||
const/4 p1, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 p1, 0x0
|
||||
|
||||
:goto_0
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public containsAll(Ljava/util/Collection;)Z
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"*>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 381
|
||||
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
.line 382
|
||||
:cond_0
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
.line 383
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {p0, v0}, Landroidx/collection/MapCollections$ValuesCollection;->contains(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
return p1
|
||||
|
||||
:cond_1
|
||||
const/4 p1, 0x1
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public isEmpty()Z
|
||||
.locals 1
|
||||
|
||||
.line 392
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public iterator()Ljava/util/Iterator;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Iterator<",
|
||||
"TV;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 397
|
||||
new-instance v0, Landroidx/collection/MapCollections$ArrayIterator;
|
||||
|
||||
iget-object v1, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
invoke-direct {v0, v1, v2}, Landroidx/collection/MapCollections$ArrayIterator;-><init>(Landroidx/collection/MapCollections;I)V
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public remove(Ljava/lang/Object;)Z
|
||||
.locals 1
|
||||
|
||||
.line 402
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/collection/MapCollections;->colIndexOfValue(Ljava/lang/Object;)I
|
||||
|
||||
move-result p1
|
||||
|
||||
if-ltz p1, :cond_0
|
||||
|
||||
.line 404
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0, p1}, Landroidx/collection/MapCollections;->colRemoveAt(I)V
|
||||
|
||||
const/4 p1, 0x1
|
||||
|
||||
return p1
|
||||
|
||||
:cond_0
|
||||
const/4 p1, 0x0
|
||||
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public removeAll(Ljava/util/Collection;)Z
|
||||
.locals 5
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"*>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 412
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
move v2, v1
|
||||
|
||||
:goto_0
|
||||
if-ge v1, v0, :cond_1
|
||||
|
||||
.line 415
|
||||
iget-object v3, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
const/4 v4, 0x1
|
||||
|
||||
invoke-virtual {v3, v1, v4}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
.line 416
|
||||
invoke-interface {p1, v3}, Ljava/util/Collection;->contains(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v3
|
||||
|
||||
if-eqz v3, :cond_0
|
||||
|
||||
.line 417
|
||||
iget-object v2, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v2, v1}, Landroidx/collection/MapCollections;->colRemoveAt(I)V
|
||||
|
||||
add-int/lit8 v1, v1, -0x1
|
||||
|
||||
add-int/lit8 v0, v0, -0x1
|
||||
|
||||
move v2, v4
|
||||
|
||||
:cond_0
|
||||
add-int/2addr v1, v4
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
return v2
|
||||
.end method
|
||||
|
||||
.method public retainAll(Ljava/util/Collection;)Z
|
||||
.locals 5
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"*>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 428
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
move v2, v1
|
||||
|
||||
:goto_0
|
||||
if-ge v1, v0, :cond_1
|
||||
|
||||
.line 431
|
||||
iget-object v3, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
const/4 v4, 0x1
|
||||
|
||||
invoke-virtual {v3, v1, v4}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
.line 432
|
||||
invoke-interface {p1, v3}, Ljava/util/Collection;->contains(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v3
|
||||
|
||||
if-nez v3, :cond_0
|
||||
|
||||
.line 433
|
||||
iget-object v2, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v2, v1}, Landroidx/collection/MapCollections;->colRemoveAt(I)V
|
||||
|
||||
add-int/lit8 v1, v1, -0x1
|
||||
|
||||
add-int/lit8 v0, v0, -0x1
|
||||
|
||||
move v2, v4
|
||||
|
||||
:cond_0
|
||||
add-int/2addr v1, v4
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
return v2
|
||||
.end method
|
||||
|
||||
.method public size()I
|
||||
.locals 1
|
||||
|
||||
.line 444
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
invoke-virtual {v0}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public toArray()[Ljava/lang/Object;
|
||||
.locals 2
|
||||
|
||||
.line 449
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-virtual {v0, v1}, Landroidx/collection/MapCollections;->toArrayHelper(I)[Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<T:",
|
||||
"Ljava/lang/Object;",
|
||||
">([TT;)[TT;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 454
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections$ValuesCollection;->this$0:Landroidx/collection/MapCollections;
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-virtual {v0, p1, v1}, Landroidx/collection/MapCollections;->toArrayHelper([Ljava/lang/Object;I)[Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
@@ -0,0 +1,551 @@
|
||||
.class abstract Landroidx/collection/MapCollections;
|
||||
.super Ljava/lang/Object;
|
||||
.source "MapCollections.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Landroidx/collection/MapCollections$ValuesCollection;,
|
||||
Landroidx/collection/MapCollections$KeySet;,
|
||||
Landroidx/collection/MapCollections$EntrySet;,
|
||||
Landroidx/collection/MapCollections$MapIterator;,
|
||||
Landroidx/collection/MapCollections$ArrayIterator;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<K:",
|
||||
"Ljava/lang/Object;",
|
||||
"V:",
|
||||
"Ljava/lang/Object;",
|
||||
">",
|
||||
"Ljava/lang/Object;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field mEntrySet:Landroidx/collection/MapCollections$EntrySet;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Landroidx/collection/MapCollections<",
|
||||
"TK;TV;>.EntrySet;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field mKeySet:Landroidx/collection/MapCollections$KeySet;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Landroidx/collection/MapCollections<",
|
||||
"TK;TV;>.KeySet;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field mValues:Landroidx/collection/MapCollections$ValuesCollection;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Landroidx/collection/MapCollections<",
|
||||
"TK;TV;>.ValuesCollection;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
.line 32
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static containsAllHelper(Ljava/util/Map;Ljava/util/Collection;)Z
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<K:",
|
||||
"Ljava/lang/Object;",
|
||||
"V:",
|
||||
"Ljava/lang/Object;",
|
||||
">(",
|
||||
"Ljava/util/Map<",
|
||||
"TK;TV;>;",
|
||||
"Ljava/util/Collection<",
|
||||
"*>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 459
|
||||
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
.line 460
|
||||
:cond_0
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
.line 461
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-interface {p0, v0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
const/4 p0, 0x0
|
||||
|
||||
return p0
|
||||
|
||||
:cond_1
|
||||
const/4 p0, 0x1
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method public static equalsSetHelper(Ljava/util/Set;Ljava/lang/Object;)Z
|
||||
.locals 4
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<T:",
|
||||
"Ljava/lang/Object;",
|
||||
">(",
|
||||
"Ljava/util/Set<",
|
||||
"TT;>;",
|
||||
"Ljava/lang/Object;",
|
||||
")Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
if-ne p0, p1, :cond_0
|
||||
|
||||
return v0
|
||||
|
||||
.line 518
|
||||
:cond_0
|
||||
instance-of v1, p1, Ljava/util/Set;
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
if-eqz v1, :cond_2
|
||||
|
||||
.line 519
|
||||
check-cast p1, Ljava/util/Set;
|
||||
|
||||
.line 522
|
||||
:try_start_0
|
||||
invoke-interface {p0}, Ljava/util/Set;->size()I
|
||||
|
||||
move-result v1
|
||||
|
||||
invoke-interface {p1}, Ljava/util/Set;->size()I
|
||||
|
||||
move-result v3
|
||||
|
||||
if-ne v1, v3, :cond_1
|
||||
|
||||
invoke-interface {p0, p1}, Ljava/util/Set;->containsAll(Ljava/util/Collection;)Z
|
||||
|
||||
move-result p0
|
||||
:try_end_0
|
||||
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
.catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
if-eqz p0, :cond_1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
move v0, v2
|
||||
|
||||
:goto_0
|
||||
return v0
|
||||
|
||||
:catch_0
|
||||
:cond_2
|
||||
return v2
|
||||
.end method
|
||||
|
||||
.method public static removeAllHelper(Ljava/util/Map;Ljava/util/Collection;)Z
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<K:",
|
||||
"Ljava/lang/Object;",
|
||||
"V:",
|
||||
"Ljava/lang/Object;",
|
||||
">(",
|
||||
"Ljava/util/Map<",
|
||||
"TK;TV;>;",
|
||||
"Ljava/util/Collection<",
|
||||
"*>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 469
|
||||
invoke-interface {p0}, Ljava/util/Map;->size()I
|
||||
|
||||
move-result v0
|
||||
|
||||
.line 470
|
||||
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
.line 471
|
||||
:goto_0
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
.line 472
|
||||
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-interface {p0, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 474
|
||||
:cond_0
|
||||
invoke-interface {p0}, Ljava/util/Map;->size()I
|
||||
|
||||
move-result p0
|
||||
|
||||
if-eq v0, p0, :cond_1
|
||||
|
||||
const/4 p0, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
const/4 p0, 0x0
|
||||
|
||||
:goto_1
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method public static retainAllHelper(Ljava/util/Map;Ljava/util/Collection;)Z
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<K:",
|
||||
"Ljava/lang/Object;",
|
||||
"V:",
|
||||
"Ljava/lang/Object;",
|
||||
">(",
|
||||
"Ljava/util/Map<",
|
||||
"TK;TV;>;",
|
||||
"Ljava/util/Collection<",
|
||||
"*>;)Z"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 478
|
||||
invoke-interface {p0}, Ljava/util/Map;->size()I
|
||||
|
||||
move-result v0
|
||||
|
||||
.line 479
|
||||
invoke-interface {p0}, Ljava/util/Map;->keySet()Ljava/util/Set;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
.line 480
|
||||
:cond_0
|
||||
:goto_0
|
||||
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v2
|
||||
|
||||
if-eqz v2, :cond_1
|
||||
|
||||
.line 481
|
||||
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-interface {p1, v2}, Ljava/util/Collection;->contains(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v2
|
||||
|
||||
if-nez v2, :cond_0
|
||||
|
||||
.line 482
|
||||
invoke-interface {v1}, Ljava/util/Iterator;->remove()V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 485
|
||||
:cond_1
|
||||
invoke-interface {p0}, Ljava/util/Map;->size()I
|
||||
|
||||
move-result p0
|
||||
|
||||
if-eq v0, p0, :cond_2
|
||||
|
||||
const/4 p0, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_2
|
||||
const/4 p0, 0x0
|
||||
|
||||
:goto_1
|
||||
return p0
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method protected abstract colClear()V
|
||||
.end method
|
||||
|
||||
.method protected abstract colGetEntry(II)Ljava/lang/Object;
|
||||
.end method
|
||||
|
||||
.method protected abstract colGetMap()Ljava/util/Map;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Map<",
|
||||
"TK;TV;>;"
|
||||
}
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method protected abstract colGetSize()I
|
||||
.end method
|
||||
|
||||
.method protected abstract colIndexOfKey(Ljava/lang/Object;)I
|
||||
.end method
|
||||
|
||||
.method protected abstract colIndexOfValue(Ljava/lang/Object;)I
|
||||
.end method
|
||||
|
||||
.method protected abstract colPut(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TK;TV;)V"
|
||||
}
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method protected abstract colRemoveAt(I)V
|
||||
.end method
|
||||
|
||||
.method protected abstract colSetValue(ILjava/lang/Object;)Ljava/lang/Object;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(ITV;)TV;"
|
||||
}
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method public getEntrySet()Ljava/util/Set;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Set<",
|
||||
"Ljava/util/Map$Entry<",
|
||||
"TK;TV;>;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 533
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections;->mEntrySet:Landroidx/collection/MapCollections$EntrySet;
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
.line 534
|
||||
new-instance v0, Landroidx/collection/MapCollections$EntrySet;
|
||||
|
||||
invoke-direct {v0, p0}, Landroidx/collection/MapCollections$EntrySet;-><init>(Landroidx/collection/MapCollections;)V
|
||||
|
||||
iput-object v0, p0, Landroidx/collection/MapCollections;->mEntrySet:Landroidx/collection/MapCollections$EntrySet;
|
||||
|
||||
.line 536
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections;->mEntrySet:Landroidx/collection/MapCollections$EntrySet;
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public getKeySet()Ljava/util/Set;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Set<",
|
||||
"TK;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 540
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections;->mKeySet:Landroidx/collection/MapCollections$KeySet;
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
.line 541
|
||||
new-instance v0, Landroidx/collection/MapCollections$KeySet;
|
||||
|
||||
invoke-direct {v0, p0}, Landroidx/collection/MapCollections$KeySet;-><init>(Landroidx/collection/MapCollections;)V
|
||||
|
||||
iput-object v0, p0, Landroidx/collection/MapCollections;->mKeySet:Landroidx/collection/MapCollections$KeySet;
|
||||
|
||||
.line 543
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections;->mKeySet:Landroidx/collection/MapCollections$KeySet;
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public getValues()Ljava/util/Collection;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Collection<",
|
||||
"TV;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 547
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections;->mValues:Landroidx/collection/MapCollections$ValuesCollection;
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
.line 548
|
||||
new-instance v0, Landroidx/collection/MapCollections$ValuesCollection;
|
||||
|
||||
invoke-direct {v0, p0}, Landroidx/collection/MapCollections$ValuesCollection;-><init>(Landroidx/collection/MapCollections;)V
|
||||
|
||||
iput-object v0, p0, Landroidx/collection/MapCollections;->mValues:Landroidx/collection/MapCollections$ValuesCollection;
|
||||
|
||||
.line 550
|
||||
:cond_0
|
||||
iget-object v0, p0, Landroidx/collection/MapCollections;->mValues:Landroidx/collection/MapCollections$ValuesCollection;
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public toArrayHelper(I)[Ljava/lang/Object;
|
||||
.locals 4
|
||||
|
||||
.line 490
|
||||
invoke-virtual {p0}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result v0
|
||||
|
||||
.line 491
|
||||
new-array v1, v0, [Ljava/lang/Object;
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v2, v0, :cond_0
|
||||
|
||||
.line 493
|
||||
invoke-virtual {p0, v2, p1}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
aput-object v3, v1, v2
|
||||
|
||||
add-int/lit8 v2, v2, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
return-object v1
|
||||
.end method
|
||||
|
||||
.method public toArrayHelper([Ljava/lang/Object;I)[Ljava/lang/Object;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<T:",
|
||||
"Ljava/lang/Object;",
|
||||
">([TT;I)[TT;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 499
|
||||
invoke-virtual {p0}, Landroidx/collection/MapCollections;->colGetSize()I
|
||||
|
||||
move-result v0
|
||||
|
||||
.line 500
|
||||
array-length v1, p1
|
||||
|
||||
if-ge v1, v0, :cond_0
|
||||
|
||||
.line 502
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-static {p1, v0}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
check-cast p1, [Ljava/lang/Object;
|
||||
|
||||
check-cast p1, [Ljava/lang/Object;
|
||||
|
||||
:cond_0
|
||||
const/4 v1, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v1, v0, :cond_1
|
||||
|
||||
.line 506
|
||||
invoke-virtual {p0, v1, p2}, Landroidx/collection/MapCollections;->colGetEntry(II)Ljava/lang/Object;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
aput-object v2, p1, v1
|
||||
|
||||
add-int/lit8 v1, v1, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
.line 508
|
||||
:cond_1
|
||||
array-length p2, p1
|
||||
|
||||
if-le p2, v0, :cond_2
|
||||
|
||||
const/4 p2, 0x0
|
||||
|
||||
.line 509
|
||||
aput-object p2, p1, v0
|
||||
|
||||
:cond_2
|
||||
return-object p1
|
||||
.end method
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user