aq.smali

.class Lcom/tencent/wxop/stat/aq;
.super Ljava/lang/Object;


# static fields
.field private static volatile f:J


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

.field private b:Lcom/tencent/wxop/stat/StatReportStrategy;

.field private c:Z

.field private d:Landroid/content/Context;

.field private e:J


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

    const-wide/16 v0, 0x0

    sput-wide v0, Lcom/tencent/wxop/stat/aq;->f:J

    return-void
.end method

.method public constructor <init>(Lcom/tencent/wxop/stat/event/e;)V
    .registers 4

    const/4 v1, 0x0

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

    iput-object v1, p0, Lcom/tencent/wxop/stat/aq;->b:Lcom/tencent/wxop/stat/StatReportStrategy;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/tencent/wxop/stat/aq;->c:Z

    iput-object v1, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

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

    move-result-wide v0

    iput-wide v0, p0, Lcom/tencent/wxop/stat/aq;->e:J

    iput-object p1, p0, Lcom/tencent/wxop/stat/aq;->a:Lcom/tencent/wxop/stat/event/e;

    invoke-static {}, Lcom/tencent/wxop/stat/StatConfig;->getStatSendStrategy()Lcom/tencent/wxop/stat/StatReportStrategy;

    move-result-object v0

    iput-object v0, p0, Lcom/tencent/wxop/stat/aq;->b:Lcom/tencent/wxop/stat/StatReportStrategy;

    invoke-virtual {p1}, Lcom/tencent/wxop/stat/event/e;->f()Z

    move-result v0

    iput-boolean v0, p0, Lcom/tencent/wxop/stat/aq;->c:Z

    invoke-virtual {p1}, Lcom/tencent/wxop/stat/event/e;->e()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

    return-void
.end method

.method static synthetic a(Lcom/tencent/wxop/stat/aq;)Landroid/content/Context;
    .registers 2

    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

    return-object v0
.end method

.method private a(Lcom/tencent/wxop/stat/h;)V
    .registers 4

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

    move-result-object v0

    invoke-static {v0}, Lcom/tencent/wxop/stat/i;->b(Landroid/content/Context;)Lcom/tencent/wxop/stat/i;

    move-result-object v0

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

    invoke-virtual {v0, v1, p1}, Lcom/tencent/wxop/stat/i;->a(Lcom/tencent/wxop/stat/event/e;Lcom/tencent/wxop/stat/h;)V

    return-void
.end method

.method static synthetic b(Lcom/tencent/wxop/stat/aq;)Lcom/tencent/wxop/stat/event/e;
    .registers 2

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

    return-object v0
.end method

