package p023h0;

import android.content.res.ColorStateList;
import android.graphics.PorterDuff;
import android.os.Build;
import android.util.Log;
import android.view.MenuItem;
import p005b0.InterfaceMenuItemC0469b;

/* renamed from: h0.r0 */
/* loaded from: classes.dex */
public final class C0937r0 {

    /* renamed from: h0.r0$a */
    /* loaded from: classes.dex */
    public static class C0938a {
        /* renamed from: a */
        public static int m2520a(MenuItem menuItem) {
            int alphabeticModifiers;
            alphabeticModifiers = menuItem.getAlphabeticModifiers();
            return alphabeticModifiers;
        }

        /* renamed from: b */
        public static CharSequence m2519b(MenuItem menuItem) {
            CharSequence contentDescription;
            contentDescription = menuItem.getContentDescription();
            return contentDescription;
        }

        /* renamed from: c */
        public static ColorStateList m2518c(MenuItem menuItem) {
            ColorStateList iconTintList;
            iconTintList = menuItem.getIconTintList();
            return iconTintList;
        }

        /* renamed from: d */
        public static PorterDuff.Mode m2517d(MenuItem menuItem) {
            PorterDuff.Mode iconTintMode;
            iconTintMode = menuItem.getIconTintMode();
            return iconTintMode;
        }

        /* renamed from: e */
        public static int m2516e(MenuItem menuItem) {
            int numericModifiers;
            numericModifiers = menuItem.getNumericModifiers();
            return numericModifiers;
        }

        /* renamed from: f */
        public static CharSequence m2515f(MenuItem menuItem) {
            CharSequence tooltipText;
            tooltipText = menuItem.getTooltipText();
            return tooltipText;
        }

        /* renamed from: g */
        public static MenuItem m2514g(MenuItem menuItem, char c, int i) {
            MenuItem alphabeticShortcut;
            alphabeticShortcut = menuItem.setAlphabeticShortcut(c, i);
            return alphabeticShortcut;
        }

        /* renamed from: h */
        public static MenuItem m2513h(MenuItem menuItem, CharSequence charSequence) {
            MenuItem contentDescription;
            contentDescription = menuItem.setContentDescription(charSequence);
            return contentDescription;
        }

        /* renamed from: i */
        public static MenuItem m2512i(MenuItem menuItem, ColorStateList colorStateList) {
            MenuItem iconTintList;
            iconTintList = menuItem.setIconTintList(colorStateList);
            return iconTintList;
        }

        /* renamed from: j */
        public static MenuItem m2511j(MenuItem menuItem, PorterDuff.Mode mode) {
            MenuItem iconTintMode;
            iconTintMode = menuItem.setIconTintMode(mode);
            return iconTintMode;
        }

        /* renamed from: k */
        public static MenuItem m2510k(MenuItem menuItem, char c, int i) {
            MenuItem numericShortcut;
            numericShortcut = menuItem.setNumericShortcut(c, i);
            return numericShortcut;
        }

        /* renamed from: l */
        public static MenuItem m2509l(MenuItem menuItem, char c, char c2, int i, int i2) {
            MenuItem shortcut;
            shortcut = menuItem.setShortcut(c, c2, i, i2);
            return shortcut;
        }

        /* renamed from: m */
        public static MenuItem m2508m(MenuItem menuItem, CharSequence charSequence) {
            MenuItem tooltipText;
            tooltipText = menuItem.setTooltipText(charSequence);
            return tooltipText;
        }
    }

    /* renamed from: a */
    public static MenuItem m2527a(MenuItem menuItem, AbstractC0775b abstractC0775b) {
        if (menuItem instanceof InterfaceMenuItemC0469b) {
            return ((InterfaceMenuItemC0469b) menuItem).mo2420a(abstractC0775b);
        }
        Log.w("MenuItemCompat", "setActionProvider: item does not implement SupportMenuItem; ignoring");
        return menuItem;
    }

    /* renamed from: b */
    public static void m2526b(MenuItem menuItem, char c, int i) {
        if (menuItem instanceof InterfaceMenuItemC0469b) {
            ((InterfaceMenuItemC0469b) menuItem).setAlphabeticShortcut(c, i);
        } else if (Build.VERSION.SDK_INT >= 26) {
            C0938a.m2514g(menuItem, c, i);
        }
    }

    /* renamed from: c */
    public static void m2525c(MenuItem menuItem, CharSequence charSequence) {
        if (menuItem instanceof InterfaceMenuItemC0469b) {
            ((InterfaceMenuItemC0469b) menuItem).setContentDescription(charSequence);
        } else if (Build.VERSION.SDK_INT >= 26) {
            C0938a.m2513h(menuItem, charSequence);
        }
    }

    /* renamed from: d */
    public static void m2524d(MenuItem menuItem, ColorStateList colorStateList) {
        if (menuItem instanceof InterfaceMenuItemC0469b) {
            ((InterfaceMenuItemC0469b) menuItem).setIconTintList(colorStateList);
        } else if (Build.VERSION.SDK_INT >= 26) {
            C0938a.m2512i(menuItem, colorStateList);
        }
    }

    /* renamed from: e */
    public static void m2523e(MenuItem menuItem, PorterDuff.Mode mode) {
        if (menuItem instanceof InterfaceMenuItemC0469b) {
            ((InterfaceMenuItemC0469b) menuItem).setIconTintMode(mode);
        } else if (Build.VERSION.SDK_INT >= 26) {
            C0938a.m2511j(menuItem, mode);
        }
    }

    /* renamed from: f */
    public static void m2522f(MenuItem menuItem, char c, int i) {
        if (menuItem instanceof InterfaceMenuItemC0469b) {
            ((InterfaceMenuItemC0469b) menuItem).setNumericShortcut(c, i);
        } else if (Build.VERSION.SDK_INT >= 26) {
            C0938a.m2510k(menuItem, c, i);
        }
    }

    /* renamed from: g */
    public static void m2521g(MenuItem menuItem, CharSequence charSequence) {
        if (menuItem instanceof InterfaceMenuItemC0469b) {
            ((InterfaceMenuItemC0469b) menuItem).setTooltipText(charSequence);
        } else if (Build.VERSION.SDK_INT >= 26) {
            C0938a.m2508m(menuItem, charSequence);
        }
    }
}