931 lines
21 KiB
Smali
931 lines
21 KiB
Smali
.class public Lcom/moji/mjad/common/data/AdGDTCacheManager;
|
|
.super Ljava/lang/Object;
|
|
.source "AdGDTCacheManager.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/mjad/common/data/AdGDTCacheManager$SingletonHolder;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Ljava/util/concurrent/ConcurrentHashMap;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/concurrent/ConcurrentHashMap<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/mjad/common/data/AdGDTCache;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private b:Ljava/util/concurrent/ConcurrentHashMap;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/concurrent/ConcurrentHashMap<",
|
|
"Ljava/lang/Integer;",
|
|
"Ljava/util/List<",
|
|
"Lcom/qq/e/ads/nativ/NativeADDataRef;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 17
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 19
|
|
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->a:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
.line 21
|
|
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->b:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a()Lcom/moji/mjad/common/data/AdGDTCacheManager;
|
|
.locals 1
|
|
|
|
.line 32
|
|
sget-object v0, Lcom/moji/mjad/common/data/AdGDTCacheManager$SingletonHolder;->a:Lcom/moji/mjad/common/data/AdGDTCacheManager;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private a(Ljava/util/List;)Ljava/util/List;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/qq/e/ads/nativ/NativeADDataRef;",
|
|
">;)",
|
|
"Ljava/util/List<",
|
|
"Lcom/qq/e/ads/nativ/NativeADDataRef;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 78
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
.line 79
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-lez v1, :cond_4
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 80
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-ge v2, v3, :cond_4
|
|
|
|
.line 81
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
.line 82
|
|
invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_3
|
|
|
|
:cond_0
|
|
const/4 v3, 0x0
|
|
|
|
.line 86
|
|
:goto_1
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
if-ge v3, v4, :cond_2
|
|
|
|
.line 87
|
|
invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Lcom/qq/e/ads/nativ/NativeADDataRef;
|
|
|
|
invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/qq/e/ads/nativ/NativeADDataRef;
|
|
|
|
invoke-interface {v4, v5}, Lcom/qq/e/ads/nativ/NativeADDataRef;->equalsAdData(Lcom/qq/e/ads/nativ/NativeADDataRef;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v3, 0x1
|
|
|
|
:goto_2
|
|
if-eqz v3, :cond_3
|
|
|
|
.line 93
|
|
invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_3
|
|
:goto_3
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private a(Lcom/qq/e/ads/nativ/NativeADDataRef;Lcom/moji/mjad/enumdata/MojiAdPosition;)Z
|
|
.locals 4
|
|
|
|
.line 107
|
|
invoke-virtual {p0, p2}, Lcom/moji/mjad/common/data/AdGDTCacheManager;->b(Lcom/moji/mjad/enumdata/MojiAdPosition;)Lcom/moji/mjad/common/data/AdCacheGroupID;
|
|
|
|
move-result-object p2
|
|
|
|
iget p2, p2, Lcom/moji/mjad/common/data/AdCacheGroupID;->value:I
|
|
|
|
.line 108
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 109
|
|
iget-object v1, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->a:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 110
|
|
iget-object v0, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->a:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
:cond_0
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 112
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
if-lez v2, :cond_2
|
|
|
|
.line 113
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
.line 114
|
|
:cond_1
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 115
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/moji/mjad/common/data/AdGDTCache;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 116
|
|
iget-object v3, v2, Lcom/moji/mjad/common/data/AdGDTCache;->a:Lcom/qq/e/ads/nativ/NativeADDataRef;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
iget-object v2, v2, Lcom/moji/mjad/common/data/AdGDTCache;->a:Lcom/qq/e/ads/nativ/NativeADDataRef;
|
|
|
|
invoke-interface {p1, v2}, Lcom/qq/e/ads/nativ/NativeADDataRef;->equalsAdData(Lcom/qq/e/ads/nativ/NativeADDataRef;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
return v1
|
|
|
|
.line 123
|
|
:cond_2
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 124
|
|
iget-object v2, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->b:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
.line 125
|
|
iget-object v0, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->b:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {v0, p2}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
move-object v0, p2
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
:cond_3
|
|
const/4 p2, 0x0
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
.line 127
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
if-nez p1, :cond_4
|
|
|
|
goto :goto_0
|
|
|
|
.line 130
|
|
:cond_4
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
.line 131
|
|
:cond_5
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
.line 132
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/qq/e/ads/nativ/NativeADDataRef;
|
|
|
|
.line 133
|
|
invoke-interface {p1, v2}, Lcom/qq/e/ads/nativ/NativeADDataRef;->equalsAdData(Lcom/qq/e/ads/nativ/NativeADDataRef;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
return v1
|
|
|
|
:cond_6
|
|
return p2
|
|
|
|
:cond_7
|
|
:goto_0
|
|
return p2
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public declared-synchronized a(Lcom/moji/mjad/enumdata/MojiAdPosition;)Lcom/qq/e/ads/nativ/NativeADDataRef;
|
|
.locals 11
|
|
|
|
monitor-enter p0
|
|
|
|
.line 148
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->a:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_a
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto/16 :goto_2
|
|
|
|
.line 152
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjad/common/data/AdGDTCacheManager;->b(Lcom/moji/mjad/enumdata/MojiAdPosition;)Lcom/moji/mjad/common/data/AdCacheGroupID;
|
|
|
|
move-result-object p1
|
|
|
|
iget p1, p1, Lcom/moji/mjad/common/data/AdCacheGroupID;->value:I
|
|
|
|
.line 153
|
|
iget-object v0, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->a:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v2}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 154
|
|
monitor-exit p0
|
|
|
|
return-object v1
|
|
|
|
.line 157
|
|
:cond_1
|
|
:try_start_1
|
|
iget-object v0, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->a:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v2}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
.line 159
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 163
|
|
:cond_2
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
.line 165
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v2
|
|
|
|
.line 166
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v4
|
|
|
|
.line 167
|
|
:cond_3
|
|
:goto_0
|
|
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v5
|
|
|
|
const-wide/32 v6, 0x2932e0
|
|
|
|
if-eqz v5, :cond_5
|
|
|
|
.line 168
|
|
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/moji/mjad/common/data/AdGDTCache;
|
|
|
|
if-eqz v5, :cond_4
|
|
|
|
.line 169
|
|
iget-object v8, v5, Lcom/moji/mjad/common/data/AdGDTCache;->a:Lcom/qq/e/ads/nativ/NativeADDataRef;
|
|
|
|
if-eqz v8, :cond_4
|
|
|
|
iget-wide v8, v5, Lcom/moji/mjad/common/data/AdGDTCache;->b:J
|
|
|
|
const/4 v5, 0x0
|
|
|
|
sub-long v8, v2, v8
|
|
|
|
cmp-long v5, v8, v6
|
|
|
|
if-lez v5, :cond_3
|
|
|
|
.line 171
|
|
:cond_4
|
|
invoke-interface {v4}, Ljava/util/Iterator;->remove()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 176
|
|
:cond_5
|
|
new-instance v2, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 177
|
|
iget-object v3, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->b:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v3, v4}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
.line 178
|
|
iget-object v2, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->b:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/util/List;
|
|
|
|
.line 183
|
|
:cond_6
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-lez v3, :cond_8
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_8
|
|
|
|
invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Lcom/moji/mjad/common/data/AdGDTCache;
|
|
|
|
iget-object v4, v4, Lcom/moji/mjad/common/data/AdGDTCache;->a:Lcom/qq/e/ads/nativ/NativeADDataRef;
|
|
|
|
if-eqz v4, :cond_8
|
|
|
|
.line 184
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v8
|
|
|
|
check-cast v8, Lcom/moji/mjad/common/data/AdGDTCache;
|
|
|
|
iget-wide v8, v8, Lcom/moji/mjad/common/data/AdGDTCache;->b:J
|
|
|
|
const/4 v10, 0x0
|
|
|
|
sub-long/2addr v4, v8
|
|
|
|
cmp-long v8, v4, v6
|
|
|
|
if-gez v8, :cond_8
|
|
|
|
.line 185
|
|
invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/moji/mjad/common/data/AdGDTCache;
|
|
|
|
iget-object v1, v1, Lcom/moji/mjad/common/data/AdGDTCache;->a:Lcom/qq/e/ads/nativ/NativeADDataRef;
|
|
|
|
.line 187
|
|
invoke-interface {v2}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
const/16 v5, 0x28
|
|
|
|
if-le v4, v5, :cond_7
|
|
|
|
.line 189
|
|
invoke-interface {v2}, Ljava/util/List;->clear()V
|
|
|
|
.line 191
|
|
:cond_7
|
|
invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 193
|
|
invoke-interface {v0, v3}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
|
|
|
.line 196
|
|
:cond_8
|
|
iget-object v3, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->b:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v3, v4, v2}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 197
|
|
iget-object v2, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->a:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v2, p1, v0}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 200
|
|
monitor-exit p0
|
|
|
|
return-object v1
|
|
|
|
.line 161
|
|
:cond_9
|
|
:goto_1
|
|
monitor-exit p0
|
|
|
|
return-object v1
|
|
|
|
.line 150
|
|
:cond_a
|
|
:goto_2
|
|
monitor-exit p0
|
|
|
|
return-object v1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 147
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public declared-synchronized a(Ljava/util/List;Lcom/moji/mjad/enumdata/MojiAdPosition;)V
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/qq/e/ads/nativ/NativeADDataRef;",
|
|
">;",
|
|
"Lcom/moji/mjad/enumdata/MojiAdPosition;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
monitor-enter p0
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
.line 37
|
|
:try_start_0
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 40
|
|
:cond_0
|
|
invoke-virtual {p0, p2}, Lcom/moji/mjad/common/data/AdGDTCacheManager;->b(Lcom/moji/mjad/enumdata/MojiAdPosition;)Lcom/moji/mjad/common/data/AdCacheGroupID;
|
|
|
|
move-result-object v0
|
|
|
|
iget v0, v0, Lcom/moji/mjad/common/data/AdCacheGroupID;->value:I
|
|
|
|
.line 42
|
|
sget-object v1, Lcom/moji/mjad/common/data/AdCacheGroupID;->GROUP_DEFAULT:Lcom/moji/mjad/common/data/AdCacheGroupID;
|
|
|
|
iget v1, v1, Lcom/moji/mjad/common/data/AdCacheGroupID;->value:I
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 44
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
.line 46
|
|
:cond_1
|
|
:try_start_1
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 47
|
|
iget-object v2, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->a:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 48
|
|
iget-object v1, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->a:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/util/List;
|
|
|
|
.line 53
|
|
:cond_2
|
|
invoke-direct {p0, p1}, Lcom/moji/mjad/common/data/AdGDTCacheManager;->a(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
.line 55
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v2
|
|
|
|
.line 57
|
|
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
.line 58
|
|
:cond_3
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
.line 59
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Lcom/qq/e/ads/nativ/NativeADDataRef;
|
|
|
|
.line 60
|
|
invoke-direct {p0, v4, p2}, Lcom/moji/mjad/common/data/AdGDTCacheManager;->a(Lcom/qq/e/ads/nativ/NativeADDataRef;Lcom/moji/mjad/enumdata/MojiAdPosition;)Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_3
|
|
|
|
.line 61
|
|
new-instance v5, Lcom/moji/mjad/common/data/AdGDTCache;
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-direct {v5, v4, v6}, Lcom/moji/mjad/common/data/AdGDTCache;-><init>(Lcom/qq/e/ads/nativ/NativeADDataRef;Ljava/lang/Long;)V
|
|
|
|
invoke-interface {v1, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
if-eqz v1, :cond_5
|
|
|
|
.line 67
|
|
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_5
|
|
|
|
.line 68
|
|
iget-object p1, p0, Lcom/moji/mjad/common/data/AdGDTCacheManager;->a:Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2, v1}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 71
|
|
:cond_5
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 36
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
|
|
.line 38
|
|
:cond_6
|
|
:goto_1
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public declared-synchronized b(Lcom/moji/mjad/enumdata/MojiAdPosition;)Lcom/moji/mjad/common/data/AdCacheGroupID;
|
|
.locals 1
|
|
|
|
monitor-enter p0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 205
|
|
:try_start_0
|
|
sget-object v0, Lcom/moji/mjad/common/data/AdGDTCacheManager$1;->a:[I
|
|
|
|
invoke-virtual {p1}, Lcom/moji/mjad/enumdata/MojiAdPosition;->ordinal()I
|
|
|
|
move-result p1
|
|
|
|
aget p1, v0, p1
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
.line 219
|
|
sget-object p1, Lcom/moji/mjad/common/data/AdCacheGroupID;->GROUP_DEFAULT:Lcom/moji/mjad/common/data/AdCacheGroupID;
|
|
|
|
goto :goto_0
|
|
|
|
.line 217
|
|
:pswitch_0
|
|
sget-object p1, Lcom/moji/mjad/common/data/AdCacheGroupID;->GROUP_2:Lcom/moji/mjad/common/data/AdCacheGroupID;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-object p1
|
|
|
|
.line 213
|
|
:pswitch_1
|
|
:try_start_1
|
|
sget-object p1, Lcom/moji/mjad/common/data/AdCacheGroupID;->GROUP_1:Lcom/moji/mjad/common/data/AdCacheGroupID;
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-object p1
|
|
|
|
.line 208
|
|
:pswitch_2
|
|
:try_start_2
|
|
sget-object p1, Lcom/moji/mjad/common/data/AdCacheGroupID;->GROUP_3:Lcom/moji/mjad/common/data/AdCacheGroupID;
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-object p1
|
|
|
|
.line 219
|
|
:goto_0
|
|
monitor-exit p0
|
|
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_1
|
|
|
|
.line 222
|
|
:cond_0
|
|
:try_start_3
|
|
sget-object p1, Lcom/moji/mjad/common/data/AdCacheGroupID;->GROUP_DEFAULT:Lcom/moji/mjad/common/data/AdCacheGroupID;
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-object p1
|
|
|
|
.line 203
|
|
:goto_1
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_2
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_0
|
|
:pswitch_0
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|