2021-12-17 21:59:34 +00:00
|
|
|
package b.f.j.p;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
import b.f.i.c;
|
|
|
|
import b.f.j.c.d;
|
|
|
|
import b.f.j.c.f;
|
|
|
|
import b.f.j.c.i;
|
|
|
|
import b.f.j.c.n;
|
|
|
|
import b.f.j.j.e;
|
|
|
|
import b.f.j.r.b;
|
2021-07-24 02:37:17 +00:00
|
|
|
import com.facebook.cache.common.CacheKey;
|
|
|
|
import com.facebook.imagepipeline.request.ImageRequest;
|
|
|
|
/* compiled from: EncodedProbeProducer */
|
2022-01-13 08:07:50 +00:00
|
|
|
public class w implements w0<e> {
|
2021-07-24 02:37:17 +00:00
|
|
|
public final f a;
|
|
|
|
|
2021-12-17 21:59:34 +00:00
|
|
|
/* renamed from: b reason: collision with root package name */
|
2022-01-27 07:52:47 +00:00
|
|
|
public final f f638b;
|
2021-12-17 21:59:34 +00:00
|
|
|
public final i c;
|
2022-01-13 08:07:50 +00:00
|
|
|
public final w0<e> d;
|
2021-07-24 02:37:17 +00:00
|
|
|
public final d<CacheKey> e;
|
|
|
|
public final d<CacheKey> f;
|
|
|
|
|
|
|
|
/* compiled from: EncodedProbeProducer */
|
|
|
|
public static class a extends p<e, e> {
|
2022-01-13 08:07:50 +00:00
|
|
|
public final x0 c;
|
2021-07-24 02:37:17 +00:00
|
|
|
public final f d;
|
|
|
|
public final f e;
|
|
|
|
public final i f;
|
|
|
|
public final d<CacheKey> g;
|
|
|
|
public final d<CacheKey> h;
|
|
|
|
|
2022-01-13 08:07:50 +00:00
|
|
|
public a(l<e> lVar, x0 x0Var, f fVar, f fVar2, i iVar, d<CacheKey> dVar, d<CacheKey> dVar2) {
|
2021-07-24 02:37:17 +00:00
|
|
|
super(lVar);
|
2022-01-13 08:07:50 +00:00
|
|
|
this.c = x0Var;
|
2021-07-24 02:37:17 +00:00
|
|
|
this.d = fVar;
|
|
|
|
this.e = fVar2;
|
|
|
|
this.f = iVar;
|
|
|
|
this.g = dVar;
|
|
|
|
this.h = dVar2;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX INFO: finally extract failed */
|
2021-12-17 21:59:34 +00:00
|
|
|
@Override // b.f.j.p.b
|
2021-07-24 02:37:17 +00:00
|
|
|
public void i(Object obj, int i) {
|
|
|
|
e eVar = (e) obj;
|
|
|
|
try {
|
|
|
|
b.b();
|
|
|
|
if (!b.f(i) && eVar != null && !b.l(i, 10)) {
|
2022-01-13 08:07:50 +00:00
|
|
|
eVar.x();
|
2021-12-02 18:53:44 +00:00
|
|
|
if (eVar.l != c.a) {
|
2021-12-17 21:59:34 +00:00
|
|
|
ImageRequest e = this.c.e();
|
|
|
|
CacheKey b2 = ((n) this.f).b(e, this.c.b());
|
|
|
|
this.g.a(b2);
|
2022-01-13 08:07:50 +00:00
|
|
|
if ("memory_encoded".equals(this.c.l("origin"))) {
|
2021-12-17 21:59:34 +00:00
|
|
|
if (!this.h.b(b2)) {
|
2022-01-29 08:08:32 +00:00
|
|
|
(e.f2879b == ImageRequest.b.SMALL ? this.e : this.d).c(b2);
|
2021-12-17 21:59:34 +00:00
|
|
|
this.h.a(b2);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
2022-01-13 08:07:50 +00:00
|
|
|
} else if ("disk".equals(this.c.l("origin"))) {
|
2021-12-17 21:59:34 +00:00
|
|
|
this.h.a(b2);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f629b.b(eVar, i);
|
2021-07-24 02:37:17 +00:00
|
|
|
b.b();
|
|
|
|
}
|
|
|
|
}
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f629b.b(eVar, i);
|
2021-07-24 02:37:17 +00:00
|
|
|
b.b();
|
|
|
|
} catch (Throwable th) {
|
|
|
|
b.b();
|
|
|
|
throw th;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-13 08:07:50 +00:00
|
|
|
public w(f fVar, f fVar2, i iVar, d dVar, d dVar2, w0<e> w0Var) {
|
2021-07-24 02:37:17 +00:00
|
|
|
this.a = fVar;
|
2022-01-27 07:52:47 +00:00
|
|
|
this.f638b = fVar2;
|
2021-12-17 21:59:34 +00:00
|
|
|
this.c = iVar;
|
2021-07-24 02:37:17 +00:00
|
|
|
this.e = dVar;
|
|
|
|
this.f = dVar2;
|
2022-01-13 08:07:50 +00:00
|
|
|
this.d = w0Var;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
2022-01-13 08:07:50 +00:00
|
|
|
@Override // b.f.j.p.w0
|
|
|
|
public void b(l<e> lVar, x0 x0Var) {
|
2021-07-24 02:37:17 +00:00
|
|
|
try {
|
|
|
|
b.b();
|
2022-01-13 08:07:50 +00:00
|
|
|
z0 o = x0Var.o();
|
|
|
|
o.e(x0Var, "EncodedProbeProducer");
|
2022-01-27 07:52:47 +00:00
|
|
|
a aVar = new a(lVar, x0Var, this.a, this.f638b, this.c, this.e, this.f);
|
2022-01-13 08:07:50 +00:00
|
|
|
o.j(x0Var, "EncodedProbeProducer", null);
|
2021-07-24 02:37:17 +00:00
|
|
|
b.b();
|
2022-01-13 08:07:50 +00:00
|
|
|
this.d.b(aVar, x0Var);
|
2021-07-24 02:37:17 +00:00
|
|
|
b.b();
|
|
|
|
} finally {
|
|
|
|
b.b();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|