package o; import android.app.Activity; import android.content.Context; import android.graphics.Point; import android.graphics.Rect; import android.view.View; /* renamed from: o.fML, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public final class C12951fML { public static final /* synthetic */ Point aAY_(View view) { C14957gcv.e(view, ""); int[] iArr = {0, 0}; view.getLocationOnScreen(iArr); return new Point(iArr[0], iArr[1]); } public static final /* synthetic */ int d(View view, boolean z) { C14957gcv.e(view, ""); Rect rect = new Rect(); Context context = view.getContext(); if (!(context instanceof Activity) || !z) { return 0; } ((Activity) context).getWindow().getDecorView().getWindowVisibleDisplayFrame(rect); return rect.top; } }