granularity level: instruction
.class public final Lcom/google/android/gms/common/images/ImageManager;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-base@@18.0.1"
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/android/gms/common/images/ImageManager$ImageReceiver;,
Lcom/google/android/gms/common/images/ImageManager$OnImageLoadedListener;
}
.end annotation
.field private static final zaa:Ljava/lang/Object;
.field private static zab:Ljava/util/HashSet;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashSet<",
"Landroid/net/Uri;",
">;"
}
.end annotation
.end field
.field private static zac:Lcom/google/android/gms/common/images/ImageManager;
.field private final zad:Landroid/content/Context;
.field private final zae:Landroid/os/Handler;
.field private final zaf:Ljava/util/concurrent/ExecutorService;
.field private final zag:Lcom/google/android/gms/internal/base/zak;
.field private final zah:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Lcom/google/android/gms/common/images/zag;",
"Lcom/google/android/gms/common/images/ImageManager$ImageReceiver;",
">;"
}
.end annotation
.end field
.field private final zai:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Landroid/net/Uri;",
"Lcom/google/android/gms/common/images/ImageManager$ImageReceiver;",
">;"
}
.end annotation
.end field
.field private final zaj:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Landroid/net/Uri;",
"Ljava/lang/Long;",
">;"
}
.end annotation
.end field
.method static constructor <clinit>()V
.locals 1
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
sput-object v0, Lcom/google/android/gms/common/images/ImageManager;->zaa:Ljava/lang/Object;
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
sput-object v0, Lcom/google/android/gms/common/images/ImageManager;->zab:Ljava/util/HashSet;
return-void
.end method
.method private constructor <init>(Landroid/content/Context;Z)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
iput-object p1, p0, Lcom/google/android/gms/common/images/ImageManager;->zad:Landroid/content/Context;
new-instance p1, Lcom/google/android/gms/internal/base/zaq;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object p2
invoke-direct {p1, p2}, Lcom/google/android/gms/internal/base/zaq;-><init>(Landroid/os/Looper;)V
iput-object p1, p0, Lcom/google/android/gms/common/images/ImageManager;->zae:Landroid/os/Handler;
invoke-static {}, Lcom/google/android/gms/internal/base/zap;->zaa()Lcom/google/android/gms/internal/base/zam;
move-result-object p1
const/4 p2, 0x4
const/4 v0, 0x2
invoke-interface {p1, p2, v0}, Lcom/google/android/gms/internal/base/zam;->zab(II)Ljava/util/concurrent/ExecutorService;
move-result-object p1
iput-object p1, p0, Lcom/google/android/gms/common/images/ImageManager;->zaf:Ljava/util/concurrent/ExecutorService;
new-instance p1, Lcom/google/android/gms/internal/base/zak;
invoke-direct {p1}, Lcom/google/android/gms/internal/base/zak;-><init>()V
iput-object p1, p0, Lcom/google/android/gms/common/images/ImageManager;->zag:Lcom/google/android/gms/internal/base/zak;
new-instance p1, Ljava/util/HashMap;
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
iput-object p1, p0, Lcom/google/android/gms/common/images/ImageManager;->zah:Ljava/util/Map;
new-instance p1, Ljava/util/HashMap;
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
iput-object p1, p0, Lcom/google/android/gms/common/images/ImageManager;->zai:Ljava/util/Map;
new-instance p1, Ljava/util/HashMap;
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
iput-object p1, p0, Lcom/google/android/gms/common/images/ImageManager;->zaj:Ljava/util/Map;
return-void
.end method
.method public static create(Landroid/content/Context;)Lcom/google/android/gms/common/images/ImageManager;
.locals 2
sget-object v0, Lcom/google/android/gms/common/images/ImageManager;->zac:Lcom/google/android/gms/common/images/ImageManager;
if-nez v0, :cond_0
new-instance v0, Lcom/google/android/gms/common/images/ImageManager;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/google/android/gms/common/images/ImageManager;-><init>(Landroid/content/Context;Z)V
sput-object v0, Lcom/google/android/gms/common/images/ImageManager;->zac:Lcom/google/android/gms/common/images/ImageManager;
:cond_0
sget-object p0, Lcom/google/android/gms/common/images/ImageManager;->zac:Lcom/google/android/gms/common/images/ImageManager;
return-object p0
.end method
.method static bridge synthetic zaa(Lcom/google/android/gms/common/images/ImageManager;)Landroid/content/Context;
.locals 0
iget-object p0, p0, Lcom/google/android/gms/common/images/ImageManager;->zad:Landroid/content/Context;
return-object p0
.end method
.method static bridge synthetic zab(Lcom/google/android/gms/common/images/ImageManager;)Landroid/os/Handler;
.locals 0
iget-object p0, p0, Lcom/google/android/gms/common/images/ImageManager;->zae:Landroid/os/Handler;
return-object p0
.end method
.method static bridge synthetic zac(Lcom/google/android/gms/common/images/ImageManager;)Lcom/google/android/gms/internal/base/zak;
.locals 0
iget-object p0, p0, Lcom/google/android/gms/common/images/ImageManager;->zag:Lcom/google/android/gms/internal/base/zak;
return-object p0
.end method
.method static bridge synthetic zad()Ljava/lang/Object;
.locals 1
sget-object v0, Lcom/google/android/gms/common/images/ImageManager;->zaa:Ljava/lang/Object;
return-object v0
.end method
.method static bridge synthetic zae()Ljava/util/HashSet;
.locals 1
sget-object v0, Lcom/google/android/gms/common/images/ImageManager;->zab:Ljava/util/HashSet;
return-object v0
.end method
.method static bridge synthetic zaf(Lcom/google/android/gms/common/images/ImageManager;)Ljava/util/Map;
.locals 0
iget-object p0, p0, Lcom/google/android/gms/common/images/ImageManager;->zaj:Ljava/util/Map;
return-object p0
.end method
.method static bridge synthetic zag(Lcom/google/android/gms/common/images/ImageManager;)Ljava/util/Map;
.locals 0
iget-object p0, p0, Lcom/google/android/gms/common/images/ImageManager;->zah:Ljava/util/Map;
return-object p0
.end method
.method static bridge synthetic zah(Lcom/google/android/gms/common/images/ImageManager;)Ljava/util/Map;
.locals 0
iget-object p0, p0, Lcom/google/android/gms/common/images/ImageManager;->zai:Ljava/util/Map;
return-object p0
.end method
.method static bridge synthetic zai(Lcom/google/android/gms/common/images/ImageManager;)Ljava/util/concurrent/ExecutorService;
.locals 0
iget-object p0, p0, Lcom/google/android/gms/common/images/ImageManager;->zaf:Ljava/util/concurrent/ExecutorService;
return-object p0
.end method
.method public loadImage(Landroid/widget/ImageView;I)V
.locals 1
new-instance v0, Lcom/google/android/gms/common/images/zae;
invoke-direct {v0, p1, p2}, Lcom/google/android/gms/common/images/zae;-><init>(Landroid/widget/ImageView;I)V
invoke-virtual {p0, v0}, Lcom/google/android/gms/common/images/ImageManager;->zaj(Lcom/google/android/gms/common/images/zag;)V
return-void
.end method
.method public loadImage(Landroid/widget/ImageView;Landroid/net/Uri;)V
.locals 1
new-instance v0, Lcom/google/android/gms/common/images/zae;
invoke-direct {v0, p1, p2}, Lcom/google/android/gms/common/images/zae;-><init>(Landroid/widget/ImageView;Landroid/net/Uri;)V
invoke-virtual {p0, v0}, Lcom/google/android/gms/common/images/ImageManager;->zaj(Lcom/google/android/gms/common/images/zag;)V
return-void
.end method
.method public loadImage(Landroid/widget/ImageView;Landroid/net/Uri;I)V
.locals 1
new-instance v0, Lcom/google/android/gms/common/images/zae;
invoke-direct {v0, p1, p2}, Lcom/google/android/gms/common/images/zae;-><init>(Landroid/widget/ImageView;Landroid/net/Uri;)V
iput p3, v0, Lcom/google/android/gms/common/images/zag;->zab:I
invoke-virtual {p0, v0}, Lcom/google/android/gms/common/images/ImageManager;->zaj(Lcom/google/android/gms/common/images/zag;)V
return-void
.end method
.method public loadImage(Lcom/google/android/gms/common/images/ImageManager$OnImageLoadedListener;Landroid/net/Uri;)V
.locals 1
new-instance v0, Lcom/google/android/gms/common/images/zaf;
invoke-direct {v0, p1, p2}, Lcom/google/android/gms/common/images/zaf;-><init>(Lcom/google/android/gms/common/images/ImageManager$OnImageLoadedListener;Landroid/net/Uri;)V
invoke-virtual {p0, v0}, Lcom/google/android/gms/common/images/ImageManager;->zaj(Lcom/google/android/gms/common/images/zag;)V
return-void
.end method
.method public loadImage(Lcom/google/android/gms/common/images/ImageManager$OnImageLoadedListener;Landroid/net/Uri;I)V
.locals 1
new-instance v0, Lcom/google/android/gms/common/images/zaf;
invoke-direct {v0, p1, p2}, Lcom/google/android/gms/common/images/zaf;-><init>(Lcom/google/android/gms/common/images/ImageManager$OnImageLoadedListener;Landroid/net/Uri;)V
iput p3, v0, Lcom/google/android/gms/common/images/zag;->zab:I
invoke-virtual {p0, v0}, Lcom/google/android/gms/common/images/ImageManager;->zaj(Lcom/google/android/gms/common/images/zag;)V
return-void
.end method
.method public final zaj(Lcom/google/android/gms/common/images/zag;)V
.locals 1
const-string v0, "ImageManager.loadImage() must be called in the main thread"
invoke-static {v0}, Lcom/google/android/gms/common/internal/Asserts;->checkMainThread(Ljava/lang/String;)V
new-instance v0, Lcom/google/android/gms/common/images/zab;
invoke-direct {v0, p0, p1}, Lcom/google/android/gms/common/images/zab;-><init>(Lcom/google/android/gms/common/images/ImageManager;Lcom/google/android/gms/common/images/zag;)V
invoke-interface {v0}, Ljava/lang/Runnable;->run()V
return-void
.end method