2021-07-24 02:37:17 +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-12-02 18:53:44 +00:00
|
|
|
public final i f519c;
|
2021-07-24 02:37:17 +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-12-02 18:53:44 +00:00
|
|
|
public final w0 f520c;
|
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;
|
|
|
|
|
|
|
|
public a(l<e> lVar, w0 w0Var, f fVar, f fVar2, i iVar, d<CacheKey> dVar, d<CacheKey> dVar2) {
|
|
|
|
super(lVar);
|
2021-12-02 18:53:44 +00:00
|
|
|
this.f520c = w0Var;
|
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 */
|
|
|
|
@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)) {
|
2021-11-05 06:48:17 +00:00
|
|
|
eVar.u();
|
2021-12-02 18:53:44 +00:00
|
|
|
if (eVar.l != c.a) {
|
|
|
|
ImageRequest e = this.f520c.e();
|
|
|
|
CacheKey b = ((n) this.f).b(e, this.f520c.b());
|
2021-07-24 02:37:17 +00:00
|
|
|
this.g.a(b);
|
2021-12-02 18:53:44 +00:00
|
|
|
if (this.f520c.l("origin").equals("memory_encoded")) {
|
2021-07-24 02:37:17 +00:00
|
|
|
if (!this.h.b(b)) {
|
|
|
|
(e.b == ImageRequest.b.SMALL ? this.e : this.d).c(b);
|
|
|
|
this.h.a(b);
|
|
|
|
}
|
2021-12-02 18:53:44 +00:00
|
|
|
} else if (this.f520c.l("origin").equals("disk")) {
|
2021-07-24 02:37:17 +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-12-02 18:53:44 +00:00
|
|
|
this.f519c = iVar;
|
2021-07-24 02:37:17 +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-12-02 18:53:44 +00:00
|
|
|
a aVar = new a(lVar, w0Var, this.a, this.b, this.f519c, this.e, this.f);
|
2021-07-24 02:37:17 +00:00
|
|
|
o.j(w0Var, "EncodedProbeProducer", null);
|
|
|
|
b.b();
|
|
|
|
this.d.b(aVar, w0Var);
|
|
|
|
b.b();
|
|
|
|
} finally {
|
|
|
|
b.b();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|