MyVolley.smali

.class public Lcom/cleanmaster/bitmapcache/MyVolley;
.super Ljava/lang/Object;
.source "MyVolley.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/cleanmaster/bitmapcache/MyVolley$MyBitmapLruCache;
    }
.end annotation


# static fields
.field private static final DEFAULT_DISK_USAGE_BYTES:I = 0x6400000

.field private static ctx:Landroid/content/Context;

.field private static sCacheSize:I

.field private static sInstance:Lcom/cleanmaster/bitmapcache/MyVolley;


# instance fields
.field private mDefaultImageListener:Lcom/android/volley/toolbox/ImageLoader$ImageListener;

.field private mDiskCache:Lcom/android/volley/Cache;

.field private mImageLoader:Lcom/android/volley/toolbox/ImageLoader;

.field private mMainHandler:Landroid/os/Handler;

.field private mRequestQueue:Lcom/android/volley/RequestQueue;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 29
    const/4 v0, 0x0

    sput-object v0, Lcom/cleanmaster/bitmapcache/MyVolley;->sInstance:Lcom/cleanmaster/bitmapcache/MyVolley;

    .line 37
    const/high16 v0, 0x300000

    sput v0, Lcom/cleanmaster/bitmapcache/MyVolley;->sCacheSize:I

    return-void
.end method

.method private constructor <init>()V
    .registers 3

    .prologue
    .line 39
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 214
    new-instance v0, Lcom/cleanmaster/bitmapcache/MyVolley$1;

    invoke-direct {v0, p0}, Lcom/cleanmaster/bitmapcache/MyVolley$1;-><init>(Lcom/cleanmaster/bitmapcache/MyVolley;)V

    iput-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mDefaultImageListener:Lcom/android/volley/toolbox/ImageLoader$ImageListener;

    .line 40
    sget-object v0, Lcom/cleanmaster/bitmapcache/MyVolley;->ctx:Landroid/content/Context;

    if-nez v0, :cond_16

    .line 42
    new-instance v0, Ljava/lang/RuntimeException;

    const-string v1, "App does not init!!"

    invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 44
    :cond_16
    sget-object v0, Lcom/cleanmaster/bitmapcache/MyVolley;->ctx:Landroid/content/Context;

    invoke-direct {p0, v0}, Lcom/cleanmaster/bitmapcache/MyVolley;->init(Landroid/content/Context;)V

    .line 45
    return-void
.end method

.method static synthetic access$000(Lcom/cleanmaster/bitmapcache/MyVolley;)Lcom/android/volley/toolbox/ImageLoader;
    .registers 2

    .prologue
    .line 26
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mImageLoader:Lcom/android/volley/toolbox/ImageLoader;

    return-object v0
.end method

.method static synthetic access$100(Lcom/cleanmaster/bitmapcache/MyVolley;)Lcom/android/volley/toolbox/ImageLoader$ImageListener;
    .registers 2

    .prologue
    .line 26
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mDefaultImageListener:Lcom/android/volley/toolbox/ImageLoader$ImageListener;

    return-object v0
.end method

.method private getCacheDir(Landroid/content/Context;)Ljava/io/File;
    .registers 5

    .prologue
    .line 172
    invoke-virtual {p1}, Landroid/content/Context;->getCacheDir()Ljava/io/File;

    move-result-object v1

    .line 173
    if-nez v1, :cond_8

    .line 174
    const/4 v0, 0x0

    .line 180
    :cond_7
    :goto_7
    return-object v0

    .line 176
    :cond_8
    new-instance v0, Ljava/io/File;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "/cm_image_cache/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 177
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_7

    .line 178
    invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z

    goto :goto_7
.end method

