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

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

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

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

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private TypedValue f483g;
    private TypedValue h;
    private final Rect i;
    private a j;

    public interface a {
        void a();

        void onDetachedFromWindow();
    }

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

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

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

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

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

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

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

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

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

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

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