m.smali
.class public final Lcom/masala/share/stat/m;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static a:J = -0x1L
.field public static b:J = -0x1L
.field public static c:J = -0x1L
.field public static d:J = -0x1L
.field private static e:Ljava/util/concurrent/ConcurrentHashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/ConcurrentHashMap<",
"Ljava/lang/Integer;",
"Lcom/masala/share/stat/m;",
">;"
}
.end annotation
.end field
.field private static volatile f:I
# instance fields
.field private g:Ljava/util/HashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private h:Z
.field private i:J
.field private j:I
.field private k:B
.field private l:J
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 86
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
sput-object v0, Lcom/masala/share/stat/m;->e:Ljava/util/concurrent/ConcurrentHashMap;
const/4 v0, 0x0
.line 87
sput v0, Lcom/masala/share/stat/m;->f:I
return-void
.end method
.method private constructor <init>(IB)V
.registers 5
.line 111
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 89
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/masala/share/stat/m;->g:Ljava/util/HashMap;
const/4 v0, 0x0
.line 90
iput-boolean v0, p0, Lcom/masala/share/stat/m;->h:Z
const-wide/16 v0, 0x0
.line 94
iput-wide v0, p0, Lcom/masala/share/stat/m;->l:J
.line 112
iput p1, p0, Lcom/masala/share/stat/m;->j:I
.line 113
iput-byte p2, p0, Lcom/masala/share/stat/m;->k:B
return-void
.end method
.method public static a(IB)Lcom/masala/share/stat/m;
.registers 5
.line 102
sget-object v0, Lcom/masala/share/stat/m;->e:Ljava/util/concurrent/ConcurrentHashMap;
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
new-instance v2, Lcom/masala/share/stat/m;
invoke-direct {v2, p0, p1}, Lcom/masala/share/stat/m;-><init>(IB)V
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/ConcurrentHashMap;->putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 103
sget-object v0, Lcom/masala/share/stat/m;->e:Ljava/util/concurrent/ConcurrentHashMap;
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/masala/share/stat/m;
const/4 v1, 0x1
if-ne p1, v1, :cond_25
.line 104
sget p1, Lcom/masala/share/stat/m;->f:I
if-nez p1, :cond_25
.line 105
sput p0, Lcom/masala/share/stat/m;->f:I
.line 106
iput-boolean v1, v0, Lcom/masala/share/stat/m;->h:Z
:cond_25
return-object v0
.end method
.method private a(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/m;
.registers 4
.line 117
iget-object v0, p0, Lcom/masala/share/stat/m;->g:Ljava/util/HashMap;
invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
invoke-virtual {v0, p1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-object p0
.end method
.method static synthetic a(Lcom/masala/share/stat/m;Ljava/util/HashMap;)V
.registers 6
.line 1219
iget-byte v0, p0, Lcom/masala/share/stat/m;->k:B
invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v0
const-string v1, "type"
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 1220
iget v0, p0, Lcom/masala/share/stat/m;->j:I
invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v0
const-string v1, "seqid"
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 1221
iget-boolean v0, p0, Lcom/masala/share/stat/m;->h:Z
if-eqz v0, :cond_1d
const-string v0, "1"
goto :goto_1f
:cond_1d
const-string v0, "0"
:goto_1f
const-string v1, "is_first_pull"
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 1233
invoke-static {}, Lsg/bigo/common/p;->b()Z
move-result v0
if-nez v0, :cond_2d
const-string v0, "unavailable"
goto :goto_4b
.line 1236
:cond_2d
invoke-static {}, Lsg/bigo/common/p;->i()I
move-result v0
const/4 v1, 0x4
if-ne v0, v1, :cond_37
const-string v0, "4g"
goto :goto_4b
:cond_37
const/4 v1, 0x3
if-ne v0, v1, :cond_3d
const-string v0, "3g"
goto :goto_4b
:cond_3d
const/4 v1, 0x2
if-ne v0, v1, :cond_43
const-string v0, "2g"
goto :goto_4b
:cond_43
const/4 v1, 0x1
if-ne v0, v1, :cond_49
const-string v0, "wifi"
goto :goto_4b
:cond_49
const-string v0, "other"
:goto_4b
const-string v1, "net"
.line 1222
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 1223
invoke-static {}, Lcom/masala/share/proto/n;->b()I
move-result v0
invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v0
const-string v1, "linkd"
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 1224
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v0
invoke-static {}, Lcom/masala/share/proto/n;->d()J
move-result-wide v2
sub-long/2addr v0, v2
iget-wide v2, p0, Lcom/masala/share/stat/m;->l:J
sub-long/2addr v0, v2
invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v0
const-string v1, "linkd_connect_ts"
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 1225
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v0
invoke-static {}, Lcom/masala/share/proto/n;->e()J
move-result-wide v2
sub-long/2addr v0, v2
iget-wide v2, p0, Lcom/masala/share/stat/m;->l:J
sub-long/2addr v0, v2
invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v0
const-string v1, "linkd_connected_ts"
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 1226
sget-wide v0, Lcom/masala/share/stat/m;->d:J
iget-wide v2, p0, Lcom/masala/share/stat/m;->l:J
sub-long/2addr v0, v2
invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v0
const-string v1, "last_http_req_ts"
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 1227
sget-wide v0, Lcom/masala/share/stat/m;->c:J
iget-wide v2, p0, Lcom/masala/share/stat/m;->l:J
sub-long/2addr v0, v2
invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v0
const-string v1, "last_http_suc_ts"
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 1228
sget-wide v0, Lcom/masala/share/stat/m;->a:J
iget-wide v2, p0, Lcom/masala/share/stat/m;->l:J
sub-long/2addr v0, v2
invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v0
const-string v1, "start_up_ts"
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 1229
sget-wide v0, Lcom/masala/share/stat/m;->b:J
iget-wide v2, p0, Lcom/masala/share/stat/m;->l:J
sub-long/2addr v0, v2
invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object p0
const-string v0, "main_create_ts"
invoke-virtual {p1, v0, p0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method
.method private e()V
.registers 6
.line 132
new-instance v0, Ljava/util/HashMap;
iget-object v1, p0, Lcom/masala/share/stat/m;->g:Ljava/util/HashMap;
invoke-direct {v0, v1}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
.line 133
iget-object v1, p0, Lcom/masala/share/stat/m;->g:Ljava/util/HashMap;
invoke-virtual {v1}, Ljava/util/HashMap;->clear()V
.line 135
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v1
iget-wide v3, p0, Lcom/masala/share/stat/m;->l:J
sub-long/2addr v1, v3
invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v1
const-string v2, "action_ts"
invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 1051
invoke-static {}, Lsg/bigo/core/task/a$a;->a()Lsg/bigo/core/task/a;
move-result-object v1
.line 138
sget-object v2, Lsg/bigo/core/task/b;->BACKGROUND:Lsg/bigo/core/task/b;
new-instance v3, Lcom/masala/share/stat/m$1;
invoke-direct {v3, p0, v0}, Lcom/masala/share/stat/m$1;-><init>(Lcom/masala/share/stat/m;Ljava/util/HashMap;)V
new-instance v0, Lcom/imo/android/imoim/feeds/g/a;
invoke-direct {v0}, Lcom/imo/android/imoim/feeds/g/a;-><init>()V
invoke-virtual {v1, v2, v3, v0}, Lsg/bigo/core/task/a;->a(Lsg/bigo/core/task/b;Ljava/lang/Runnable;Lsg/bigo/common/d/a;)Lbolts/e;
.line 147
iget v0, p0, Lcom/masala/share/stat/m;->j:I
const/4 v1, -0x1
if-ne v0, v1, :cond_37
.line 148
invoke-direct {p0}, Lcom/masala/share/stat/m;->f()V
:cond_37
return-void
.end method
.method private f()V
.registers 3
.line 211
sget-object v0, Lcom/masala/share/stat/m;->e:Ljava/util/concurrent/ConcurrentHashMap;
iget v1, p0, Lcom/masala/share/stat/m;->j:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public final a()V
.registers 3
const/4 v0, 0x0
.line 156
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
const-string v1, "action"
invoke-direct {p0, v1, v0}, Lcom/masala/share/stat/m;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/m;
move-result-object v0
.line 157
invoke-direct {v0}, Lcom/masala/share/stat/m;->e()V
return-void
.end method
.method public final a(II)V
.registers 8
const/4 v0, 0x2
.line 181
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
const-string v1, "action"
invoke-direct {p0, v1, v0}, Lcom/masala/share/stat/m;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/m;
move-result-object v0
.line 182
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v1
iget-wide v3, p0, Lcom/masala/share/stat/m;->i:J
sub-long/2addr v1, v3
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
const-string v2, "cost"
invoke-direct {v0, v2, v1}, Lcom/masala/share/stat/m;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/m;
move-result-object v0
.line 183
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
const-string v1, "res_code"
invoke-direct {v0, v1, p1}, Lcom/masala/share/stat/m;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/m;
move-result-object p1
.line 184
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
const-string v0, "res_list_size"
invoke-direct {p1, v0, p2}, Lcom/masala/share/stat/m;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/m;
move-result-object p1
.line 185
invoke-direct {p1}, Lcom/masala/share/stat/m;->e()V
.line 186
invoke-direct {p0}, Lcom/masala/share/stat/m;->f()V
return-void
.end method
.method public final a(ZJ)V
.registers 5
.line 204
iput-boolean p1, p0, Lcom/masala/share/stat/m;->h:Z
const/4 p1, 0x6
.line 205
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
const-string v0, "action"
invoke-direct {p0, v0, p1}, Lcom/masala/share/stat/m;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/m;
move-result-object p1
.line 206
invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p2
const-string p3, "cost"
invoke-direct {p1, p3, p2}, Lcom/masala/share/stat/m;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/m;
move-result-object p1
.line 207
invoke-direct {p1}, Lcom/masala/share/stat/m;->e()V
return-void
.end method
.method public final b()V
.registers 3
const/4 v0, 0x7
.line 164
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
const-string v1, "action"
invoke-direct {p0, v1, v0}, Lcom/masala/share/stat/m;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/m;
move-result-object v0
.line 165
invoke-direct {v0}, Lcom/masala/share/stat/m;->e()V
return-void
.end method
.method public final c()V
.registers 3
.line 172
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v0
iput-wide v0, p0, Lcom/masala/share/stat/m;->i:J
const/4 v0, 0x1
.line 173
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
const-string v1, "action"
invoke-direct {p0, v1, v0}, Lcom/masala/share/stat/m;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/m;
move-result-object v0
.line 174
invoke-direct {v0}, Lcom/masala/share/stat/m;->e()V
return-void
.end method
.method public final d()V
.registers 6
const/4 v0, 0x3
.line 193
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
const-string v1, "action"
invoke-direct {p0, v1, v0}, Lcom/masala/share/stat/m;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/m;
move-result-object v0
.line 194
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v1
iget-wide v3, p0, Lcom/masala/share/stat/m;->i:J
sub-long/2addr v1, v3
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
const-string v2, "cost"
invoke-direct {v0, v2, v1}, Lcom/masala/share/stat/m;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/masala/share/stat/m;
move-result-object v0
.line 195
invoke-direct {v0}, Lcom/masala/share/stat/m;->e()V
.line 196
invoke-direct {p0}, Lcom/masala/share/stat/m;->f()V
return-void
.end method