package w0; import androidx.work.m; import androidx.work.t; import c1.p; import java.util.HashMap; import java.util.Map; /* loaded from: classes.dex */ public class a { /* renamed from: d, reason: collision with root package name */ static final String f14991d = m.f("DelayedWorkTracker"); /* renamed from: a, reason: collision with root package name */ final b f14992a; /* renamed from: b, reason: collision with root package name */ private final t f14993b; /* renamed from: c, reason: collision with root package name */ private final Map f14994c = new HashMap(); /* renamed from: w0.a$a, reason: collision with other inner class name */ class RunnableC0252a implements Runnable { /* renamed from: a, reason: collision with root package name */ final /* synthetic */ p f14995a; RunnableC0252a(p pVar) { this.f14995a = pVar; } @Override // java.lang.Runnable public void run() { m.c().a(a.f14991d, String.format("Scheduling work %s", this.f14995a.f3397a), new Throwable[0]); a.this.f14992a.a(this.f14995a); } } public a(b bVar, t tVar) { this.f14992a = bVar; this.f14993b = tVar; } public void a(p pVar) { Runnable runnable = (Runnable) this.f14994c.remove(pVar.f3397a); if (runnable != null) { this.f14993b.b(runnable); } RunnableC0252a runnableC0252a = new RunnableC0252a(pVar); this.f14994c.put(pVar.f3397a, runnableC0252a); this.f14993b.a(pVar.a() - System.currentTimeMillis(), runnableC0252a); } public void b(String str) { Runnable runnable = (Runnable) this.f14994c.remove(str); if (runnable != null) { this.f14993b.b(runnable); } } }