package defpackage;

import android.graphics.Rect;
import android.view.WindowInsets;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;

/* renamed from: ᵯᵖˋ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4285 extends AbstractC0902 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public static Field f16068;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public static Constructor f16069;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public static boolean f16070;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public static boolean f16071;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public WindowInsets f16072;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public C4384 f16073;

    public C4285() {
        this.f16072 = m9266();
    }

    public C4285(C4250 c4250) {
        super(c4250);
        this.f16072 = c4250.m9196();
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    private static WindowInsets m9266() {
        if (!f16070) {
            try {
                f16068 = WindowInsets.class.getDeclaredField("CONSUMED");
            } catch (ReflectiveOperationException unused) {
            }
            f16070 = true;
        }
        Field field = f16068;
        if (field != null) {
            try {
                WindowInsets windowInsets = (WindowInsets) field.get(null);
                if (windowInsets != null) {
                    return new WindowInsets(windowInsets);
                }
            } catch (ReflectiveOperationException unused2) {
            }
        }
        if (!f16071) {
            try {
                f16069 = WindowInsets.class.getConstructor(Rect.class);
            } catch (ReflectiveOperationException unused3) {
            }
            f16071 = true;
        }
        Constructor constructor = f16069;
        if (constructor != null) {
            try {
                return (WindowInsets) constructor.newInstance(new Rect());
            } catch (ReflectiveOperationException unused4) {
            }
        }
        return null;
    }

    @Override // defpackage.AbstractC0902
    /* renamed from: ˇʼʤˎ */
    public void mo3024(C4384 c4384) {
        WindowInsets windowInsets = this.f16072;
        if (windowInsets != null) {
            this.f16072 = windowInsets.replaceSystemWindowInsets(c4384.f16425, c4384.f16426, c4384.f16424, c4384.f16427);
        }
    }

    @Override // defpackage.AbstractC0902
    /* renamed from: ᵴᵳ */
    public C4250 mo3027() {
        m3026();
        C4250 c4250M9194 = C4250.m9194(this.f16072, null);
        C2387 c2387 = c4250M9194.f15918;
        c2387.mo5236(null);
        c2387.mo3844(this.f16073);
        c2387.mo5234(null);
        c2387.mo5240(this.f4079);
        c2387.mo5239(this.f4080);
        return c4250M9194;
    }

    @Override // defpackage.AbstractC0902
    /* renamed from: ᵻᵢﹳᵰ */
    public void mo3028(C4384 c4384) {
        this.f16073 = c4384;
    }
}
