115 lines
3.4 KiB
Java
115 lines
3.4 KiB
Java
package c.i.a.c.d2;
|
|
|
|
import android.os.Handler;
|
|
import androidx.annotation.CheckResult;
|
|
import androidx.annotation.Nullable;
|
|
import c.i.a.c.d2.y;
|
|
import c.i.a.c.h0;
|
|
import c.i.a.c.i2.f0;
|
|
import java.io.IOException;
|
|
import java.util.Iterator;
|
|
import java.util.concurrent.CopyOnWriteArrayList;
|
|
/* compiled from: MediaSourceEventListener */
|
|
public interface z {
|
|
|
|
/* compiled from: MediaSourceEventListener */
|
|
public static class a {
|
|
public final int a;
|
|
@Nullable
|
|
public final y.a b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public final CopyOnWriteArrayList<C0090a> f820c;
|
|
public final long d;
|
|
|
|
/* compiled from: MediaSourceEventListener */
|
|
/* renamed from: c.i.a.c.d2.z$a$a reason: collision with other inner class name */
|
|
public static final class C0090a {
|
|
public Handler a;
|
|
public z b;
|
|
|
|
public C0090a(Handler handler, z zVar) {
|
|
this.a = handler;
|
|
this.b = zVar;
|
|
}
|
|
}
|
|
|
|
public a() {
|
|
this.f820c = new CopyOnWriteArrayList<>();
|
|
this.a = 0;
|
|
this.b = null;
|
|
this.d = 0;
|
|
}
|
|
|
|
public a(CopyOnWriteArrayList<C0090a> copyOnWriteArrayList, int i, @Nullable y.a aVar, long j) {
|
|
this.f820c = copyOnWriteArrayList;
|
|
this.a = i;
|
|
this.b = aVar;
|
|
this.d = j;
|
|
}
|
|
|
|
public final long a(long j) {
|
|
long b = h0.b(j);
|
|
if (b == -9223372036854775807L) {
|
|
return -9223372036854775807L;
|
|
}
|
|
return this.d + b;
|
|
}
|
|
|
|
public void b(u uVar) {
|
|
Iterator<C0090a> it = this.f820c.iterator();
|
|
while (it.hasNext()) {
|
|
C0090a next = it.next();
|
|
f0.D(next.a, new d(this, next.b, uVar));
|
|
}
|
|
}
|
|
|
|
public void c(r rVar, u uVar) {
|
|
Iterator<C0090a> it = this.f820c.iterator();
|
|
while (it.hasNext()) {
|
|
C0090a next = it.next();
|
|
f0.D(next.a, new f(this, next.b, rVar, uVar));
|
|
}
|
|
}
|
|
|
|
public void d(r rVar, u uVar) {
|
|
Iterator<C0090a> it = this.f820c.iterator();
|
|
while (it.hasNext()) {
|
|
C0090a next = it.next();
|
|
f0.D(next.a, new c(this, next.b, rVar, uVar));
|
|
}
|
|
}
|
|
|
|
public void e(r rVar, u uVar, IOException iOException, boolean z2) {
|
|
Iterator<C0090a> it = this.f820c.iterator();
|
|
while (it.hasNext()) {
|
|
C0090a next = it.next();
|
|
f0.D(next.a, new b(this, next.b, rVar, uVar, iOException, z2));
|
|
}
|
|
}
|
|
|
|
public void f(r rVar, u uVar) {
|
|
Iterator<C0090a> it = this.f820c.iterator();
|
|
while (it.hasNext()) {
|
|
C0090a next = it.next();
|
|
f0.D(next.a, new e(this, next.b, rVar, uVar));
|
|
}
|
|
}
|
|
|
|
@CheckResult
|
|
public a g(int i, @Nullable y.a aVar, long j) {
|
|
return new a(this.f820c, i, aVar, j);
|
|
}
|
|
}
|
|
|
|
void N(int i, @Nullable y.a aVar, r rVar, u uVar);
|
|
|
|
void U(int i, @Nullable y.a aVar, r rVar, u uVar, IOException iOException, boolean z2);
|
|
|
|
void l(int i, @Nullable y.a aVar, u uVar);
|
|
|
|
void m(int i, @Nullable y.a aVar, r rVar, u uVar);
|
|
|
|
void q(int i, @Nullable y.a aVar, r rVar, u uVar);
|
|
}
|