.class Lcom/miaozhen/mzmonitor/w;
.super Ljava/lang/Object;


# instance fields
.field private a:I

.field private b:Z

.field private c:Z

.field private d:Landroid/content/Context;

.field private e:Ljava/lang/String;

.field private f:J

.field private g:Ljava/lang/String;


# virtual methods
.method a()V
    .locals 6

    invoke-virtual {p0}, Lcom/miaozhen/mzmonitor/w;->c()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-boolean v0, p0, Lcom/miaozhen/mzmonitor/w;->b:Z

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    invoke-static {}, Lcom/miaozhen/mzmonitor/v;->a()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/miaozhen/mzmonitor/w;->f:J

    iget v4, p0, Lcom/miaozhen/mzmonitor/w;->a:I

    div-int/lit8 v4, v4, 0x2

    int-to-long v4, v4

    add-long/2addr v2, v4

    cmp-long v4, v0, v2

    if-ltz v4, :cond_1

    new-instance v0, Lcom/miaozhen/mzmonitor/b;

    iget-object v1, p0, Lcom/miaozhen/mzmonitor/w;->e:Ljava/lang/String;

    const-string v2, "mid"

    iget-object v3, p0, Lcom/miaozhen/mzmonitor/w;->g:Ljava/lang/String;

    invoke-direct {v0, v1, v2, v3}, Lcom/miaozhen/mzmonitor/b;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/miaozhen/mzmonitor/w;->d:Landroid/content/Context;

    invoke-static {v1, v0}, Lcom/miaozhen/mzmonitor/MZMonitor;->a(Landroid/content/Context;Lcom/miaozhen/mzmonitor/b;)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/miaozhen/mzmonitor/w;->b:Z

    :cond_1
    :goto_0
    return-void
.end method

.method b()V
    .locals 6

    invoke-virtual {p0}, Lcom/miaozhen/mzmonitor/w;->c()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-boolean v0, p0, Lcom/miaozhen/mzmonitor/w;->c:Z

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    invoke-static {}, Lcom/miaozhen/mzmonitor/v;->a()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/miaozhen/mzmonitor/w;->f:J

    iget v4, p0, Lcom/miaozhen/mzmonitor/w;->a:I

    int-to-long v4, v4

    add-long/2addr v2, v4

    cmp-long v4, v0, v2

    if-ltz v4, :cond_1

    new-instance v0, Lcom/miaozhen/mzmonitor/b;

    iget-object v1, p0, Lcom/miaozhen/mzmonitor/w;->e:Ljava/lang/String;

    const-string v2, "end"

    iget-object v3, p0, Lcom/miaozhen/mzmonitor/w;->g:Ljava/lang/String;

    invoke-direct {v0, v1, v2, v3}, Lcom/miaozhen/mzmonitor/b;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/miaozhen/mzmonitor/w;->d:Landroid/content/Context;

    invoke-static {v1, v0}, Lcom/miaozhen/mzmonitor/MZMonitor;->a(Landroid/content/Context;Lcom/miaozhen/mzmonitor/b;)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/miaozhen/mzmonitor/w;->c:Z

    :cond_1
    :goto_0
    return-void
.end method

.method c()Z
    .locals 1

    iget v0, p0, Lcom/miaozhen/mzmonitor/w;->a:I

    if-lez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method d()Z
    .locals 1

    iget-boolean v0, p0, Lcom/miaozhen/mzmonitor/w;->c:Z

    return v0
.end method