.method public static getInstance()Lcom/cleanmaster/bitmapcache/MyVolley;
    .registers 2

    .prologue
    .line 75
    sget-object v0, Lcom/cleanmaster/bitmapcache/MyVolley;->sInstance:Lcom/cleanmaster/bitmapcache/MyVolley;

    if-nez v0, :cond_13

    .line 76
    const-class v1, Lcom/cleanmaster/bitmapcache/MyVolley;

    monitor-enter v1

    .line 77
    :try_start_7
    sget-object v0, Lcom/cleanmaster/bitmapcache/MyVolley;->sInstance:Lcom/cleanmaster/bitmapcache/MyVolley;

    if-nez v0, :cond_12

    .line 78
    new-instance v0, Lcom/cleanmaster/bitmapcache/MyVolley;

    invoke-direct {v0}, Lcom/cleanmaster/bitmapcache/MyVolley;-><init>()V

    sput-object v0, Lcom/cleanmaster/bitmapcache/MyVolley;->sInstance:Lcom/cleanmaster/bitmapcache/MyVolley;

    .line 80
    :cond_12
    monitor-exit v1
    :try_end_13
    .catchall {:try_start_7 .. :try_end_13} :catchall_16

    .line 82
    :cond_13
    sget-object v0, Lcom/cleanmaster/bitmapcache/MyVolley;->sInstance:Lcom/cleanmaster/bitmapcache/MyVolley;

    return-object v0

    .line 80
    :catchall_16
    move-exception v0

    :try_start_17
    monitor-exit v1
    :try_end_18
    .catchall {:try_start_17 .. :try_end_18} :catchall_16

    throw v0
.end method

.method private declared-synchronized init(Landroid/content/Context;)V
    .registers 6

    .prologue
    .line 86
    monitor-enter p0

    :try_start_1
    invoke-static {}, Lcom/cleanmaster/bitmapcache/DbPath;->getPictureParentDir()Ljava/lang/String;

    move-result-object v1

    .line 88
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_8a

    .line 89
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 96
    :cond_10
    const-string/jumbo v1, "volley/0"
    :try_end_13
    .catchall {:try_start_1 .. :try_end_13} :catchall_94

    .line 98
    :try_start_13
    invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v1

    .line 99
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v2, v1, v3}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v2

    .line 100
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v3, "/"

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, v2, Landroid/content/pm/PackageInfo;->versionCode:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
    :try_end_38
    .catch Ljava/lang/Throwable; {:try_start_13 .. :try_end_38} :catch_97
    .catchall {:try_start_13 .. :try_end_38} :catchall_94

    .line 105
    :goto_38
    :try_start_38
    new-instance v1, Lcom/android/volley/toolbox/HurlStack;

    invoke-direct {v1}, Lcom/android/volley/toolbox/HurlStack;-><init>()V

    .line 112
    new-instance v2, Lcom/android/volley/toolbox/BasicNetwork;

    invoke-direct {v2, v1}, Lcom/android/volley/toolbox/BasicNetwork;-><init>(Lcom/android/volley/toolbox/HttpStack;)V

    .line 114
    iget-object v1, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mDiskCache:Lcom/android/volley/Cache;

    if-nez v1, :cond_4f

    .line 115
    new-instance v1, Lcom/android/volley/toolbox/DiskBasedCache;

    const/high16 v3, 0x6400000

    invoke-direct {v1, v0, v3}, Lcom/android/volley/toolbox/DiskBasedCache;-><init>(Ljava/io/File;I)V

    iput-object v1, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mDiskCache:Lcom/android/volley/Cache;

    .line 118
    :cond_4f
    new-instance v0, Lcom/android/volley/RequestQueue;

    iget-object v1, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mDiskCache:Lcom/android/volley/Cache;

    invoke-direct {v0, v1, v2}, Lcom/android/volley/RequestQueue;-><init>(Lcom/android/volley/Cache;Lcom/android/volley/Network;)V

    iput-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mRequestQueue:Lcom/android/volley/RequestQueue;

    .line 119
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mRequestQueue:Lcom/android/volley/RequestQueue;

    invoke-virtual {v0}, Lcom/android/volley/RequestQueue;->start()V

    .line 121
    const-string v0, "activity"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/ActivityManager;

    .line 122
    invoke-virtual {v0}, Landroid/app/ActivityManager;->getMemoryClass()I

    move-result v0

    .line 124
    const/high16 v1, 0x100000

    mul-int/2addr v0, v1

    div-int/lit8 v0, v0, 0x8

    .line 126
    sget v1, Lcom/cleanmaster/bitmapcache/MyVolley;->sCacheSize:I

    if-eqz v1, :cond_76

    sget v1, Lcom/cleanmaster/bitmapcache/MyVolley;->sCacheSize:I

    if-le v1, v0, :cond_91

    :cond_76
    :goto_76
    sput v0, Lcom/cleanmaster/bitmapcache/MyVolley;->sCacheSize:I

    .line 128
    new-instance v0, Lcom/android/volley/toolbox/ImageLoader;

    iget-object v1, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mRequestQueue:Lcom/android/volley/RequestQueue;

    new-instance v2, Lcom/cleanmaster/bitmapcache/MyVolley$MyBitmapLruCache;

    sget v3, Lcom/cleanmaster/bitmapcache/MyVolley;->sCacheSize:I

    invoke-direct {v2, p0, v3}, Lcom/cleanmaster/bitmapcache/MyVolley$MyBitmapLruCache;-><init>(Lcom/cleanmaster/bitmapcache/MyVolley;I)V

    invoke-direct {v0, v1, v2}, Lcom/android/volley/toolbox/ImageLoader;-><init>(Lcom/android/volley/RequestQueue;Lcom/android/volley/toolbox/ImageLoader$ImageCache;)V

    iput-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mImageLoader:Lcom/android/volley/toolbox/ImageLoader;
    :try_end_88
    .catchall {:try_start_38 .. :try_end_88} :catchall_94

    .line 129
    :goto_88
    monitor-exit p0

    return-void

    .line 91
    :cond_8a
    :try_start_8a
    invoke-direct {p0, p1}, Lcom/cleanmaster/bitmapcache/MyVolley;->getCacheDir(Landroid/content/Context;)Ljava/io/File;

    move-result-object v0

    .line 92
    if-nez v0, :cond_10

    goto :goto_88

    .line 126
    :cond_91
    sget v0, Lcom/cleanmaster/bitmapcache/MyVolley;->sCacheSize:I
    :try_end_93
    .catchall {:try_start_8a .. :try_end_93} :catchall_94

    goto :goto_76

    .line 86
    :catchall_94
    move-exception v0

    monitor-exit p0

    throw v0

    .line 101
    :catch_97
    move-exception v1

    goto :goto_38
