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


# static fields
.field private static m:J = 0x1L

.field private static n:Ljava/util/Vector;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Ljava/lang/ref/WeakReference;

.field private c:J

.field private d:Z

.field private e:Z

.field private f:J

.field private g:J

.field private h:I

.field private i:I

.field private j:I

.field private k:I

.field private l:J

.field private o:Lcom/miaozhen/mzmonitor/x;

.field private p:Ljava/util/List;

.field private q:I

.field private r:Z

.field private s:Lcom/miaozhen/mzmonitor/w;

.field private t:Z

.field private u:Ljava/lang/String;

.field private v:Ljava/lang/String;

.field private w:Lcom/miaozhen/mzmonitor/y;

.field private x:Landroid/os/Handler;


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

    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    sput-object v0, Lcom/miaozhen/mzmonitor/y;->n:Ljava/util/Vector;

    return-void
.end method

.method static synthetic a(Lcom/miaozhen/mzmonitor/y;J)J
    .locals 0

    iput-wide p1, p0, Lcom/miaozhen/mzmonitor/y;->c:J

    return-wide p1
.end method

.method static synthetic a(Lcom/miaozhen/mzmonitor/y;)Landroid/os/Handler;
    .locals 0

    iget-object p0, p0, Lcom/miaozhen/mzmonitor/y;->x:Landroid/os/Handler;

    return-object p0
.end method

