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.f;
|
|
|
|
import b.f.j.c.i;
|
|
|
|
import b.f.j.c.n;
|
|
|
|
import b.f.j.j.e;
|
2021-07-24 02:37:17 +00:00
|
|
|
import com.facebook.cache.common.CacheKey;
|
|
|
|
import com.facebook.imagepipeline.request.ImageRequest;
|
|
|
|
/* compiled from: DiskCacheWriteProducer */
|
2022-01-13 08:07:50 +00:00
|
|
|
public class t 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-13 08:07:50 +00:00
|
|
|
public final f f628b;
|
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
|
|
|
|
|
|
|
/* compiled from: DiskCacheWriteProducer */
|
|
|
|
public static class b 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;
|
|
|
|
|
2022-01-13 08:07:50 +00:00
|
|
|
public b(l lVar, x0 x0Var, f fVar, f fVar2, i iVar, a aVar) {
|
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;
|
|
|
|
}
|
|
|
|
|
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;
|
2021-12-17 21:59:34 +00:00
|
|
|
this.c.o().e(this.c, "DiskCacheWriteProducer");
|
2021-07-24 02:37:17 +00:00
|
|
|
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());
|
2022-01-13 08:07:50 +00:00
|
|
|
if (e.f2865b == ImageRequest.b.SMALL) {
|
2021-12-17 21:59:34 +00:00
|
|
|
this.e.f(b2, eVar);
|
2021-07-24 02:37:17 +00:00
|
|
|
} else {
|
2021-12-17 21:59:34 +00:00
|
|
|
this.d.f(b2, eVar);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
2021-12-17 21:59:34 +00:00
|
|
|
this.c.o().j(this.c, "DiskCacheWriteProducer", null);
|
2022-01-13 08:07:50 +00:00
|
|
|
this.f622b.b(eVar, i);
|
2021-07-24 02:37:17 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
2021-12-17 21:59:34 +00:00
|
|
|
this.c.o().j(this.c, "DiskCacheWriteProducer", null);
|
2022-01-13 08:07:50 +00:00
|
|
|
this.f622b.b(eVar, i);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-13 08:07:50 +00:00
|
|
|
public t(f fVar, f fVar2, i iVar, w0<e> w0Var) {
|
2021-07-24 02:37:17 +00:00
|
|
|
this.a = fVar;
|
2022-01-13 08:07:50 +00:00
|
|
|
this.f628b = fVar2;
|
2021-12-17 21:59:34 +00:00
|
|
|
this.c = iVar;
|
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) {
|
|
|
|
if (x0Var.q().g() >= ImageRequest.c.DISK_CACHE.g()) {
|
|
|
|
x0Var.i("disk", "nil-result_write");
|
2021-07-24 02:37:17 +00:00
|
|
|
lVar.b(null, 1);
|
|
|
|
return;
|
|
|
|
}
|
2022-01-13 08:07:50 +00:00
|
|
|
if (x0Var.e().b(32)) {
|
|
|
|
lVar = new b(lVar, x0Var, this.a, this.f628b, this.c, null);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
2022-01-13 08:07:50 +00:00
|
|
|
this.d.b(lVar, x0Var);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|