.end method

.method private isMainThread()Z
    .registers 3

    .prologue
    .line 290
    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    if-ne v0, v1, :cond_c

    const/4 v0, 0x1

    :goto_b
    return v0

    :cond_c
    const/4 v0, 0x0

    goto :goto_b
.end method

.method private release()V
    .registers 4

    .prologue
    const/4 v2, 0x0

    .line 136
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mRequestQueue:Lcom/android/volley/RequestQueue;

    if-eqz v0, :cond_c

    .line 137
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mRequestQueue:Lcom/android/volley/RequestQueue;

    invoke-virtual {v0}, Lcom/android/volley/RequestQueue;->stop()V

    .line 138
    iput-object v2, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mRequestQueue:Lcom/android/volley/RequestQueue;

    .line 141
    :cond_c
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mImageLoader:Lcom/android/volley/toolbox/ImageLoader;

    if-eqz v0, :cond_1e

    .line 142
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mImageLoader:Lcom/android/volley/toolbox/ImageLoader;

    invoke-virtual {v0}, Lcom/android/volley/toolbox/ImageLoader;->getImageCache()Lcom/android/volley/toolbox/ImageLoader$ImageCache;

    move-result-object v0

    check-cast v0, Lcom/cleanmaster/bitmapcache/BitmapLruCache;

    .line 143
    const/4 v1, -0x1

    invoke-virtual {v0, v1}, Lcom/cleanmaster/bitmapcache/BitmapLruCache;->trimToSize(I)V

    .line 144
    iput-object v2, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mImageLoader:Lcom/android/volley/toolbox/ImageLoader;

    .line 147
    :cond_1e
    sput-object v2, Lcom/cleanmaster/bitmapcache/MyVolley;->sInstance:Lcom/cleanmaster/bitmapcache/MyVolley;

    .line 148
    return-void
