package p023h0;

import android.graphics.Rect;
import android.os.Build;
import android.view.DisplayCutout;
import java.util.List;
import p020g0.C0734d;

/* renamed from: h0.q */
/* loaded from: classes.dex */
public final class C0914q {

    /* renamed from: a */
    public final DisplayCutout f2460a;

    /* renamed from: h0.q$a */
    /* loaded from: classes.dex */
    public static class C0915a {
        /* renamed from: a */
        public static DisplayCutout m2599a(Rect rect, List<Rect> list) {
            return new DisplayCutout(rect, list);
        }

        /* renamed from: b */
        public static List<Rect> m2598b(DisplayCutout displayCutout) {
            List<Rect> boundingRects;
            boundingRects = displayCutout.getBoundingRects();
            return boundingRects;
        }

        /* renamed from: c */
        public static int m2597c(DisplayCutout displayCutout) {
            int safeInsetBottom;
            safeInsetBottom = displayCutout.getSafeInsetBottom();
            return safeInsetBottom;
        }

        /* renamed from: d */
        public static int m2596d(DisplayCutout displayCutout) {
            int safeInsetLeft;
            safeInsetLeft = displayCutout.getSafeInsetLeft();
            return safeInsetLeft;
        }

        /* renamed from: e */
        public static int m2595e(DisplayCutout displayCutout) {
            int safeInsetRight;
            safeInsetRight = displayCutout.getSafeInsetRight();
            return safeInsetRight;
        }

        /* renamed from: f */
        public static int m2594f(DisplayCutout displayCutout) {
            int safeInsetTop;
            safeInsetTop = displayCutout.getSafeInsetTop();
            return safeInsetTop;
        }
    }

    public C0914q(DisplayCutout displayCutout) {
        this.f2460a = displayCutout;
    }

    /* renamed from: e */
    public static C0914q m2600e(DisplayCutout displayCutout) {
        if (displayCutout == null) {
            return null;
        }
        return new C0914q(displayCutout);
    }

    /* renamed from: a */
    public int m2604a() {
        if (Build.VERSION.SDK_INT >= 28) {
            return C0915a.m2597c(this.f2460a);
        }
        return 0;
    }

    /* renamed from: b */
    public int m2603b() {
        if (Build.VERSION.SDK_INT >= 28) {
            return C0915a.m2596d(this.f2460a);
        }
        return 0;
    }

    /* renamed from: c */
    public int m2602c() {
        if (Build.VERSION.SDK_INT >= 28) {
            return C0915a.m2595e(this.f2460a);
        }
        return 0;
    }

    /* renamed from: d */
    public int m2601d() {
        if (Build.VERSION.SDK_INT >= 28) {
            return C0915a.m2594f(this.f2460a);
        }
        return 0;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || C0914q.class != obj.getClass()) {
            return false;
        }
        return C0734d.m3043a(this.f2460a, ((C0914q) obj).f2460a);
    }

    public int hashCode() {
        int hashCode;
        DisplayCutout displayCutout = this.f2460a;
        if (displayCutout == null) {
            return 0;
        }
        hashCode = displayCutout.hashCode();
        return hashCode;
    }

    public String toString() {
        return "DisplayCutoutCompat{" + this.f2460a + "}";
    }
}