package androidx.appcompat.widget;

import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.widget.FrameLayout;

/* JADX INFO: loaded from: classes.dex */
public class ContentFrameLayout extends FrameLayout {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private TypedValue f314b;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    private TypedValue f315f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private TypedValue f316g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    private TypedValue f317h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    private TypedValue f318i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    private TypedValue f319j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    private final Rect f320k;
    private a l;

    public interface a {
        void a();

        void onDetachedFromWindow();
    }

    public ContentFrameLayout(Context context) {
        this(context, null);
    }

    public void a(Rect rect) {
        fitSystemWindows(rect);
    }

    public void b(int i2, int i3, int i4, int i5) {
        this.f320k.set(i2, i3, i4, i5);
        if (c.f.l.t.H(this)) {
            requestLayout();
        }
    }

    public TypedValue getFixedHeightMajor() {
        if (this.f318i == null) {
            this.f318i = new TypedValue();
        }
        return this.f318i;
    }

    public TypedValue getFixedHeightMinor() {
        if (this.f319j == null) {
            this.f319j = new TypedValue();
        }
        return this.f319j;
    }

    public TypedValue getFixedWidthMajor() {
        if (this.f316g == null) {
            this.f316g = new TypedValue();
        }
        return this.f316g;
    }

    public TypedValue getFixedWidthMinor() {
        if (this.f317h == null) {
            this.f317h = new TypedValue();
        }
        return this.f317h;
    }

    public TypedValue getMinWidthMajor() {
        if (this.f314b == null) {
            this.f314b = new TypedValue();
        }
        return this.f314b;
    }

    public TypedValue getMinWidthMinor() {
        if (this.f315f == null) {
            this.f315f = new TypedValue();
        }
        return this.f315f;
    }

    @Override // android.view.ViewGroup, android.view.View
    protected void onAttachedToWindow() {
        super.onAttachedToWindow();
        a aVar = this.l;
        if (aVar != null) {
            aVar.a();
        }
    }

    @Override // android.view.ViewGroup, android.view.View
    protected void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        a aVar = this.l;
        if (aVar != null) {
            aVar.onDetachedFromWindow();
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:21:0x004a  */
    /* JADX WARN: Removed duplicated region for block: B:22:0x0060  */
    /* JADX WARN: Removed duplicated region for block: B:37:0x0086  */
    /* JADX WARN: Removed duplicated region for block: B:54:0x00cc  */
    /* JADX WARN: Removed duplicated region for block: B:56:0x00d6  */
    /* JADX WARN: Removed duplicated region for block: B:57:0x00db  */
    @Override // android.widget.FrameLayout, android.view.View
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    protected void onMeasure(int r14, int r15) {
        /*
            Method dump skipped, instruction units count: 226
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.widget.ContentFrameLayout.onMeasure(int, int):void");
    }

    public void setAttachListener(a aVar) {
        this.l = aVar;
    }

    public ContentFrameLayout(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, 0);
    }

    public ContentFrameLayout(Context context, AttributeSet attributeSet, int i2) {
        super(context, attributeSet, i2);
        this.f320k = new Rect();
    }
}