.end method

.method public static resSetMemCache(Landroid/content/Context;I)V
    .registers 4

    .prologue
    .line 58
    sget v0, Lcom/cleanmaster/bitmapcache/MyVolley;->sCacheSize:I

    if-eq v0, p1, :cond_16

    .line 59
    sput p1, Lcom/cleanmaster/bitmapcache/MyVolley;->sCacheSize:I

    .line 60
    const-class v1, Lcom/cleanmaster/bitmapcache/MyVolley;

    monitor-enter v1

    .line 61
    :try_start_9
    sget-object v0, Lcom/cleanmaster/bitmapcache/MyVolley;->sInstance:Lcom/cleanmaster/bitmapcache/MyVolley;

    if-eqz v0, :cond_12

    .line 62
    sget-object v0, Lcom/cleanmaster/bitmapcache/MyVolley;->sInstance:Lcom/cleanmaster/bitmapcache/MyVolley;

    invoke-direct {v0}, Lcom/cleanmaster/bitmapcache/MyVolley;->release()V

    .line 64
    :cond_12
    monitor-exit v1
    :try_end_13
    .catchall {:try_start_9 .. :try_end_13} :catchall_17

    .line 65
    invoke-static {}, Lcom/cleanmaster/bitmapcache/MyVolley;->getInstance()Lcom/cleanmaster/bitmapcache/MyVolley;

    .line 67
    :cond_16
    return-void

    .line 64
    :catchall_17
    move-exception v0

    :try_start_18
    monitor-exit v1
    :try_end_19
    .catchall {:try_start_18 .. :try_end_19} :catchall_17

    throw v0
.end method

.method public static setAppContext(Landroid/content/Context;)V
    .registers 1

    .prologue
    .line 54
    sput-object p0, Lcom/cleanmaster/bitmapcache/MyVolley;->ctx:Landroid/content/Context;

    .line 55
    return-void
.end method


# virtual methods
.method public declared-synchronized getDiskBasedCache()Lcom/android/volley/toolbox/DiskBasedCache;
    .registers 2

    .prologue
    .line 184
    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mRequestQueue:Lcom/android/volley/RequestQueue;

    invoke-virtual {v0}, Lcom/android/volley/RequestQueue;->getCache()Lcom/android/volley/Cache;

    move-result-object v0

    check-cast v0, Lcom/android/volley/toolbox/DiskBasedCache;
    :try_end_9
    .catchall {:try_start_1 .. :try_end_9} :catchall_b

    monitor-exit p0

    return-object v0

    :catchall_b
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized getFilePahtByUrl(Ljava/lang/String;)Ljava/lang/String;
    .registers 4

    .prologue
    .line 196
    monitor-enter p0

    :try_start_1
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_23

    invoke-virtual {p0}, Lcom/cleanmaster/bitmapcache/MyVolley;->getDiskBasedCache()Lcom/android/volley/toolbox/DiskBasedCache;

    move-result-object v0

    if-eqz v0, :cond_23

    .line 197
    invoke-virtual {p0}, Lcom/cleanmaster/bitmapcache/MyVolley;->getDiskBasedCache()Lcom/android/volley/toolbox/DiskBasedCache;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/android/volley/toolbox/DiskBasedCache;->getFileForKey(Ljava/lang/String;)Ljava/io/File;

    move-result-object v0

    .line 198
    if-eqz v0, :cond_23

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_23

    .line 199
    invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
    :try_end_20
    .catchall {:try_start_1 .. :try_end_20} :catchall_26

    move-result-object v0

    .line 202
    :goto_21
    monitor-exit p0

    return-object v0

    :cond_23
    :try_start_23
    const-string v0, ""
    :try_end_25
    .catchall {:try_start_23 .. :try_end_25} :catchall_26

    goto :goto_21

    .line 196
    :catchall_26
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized getImageLoader()Lcom/android/volley/toolbox/ImageLoader;
    .registers 3

    .prologue
    .line 206
    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mImageLoader:Lcom/android/volley/toolbox/ImageLoader;

    if-eqz v0, :cond_9

    .line 207
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mImageLoader:Lcom/android/volley/toolbox/ImageLoader;
    :try_end_7
    .catchall {:try_start_1 .. :try_end_7} :catchall_11

    monitor-exit p0

    return-object v0

    .line 209
    :cond_9
    :try_start_9
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "ImageLoader not initialized"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_11
    .catchall {:try_start_9 .. :try_end_11} :catchall_11

    .line 206
    :catchall_11
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public getRequestQueue()Lcom/android/volley/RequestQueue;
    .registers 2

    .prologue
    .line 132
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mRequestQueue:Lcom/android/volley/RequestQueue;

    return-object v0
