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: e, reason: collision with root package name */
    private TypedValue f665e;

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

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

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

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

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

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

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    private a f672l;

    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 i3, int i4, int i5, int i6) {
        this.f671k.set(i3, i4, i5, i6);
        if (androidx.core.view.y.V(this)) {
            requestLayout();
        }
    }

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

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

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

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

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

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

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

    @Override // android.view.ViewGroup, android.view.View
    protected void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        a aVar = this.f672l;
        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.f672l = aVar;
    }

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

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