package p025i;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.SubMenu;
import p005b0.InterfaceMenuC0468a;

/* renamed from: i.f */
/* loaded from: classes.dex */
public class MenuC1014f extends AbstractC1005b implements Menu {

    /* renamed from: d */
    public final InterfaceMenuC0468a f2545d;

    public MenuC1014f(Context context, InterfaceMenuC0468a interfaceMenuC0468a) {
        super(context);
        if (interfaceMenuC0468a == null) {
            throw new IllegalArgumentException("Wrapped Object can not be null.");
        }
        this.f2545d = interfaceMenuC0468a;
    }

    @Override // android.view.Menu
    public MenuItem add(int i) {
        return m2414c(this.f2545d.add(i));
    }

    @Override // android.view.Menu
    public MenuItem add(int i, int i2, int i3, int i4) {
        return m2414c(this.f2545d.add(i, i2, i3, i4));
    }

    @Override // android.view.Menu
    public MenuItem add(int i, int i2, int i3, CharSequence charSequence) {
        return m2414c(this.f2545d.add(i, i2, i3, charSequence));
    }

    @Override // android.view.Menu
    public MenuItem add(CharSequence charSequence) {
        return m2414c(this.f2545d.add(charSequence));
    }

    @Override // android.view.Menu
    public int addIntentOptions(int i, int i2, int i3, ComponentName componentName, Intent[] intentArr, Intent intent, int i4, MenuItem[] menuItemArr) {
        MenuItem[] menuItemArr2 = menuItemArr != null ? new MenuItem[menuItemArr.length] : null;
        int addIntentOptions = this.f2545d.addIntentOptions(i, i2, i3, componentName, intentArr, intent, i4, menuItemArr2);
        if (menuItemArr2 != null) {
            int length = menuItemArr2.length;
            for (int i5 = 0; i5 < length; i5++) {
                menuItemArr[i5] = m2414c(menuItemArr2[i5]);
            }
        }
        return addIntentOptions;
    }

    @Override // android.view.Menu
    public SubMenu addSubMenu(int i) {
        return m2413d(this.f2545d.addSubMenu(i));
    }

    @Override // android.view.Menu
    public SubMenu addSubMenu(int i, int i2, int i3, int i4) {
        return m2413d(this.f2545d.addSubMenu(i, i2, i3, i4));
    }

    @Override // android.view.Menu
    public SubMenu addSubMenu(int i, int i2, int i3, CharSequence charSequence) {
        return m2413d(this.f2545d.addSubMenu(i, i2, i3, charSequence));
    }

    @Override // android.view.Menu
    public SubMenu addSubMenu(CharSequence charSequence) {
        return m2413d(this.f2545d.addSubMenu(charSequence));
    }

    @Override // android.view.Menu
    public void clear() {
        m2412e();
        this.f2545d.clear();
    }

    @Override // android.view.Menu
    public void close() {
        this.f2545d.close();
    }

    @Override // android.view.Menu
    public MenuItem findItem(int i) {
        return m2414c(this.f2545d.findItem(i));
    }

    @Override // android.view.Menu
    public MenuItem getItem(int i) {
        return m2414c(this.f2545d.getItem(i));
    }

    @Override // android.view.Menu
    public boolean hasVisibleItems() {
        return this.f2545d.hasVisibleItems();
    }

    @Override // android.view.Menu
    public boolean isShortcutKey(int i, KeyEvent keyEvent) {
        return this.f2545d.isShortcutKey(i, keyEvent);
    }

    @Override // android.view.Menu
    public boolean performIdentifierAction(int i, int i2) {
        return this.f2545d.performIdentifierAction(i, i2);
    }

    @Override // android.view.Menu
    public boolean performShortcut(int i, KeyEvent keyEvent, int i2) {
        return this.f2545d.performShortcut(i, keyEvent, i2);
    }

    @Override // android.view.Menu
    public void removeGroup(int i) {
        m2411f(i);
        this.f2545d.removeGroup(i);
    }

    @Override // android.view.Menu
    public void removeItem(int i) {
        m2410g(i);
        this.f2545d.removeItem(i);
    }

    @Override // android.view.Menu
    public void setGroupCheckable(int i, boolean z, boolean z2) {
        this.f2545d.setGroupCheckable(i, z, z2);
    }

    @Override // android.view.Menu
    public void setGroupEnabled(int i, boolean z) {
        this.f2545d.setGroupEnabled(i, z);
    }

    @Override // android.view.Menu
    public void setGroupVisible(int i, boolean z) {
        this.f2545d.setGroupVisible(i, z);
    }

    @Override // android.view.Menu
    public void setQwertyMode(boolean z) {
        this.f2545d.setQwertyMode(z);
    }

    @Override // android.view.Menu
    public int size() {
        return this.f2545d.size();
    }
}