CacheUtil$CachingCounters.smali
.class public Lcom/google/android/exoplayer2/upstream/cache/CacheUtil$CachingCounters;
.super Ljava/lang/Object;
.source "CacheUtil.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/exoplayer2/upstream/cache/CacheUtil;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "CachingCounters"
.end annotation
# instance fields
.field public volatile alreadyCachedBytes:J
.field public volatile contentLength:J
.field public volatile newlyCachedBytes:J
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 3
.line 38
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 44
const-wide/16 v0, -0x1
iput-wide v0, p0, Lcom/google/android/exoplayer2/upstream/cache/CacheUtil$CachingCounters;->contentLength:J
return-void
.end method
# virtual methods
.method public totalCachedBytes()J
.registers 5
.line 50
iget-wide v0, p0, Lcom/google/android/exoplayer2/upstream/cache/CacheUtil$CachingCounters;->alreadyCachedBytes:J
iget-wide v2, p0, Lcom/google/android/exoplayer2/upstream/cache/CacheUtil$CachingCounters;->newlyCachedBytes:J
add-long/2addr v0, v2
return-wide v0
.end method