package com.applovin.impl; import android.os.Handler; import com.applovin.impl.y1; import java.util.Iterator; import java.util.concurrent.CopyOnWriteArrayList; /* loaded from: classes.dex */ public interface y1 { xo a(); void a(Handler handler, a aVar); void a(a aVar); public interface a { void a(int i, long j, long j2); /* renamed from: com.applovin.impl.y1$a$a, reason: collision with other inner class name */ public static final class C0043a { private final CopyOnWriteArrayList a = new CopyOnWriteArrayList(); public void a(Handler handler, a aVar) { b1.a(handler); b1.a(aVar); a(aVar); this.a.add(new C0044a(handler, aVar)); } /* renamed from: com.applovin.impl.y1$a$a$a, reason: collision with other inner class name */ public static final class C0044a { private final Handler a; private final a b; private boolean c; public void a() { this.c = true; } public C0044a(Handler handler, a aVar) { this.a = handler; this.b = aVar; } } public void a(final int i, final long j, final long j2) { Iterator it = this.a.iterator(); while (it.hasNext()) { final C0044a c0044a = (C0044a) it.next(); if (!c0044a.c) { c0044a.a.post(new Runnable() { // from class: com.applovin.impl.y1$a$a$$ExternalSyntheticLambda0 @Override // java.lang.Runnable public final void run() { y1.a.C0043a.a(y1.a.C0043a.C0044a.this, i, j, j2); } }); } } } /* JADX INFO: Access modifiers changed from: private */ public static /* synthetic */ void a(C0044a c0044a, int i, long j, long j2) { c0044a.b.a(i, j, j2); } public void a(a aVar) { Iterator it = this.a.iterator(); while (it.hasNext()) { C0044a c0044a = (C0044a) it.next(); if (c0044a.b == aVar) { c0044a.a(); this.a.remove(c0044a); } } } } } }