package o;

import android.content.Context;
import android.util.DisplayMetrics;
import android.view.View;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.tV, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2526tV extends C2896xL {
    public final /* synthetic */ C2621uV p;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2526tV(C2621uV c2621uV, Context context) {
        super(context);
        this.p = c2621uV;
    }

    @Override // o.C2896xL
    public final float d(DisplayMetrics displayMetrics) {
        return 100.0f / displayMetrics.densityDpi;
    }

    @Override // o.C2896xL
    public final int e(int i) {
        return Math.min(100, super.e(i));
    }

    @Override // o.C2896xL
    public final void h(View view, C2014o10 c2014o10) {
        C2621uV c2621uV = this.p;
        int[] iArrA = c2621uV.a(c2621uV.a.getLayoutManager(), view);
        int i = iArrA[0];
        int i2 = iArrA[1];
        int iCeil = (int) Math.ceil(e(Math.max(Math.abs(i), Math.abs(i2))) / 0.3356d);
        if (iCeil > 0) {
            c2014o10.a = i;
            c2014o10.b = i2;
            c2014o10.c = iCeil;
            c2014o10.e = this.i;
            c2014o10.f = true;
        }
    }
}
