package d.p.b;

import android.view.View;
import android.view.ViewGroup;
import androidx.recyclerview.widget.RecyclerView;

/* JADX INFO: loaded from: classes.dex */
public final class r extends s {
    public r(RecyclerView.l lVar) {
        super(lVar, null);
    }

    @Override // d.p.b.s
    public int b(View view) {
        return this.a.B(view) + ((ViewGroup.MarginLayoutParams) ((RecyclerView.m) view.getLayoutParams())).bottomMargin;
    }

    @Override // d.p.b.s
    public int c(View view) {
        RecyclerView.m mVar = (RecyclerView.m) view.getLayoutParams();
        return this.a.E(view) + ((ViewGroup.MarginLayoutParams) mVar).topMargin + ((ViewGroup.MarginLayoutParams) mVar).bottomMargin;
    }

    @Override // d.p.b.s
    public int d(View view) {
        RecyclerView.m mVar = (RecyclerView.m) view.getLayoutParams();
        return this.a.F(view) + ((ViewGroup.MarginLayoutParams) mVar).leftMargin + ((ViewGroup.MarginLayoutParams) mVar).rightMargin;
    }

    @Override // d.p.b.s
    public int e(View view) {
        return this.a.H(view) - ((ViewGroup.MarginLayoutParams) ((RecyclerView.m) view.getLayoutParams())).topMargin;
    }

    @Override // d.p.b.s
    public int f() {
        return this.a.f781q;
    }

    @Override // d.p.b.s
    public int g() {
        RecyclerView.l lVar = this.a;
        return lVar.f781q - lVar.N();
    }

    @Override // d.p.b.s
    public int h() {
        return this.a.N();
    }

    @Override // d.p.b.s
    public int i() {
        return this.a.f779o;
    }

    @Override // d.p.b.s
    public int j() {
        return this.a.f778n;
    }

    @Override // d.p.b.s
    public int k() {
        return this.a.Q();
    }

    @Override // d.p.b.s
    public int l() {
        RecyclerView.l lVar = this.a;
        return (lVar.f781q - lVar.Q()) - this.a.N();
    }

    @Override // d.p.b.s
    public int n(View view) {
        this.a.V(view, true, this.f3345c);
        return this.f3345c.bottom;
    }

    @Override // d.p.b.s
    public int o(View view) {
        this.a.V(view, true, this.f3345c);
        return this.f3345c.top;
    }

    @Override // d.p.b.s
    public void p(int i2) {
        this.a.c0(i2);
    }
}
