package p025i;

import android.content.Context;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.view.ActionProvider;
import android.view.ContextMenu;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
import p001a0.C0012f;
import p005b0.InterfaceMenuItemC0469b;
import p023h0.AbstractC0775b;
import p069x.C1794a;

/* renamed from: i.a */
/* loaded from: classes.dex */
public class C1004a implements InterfaceMenuItemC0469b {

    /* renamed from: a */
    public final int f2510a;

    /* renamed from: b */
    public final int f2511b;

    /* renamed from: c */
    public final int f2512c;

    /* renamed from: d */
    public CharSequence f2513d;

    /* renamed from: e */
    public CharSequence f2514e;

    /* renamed from: f */
    public Intent f2515f;

    /* renamed from: g */
    public char f2516g;

    /* renamed from: i */
    public char f2518i;

    /* renamed from: k */
    public Drawable f2520k;

    /* renamed from: l */
    public Context f2521l;

    /* renamed from: m */
    public MenuItem.OnMenuItemClickListener f2522m;

    /* renamed from: n */
    public CharSequence f2523n;

    /* renamed from: o */
    public CharSequence f2524o;

    /* renamed from: h */
    public int f2517h = 4096;

    /* renamed from: j */
    public int f2519j = 4096;

    /* renamed from: p */
    public ColorStateList f2525p = null;

    /* renamed from: q */
    public PorterDuff.Mode f2526q = null;

    /* renamed from: r */
    public boolean f2527r = false;

    /* renamed from: s */
    public boolean f2528s = false;

    /* renamed from: t */
    public int f2529t = 16;

    public C1004a(Context context, int i, int i2, int i3, int i4, CharSequence charSequence) {
        this.f2521l = context;
        this.f2510a = i2;
        this.f2511b = i;
        this.f2512c = i4;
        this.f2513d = charSequence;
    }

    @Override // p005b0.InterfaceMenuItemC0469b
    /* renamed from: a */
    public InterfaceMenuItemC0469b mo2420a(AbstractC0775b abstractC0775b) {
        throw new UnsupportedOperationException();
    }

    @Override // p005b0.InterfaceMenuItemC0469b
    /* renamed from: b */
    public AbstractC0775b mo2419b() {
        return null;
    }

