Rabbit-R1/original r1/java/sources/androidx/media3/exoplayer/source/LoadEventInfo.java
2024-05-21 17:08:36 -04:00

38 lines
1.2 KiB
Java

package androidx.media3.exoplayer.source;
import android.net.Uri;
import androidx.media3.datasource.DataSpec;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicLong;
/* loaded from: classes2.dex */
public final class LoadEventInfo {
private static final AtomicLong idSource = new AtomicLong();
public final long bytesLoaded;
public final DataSpec dataSpec;
public final long elapsedRealtimeMs;
public final long loadDurationMs;
public final long loadTaskId;
public final Map<String, List<String>> responseHeaders;
public final Uri uri;
public static long getNewId() {
return idSource.getAndIncrement();
}
public LoadEventInfo(long j, DataSpec dataSpec, long j2) {
this(j, dataSpec, dataSpec.uri, Collections.emptyMap(), j2, 0L, 0L);
}
public LoadEventInfo(long j, DataSpec dataSpec, Uri uri, Map<String, List<String>> map, long j2, long j3, long j4) {
this.loadTaskId = j;
this.dataSpec = dataSpec;
this.uri = uri;
this.responseHeaders = map;
this.elapsedRealtimeMs = j2;
this.loadDurationMs = j3;
this.bytesLoaded = j4;
}
}