g.smali

.class public Lcom/tencent/wxop/stat/event/g;
.super Lcom/tencent/wxop/stat/event/e;


# static fields
.field private static m:Ljava/lang/String;

.field private static n:Ljava/lang/String;


# instance fields
.field private a:Lcom/tencent/wxop/stat/StatAppMonitor;


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

    const/4 v0, 0x0

    sput-object v0, Lcom/tencent/wxop/stat/event/g;->m:Ljava/lang/String;

    sput-object v0, Lcom/tencent/wxop/stat/event/g;->n:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;ILcom/tencent/wxop/stat/StatAppMonitor;Lcom/tencent/wxop/stat/StatSpecifyReportedInfo;)V
    .registers 6

    invoke-direct {p0, p1, p2, p4}, Lcom/tencent/wxop/stat/event/e;-><init>(Landroid/content/Context;ILcom/tencent/wxop/stat/StatSpecifyReportedInfo;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/tencent/wxop/stat/event/g;->a:Lcom/tencent/wxop/stat/StatAppMonitor;

    invoke-virtual {p3}, Lcom/tencent/wxop/stat/StatAppMonitor;->clone()Lcom/tencent/wxop/stat/StatAppMonitor;

    move-result-object v0

    iput-object v0, p0, Lcom/tencent/wxop/stat/event/g;->a:Lcom/tencent/wxop/stat/StatAppMonitor;

    return-void
.end method


# virtual methods
.method public a()Lcom/tencent/wxop/stat/event/EventType;
    .registers 2

    sget-object v0, Lcom/tencent/wxop/stat/event/EventType;->MONITOR_STAT:Lcom/tencent/wxop/stat/event/EventType;

    return-object v0
.end method

.method public a(Lorg/json/JSONObject;)Z
    .registers 6

    iget-object v0, p0, Lcom/tencent/wxop/stat/event/g;->a:Lcom/tencent/wxop/stat/StatAppMonitor;

    if-nez v0, :cond_6

    const/4 v0, 0x0

    :goto_5
    return v0

    :cond_6
    const-string v0, "na"

    iget-object v1, p0, Lcom/tencent/wxop/stat/event/g;->a:Lcom/tencent/wxop/stat/StatAppMonitor;

    invoke-virtual {v1}, Lcom/tencent/wxop/stat/StatAppMonitor;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v0, "rq"

    iget-object v1, p0, Lcom/tencent/wxop/stat/event/g;->a:Lcom/tencent/wxop/stat/StatAppMonitor;

    invoke-virtual {v1}, Lcom/tencent/wxop/stat/StatAppMonitor;->getReqSize()J

    move-result-wide v2

    invoke-virtual {p1, v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string v0, "rp"

    iget-object v1, p0, Lcom/tencent/wxop/stat/event/g;->a:Lcom/tencent/wxop/stat/StatAppMonitor;

    invoke-virtual {v1}, Lcom/tencent/wxop/stat/StatAppMonitor;->getRespSize()J

    move-result-wide v2

    invoke-virtual {p1, v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string v0, "rt"

    iget-object v1, p0, Lcom/tencent/wxop/stat/event/g;->a:Lcom/tencent/wxop/stat/StatAppMonitor;

    invoke-virtual {v1}, Lcom/tencent/wxop/stat/StatAppMonitor;->getResultType()I

    move-result v1

    invoke-virtual {p1, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "tm"

    iget-object v1, p0, Lcom/tencent/wxop/stat/event/g;->a:Lcom/tencent/wxop/stat/StatAppMonitor;

    invoke-virtual {v1}, Lcom/tencent/wxop/stat/StatAppMonitor;->getMillisecondsConsume()J

    move-result-wide v2

    invoke-virtual {p1, v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    const-string v0, "rc"

    iget-object v1, p0, Lcom/tencent/wxop/stat/event/g;->a:Lcom/tencent/wxop/stat/StatAppMonitor;

    invoke-virtual {v1}, Lcom/tencent/wxop/stat/StatAppMonitor;->getReturnCode()I

    move-result v1

    invoke-virtual {p1, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v0, "sp"

    iget-object v1, p0, Lcom/tencent/wxop/stat/event/g;->a:Lcom/tencent/wxop/stat/StatAppMonitor;

    invoke-virtual {v1}, Lcom/tencent/wxop/stat/StatAppMonitor;->getSampling()I

    move-result v1

    invoke-virtual {p1, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    sget-object v0, Lcom/tencent/wxop/stat/event/g;->n:Ljava/lang/String;

    if-nez v0, :cond_5f

    iget-object v0, p0, Lcom/tencent/wxop/stat/event/g;->l:Landroid/content/Context;

    invoke-static {v0}, Lcom/tencent/wxop/stat/common/l;->l(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/tencent/wxop/stat/event/g;->n:Ljava/lang/String;

    :cond_5f
    const-string v0, "av"

    sget-object v1, Lcom/tencent/wxop/stat/event/g;->n:Ljava/lang/String;

    invoke-static {p1, v0, v1}, Lcom/tencent/wxop/stat/common/r;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/String;)V

    sget-object v0, Lcom/tencent/wxop/stat/event/g;->m:Ljava/lang/String;

    if-nez v0, :cond_72

    iget-object v0, p0, Lcom/tencent/wxop/stat/event/g;->l:Landroid/content/Context;

    invoke-static {v0}, Lcom/tencent/wxop/stat/common/l;->g(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/tencent/wxop/stat/event/g;->m:Ljava/lang/String;

    :cond_72
    const-string v0, "op"

    sget-object v1, Lcom/tencent/wxop/stat/event/g;->m:Ljava/lang/String;

    invoke-static {p1, v0, v1}, Lcom/tencent/wxop/stat/common/r;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/String;)V

    const-string v0, "cn"

    iget-object v1, p0, Lcom/tencent/wxop/stat/event/g;->l:Landroid/content/Context;

    invoke-static {v1}, Lcom/tencent/wxop/stat/a;->a(Landroid/content/Context;)Lcom/tencent/wxop/stat/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/tencent/wxop/stat/a;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const/4 v0, 0x1

    goto/16 :goto_5
.end method