.method private b()V
    .registers 9

    const-wide/16 v6, 0x0

    const/4 v5, 0x1

    const/4 v4, 0x0

    const/4 v3, 0x0

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

    invoke-virtual {v0}, Lcom/tencent/wxop/stat/event/e;->d()Lcom/tencent/wxop/stat/StatSpecifyReportedInfo;

    move-result-object v0

    if-eqz v0, :cond_1d

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

    invoke-virtual {v0}, Lcom/tencent/wxop/stat/event/e;->d()Lcom/tencent/wxop/stat/StatSpecifyReportedInfo;

    move-result-object v0

    invoke-virtual {v0}, Lcom/tencent/wxop/stat/StatSpecifyReportedInfo;->isSendImmediately()Z

    move-result v0

    if-eqz v0, :cond_1d

    sget-object v0, Lcom/tencent/wxop/stat/StatReportStrategy;->INSTANT:Lcom/tencent/wxop/stat/StatReportStrategy;

    iput-object v0, p0, Lcom/tencent/wxop/stat/aq;->b:Lcom/tencent/wxop/stat/StatReportStrategy;

    :cond_1d
    sget-boolean v0, Lcom/tencent/wxop/stat/StatConfig;->j:Z

    if-eqz v0, :cond_33

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

    move-result-object v0

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

    move-result-object v0

    invoke-virtual {v0}, Lcom/tencent/wxop/stat/a;->e()Z

    move-result v0

    if-eqz v0, :cond_33

    sget-object v0, Lcom/tencent/wxop/stat/StatReportStrategy;->INSTANT:Lcom/tencent/wxop/stat/StatReportStrategy;

    iput-object v0, p0, Lcom/tencent/wxop/stat/aq;->b:Lcom/tencent/wxop/stat/StatReportStrategy;

    :cond_33
    invoke-static {}, Lcom/tencent/wxop/stat/StatConfig;->isDebugEnable()Z

    move-result v0

    if-eqz v0, :cond_55

    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->f()Lcom/tencent/wxop/stat/common/StatLogger;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "strategy="

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

    iget-object v2, p0, Lcom/tencent/wxop/stat/aq;->b:Lcom/tencent/wxop/stat/StatReportStrategy;

    invoke-virtual {v2}, Lcom/tencent/wxop/stat/StatReportStrategy;->name()Ljava/lang/String;

    move-result-object v2

    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-virtual {v0, v1}, Lcom/tencent/wxop/stat/common/StatLogger;->i(Ljava/lang/Object;)V

    :cond_55
    sget-object v0, Lcom/tencent/wxop/stat/ag;->a:[I

    iget-object v1, p0, Lcom/tencent/wxop/stat/aq;->b:Lcom/tencent/wxop/stat/StatReportStrategy;

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

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_1a0

    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->f()Lcom/tencent/wxop/stat/common/StatLogger;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "Invalid stat strategy:"

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

    invoke-static {}, Lcom/tencent/wxop/stat/StatConfig;->getStatSendStrategy()Lcom/tencent/wxop/stat/StatReportStrategy;

    move-result-object v2

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

    move-result-object v1

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

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/tencent/wxop/stat/common/StatLogger;->error(Ljava/lang/Object;)V

    :cond_7c
    :goto_7c
    return-void

    :pswitch_7d
    invoke-direct {p0}, Lcom/tencent/wxop/stat/aq;->c()V

    goto :goto_7c

    :pswitch_81
    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

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

    move-result-object v0

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

    iget-boolean v2, p0, Lcom/tencent/wxop/stat/aq;->c:Z

    invoke-virtual {v0, v1, v4, v2, v3}, Lcom/tencent/wxop/stat/au;->a(Lcom/tencent/wxop/stat/event/e;Lcom/tencent/wxop/stat/h;ZZ)V

    invoke-static {}, Lcom/tencent/wxop/stat/StatConfig;->isDebugEnable()Z

    move-result v0

    if-eqz v0, :cond_c7

    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->f()Lcom/tencent/wxop/stat/common/StatLogger;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "PERIOD currTime="

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

    iget-wide v2, p0, Lcom/tencent/wxop/stat/aq;->e:J

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

    move-result-object v1

    const-string v2, ",nextPeriodSendTs="

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

    move-result-object v1

    sget-wide v2, Lcom/tencent/wxop/stat/StatServiceImpl;->c:J

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

    move-result-object v1

    const-string v2, ",difftime="

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

    move-result-object v1

    sget-wide v2, Lcom/tencent/wxop/stat/StatServiceImpl;->c:J

    iget-wide v4, p0, Lcom/tencent/wxop/stat/aq;->e:J

    sub-long/2addr v2, v4

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

    move-result-object v1

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

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/tencent/wxop/stat/common/StatLogger;->i(Ljava/lang/Object;)V

    :cond_c7
    sget-wide v0, Lcom/tencent/wxop/stat/StatServiceImpl;->c:J

    cmp-long v0, v0, v6

    if-nez v0, :cond_101

    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

    const-string v1, "last_period_ts"

    invoke-static {v0, v1, v6, v7}, Lcom/tencent/wxop/stat/common/q;->a(Landroid/content/Context;Ljava/lang/String;J)J

    move-result-wide v0

    sput-wide v0, Lcom/tencent/wxop/stat/StatServiceImpl;->c:J

    iget-wide v0, p0, Lcom/tencent/wxop/stat/aq;->e:J

    sget-wide v2, Lcom/tencent/wxop/stat/StatServiceImpl;->c:J

    cmp-long v0, v0, v2

    if-lez v0, :cond_e4

    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

    invoke-static {v0}, Lcom/tencent/wxop/stat/StatServiceImpl;->e(Landroid/content/Context;)V

    :cond_e4
    iget-wide v0, p0, Lcom/tencent/wxop/stat/aq;->e:J

    invoke-static {}, Lcom/tencent/wxop/stat/StatConfig;->getSendPeriodMinutes()I

    move-result v2

    mul-int/lit8 v2, v2, 0x3c

    mul-int/lit16 v2, v2, 0x3e8

    int-to-long v2, v2

    add-long/2addr v0, v2

    sget-wide v2, Lcom/tencent/wxop/stat/StatServiceImpl;->c:J

    cmp-long v2, v2, v0

    if-lez v2, :cond_f8

    sput-wide v0, Lcom/tencent/wxop/stat/StatServiceImpl;->c:J

    :cond_f8
    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

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

    move-result-object v0

    invoke-virtual {v0}, Lcom/tencent/wxop/stat/d;->a()V

    :cond_101
    invoke-static {}, Lcom/tencent/wxop/stat/StatConfig;->isDebugEnable()Z

    move-result v0

    if-eqz v0, :cond_13a

    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->f()Lcom/tencent/wxop/stat/common/StatLogger;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "PERIOD currTime="

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

    iget-wide v2, p0, Lcom/tencent/wxop/stat/aq;->e:J

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

    move-result-object v1

    const-string v2, ",nextPeriodSendTs="

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

    move-result-object v1

    sget-wide v2, Lcom/tencent/wxop/stat/StatServiceImpl;->c:J

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

    move-result-object v1

    const-string v2, ",difftime="

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

    move-result-object v1

    sget-wide v2, Lcom/tencent/wxop/stat/StatServiceImpl;->c:J

    iget-wide v4, p0, Lcom/tencent/wxop/stat/aq;->e:J

    sub-long/2addr v2, v4

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

    move-result-object v1

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

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/tencent/wxop/stat/common/StatLogger;->i(Ljava/lang/Object;)V

    :cond_13a
    iget-wide v0, p0, Lcom/tencent/wxop/stat/aq;->e:J

    sget-wide v2, Lcom/tencent/wxop/stat/StatServiceImpl;->c:J

    cmp-long v0, v0, v2

    if-lez v0, :cond_7c

    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

    invoke-static {v0}, Lcom/tencent/wxop/stat/StatServiceImpl;->e(Landroid/content/Context;)V

    goto/16 :goto_7c

    :pswitch_149
    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

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

    move-result-object v0

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

    iget-boolean v2, p0, Lcom/tencent/wxop/stat/aq;->c:Z

    invoke-virtual {v0, v1, v4, v2, v3}, Lcom/tencent/wxop/stat/au;->a(Lcom/tencent/wxop/stat/event/e;Lcom/tencent/wxop/stat/h;ZZ)V

    goto/16 :goto_7c

    :pswitch_158
    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

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

    move-result-object v0

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

    new-instance v2, Lcom/tencent/wxop/stat/ar;

    invoke-direct {v2, p0}, Lcom/tencent/wxop/stat/ar;-><init>(Lcom/tencent/wxop/stat/aq;)V

    iget-boolean v3, p0, Lcom/tencent/wxop/stat/aq;->c:Z

    invoke-virtual {v0, v1, v2, v3, v5}, Lcom/tencent/wxop/stat/au;->a(Lcom/tencent/wxop/stat/event/e;Lcom/tencent/wxop/stat/h;ZZ)V

    goto/16 :goto_7c

    :pswitch_16c
    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->e()Landroid/content/Context;

    move-result-object v0

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

    move-result-object v0

    invoke-virtual {v0}, Lcom/tencent/wxop/stat/a;->c()I

    move-result v0

    if-ne v0, v5, :cond_17f

    invoke-direct {p0}, Lcom/tencent/wxop/stat/aq;->c()V

    goto/16 :goto_7c

    :cond_17f
    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

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

    move-result-object v0

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

    iget-boolean v2, p0, Lcom/tencent/wxop/stat/aq;->c:Z

    invoke-virtual {v0, v1, v4, v2, v3}, Lcom/tencent/wxop/stat/au;->a(Lcom/tencent/wxop/stat/event/e;Lcom/tencent/wxop/stat/h;ZZ)V

    goto/16 :goto_7c

    :pswitch_18e
    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

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

    move-result v0

    if-eqz v0, :cond_7c

    new-instance v0, Lcom/tencent/wxop/stat/as;

    invoke-direct {v0, p0}, Lcom/tencent/wxop/stat/as;-><init>(Lcom/tencent/wxop/stat/aq;)V

    invoke-direct {p0, v0}, Lcom/tencent/wxop/stat/aq;->a(Lcom/tencent/wxop/stat/h;)V

    goto/16 :goto_7c

    :pswitch_data_1a0
    .packed-switch 0x1
        :pswitch_7d
        :pswitch_81
        :pswitch_149
        :pswitch_149
        :pswitch_158
        :pswitch_16c
        :pswitch_18e
    .end packed-switch
.end method

.method private c()V
    .registers 6

    invoke-static {}, Lcom/tencent/wxop/stat/au;->b()Lcom/tencent/wxop/stat/au;

    move-result-object v0

    iget v0, v0, Lcom/tencent/wxop/stat/au;->a:I

    if-lez v0, :cond_22

    sget-boolean v0, Lcom/tencent/wxop/stat/StatConfig;->l:Z

    if-eqz v0, :cond_22

    invoke-static {}, Lcom/tencent/wxop/stat/au;->b()Lcom/tencent/wxop/stat/au;

    move-result-object v0

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

    const/4 v2, 0x0

    iget-boolean v3, p0, Lcom/tencent/wxop/stat/aq;->c:Z

    const/4 v4, 0x1

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/tencent/wxop/stat/au;->a(Lcom/tencent/wxop/stat/event/e;Lcom/tencent/wxop/stat/h;ZZ)V

    invoke-static {}, Lcom/tencent/wxop/stat/au;->b()Lcom/tencent/wxop/stat/au;

    move-result-object v0

    const/4 v1, -0x1

    invoke-virtual {v0, v1}, Lcom/tencent/wxop/stat/au;->a(I)V

    :goto_21
    return-void

    :cond_22
    new-instance v0, Lcom/tencent/wxop/stat/at;

    invoke-direct {v0, p0}, Lcom/tencent/wxop/stat/at;-><init>(Lcom/tencent/wxop/stat/aq;)V

    invoke-direct {p0, v0}, Lcom/tencent/wxop/stat/aq;->a(Lcom/tencent/wxop/stat/h;)V

    goto :goto_21
.end method

.method static synthetic c(Lcom/tencent/wxop/stat/aq;)Z
    .registers 2

    iget-boolean v0, p0, Lcom/tencent/wxop/stat/aq;->c:Z

    return v0
.end method

.method private d()Z
    .registers 7

    const/4 v1, 0x1

    sget v0, Lcom/tencent/wxop/stat/StatConfig;->h:I

    if-lez v0, :cond_c8

    iget-wide v2, p0, Lcom/tencent/wxop/stat/aq;->e:J

    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->l()J

    move-result-wide v4

    cmp-long v0, v2, v4

    if-lez v0, :cond_3e

    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->m()Ljava/util/Map;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Map;->clear()V

    iget-wide v2, p0, Lcom/tencent/wxop/stat/aq;->e:J

    sget-wide v4, Lcom/tencent/wxop/stat/StatConfig;->i:J

    add-long/2addr v2, v4

    invoke-static {v2, v3}, Lcom/tencent/wxop/stat/StatServiceImpl;->a(J)J

    invoke-static {}, Lcom/tencent/wxop/stat/StatConfig;->isDebugEnable()Z

    move-result v0

    if-eqz v0, :cond_3e

    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->f()Lcom/tencent/wxop/stat/common/StatLogger;

    move-result-object v0

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "clear methodsCalledLimitMap, nextLimitCallClearTime="

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

    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->l()J

    move-result-wide v4

    invoke-virtual {v2, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

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

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/tencent/wxop/stat/common/StatLogger;->i(Ljava/lang/Object;)V

    :cond_3e
    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->a:Lcom/tencent/wxop/stat/event/e;

    invoke-virtual {v0}, Lcom/tencent/wxop/stat/event/e;->a()Lcom/tencent/wxop/stat/event/EventType;

    move-result-object v0

    invoke-virtual {v0}, Lcom/tencent/wxop/stat/event/EventType;->a()I

    move-result v0

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

    move-result-object v2

    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->m()Ljava/util/Map;

    move-result-object v0

    invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    if-eqz v0, :cond_bd

    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->m()Ljava/util/Map;

    move-result-object v3

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v4

    add-int/lit8 v4, v4, 0x1

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-interface {v3, v2, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v2

    sget v3, Lcom/tencent/wxop/stat/StatConfig;->h:I

    if-le v2, v3, :cond_c8

    invoke-static {}, Lcom/tencent/wxop/stat/StatConfig;->isDebugEnable()Z

    move-result v2

    if-eqz v2, :cond_bb

    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->f()Lcom/tencent/wxop/stat/common/StatLogger;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "event "

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

    iget-object v4, p0, Lcom/tencent/wxop/stat/aq;->a:Lcom/tencent/wxop/stat/event/e;

    invoke-virtual {v4}, Lcom/tencent/wxop/stat/event/e;->g()Ljava/lang/String;

    move-result-object v4

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

    move-result-object v3

    const-string v4, " was discard, cause of called limit, current:"

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

    move-result-object v3

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

    move-result-object v0

    const-string v3, ", limit:"

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

    move-result-object v0

    sget v3, Lcom/tencent/wxop/stat/StatConfig;->h:I

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

    move-result-object v0

    const-string v3, ", period:"

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

    move-result-object v0

    sget-wide v4, Lcom/tencent/wxop/stat/StatConfig;->i:J

    invoke-virtual {v0, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v3, " ms"

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

    move-result-object v0

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

    move-result-object v0

    invoke-virtual {v2, v0}, Lcom/tencent/wxop/stat/common/StatLogger;->e(Ljava/lang/Object;)V

    :cond_bb
    move v0, v1

    :goto_bc
    return v0

    :cond_bd
    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->m()Ljava/util/Map;

    move-result-object v0

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_c8
    const/4 v0, 0x0

    goto :goto_bc
.end method


# virtual methods
.method public a()V
    .registers 7

    const/4 v5, 0x0

    const/4 v4, 0x0

    invoke-direct {p0}, Lcom/tencent/wxop/stat/aq;->d()Z

    move-result v0

    if-eqz v0, :cond_9

    :cond_8
    :goto_8
    return-void

    :cond_9
    sget v0, Lcom/tencent/wxop/stat/StatConfig;->m:I

    if-lez v0, :cond_3f

    iget-wide v0, p0, Lcom/tencent/wxop/stat/aq;->e:J

    sget-wide v2, Lcom/tencent/wxop/stat/aq;->f:J

    cmp-long v0, v0, v2

    if-ltz v0, :cond_3f

    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

    invoke-static {v0}, Lcom/tencent/wxop/stat/StatServiceImpl;->flushDataToDB(Landroid/content/Context;)V

    iget-wide v0, p0, Lcom/tencent/wxop/stat/aq;->e:J

    sget-wide v2, Lcom/tencent/wxop/stat/StatConfig;->n:J

    add-long/2addr v0, v2

    sput-wide v0, Lcom/tencent/wxop/stat/aq;->f:J

    invoke-static {}, Lcom/tencent/wxop/stat/StatConfig;->isDebugEnable()Z

    move-result v0

    if-eqz v0, :cond_3f

    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->f()Lcom/tencent/wxop/stat/common/StatLogger;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "nextFlushTime="

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

    sget-wide v2, Lcom/tencent/wxop/stat/aq;->f:J

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

    move-result-object v1

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

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/tencent/wxop/stat/common/StatLogger;->i(Ljava/lang/Object;)V

    :cond_3f
    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

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

    move-result-object v0

    invoke-virtual {v0}, Lcom/tencent/wxop/stat/a;->f()Z

    move-result v0

    if-eqz v0, :cond_93

    invoke-static {}, Lcom/tencent/wxop/stat/StatConfig;->isDebugEnable()Z

    move-result v0

    if-eqz v0, :cond_69

    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->f()Lcom/tencent/wxop/stat/common/StatLogger;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "sendFailedCount="

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

    sget v2, Lcom/tencent/wxop/stat/StatServiceImpl;->a: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;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/tencent/wxop/stat/common/StatLogger;->i(Ljava/lang/Object;)V

    :cond_69
    invoke-static {}, Lcom/tencent/wxop/stat/StatServiceImpl;->a()Z

    move-result v0

    if-nez v0, :cond_73

    invoke-direct {p0}, Lcom/tencent/wxop/stat/aq;->b()V

    goto :goto_8

    :cond_73
    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

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

    move-result-object v0

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

    iget-boolean v2, p0, Lcom/tencent/wxop/stat/aq;->c:Z

    invoke-virtual {v0, v1, v5, v2, v4}, Lcom/tencent/wxop/stat/au;->a(Lcom/tencent/wxop/stat/event/e;Lcom/tencent/wxop/stat/h;ZZ)V

    iget-wide v0, p0, Lcom/tencent/wxop/stat/aq;->e:J

    sget-wide v2, Lcom/tencent/wxop/stat/StatServiceImpl;->b:J

    sub-long/2addr v0, v2

    const-wide/32 v2, 0x1b7740

    cmp-long v0, v0, v2

    if-lez v0, :cond_8

    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

    invoke-static {v0}, Lcom/tencent/wxop/stat/StatServiceImpl;->d(Landroid/content/Context;)V

    goto/16 :goto_8

    :cond_93
    iget-object v0, p0, Lcom/tencent/wxop/stat/aq;->d:Landroid/content/Context;

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

    move-result-object v0

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

    iget-boolean v2, p0, Lcom/tencent/wxop/stat/aq;->c:Z

    invoke-virtual {v0, v1, v5, v2, v4}, Lcom/tencent/wxop/stat/au;->a(Lcom/tencent/wxop/stat/event/e;Lcom/tencent/wxop/stat/h;ZZ)V

    goto/16 :goto_8
.end method