package c1; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /* loaded from: classes.dex */ public final class p { /* renamed from: s, reason: collision with root package name */ private static final String f3395s = androidx.work.m.f("WorkSpec"); /* renamed from: t, reason: collision with root package name */ public static final l.a f3396t = new a(); /* renamed from: a, reason: collision with root package name */ public String f3397a; /* renamed from: b, reason: collision with root package name */ public androidx.work.v f3398b; /* renamed from: c, reason: collision with root package name */ public String f3399c; /* renamed from: d, reason: collision with root package name */ public String f3400d; /* renamed from: e, reason: collision with root package name */ public androidx.work.e f3401e; /* renamed from: f, reason: collision with root package name */ public androidx.work.e f3402f; /* renamed from: g, reason: collision with root package name */ public long f3403g; /* renamed from: h, reason: collision with root package name */ public long f3404h; /* renamed from: i, reason: collision with root package name */ public long f3405i; /* renamed from: j, reason: collision with root package name */ public androidx.work.c f3406j; /* renamed from: k, reason: collision with root package name */ public int f3407k; /* renamed from: l, reason: collision with root package name */ public androidx.work.a f3408l; /* renamed from: m, reason: collision with root package name */ public long f3409m; /* renamed from: n, reason: collision with root package name */ public long f3410n; /* renamed from: o, reason: collision with root package name */ public long f3411o; /* renamed from: p, reason: collision with root package name */ public long f3412p; /* renamed from: q, reason: collision with root package name */ public boolean f3413q; /* renamed from: r, reason: collision with root package name */ public androidx.work.q f3414r; class a implements l.a { a() { } @Override // l.a /* renamed from: a, reason: merged with bridge method [inline-methods] */ public List apply(List list) { if (list == null) { return null; } ArrayList arrayList = new ArrayList(list.size()); Iterator it = list.iterator(); if (!it.hasNext()) { return arrayList; } androidx.appcompat.app.m.a(it.next()); throw null; } } public static class b { /* renamed from: a, reason: collision with root package name */ public String f3415a; /* renamed from: b, reason: collision with root package name */ public androidx.work.v f3416b; public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof b)) { return false; } b bVar = (b) obj; if (this.f3416b != bVar.f3416b) { return false; } return this.f3415a.equals(bVar.f3415a); } public int hashCode() { return (this.f3415a.hashCode() * 31) + this.f3416b.hashCode(); } } public p(String str, String str2) { this.f3398b = androidx.work.v.ENQUEUED; androidx.work.e eVar = androidx.work.e.f2860c; this.f3401e = eVar; this.f3402f = eVar; this.f3406j = androidx.work.c.f2839i; this.f3408l = androidx.work.a.EXPONENTIAL; this.f3409m = 30000L; this.f3412p = -1L; this.f3414r = androidx.work.q.RUN_AS_NON_EXPEDITED_WORK_REQUEST; this.f3397a = str; this.f3399c = str2; } public long a() { if (c()) { return this.f3410n + Math.min(18000000L, this.f3408l == androidx.work.a.LINEAR ? this.f3409m * this.f3407k : (long) Math.scalb(this.f3409m, this.f3407k - 1)); } if (!d()) { long j10 = this.f3410n; if (j10 == 0) { j10 = System.currentTimeMillis(); } return j10 + this.f3403g; } long currentTimeMillis = System.currentTimeMillis(); long j11 = this.f3410n; long j12 = j11 == 0 ? currentTimeMillis + this.f3403g : j11; long j13 = this.f3405i; long j14 = this.f3404h; if (j13 != j14) { return j12 + j14 + (j11 == 0 ? j13 * (-1) : 0L); } return j12 + (j11 != 0 ? j14 : 0L); } public boolean b() { return !androidx.work.c.f2839i.equals(this.f3406j); } public boolean c() { return this.f3398b == androidx.work.v.ENQUEUED && this.f3407k > 0; } public boolean d() { return this.f3404h != 0; } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || p.class != obj.getClass()) { return false; } p pVar = (p) obj; if (this.f3403g != pVar.f3403g || this.f3404h != pVar.f3404h || this.f3405i != pVar.f3405i || this.f3407k != pVar.f3407k || this.f3409m != pVar.f3409m || this.f3410n != pVar.f3410n || this.f3411o != pVar.f3411o || this.f3412p != pVar.f3412p || this.f3413q != pVar.f3413q || !this.f3397a.equals(pVar.f3397a) || this.f3398b != pVar.f3398b || !this.f3399c.equals(pVar.f3399c)) { return false; } String str = this.f3400d; if (str == null ? pVar.f3400d == null : str.equals(pVar.f3400d)) { return this.f3401e.equals(pVar.f3401e) && this.f3402f.equals(pVar.f3402f) && this.f3406j.equals(pVar.f3406j) && this.f3408l == pVar.f3408l && this.f3414r == pVar.f3414r; } return false; } public int hashCode() { int hashCode = ((((this.f3397a.hashCode() * 31) + this.f3398b.hashCode()) * 31) + this.f3399c.hashCode()) * 31; String str = this.f3400d; int hashCode2 = (((((hashCode + (str != null ? str.hashCode() : 0)) * 31) + this.f3401e.hashCode()) * 31) + this.f3402f.hashCode()) * 31; long j10 = this.f3403g; int i10 = (hashCode2 + ((int) (j10 ^ (j10 >>> 32)))) * 31; long j11 = this.f3404h; int i11 = (i10 + ((int) (j11 ^ (j11 >>> 32)))) * 31; long j12 = this.f3405i; int hashCode3 = (((((((i11 + ((int) (j12 ^ (j12 >>> 32)))) * 31) + this.f3406j.hashCode()) * 31) + this.f3407k) * 31) + this.f3408l.hashCode()) * 31; long j13 = this.f3409m; int i12 = (hashCode3 + ((int) (j13 ^ (j13 >>> 32)))) * 31; long j14 = this.f3410n; int i13 = (i12 + ((int) (j14 ^ (j14 >>> 32)))) * 31; long j15 = this.f3411o; int i14 = (i13 + ((int) (j15 ^ (j15 >>> 32)))) * 31; long j16 = this.f3412p; return ((((i14 + ((int) (j16 ^ (j16 >>> 32)))) * 31) + (this.f3413q ? 1 : 0)) * 31) + this.f3414r.hashCode(); } public String toString() { return "{WorkSpec: " + this.f3397a + "}"; } public p(p pVar) { this.f3398b = androidx.work.v.ENQUEUED; androidx.work.e eVar = androidx.work.e.f2860c; this.f3401e = eVar; this.f3402f = eVar; this.f3406j = androidx.work.c.f2839i; this.f3408l = androidx.work.a.EXPONENTIAL; this.f3409m = 30000L; this.f3412p = -1L; this.f3414r = androidx.work.q.RUN_AS_NON_EXPEDITED_WORK_REQUEST; this.f3397a = pVar.f3397a; this.f3399c = pVar.f3399c; this.f3398b = pVar.f3398b; this.f3400d = pVar.f3400d; this.f3401e = new androidx.work.e(pVar.f3401e); this.f3402f = new androidx.work.e(pVar.f3402f); this.f3403g = pVar.f3403g; this.f3404h = pVar.f3404h; this.f3405i = pVar.f3405i; this.f3406j = new androidx.work.c(pVar.f3406j); this.f3407k = pVar.f3407k; this.f3408l = pVar.f3408l; this.f3409m = pVar.f3409m; this.f3410n = pVar.f3410n; this.f3411o = pVar.f3411o; this.f3412p = pVar.f3412p; this.f3413q = pVar.f3413q; this.f3414r = pVar.f3414r; } }