package com.google.android.exoplayer2.trackselection; import com.google.android.exoplayer2.Format; import com.google.android.exoplayer2.Timeline; import com.google.android.exoplayer2.source.MediaSource; import com.google.android.exoplayer2.source.TrackGroup; import com.google.android.exoplayer2.source.chunk.Chunk; import com.google.android.exoplayer2.source.chunk.MediaChunk; import com.google.android.exoplayer2.source.chunk.MediaChunkIterator; import com.google.android.exoplayer2.upstream.BandwidthMeter; import com.google.android.exoplayer2.util.Log; import java.util.List; /* loaded from: classes2.dex */ public interface ExoTrackSelection extends TrackSelection { /* loaded from: classes2.dex */ public interface Factory { ExoTrackSelection[] createTrackSelections(Definition[] definitionArr, BandwidthMeter bandwidthMeter, MediaSource.MediaPeriodId mediaPeriodId, Timeline timeline); } boolean blacklist(int i, long j); void disable(); void enable(); int evaluateQueueSize(long j, List list); Format getSelectedFormat(); int getSelectedIndex(); int getSelectedIndexInTrackGroup(); Object getSelectionData(); int getSelectionReason(); boolean isBlacklisted(int i, long j); default void onDiscontinuity() { } default void onPlayWhenReadyChanged(boolean z) { } void onPlaybackSpeed(float f); default void onRebuffer() { } default boolean shouldCancelChunkLoad(long j, Chunk chunk, List list) { return false; } void updateSelectedTrack(long j, long j2, long j3, List list, MediaChunkIterator[] mediaChunkIteratorArr); /* loaded from: classes2.dex */ public static final class Definition { private static final String TAG = "ETSDefinition"; public final TrackGroup group; public final int[] tracks; public final int type; public Definition(TrackGroup trackGroup, int... iArr) { this(trackGroup, iArr, 0); } public Definition(TrackGroup trackGroup, int[] iArr, int i) { if (iArr.length == 0) { Log.e(TAG, "Empty tracks are not allowed", new IllegalArgumentException()); } this.group = trackGroup; this.tracks = iArr; this.type = i; } } }