package com.vungle.warren.utility; import android.os.Handler; /* loaded from: classes2.dex */ public class q extends Handler { /* renamed from: a, reason: collision with root package name */ private long f8619a; /* renamed from: b, reason: collision with root package name */ private long f8620b; /* renamed from: c, reason: collision with root package name */ private final long f8621c; /* renamed from: d, reason: collision with root package name */ private Runnable f8622d; public q(Runnable runnable, long j10) { this.f8621c = j10; this.f8622d = runnable; } public synchronized void a() { removeMessages(0); removeCallbacks(this.f8622d); this.f8620b = 0L; this.f8619a = 0L; } public synchronized void b() { if (hasMessages(0)) { this.f8620b += System.currentTimeMillis() - this.f8619a; removeMessages(0); removeCallbacks(this.f8622d); } } public synchronized void c() { if (this.f8621c <= 0) { return; } if (!hasMessages(0)) { long j10 = this.f8621c - this.f8620b; this.f8619a = System.currentTimeMillis(); postDelayed(this.f8622d, j10); } } }