.method private a(Landroid/view/View;)V
    .locals 11

    if-nez p1, :cond_0

    return-void

    :cond_0
    iget-object v0, p0, Lcom/miaozhen/mzmonitor/y;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v1, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    iget v0, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I

    move-result v2

    invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I

    move-result v3

    iget-object v4, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    new-instance v5, Ljava/lang/StringBuilder;

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

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

    const-string v6, "*"

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

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

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

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/miaozhen/mzmonitor/x;->a(Ljava/lang/String;)V

    new-instance v4, Landroid/graphics/Rect;

    invoke-direct {v4}, Landroid/graphics/Rect;-><init>()V

    invoke-virtual {p1, v4}, Landroid/view/View;->getGlobalVisibleRect(Landroid/graphics/Rect;)Z

    iget v5, v4, Landroid/graphics/Rect;->left:I

    const/4 v6, 0x0

    invoke-static {v5, v6}, Ljava/lang/Math;->max(II)I

    move-result v5

    invoke-static {v5, v1}, Ljava/lang/Math;->min(II)I

    move-result v5

    iget v7, v4, Landroid/graphics/Rect;->right:I

    invoke-static {v7, v6}, Ljava/lang/Math;->max(II)I

    move-result v7

    invoke-static {v7, v1}, Ljava/lang/Math;->min(II)I

    move-result v7

    iget v8, v4, Landroid/graphics/Rect;->top:I

    invoke-static {v8, v6}, Ljava/lang/Math;->max(II)I

    move-result v8

    invoke-static {v8, v0}, Ljava/lang/Math;->min(II)I

    move-result v8

    iget v9, v4, Landroid/graphics/Rect;->bottom:I

    invoke-static {v9, v6}, Ljava/lang/Math;->max(II)I

    move-result v9

    invoke-static {v9, v0}, Ljava/lang/Math;->min(II)I

    move-result v9

    sub-int v8, v9, v8

    sub-int v5, v7, v5

    const/4 v7, 0x2

    new-array v9, v7, [I

    fill-array-data v9, :array_0

    invoke-virtual {p1, v9}, Landroid/view/View;->getLocationOnScreen([I)V

    aget v10, v9, v6

    if-ge v10, v1, :cond_1

    aget v1, v9, v6

    add-int/2addr v1, v3

    if-gtz v1, :cond_2

    :cond_1
    const/4 v5, 0x0

    :cond_2
    const/4 v1, 0x1

    aget v10, v9, v1

    if-ge v10, v0, :cond_3

    aget v0, v9, v1

    add-int/2addr v0, v2

    if-gtz v0, :cond_4

    :cond_3
    const/4 v8, 0x0

    :cond_4
    iget-object v0, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    new-instance v9, Ljava/lang/StringBuilder;

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

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

    const-string v10, "*"

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

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

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

    move-result-object v9

    invoke-virtual {v0, v9}, Lcom/miaozhen/mzmonitor/x;->c(Ljava/lang/String;)V

    new-array v0, v7, [I

    fill-array-data v0, :array_1

    invoke-virtual {p1, v0}, Landroid/view/View;->getLocationInWindow([I)V

    iget-object p1, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    new-instance v7, Ljava/lang/StringBuilder;

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

    aget v9, v0, v6

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

    const-string v9, "*"

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

    aget v9, v0, v1

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

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

    move-result-object v7

    invoke-virtual {p1, v7}, Lcom/miaozhen/mzmonitor/x;->b(Ljava/lang/String;)V

    if-eqz v2, :cond_5

    if-eqz v3, :cond_5

    iget-object p1, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    mul-int v8, v8, v5

    mul-int/lit8 v8, v8, 0x64

    mul-int v2, v2, v3

    div-int/2addr v8, v2

    invoke-virtual {p1, v8}, Lcom/miaozhen/mzmonitor/x;->b(I)V

    goto :goto_0

    :cond_5
    iget-object p1, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    invoke-virtual {p1, v6}, Lcom/miaozhen/mzmonitor/x;->b(I)V

    :goto_0
    sget-boolean p1, Lcom/miaozhen/mzmonitor/MZMonitor;->b:Z

    if-eqz p1, :cond_6

    const-string p1, "MZSDK:20180108"

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, " Debug: GlobalVisibleRect: "

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

    invoke-virtual {v4}, Landroid/graphics/Rect;->toString()Ljava/lang/String;

    move-result-object v3

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

    const-string v3, " location: "

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

    aget v3, v0, v6

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

    const-string v3, ","

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

    aget v0, v0, v1

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

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

    move-result-object v0

    invoke-static {p1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    :cond_6
    return-void

    :array_0
    .array-data 4
        0x7fffffff
        0x7fffffff
    .end array-data

    :array_1
    .array-data 4
        0x7fffffff
        0x7fffffff
    .end array-data
.end method

.method static synthetic a(Lcom/miaozhen/mzmonitor/y;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/miaozhen/mzmonitor/y;->t:Z

    return p1
.end method

.method static synthetic b(Lcom/miaozhen/mzmonitor/y;J)J
    .locals 0

    iput-wide p1, p0, Lcom/miaozhen/mzmonitor/y;->g:J

    return-wide p1
.end method

.method static synthetic b(Lcom/miaozhen/mzmonitor/y;)Lcom/miaozhen/mzmonitor/w;
    .locals 0

    iget-object p0, p0, Lcom/miaozhen/mzmonitor/y;->s:Lcom/miaozhen/mzmonitor/w;

    return-object p0
.end method

.method static synthetic c(Lcom/miaozhen/mzmonitor/y;)Z
    .locals 0

    iget-boolean p0, p0, Lcom/miaozhen/mzmonitor/y;->t:Z

    return p0
.end method

.method static synthetic d(Lcom/miaozhen/mzmonitor/y;)V
    .locals 0

    invoke-direct {p0}, Lcom/miaozhen/mzmonitor/y;->f()V

    return-void
.end method

.method static synthetic e()Ljava/util/Vector;
    .locals 1

    sget-object v0, Lcom/miaozhen/mzmonitor/y;->n:Ljava/util/Vector;

    return-object v0
.end method

.method static synthetic e(Lcom/miaozhen/mzmonitor/y;)Z
    .locals 0

    invoke-direct {p0}, Lcom/miaozhen/mzmonitor/y;->g()Z

    move-result p0

    return p0
.end method

.method static synthetic f(Lcom/miaozhen/mzmonitor/y;)J
    .locals 2

    iget-wide v0, p0, Lcom/miaozhen/mzmonitor/y;->g:J

    return-wide v0
.end method

.method private f()V
    .locals 7

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

    invoke-direct {v0}, Lcom/miaozhen/mzmonitor/x;-><init>()V

    iput-object v0, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    iget-object v0, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

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

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lcom/miaozhen/mzmonitor/x;->a(J)V

    iget-object v0, p0, Lcom/miaozhen/mzmonitor/y;->b:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    if-nez v0, :cond_0

    return-void

    :cond_0
    invoke-direct {p0, v0}, Lcom/miaozhen/mzmonitor/y;->a(Landroid/view/View;)V

    iget-object v1, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    invoke-virtual {v0}, Landroid/view/View;->getAlpha()F

    move-result v2

    invoke-virtual {v1, v2}, Lcom/miaozhen/mzmonitor/x;->a(F)V

    iget-object v1, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    invoke-virtual {v0}, Landroid/view/View;->hasWindowFocus()Z

    move-result v2

    invoke-virtual {v1, v2}, Lcom/miaozhen/mzmonitor/x;->c(I)V

    iget-object v1, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v2

    const/4 v3, 0x0

    const/4 v4, 0x1

    if-nez v2, :cond_1

    invoke-virtual {v0}, Landroid/view/View;->isShown()Z

    move-result v0

    if-eqz v0, :cond_1

    const/4 v0, 0x1

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    :goto_0
    invoke-virtual {v1, v0}, Lcom/miaozhen/mzmonitor/x;->a(I)V

    iget-object v0, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    invoke-virtual {v0}, Lcom/miaozhen/mzmonitor/x;->f()I

    move-result v0

    iget v1, p0, Lcom/miaozhen/mzmonitor/y;->k:I

    if-lt v0, v1, :cond_2

    iget-object v0, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    invoke-virtual {v0}, Lcom/miaozhen/mzmonitor/x;->i()I

    move-result v0

    if-ne v0, v4, :cond_2

    iget-object v0, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    invoke-virtual {v0}, Lcom/miaozhen/mzmonitor/x;->e()I

    move-result v0

    if-ne v0, v4, :cond_2

    iget-object v0, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    invoke-virtual {v0}, Lcom/miaozhen/mzmonitor/x;->d()F

    move-result v0

    float-to-double v0, v0

    const-wide/16 v5, 0x0

    cmpl-double v2, v0, v5

    if-lez v2, :cond_2

    const/4 v3, 0x1

    :cond_2
    iput-boolean v3, p0, Lcom/miaozhen/mzmonitor/y;->d:Z

    sget-boolean v0, Lcom/miaozhen/mzmonitor/MZMonitor;->b:Z

    if-eqz v0, :cond_3

    const-string v0, "MZSDK:20180108"

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, " Debug: area: "

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

    iget-object v2, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    invoke-virtual {v2}, Lcom/miaozhen/mzmonitor/x;->f()I

    move-result v2

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

    const-string v2, " focus: "

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

    iget-object v2, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    invoke-virtual {v2}, Lcom/miaozhen/mzmonitor/x;->i()I

    move-result v2

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

    const-string v2, " shown: "

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

    iget-object v2, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    invoke-virtual {v2}, Lcom/miaozhen/mzmonitor/x;->e()I

    move-result v2

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

    const-string v2, " alpha: "

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

    iget-object v2, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    invoke-virtual {v2}, Lcom/miaozhen/mzmonitor/x;->d()F

    move-result v2

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

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

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    :cond_3
    return-void
.end method

.method static synthetic g(Lcom/miaozhen/mzmonitor/y;)J
    .locals 2

    iget-wide v0, p0, Lcom/miaozhen/mzmonitor/y;->c:J

    return-wide v0
.end method

.method private g()Z
    .locals 1

    iget-boolean v0, p0, Lcom/miaozhen/mzmonitor/y;->d:Z

    return v0
.end method

.method static synthetic h(Lcom/miaozhen/mzmonitor/y;)I
    .locals 0

    iget p0, p0, Lcom/miaozhen/mzmonitor/y;->i:I

    return p0
.end method

.method private h()V
    .locals 2

    iget-object v0, p0, Lcom/miaozhen/mzmonitor/y;->p:Ljava/util/List;

    iget-object v1, p0, Lcom/miaozhen/mzmonitor/y;->o:Lcom/miaozhen/mzmonitor/x;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-boolean v0, p0, Lcom/miaozhen/mzmonitor/y;->d:Z

    iput-boolean v0, p0, Lcom/miaozhen/mzmonitor/y;->e:Z

    return-void
.end method

.method static synthetic i(Lcom/miaozhen/mzmonitor/y;)V
    .locals 0

    invoke-direct {p0}, Lcom/miaozhen/mzmonitor/y;->h()V

    return-void
.end method

.method static synthetic j(Lcom/miaozhen/mzmonitor/y;)Ljava/lang/String;
    .locals 0

    iget-object p0, p0, Lcom/miaozhen/mzmonitor/y;->u:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic k(Lcom/miaozhen/mzmonitor/y;)Ljava/lang/String;
    .locals 0

    iget-object p0, p0, Lcom/miaozhen/mzmonitor/y;->v:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic l(Lcom/miaozhen/mzmonitor/y;)Lcom/miaozhen/mzmonitor/y;
    .locals 0

    iget-object p0, p0, Lcom/miaozhen/mzmonitor/y;->w:Lcom/miaozhen/mzmonitor/y;

    return-object p0
.end method

.method static synthetic m(Lcom/miaozhen/mzmonitor/y;)Landroid/content/Context;
    .locals 0

    iget-object p0, p0, Lcom/miaozhen/mzmonitor/y;->a:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic n(Lcom/miaozhen/mzmonitor/y;)J
    .locals 2

    iget-wide v0, p0, Lcom/miaozhen/mzmonitor/y;->l:J

    return-wide v0
.end method

.method static synthetic o(Lcom/miaozhen/mzmonitor/y;)J
    .locals 2

    iget-wide v0, p0, Lcom/miaozhen/mzmonitor/y;->f:J

    return-wide v0
.end method

.method static synthetic p(Lcom/miaozhen/mzmonitor/y;)I
    .locals 0

    iget p0, p0, Lcom/miaozhen/mzmonitor/y;->h:I

    return p0
.end method

.method static synthetic q(Lcom/miaozhen/mzmonitor/y;)Ljava/lang/ref/WeakReference;
    .locals 0

    iget-object p0, p0, Lcom/miaozhen/mzmonitor/y;->b:Ljava/lang/ref/WeakReference;

    return-object p0
.end method

.method static synthetic r(Lcom/miaozhen/mzmonitor/y;)Z
    .locals 0

    iget-boolean p0, p0, Lcom/miaozhen/mzmonitor/y;->e:Z

    return p0
.end method

.method static synthetic s(Lcom/miaozhen/mzmonitor/y;)Z
    .locals 0

    iget-boolean p0, p0, Lcom/miaozhen/mzmonitor/y;->d:Z

    return p0
.end method

.method static synthetic t(Lcom/miaozhen/mzmonitor/y;)I
    .locals 0

    iget p0, p0, Lcom/miaozhen/mzmonitor/y;->j:I

    return p0
.end method


# virtual methods
.method a()I
    .locals 1

    iget v0, p0, Lcom/miaozhen/mzmonitor/y;->i:I

    return v0
.end method

.method b()Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/miaozhen/mzmonitor/y;->p:Ljava/util/List;

    return-object v0
.end method

.method c()I
    .locals 1

    iget v0, p0, Lcom/miaozhen/mzmonitor/y;->q:I

    return v0
.end method

.method d()Z
    .locals 1

    iget-boolean v0, p0, Lcom/miaozhen/mzmonitor/y;->r:Z

    return v0
.end method
