b$1.smali

.class final Lcom/masala/share/stat/a/b$1;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/masala/share/stat/a/b;->a()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


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

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

    return-void
.end method


# virtual methods
.method public final run()V
    .registers 16

    .line 43
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    const/4 v0, 0x0

    .line 1411
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    const/4 v1, 0x1

    const-string v2, "key_report_storage_time"

    invoke-static {v2, v0, v1}, Lcom/masala/share/utils/d/d;->b(Ljava/lang/String;Ljava/lang/Object;I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v3

    .line 45
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v0

    .line 46
    invoke-virtual {v0, v3, v4}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 48
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    .line 49
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v0

    .line 50
    invoke-virtual {v0, v3, v4}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 2407
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    invoke-static {v2, v0, v1}, Lcom/masala/share/utils/d/d;->a(Ljava/lang/String;Ljava/lang/Object;I)V

    const-wide/high16 v0, -0x4010000000000000L    # -1.0

    .line 57
    :try_start_34
    invoke-static {}, Lsg/bigo/common/aa;->a()Z

    move-result v2

    if-eqz v2, :cond_c0

    .line 58
    invoke-static {}, Lsg/bigo/common/a;->d()Landroid/content/Context;

    move-result-object v2

    .line 60
    invoke-static {}, Lsg/bigo/common/aa;->b()J

    move-result-wide v3

    invoke-static {v3, v4}, Lcom/masala/share/utils/s;->a(J)D

    move-result-wide v3
    :try_end_46
    .catch Ljava/lang/Exception; {:try_start_34 .. :try_end_46} :catch_c4

    .line 62
    :try_start_46
    invoke-static {}, Lsg/bigo/common/aa;->c()J

    move-result-wide v5

    invoke-static {v5, v6}, Lcom/masala/share/utils/s;->a(J)D

    move-result-wide v5
    :try_end_4e
    .catch Ljava/lang/Exception; {:try_start_46 .. :try_end_4e} :catch_bd

    .line 3074
    :try_start_4e
    invoke-static {}, Lcom/facebook/drawee/backends/pipeline/Fresco;->getImagePipelineFactory()Lcom/facebook/imagepipeline/core/ImagePipelineFactory;

    move-result-object v7

    invoke-virtual {v7}, Lcom/facebook/imagepipeline/core/ImagePipelineFactory;->getMainFileCache()Lcom/facebook/cache/disk/FileCache;

    move-result-object v7

    invoke-interface {v7}, Lcom/facebook/cache/disk/FileCache;->getSize()J

    move-result-wide v7

    .line 3075
    invoke-static {}, Lcom/facebook/drawee/backends/pipeline/Fresco;->getImagePipelineFactory()Lcom/facebook/imagepipeline/core/ImagePipelineFactory;

    move-result-object v9

    invoke-virtual {v9}, Lcom/facebook/imagepipeline/core/ImagePipelineFactory;->getSmallImageFileCache()Lcom/facebook/cache/disk/FileCache;

    move-result-object v9

    invoke-interface {v9}, Lcom/facebook/cache/disk/FileCache;->getSize()J

    move-result-wide v9

    add-long/2addr v7, v9

    .line 65
    invoke-static {v2}, Lcom/masala/share/utils/s;->a(Landroid/content/Context;)Ljava/io/File;

    move-result-object v2

    invoke-static {v2}, Lcom/masala/share/utils/s;->b(Ljava/io/File;)J

    move-result-wide v9

    add-long/2addr v7, v9

    .line 66
    invoke-static {}, Lcom/imo/android/imoim/feeds/g/d;->b()Ljava/io/File;

    move-result-object v2

    invoke-static {v2}, Lcom/masala/share/utils/s;->b(Ljava/io/File;)J

    move-result-wide v9

    add-long/2addr v7, v9

    new-instance v2, Ljava/io/File;

    new-instance v9, Ljava/lang/StringBuilder;

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

    const-string v10, "IMO videos"

    .line 3447
    invoke-static {v10}, Lcom/imo/android/imoim/managers/bu;->g(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 67
    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v10, Ljava/io/File;->separator:Ljava/lang/String;

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

    const-string v10, "trending_"

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

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

    move-result-object v9

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

    invoke-static {v2}, Lcom/masala/share/utils/s;->b(Ljava/io/File;)J

    move-result-wide v9

    add-long/2addr v7, v9

    .line 68
    invoke-static {v7, v8}, Lcom/masala/share/utils/s;->a(J)D

    move-result-wide v9
    :try_end_a3
    .catch Ljava/lang/Exception; {:try_start_4e .. :try_end_a3} :catch_ba

    .line 70
    :try_start_a3
    new-instance v2, Ljava/io/File;

    const-string v11, ""

    invoke-static {v11}, Lcom/imo/android/imoim/managers/bu;->g(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

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

    invoke-static {v2}, Lcom/masala/share/utils/s;->b(Ljava/io/File;)J

    move-result-wide v11

    add-long/2addr v7, v11

    .line 71
    invoke-static {v7, v8}, Lcom/masala/share/utils/s;->a(J)D

    move-result-wide v0
    :try_end_b7
    .catch Ljava/lang/Exception; {:try_start_a3 .. :try_end_b7} :catch_b8

    goto :goto_d1

    :catch_b8
    move-exception v2

    goto :goto_c8

    :catch_ba
    move-exception v2

    move-wide v9, v0

    goto :goto_c8

    :catch_bd
    move-exception v2

    move-wide v5, v0

    goto :goto_c7

    :cond_c0
    move-wide v2, v0

    move-wide v5, v2

    move-wide v9, v5

    goto :goto_d4

    :catch_c4
    move-exception v2

    move-wide v3, v0

    move-wide v5, v3

    :goto_c7
    move-wide v9, v5

    .line 76
    :goto_c8
    invoke-virtual {v2}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v2

    const-string v7, "StorageInfo"

    invoke-static {v7, v2}, Lsg/bigo/log/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :goto_d1
    move-wide v13, v0

    move-wide v0, v3

    move-wide v2, v13

    .line 79
    :goto_d4
    new-instance v4, Lcom/masala/share/stat/a/a;

    invoke-direct {v4}, Lcom/masala/share/stat/a/a;-><init>()V

    .line 80
    invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v0

    const-string v1, "ex_card_capacity"

    invoke-virtual {v4, v1, v0}, Lcom/masala/share/stat/a/a;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object v0

    .line 81
    invoke-static {v5, v6}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v1

    const-string v4, "ex_card_free_space"

    invoke-virtual {v0, v4, v1}, Lcom/masala/share/stat/LikeBaseReporter;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object v0

    .line 82
    invoke-static {v2, v3}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v1

    const-string v2, "ex_imo_caches_size"

    invoke-virtual {v0, v2, v1}, Lcom/masala/share/stat/LikeBaseReporter;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object v0

    .line 83
    invoke-static {v9, v10}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v1

    const-string v2, "ex_caches_size"

    invoke-virtual {v0, v2, v1}, Lcom/masala/share/stat/LikeBaseReporter;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object v0

    .line 84
    invoke-static {}, Lsg/bigo/common/a;->d()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/masala/share/utils/f;->g(Landroid/content/Context;)J

    move-result-wide v1

    const-wide/32 v3, 0x100000

    div-long/2addr v1, v3

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    const-string v2, "total_mem"

    invoke-virtual {v0, v2, v1}, Lcom/masala/share/stat/LikeBaseReporter;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object v0

    .line 85
    invoke-static {}, Lcom/masala/share/utils/f;->b()Z

    move-result v1

    if-eqz v1, :cond_120

    const-string v1, "2"

    goto :goto_122

    :cond_120
    const-string v1, "1"

    :goto_122
    const-string v2, "end_type"

    invoke-virtual {v0, v2, v1}, Lcom/masala/share/stat/LikeBaseReporter;->with(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/LikeBaseReporter;

    move-result-object v0

    .line 86
    invoke-virtual {v0}, Lcom/masala/share/stat/LikeBaseReporter;->report()V

    return-void
.end method