package c.i.a.c.h2; import android.net.Uri; import androidx.annotation.Nullable; import java.io.IOException; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Objects; /* compiled from: StatsDataSource */ public final class v implements j { public final j a; public long b; /* renamed from: c reason: collision with root package name */ public Uri f891c = Uri.EMPTY; public Map> d = Collections.emptyMap(); public v(j jVar) { Objects.requireNonNull(jVar); this.a = jVar; } @Override // c.i.a.c.h2.j public long a(l lVar) throws IOException { this.f891c = lVar.a; this.d = Collections.emptyMap(); long a = this.a.a(lVar); Uri m = m(); Objects.requireNonNull(m); this.f891c = m; this.d = j(); return a; } @Override // c.i.a.c.h2.j public void close() throws IOException { this.a.close(); } @Override // c.i.a.c.h2.j public void d(x xVar) { Objects.requireNonNull(xVar); this.a.d(xVar); } @Override // c.i.a.c.h2.j public Map> j() { return this.a.j(); } @Override // c.i.a.c.h2.j @Nullable public Uri m() { return this.a.m(); } @Override // c.i.a.c.h2.f public int read(byte[] bArr, int i, int i2) throws IOException { int read = this.a.read(bArr, i, i2); if (read != -1) { this.b += (long) read; } return read; } }