181 lines
3.2 KiB
Smali
181 lines
3.2 KiB
Smali
.class public final Ldagger/internal/b;
|
|
.super Ljava/lang/Object;
|
|
.source "DaggerCollections.java"
|
|
|
|
|
|
# static fields
|
|
.field public static final a:I = 0x40000000
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(I)I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-ge p0, v0, :cond_0
|
|
|
|
add-int/lit8 p0, p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
if-ge p0, v0, :cond_1
|
|
|
|
int-to-float p0, p0
|
|
|
|
const/high16 v0, 0x3f400000 # 0.75f
|
|
|
|
div-float/2addr p0, v0
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
add-float/2addr p0, v0
|
|
|
|
float-to-int p0, p0
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
const p0, 0x7fffffff
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static b(Ljava/util/List;)Z
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"*>;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x2
|
|
|
|
if-ge v0, v2, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance v0, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v0, p0}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V
|
|
|
|
.line 3
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result p0
|
|
|
|
invoke-virtual {v0}, Ljava/util/HashSet;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-eq p0, v0, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_1
|
|
return v1
|
|
.end method
|
|
|
|
.method public static c(I)Ljava/util/HashSet;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(I)",
|
|
"Ljava/util/HashSet<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/util/HashSet;
|
|
|
|
invoke-static {p0}, Ldagger/internal/b;->a(I)I
|
|
|
|
move-result p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static d(I)Ljava/util/LinkedHashMap;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<K:",
|
|
"Ljava/lang/Object;",
|
|
"V:",
|
|
"Ljava/lang/Object;",
|
|
">(I)",
|
|
"Ljava/util/LinkedHashMap<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/util/LinkedHashMap;
|
|
|
|
invoke-static {p0}, Ldagger/internal/b;->a(I)I
|
|
|
|
move-result p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/util/LinkedHashMap;-><init>(I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static e(I)Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(I)",
|
|
"Ljava/util/List<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
.line 1
|
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0, p0}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
return-object v0
|
|
.end method
|