2021-08-09 22:50:52 +00:00
|
|
|
package c.f.j.p;
|
|
|
|
|
|
|
|
import c.f.i.c;
|
|
|
|
import c.f.j.c.d;
|
|
|
|
import c.f.j.c.f;
|
|
|
|
import c.f.j.c.i;
|
|
|
|
import c.f.j.c.n;
|
|
|
|
import c.f.j.j.e;
|
|
|
|
import c.f.j.r.b;
|
|
|
|
import com.facebook.cache.common.CacheKey;
|
|
|
|
import com.facebook.imagepipeline.request.ImageRequest;
|
|
|
|
/* compiled from: EncodedProbeProducer */
|
|
|
|
public class w implements v0<e> {
|
|
|
|
public final f a;
|
|
|
|
public final f b;
|
|
|
|
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
2021-08-18 07:29:27 +00:00
|
|
|
public final i f509c;
|
2021-08-09 22:50:52 +00:00
|
|
|
public final v0<e> d;
|
|
|
|
public final d<CacheKey> e;
|
|
|
|
public final d<CacheKey> f;
|
|
|
|
|
|
|
|
/* compiled from: EncodedProbeProducer */
|
|
|
|
public static class a extends p<e, e> {
|
|
|
|
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
2021-08-18 07:29:27 +00:00
|
|
|
public final w0 f510c;
|
2021-08-09 22:50:52 +00:00
|
|
|
public final f d;
|
|
|
|
public final f e;
|
|
|
|
public final i f;
|
|
|
|
public final d<CacheKey> g;
|
|
|
|
public final d<CacheKey> h;
|
|
|
|
|
|
|
|
public a(l<e> lVar, w0 w0Var, f fVar, f fVar2, i iVar, d<CacheKey> dVar, d<CacheKey> dVar2) {
|
|
|
|
super(lVar);
|
2021-08-18 07:29:27 +00:00
|
|
|
this.f510c = w0Var;
|
2021-08-09 22:50:52 +00:00
|
|
|
this.d = fVar;
|
|
|
|
this.e = fVar2;
|
|
|
|
this.f = iVar;
|
|
|
|
this.g = dVar;
|
|
|
|
this.h = dVar2;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX INFO: finally extract failed */
|
|
|
|
@Override // c.f.j.p.b
|
|
|
|
public void i(Object obj, int i) {
|
|
|
|
e eVar = (e) obj;
|
|
|
|
try {
|
|
|
|
b.b();
|
|
|
|
if (!b.f(i) && eVar != null && !b.l(i, 10)) {
|
|
|
|
eVar.w();
|
|
|
|
if (eVar.k != c.a) {
|
2021-08-18 07:29:27 +00:00
|
|
|
ImageRequest e = this.f510c.e();
|
|
|
|
CacheKey b = ((n) this.f).b(e, this.f510c.b());
|
2021-08-09 22:50:52 +00:00
|
|
|
this.g.a(b);
|
2021-08-18 07:29:27 +00:00
|
|
|
if (this.f510c.l("origin").equals("memory_encoded")) {
|
2021-08-09 22:50:52 +00:00
|
|
|
if (!this.h.b(b)) {
|
|
|
|
(e.b == ImageRequest.b.SMALL ? this.e : this.d).c(b);
|
|
|
|
this.h.a(b);
|
|
|
|
}
|
2021-08-18 07:29:27 +00:00
|
|
|
} else if (this.f510c.l("origin").equals("disk")) {
|
2021-08-09 22:50:52 +00:00
|
|
|
this.h.a(b);
|
|
|
|
}
|
|
|
|
this.b.b(eVar, i);
|
|
|
|
b.b();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.b.b(eVar, i);
|
|
|
|
b.b();
|
|
|
|
} catch (Throwable th) {
|
|
|
|
b.b();
|
|
|
|
throw th;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public w(f fVar, f fVar2, i iVar, d dVar, d dVar2, v0<e> v0Var) {
|
|
|
|
this.a = fVar;
|
|
|
|
this.b = fVar2;
|
2021-08-18 07:29:27 +00:00
|
|
|
this.f509c = iVar;
|
2021-08-09 22:50:52 +00:00
|
|
|
this.e = dVar;
|
|
|
|
this.f = dVar2;
|
|
|
|
this.d = v0Var;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // c.f.j.p.v0
|
|
|
|
public void b(l<e> lVar, w0 w0Var) {
|
|
|
|
try {
|
|
|
|
b.b();
|
|
|
|
y0 o = w0Var.o();
|
|
|
|
o.e(w0Var, "EncodedProbeProducer");
|
2021-08-18 07:29:27 +00:00
|
|
|
a aVar = new a(lVar, w0Var, this.a, this.b, this.f509c, this.e, this.f);
|
2021-08-09 22:50:52 +00:00
|
|
|
o.j(w0Var, "EncodedProbeProducer", null);
|
|
|
|
b.b();
|
|
|
|
this.d.b(aVar, w0Var);
|
|
|
|
b.b();
|
|
|
|
} finally {
|
|
|
|
b.b();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|