e.smali

.class public Lcom/xiaomi/push/e;
.super Ljava/lang/Object;


# direct methods
.method public static a()Z
    .registers 2

    :try_start_0
    invoke-static {}, Landroid/os/Environment;->getExternalStorageState()Ljava/lang/String;

    move-result-object v0

    const-string v1, "removed"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_9} :catch_b

    move-result v0

    :goto_a
    return v0

    :catch_b
    move-exception v0

    invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/Throwable;)V

    const/4 v0, 0x1

    goto :goto_a
.end method

.method public static b()Z
    .registers 3

    const/4 v0, 0x1

    :try_start_1
    invoke-static {}, Landroid/os/Environment;->getExternalStorageState()Ljava/lang/String;

    move-result-object v1

    const-string v2, "mounted"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
    :try_end_a
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_a} :catch_10

    move-result v1

    if-nez v1, :cond_e

    :goto_d
    return v0

    :cond_e
    const/4 v0, 0x0

    goto :goto_d

    :catch_10
    move-exception v1

    invoke-static {v1}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/Throwable;)V

    goto :goto_d
.end method

.method public static c()Z
    .registers 4

    invoke-static {}, Lcom/xiaomi/push/e;->e()J

    move-result-wide v0

    const-wide/32 v2, 0x19000

    cmp-long v0, v0, v2

    if-gtz v0, :cond_d

    const/4 v0, 0x1

    :goto_c
    return v0

    :cond_d
    const/4 v0, 0x0

    goto :goto_c
.end method

.method public static d()Z
    .registers 1

    invoke-static {}, Lcom/xiaomi/push/e;->b()Z

    move-result v0

    if-nez v0, :cond_14

    invoke-static {}, Lcom/xiaomi/push/e;->c()Z

    move-result v0

    if-nez v0, :cond_14

    invoke-static {}, Lcom/xiaomi/push/e;->a()Z

    move-result v0

    if-nez v0, :cond_14

    const/4 v0, 0x1

    :goto_13
    return v0

    :cond_14
    const/4 v0, 0x0

    goto :goto_13
.end method

.method public static e()J
    .registers 6

    const-wide/16 v0, 0x0

    invoke-static {}, Lcom/xiaomi/push/e;->b()Z

    move-result v2

    if-eqz v2, :cond_9

    :cond_8
    :goto_8
    return-wide v0

    :cond_9
    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v2

    if-eqz v2, :cond_8

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

    move-result-object v3

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

    move-result v3

    if-nez v3, :cond_8

    :try_start_19
    new-instance v3, Landroid/os/StatFs;

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

    move-result-object v2

    invoke-direct {v3, v2}, Landroid/os/StatFs;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3}, Landroid/os/StatFs;->getBlockSize()I

    move-result v2

    int-to-long v4, v2

    invoke-virtual {v3}, Landroid/os/StatFs;->getAvailableBlocks()I
    :try_end_2a
    .catch Ljava/lang/Throwable; {:try_start_19 .. :try_end_2a} :catch_31

    move-result v0

    int-to-long v0, v0

    const-wide/16 v2, 0x4

    sub-long/2addr v0, v2

    mul-long/2addr v0, v4

    goto :goto_8

    :catch_31
    move-exception v2

    goto :goto_8
.end method