what-the-bank/sources/o/C13022fOc.java

104 lines
2.9 KiB
Java

package o;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.os.Message;
import com.squareup.picasso.Picasso;
/* renamed from: o.fOc, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C13022fOc {
final fNB a;
long b;
long c;
long d;
long e;
long f;
long g;
int h;
public final Handler i;
int j;
long k;
int l;
long m;
private HandlerThread n;
public C13022fOc(fNB fnb) {
this.a = fnb;
HandlerThread handlerThread = new HandlerThread("Picasso-Stats", 10);
this.n = handlerThread;
handlerThread.start();
C13025fOf.aBF_(handlerThread.getLooper());
this.i = new RVV(handlerThread.getLooper(), this);
}
/* renamed from: o.fOc$RVV */
/* loaded from: classes.dex */
static class RVV extends Handler {
private final C13022fOc d;
RVV(Looper looper, C13022fOc c13022fOc) {
super(looper);
this.d = c13022fOc;
}
@Override // android.os.Handler
public final void handleMessage(Message message) {
int i = message.what;
if (i == 0) {
this.d.e++;
return;
}
if (i == 1) {
this.d.g++;
return;
}
if (i == 2) {
C13022fOc c13022fOc = this.d;
long j = message.arg1;
int i2 = c13022fOc.j + 1;
c13022fOc.j = i2;
long j2 = c13022fOc.m + j;
c13022fOc.m = j2;
c13022fOc.c = j2 / i2;
return;
}
if (i == 3) {
C13022fOc c13022fOc2 = this.d;
long j3 = message.arg1;
c13022fOc2.l++;
long j4 = c13022fOc2.k + j3;
c13022fOc2.k = j4;
c13022fOc2.d = j4 / c13022fOc2.j;
return;
}
if (i == 4) {
C13022fOc c13022fOc3 = this.d;
Long l = (Long) message.obj;
c13022fOc3.h++;
long longValue = c13022fOc3.f + l.longValue();
c13022fOc3.f = longValue;
c13022fOc3.b = longValue / c13022fOc3.h;
return;
}
Picasso.d.post(new Runnable(this, message) { // from class: o.fOc.RVV.4
private RVV b;
private Message c;
{
this.b = this;
this.c = message;
}
@Override // java.lang.Runnable
public final void run() {
StringBuilder sb = new StringBuilder("Unhandled stats message.");
sb.append(this.c.what);
throw new AssertionError(sb.toString());
}
});
}
}
}