    /* renamed from: c */
    public final void m2418c() {
        Drawable drawable = this.f2520k;
        if (drawable != null) {
            if (this.f2527r || this.f2528s) {
                Drawable m5083p = C0012f.m5083p(drawable);
                this.f2520k = m5083p;
                Drawable mutate = m5083p.mutate();
                this.f2520k = mutate;
                if (this.f2527r) {
                    C0012f.m5085n(mutate, this.f2525p);
                }
                if (this.f2528s) {
                    C0012f.m5084o(this.f2520k, this.f2526q);
                }
            }
        }
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public boolean collapseActionView() {
        return false;
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    /* renamed from: d */
    public InterfaceMenuItemC0469b setActionView(int i) {
        throw new UnsupportedOperationException();
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    /* renamed from: e */
    public InterfaceMenuItemC0469b setActionView(View view) {
        throw new UnsupportedOperationException();
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public boolean expandActionView() {
        return false;
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    /* renamed from: f */
    public InterfaceMenuItemC0469b setShowAsActionFlags(int i) {
        setShowAsAction(i);
        return this;
    }

    @Override // android.view.MenuItem
    public ActionProvider getActionProvider() {
        throw new UnsupportedOperationException();
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public View getActionView() {
        return null;
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public int getAlphabeticModifiers() {
        return this.f2519j;
    }

    @Override // android.view.MenuItem
    public char getAlphabeticShortcut() {
        return this.f2518i;
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public CharSequence getContentDescription() {
        return this.f2523n;
    }

    @Override // android.view.MenuItem
    public int getGroupId() {
        return this.f2511b;
    }

    @Override // android.view.MenuItem
    public Drawable getIcon() {
        return this.f2520k;
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public ColorStateList getIconTintList() {
        return this.f2525p;
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public PorterDuff.Mode getIconTintMode() {
        return this.f2526q;
    }

    @Override // android.view.MenuItem
    public Intent getIntent() {
        return this.f2515f;
    }

    @Override // android.view.MenuItem
    public int getItemId() {
        return this.f2510a;
    }

    @Override // android.view.MenuItem
    public ContextMenu.ContextMenuInfo getMenuInfo() {
        return null;
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public int getNumericModifiers() {
        return this.f2517h;
    }

    @Override // android.view.MenuItem
    public char getNumericShortcut() {
        return this.f2516g;
    }

    @Override // android.view.MenuItem
    public int getOrder() {
        return this.f2512c;
    }

    @Override // android.view.MenuItem
    public SubMenu getSubMenu() {
        return null;
    }

    @Override // android.view.MenuItem
    public CharSequence getTitle() {
        return this.f2513d;
    }

    @Override // android.view.MenuItem
    public CharSequence getTitleCondensed() {
        CharSequence charSequence = this.f2514e;
        return charSequence != null ? charSequence : this.f2513d;
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public CharSequence getTooltipText() {
        return this.f2524o;
    }

    @Override // android.view.MenuItem
    public boolean hasSubMenu() {
        return false;
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public boolean isActionViewExpanded() {
        return false;
    }

    @Override // android.view.MenuItem
    public boolean isCheckable() {
        return (this.f2529t & 1) != 0;
    }

    @Override // android.view.MenuItem
    public boolean isChecked() {
        return (this.f2529t & 2) != 0;
    }

    @Override // android.view.MenuItem
    public boolean isEnabled() {
        return (this.f2529t & 16) != 0;
    }

    @Override // android.view.MenuItem
    public boolean isVisible() {
        return (this.f2529t & 8) == 0;
    }

    @Override // android.view.MenuItem
    public MenuItem setActionProvider(ActionProvider actionProvider) {
        throw new UnsupportedOperationException();
    }

    @Override // android.view.MenuItem
    public MenuItem setAlphabeticShortcut(char c) {
        this.f2518i = Character.toLowerCase(c);
        return this;
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public MenuItem setAlphabeticShortcut(char c, int i) {
        this.f2518i = Character.toLowerCase(c);
        this.f2519j = KeyEvent.normalizeMetaState(i);
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setCheckable(boolean z) {
        this.f2529t = (z ? 1 : 0) | (this.f2529t & (-2));
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setChecked(boolean z) {
        this.f2529t = (z ? 2 : 0) | (this.f2529t & (-3));
        return this;
    }

    @Override // android.view.MenuItem
    public InterfaceMenuItemC0469b setContentDescription(CharSequence charSequence) {
        this.f2523n = charSequence;
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setEnabled(boolean z) {
        this.f2529t = (z ? 16 : 0) | (this.f2529t & (-17));
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setIcon(int i) {
        this.f2520k = C1794a.m388d(this.f2521l, i);
        m2418c();
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setIcon(Drawable drawable) {
        this.f2520k = drawable;
        m2418c();
        return this;
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public MenuItem setIconTintList(ColorStateList colorStateList) {
        this.f2525p = colorStateList;
        this.f2527r = true;
        m2418c();
        return this;
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public MenuItem setIconTintMode(PorterDuff.Mode mode) {
        this.f2526q = mode;
        this.f2528s = true;
        m2418c();
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setIntent(Intent intent) {
        this.f2515f = intent;
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setNumericShortcut(char c) {
        this.f2516g = c;
        return this;
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public MenuItem setNumericShortcut(char c, int i) {
        this.f2516g = c;
        this.f2517h = KeyEvent.normalizeMetaState(i);
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setOnActionExpandListener(MenuItem.OnActionExpandListener onActionExpandListener) {
        throw new UnsupportedOperationException();
    }

    @Override // android.view.MenuItem
    public MenuItem setOnMenuItemClickListener(MenuItem.OnMenuItemClickListener onMenuItemClickListener) {
        this.f2522m = onMenuItemClickListener;
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setShortcut(char c, char c2) {
        this.f2516g = c;
        this.f2518i = Character.toLowerCase(c2);
        return this;
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public MenuItem setShortcut(char c, char c2, int i, int i2) {
        this.f2516g = c;
        this.f2517h = KeyEvent.normalizeMetaState(i);
        this.f2518i = Character.toLowerCase(c2);
        this.f2519j = KeyEvent.normalizeMetaState(i2);
        return this;
    }

    @Override // p005b0.InterfaceMenuItemC0469b, android.view.MenuItem
    public void setShowAsAction(int i) {
    }

    @Override // android.view.MenuItem
    public MenuItem setTitle(int i) {
        this.f2513d = this.f2521l.getResources().getString(i);
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setTitle(CharSequence charSequence) {
        this.f2513d = charSequence;
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setTitleCondensed(CharSequence charSequence) {
        this.f2514e = charSequence;
        return this;
    }

    @Override // android.view.MenuItem
    public InterfaceMenuItemC0469b setTooltipText(CharSequence charSequence) {
        this.f2524o = charSequence;
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setVisible(boolean z) {
        this.f2529t = (this.f2529t & 8) | (z ? 0 : 8);
        return this;
    }
}