VideoPlayerContainer.smali
.class public abstract Lcom/proxy/ad/impl/video/player/VideoPlayerContainer;
.super Landroid/widget/FrameLayout;
# instance fields
.field private a:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/ref/WeakReference<",
"Lcom/proxy/ad/impl/video/c/a;",
">;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 2
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
new-instance p1, Ljava/util/concurrent/ConcurrentHashMap;
invoke-direct {p1}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
iput-object p1, p0, Lcom/proxy/ad/impl/video/player/VideoPlayerContainer;->a:Ljava/util/Map;
return-void
.end method
.method private a(Ljava/lang/String;)Lcom/proxy/ad/impl/video/c/a;
.registers 4
invoke-static {p1}, Lcom/proxy/ad/a/d/j;->a(Ljava/lang/String;)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_8
return-object v1
:cond_8
iget-object v0, p0, Lcom/proxy/ad/impl/video/player/VideoPlayerContainer;->a:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/ref/WeakReference;
if-nez p1, :cond_13
return-object v1
:cond_13
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/proxy/ad/impl/video/c/a;
return-object p1
.end method
# virtual methods
.method public final a(Ljava/lang/String;Lcom/proxy/ad/impl/video/c/a;)V
.registers 5
iget-object v0, p0, Lcom/proxy/ad/impl/video/player/VideoPlayerContainer;->a:Ljava/util/Map;
new-instance v1, Ljava/lang/ref/WeakReference;
invoke-direct {v1, p2}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
invoke-interface {v0, p1, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method
.method public final a(Ljava/lang/String;[Ljava/lang/String;)V
.registers 4
invoke-direct {p0, p1}, Lcom/proxy/ad/impl/video/player/VideoPlayerContainer;->a(Ljava/lang/String;)Lcom/proxy/ad/impl/video/c/a;
move-result-object v0
if-eqz v0, :cond_9
invoke-interface {v0, p1, p2}, Lcom/proxy/ad/impl/video/c/a;->a(Ljava/lang/String;[Ljava/lang/String;)V
:cond_9
return-void
.end method
.method public final m()V
.registers 2
iget-object v0, p0, Lcom/proxy/ad/impl/video/player/VideoPlayerContainer;->a:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->clear()V
return-void
.end method