.class Lcom/vv/hgtv/ao;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/vv/hgtv/PlayerActivity;

.field private b:J


# direct methods
.method constructor <init>(Lcom/vv/hgtv/PlayerActivity;)V
    .locals 2

    iput-object p1, p0, Lcom/vv/hgtv/ao;->a:Lcom/vv/hgtv/PlayerActivity;

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

    invoke-static {}, Landroid/net/TrafficStats;->getTotalRxBytes()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/vv/hgtv/ao;->b:J

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    iget-object v0, p0, Lcom/vv/hgtv/ao;->a:Lcom/vv/hgtv/PlayerActivity;

    invoke-static {}, Landroid/net/TrafficStats;->getTotalRxBytes()J

    move-result-wide v2

    iget-wide v4, p0, Lcom/vv/hgtv/ao;->b:J

    sub-long/2addr v2, v4

    invoke-static {v0, v2, v3}, Lcom/vv/hgtv/PlayerActivity;->a(Lcom/vv/hgtv/PlayerActivity;J)V

    invoke-static {}, Landroid/net/TrafficStats;->getTotalRxBytes()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/vv/hgtv/ao;->b:J

    sget-object v0, Lcom/vv/hgtv/PlayerActivity;->c:Lcom/vv/hgtv/b;

    invoke-virtual {v0}, Lcom/vv/hgtv/b;->size()I

    move-result v0

    const/4 v1, 0x1

    if-le v0, v1, :cond_0

    iget-object v0, p0, Lcom/vv/hgtv/ao;->a:Lcom/vv/hgtv/PlayerActivity;

    const/16 v1, 0x1b

    invoke-static {v0, v1}, Lcom/vv/hgtv/PlayerActivity;->b(Lcom/vv/hgtv/PlayerActivity;I)V

    :cond_0
    iget-object v0, p0, Lcom/vv/hgtv/ao;->a:Lcom/vv/hgtv/PlayerActivity;

    invoke-static {v0}, Lcom/vv/hgtv/PlayerActivity;->E(Lcom/vv/hgtv/PlayerActivity;)V

    return-void
.end method