.end method

.method public declared-synchronized isCached(Ljava/lang/String;)Z
    .registers 3

    .prologue
    .line 188
    monitor-enter p0

    :try_start_1
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1b

    invoke-virtual {p0}, Lcom/cleanmaster/bitmapcache/MyVolley;->getDiskBasedCache()Lcom/android/volley/toolbox/DiskBasedCache;

    move-result-object v0

    if-eqz v0, :cond_1b

    .line 189
    invoke-virtual {p0}, Lcom/cleanmaster/bitmapcache/MyVolley;->getDiskBasedCache()Lcom/android/volley/toolbox/DiskBasedCache;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/android/volley/toolbox/DiskBasedCache;->getFileForKey(Ljava/lang/String;)Ljava/io/File;

    move-result-object v0

    .line 190
    invoke-virtual {v0}, Ljava/io/File;->exists()Z
    :try_end_18
    .catchall {:try_start_1 .. :try_end_18} :catchall_1d

    move-result v0

    .line 192
    :goto_19
    monitor-exit p0

    return v0

    :cond_1b
    const/4 v0, 0x0

    goto :goto_19

    .line 188
    :catchall_1d
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized loadImage(Landroid/widget/ImageView;Ljava/lang/String;)V
    .registers 7

    .prologue
    .line 273
    monitor-enter p0

    if-eqz p2, :cond_5

    if-nez p1, :cond_7

    .line 287
    :cond_5
    :goto_5
    monitor-exit p0

    return-void

    .line 276
    :cond_7
    :try_start_7
    invoke-virtual {p0}, Lcom/cleanmaster/bitmapcache/MyVolley;->getImageLoader()Lcom/android/volley/toolbox/ImageLoader;

    move-result-object v0

    new-instance v1, Lcom/cleanmaster/bitmapcache/MyVolley$3;

    invoke-direct {v1, p0, p1}, Lcom/cleanmaster/bitmapcache/MyVolley$3;-><init>(Lcom/cleanmaster/bitmapcache/MyVolley;Landroid/widget/ImageView;)V

    .line 286
    invoke-virtual {p1}, Landroid/widget/ImageView;->getWidth()I

    move-result v2

    invoke-virtual {p1}, Landroid/widget/ImageView;->getHeight()I

    move-result v3

    .line 276
    invoke-virtual {v0, p2, v1, v2, v3}, Lcom/android/volley/toolbox/ImageLoader;->get(Ljava/lang/String;Lcom/android/volley/toolbox/ImageLoader$ImageListener;II)Lcom/android/volley/toolbox/ImageLoader$ImageContainer;
    :try_end_1b
    .catchall {:try_start_7 .. :try_end_1b} :catchall_1c

    goto :goto_5

    .line 273
    :catchall_1c
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized preLoadImage(Ljava/lang/String;)V
    .registers 3

    .prologue
    .line 256
    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mDefaultImageListener:Lcom/android/volley/toolbox/ImageLoader$ImageListener;

    invoke-virtual {p0, p1, v0}, Lcom/cleanmaster/bitmapcache/MyVolley;->preLoadImageIntoDiskOnly(Ljava/lang/String;Lcom/android/volley/toolbox/ImageLoader$ImageListener;)V
    :try_end_6
    .catchall {:try_start_1 .. :try_end_6} :catchall_8

    .line 257
    monitor-exit p0

    return-void

    .line 256
    :catchall_8
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized preLoadImage(Ljava/lang/String;Lcom/android/volley/toolbox/ImageLoader$ImageListener;)V
    .registers 4

    .prologue
    .line 264
    monitor-enter p0

    :try_start_1
    invoke-virtual {p0, p1, p2}, Lcom/cleanmaster/bitmapcache/MyVolley;->preLoadImageIntoDiskOnly(Ljava/lang/String;Lcom/android/volley/toolbox/ImageLoader$ImageListener;)V
    :try_end_4
    .catchall {:try_start_1 .. :try_end_4} :catchall_6

    .line 265
    monitor-exit p0

    return-void

    .line 264
    :catchall_6
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized preLoadImageIntoDiskOnly(Ljava/lang/String;)V
    .registers 3

    .prologue
    .line 269
    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mDefaultImageListener:Lcom/android/volley/toolbox/ImageLoader$ImageListener;

    invoke-virtual {p0, p1, v0}, Lcom/cleanmaster/bitmapcache/MyVolley;->preLoadImageIntoDiskOnly(Ljava/lang/String;Lcom/android/volley/toolbox/ImageLoader$ImageListener;)V
    :try_end_6
    .catchall {:try_start_1 .. :try_end_6} :catchall_8

    .line 270
    monitor-exit p0

    return-void

    .line 269
    :catchall_8
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized preLoadImageIntoDiskOnly(Ljava/lang/String;Lcom/android/volley/toolbox/ImageLoader$ImageListener;)V
    .registers 5

    .prologue
    .line 225
    monitor-enter p0

    if-nez p1, :cond_5

    .line 249
    :goto_3
    monitor-exit p0

    return-void

    .line 229
    :cond_5
    :try_start_5
    invoke-direct {p0}, Lcom/cleanmaster/bitmapcache/MyVolley;->isMainThread()Z

    move-result v0

    if-eqz v0, :cond_23

    .line 230
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mImageLoader:Lcom/android/volley/toolbox/ImageLoader;

    invoke-virtual {v0}, Lcom/android/volley/toolbox/ImageLoader;->getImageCache()Lcom/android/volley/toolbox/ImageLoader$ImageCache;

    move-result-object v0

    check-cast v0, Lcom/cleanmaster/bitmapcache/MyVolley$MyBitmapLruCache;

    invoke-virtual {v0, p1}, Lcom/cleanmaster/bitmapcache/MyVolley$MyBitmapLruCache;->addSkipUrl(Ljava/lang/String;)V

    .line 231
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mImageLoader:Lcom/android/volley/toolbox/ImageLoader;

    if-nez p2, :cond_1c

    iget-object p2, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mDefaultImageListener:Lcom/android/volley/toolbox/ImageLoader$ImageListener;

    :cond_1c
    invoke-virtual {v0, p1, p2}, Lcom/android/volley/toolbox/ImageLoader;->get(Ljava/lang/String;Lcom/android/volley/toolbox/ImageLoader$ImageListener;)Lcom/android/volley/toolbox/ImageLoader$ImageContainer;
    :try_end_1f
    .catchall {:try_start_5 .. :try_end_1f} :catchall_20

    goto :goto_3

    .line 225
    :catchall_20
    move-exception v0

    monitor-exit p0

    throw v0

    .line 233
    :cond_23
    :try_start_23
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mMainHandler:Landroid/os/Handler;

    if-nez v0, :cond_32

    .line 234
    new-instance v0, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    iput-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mMainHandler:Landroid/os/Handler;

    .line 236
    :cond_32
    iget-object v0, p0, Lcom/cleanmaster/bitmapcache/MyVolley;->mMainHandler:Landroid/os/Handler;

    new-instance v1, Lcom/cleanmaster/bitmapcache/MyVolley$2;

    invoke-direct {v1, p0, p1, p2}, Lcom/cleanmaster/bitmapcache/MyVolley$2;-><init>(Lcom/cleanmaster/bitmapcache/MyVolley;Ljava/lang/String;Lcom/android/volley/toolbox/ImageLoader$ImageListener;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
    :try_end_3c
    .catchall {:try_start_23 .. :try_end_3c} :catchall_20

    goto :goto_3
.end method