package j8; import android.os.Bundle; import android.os.Process; import android.util.Log; import com.vungle.warren.utility.p; import i8.f; import i8.g; import i8.h; import i8.l; import k8.b; /* loaded from: classes2.dex */ public class a extends p { /* renamed from: e, reason: collision with root package name */ private static final String f11110e = "a"; /* renamed from: a, reason: collision with root package name */ private final g f11111a; /* renamed from: b, reason: collision with root package name */ private final f f11112b; /* renamed from: c, reason: collision with root package name */ private final h f11113c; /* renamed from: d, reason: collision with root package name */ private final b f11114d; public a(g gVar, f fVar, h hVar, b bVar) { this.f11111a = gVar; this.f11112b = fVar; this.f11113c = hVar; this.f11114d = bVar; } @Override // com.vungle.warren.utility.p public Integer a() { return Integer.valueOf(this.f11111a.f()); } @Override // java.lang.Runnable public void run() { b bVar = this.f11114d; if (bVar != null) { try { int a10 = bVar.a(this.f11111a); Process.setThreadPriority(a10); Log.d(f11110e, "Setting process thread prio = " + a10 + " for " + this.f11111a.e()); } catch (Throwable unused) { Log.e(f11110e, "Error on setting process thread priority"); } } try { String e10 = this.f11111a.e(); Bundle d10 = this.f11111a.d(); String str = f11110e; Log.d(str, "Start job " + e10 + "Thread " + Thread.currentThread().getName()); int a11 = this.f11112b.a(e10).a(d10, this.f11113c); Log.d(str, "On job finished " + e10 + " with result " + a11); if (a11 == 2) { long i10 = this.f11111a.i(); if (i10 > 0) { this.f11111a.j(i10); this.f11113c.a(this.f11111a); Log.d(str, "Rescheduling " + e10 + " in " + i10); } } } catch (l e11) { Log.e(f11110e, "Cannot create job" + e11.getLocalizedMessage()); } catch (Throwable th) { Log.e(f11110e, "Can't start job", th); } } }