Home
last modified time | relevance | path

Searched refs:MenuBuilder (Results 1 – 25 of 86) sorted by relevance

1234

/frameworks/base/core/java/com/android/internal/view/menu/
DMenuPresenter.java39 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing); in onCloseMenu()
50 public boolean onOpenSubMenu(MenuBuilder subMenu); in onOpenSubMenu()
63 public void initForMenu(@NonNull Context context, @Nullable MenuBuilder menu); in initForMenu()
109 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing); in onCloseMenu()
124 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item); in expandItemActionView()
133 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item); in collapseItemActionView()
DSubMenuBuilder.java30 public class SubMenuBuilder extends MenuBuilder implements SubMenu {
31 private MenuBuilder mParentMenu;
34 public SubMenuBuilder(Context context, MenuBuilder parentMenu, MenuItemImpl item) { in SubMenuBuilder()
75 public MenuBuilder getRootMenu() { in getRootMenu()
80 boolean dispatchMenuItemSelected(MenuBuilder menu, MenuItem item) { in dispatchMenuItemSelected()
DMenuPopup.java54 public abstract void addMenu(MenuBuilder menu); in addMenu()
97 public void initForMenu(@NonNull Context context, @Nullable MenuBuilder menu) { in initForMenu()
107 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { in expandItemActionView()
112 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { in collapseItemActionView()
198 protected static boolean shouldPreserveIconSpacing(MenuBuilder menu) { in shouldPreserveIconSpacing()
DMenuDialogHelper.java34 private MenuBuilder mMenu;
39 public MenuDialogHelper(MenuBuilder menu) { in MenuDialogHelper()
50 final MenuBuilder menu = mMenu; in show()
148 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { in onCloseMenu()
158 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu()
DBaseMenuPresenter.java36 protected MenuBuilder mMenu;
63 public void initForMenu(@NonNull Context context, @Nullable MenuBuilder menu) { in initForMenu()
203 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { in onCloseMenu()
220 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { in expandItemActionView()
224 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { in collapseItemActionView()
DExpandedMenuView.java20 import com.android.internal.view.menu.MenuBuilder.ItemInvoker;
35 private MenuBuilder mMenu;
54 public void initialize(MenuBuilder menu) { in initialize()
DCascadingMenuPopup.java72 private final List<MenuBuilder> mPendingMenus = new LinkedList<>();
121 public void onItemHoverExit(@NonNull MenuBuilder menu, @NonNull MenuItem item) {
130 @NonNull final MenuBuilder menu, @NonNull final MenuItem item) {
245 for (MenuBuilder menu : mPendingMenus) { in show()
334 public void addMenu(MenuBuilder menu) { in addMenu()
349 private void showMenu(@NonNull MenuBuilder menu) { in showMenu()
460 @NonNull MenuBuilder parent, @NonNull MenuBuilder submenu) { in findMenuItemForSubmenu()
481 @NonNull CascadingMenuInfo parentInfo, @NonNull MenuBuilder submenu) { in findParentViewForSubmenu()
599 private int findIndexOfAddedMenu(@NonNull MenuBuilder menu) { in findIndexOfAddedMenu()
611 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { in onCloseMenu()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DMenuPresenter.java44 void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing); in onCloseMenu()
55 boolean onOpenSubMenu(MenuBuilder subMenu); in onOpenSubMenu()
68 void initForMenu(Context context, MenuBuilder menu); in initForMenu()
114 void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing); in onCloseMenu()
129 boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item); in expandItemActionView()
138 boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item); in collapseItemActionView()
DSubMenuBuilder.java36 public class SubMenuBuilder extends MenuBuilder implements SubMenu {
37 private MenuBuilder mParentMenu;
40 public SubMenuBuilder(Context context, MenuBuilder parentMenu, MenuItemImpl item) { in SubMenuBuilder()
82 public MenuBuilder getRootMenu() { in getRootMenu()
87 boolean dispatchMenuItemSelected(MenuBuilder menu, MenuItem item) { in dispatchMenuItemSelected()
DMenuPopup.java53 public abstract void addMenu(MenuBuilder menu); in addMenu()
96 public void initForMenu(@NonNull Context context, @Nullable MenuBuilder menu) { in initForMenu()
106 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { in expandItemActionView()
111 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { in collapseItemActionView()
200 protected static boolean shouldPreserveIconSpacing(MenuBuilder menu) { in shouldPreserveIconSpacing()
DMenuDialogHelper.java36 private MenuBuilder mMenu;
41 public MenuDialogHelper(MenuBuilder menu) { in MenuDialogHelper()
52 final MenuBuilder menu = mMenu; in show()
149 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { in onCloseMenu()
159 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu()
DBaseMenuPresenter.java41 protected MenuBuilder mMenu;
68 public void initForMenu(Context context, MenuBuilder menu) { in initForMenu()
211 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { in onCloseMenu()
231 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { in expandItemActionView()
236 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { in collapseItemActionView()
DCascadingMenuPopup.java88 private final List<MenuBuilder> mPendingMenus = new LinkedList<>();
137 public void onItemHoverExit(@NonNull MenuBuilder menu, @NonNull MenuItem item) {
146 @NonNull final MenuBuilder menu, @NonNull final MenuItem item) {
261 for (MenuBuilder menu : mPendingMenus) { in show()
350 public void addMenu(MenuBuilder menu) { in addMenu()
365 private void showMenu(@NonNull MenuBuilder menu) { in showMenu()
503 @NonNull MenuBuilder parent, @NonNull MenuBuilder submenu) { in findMenuItemForSubmenu()
524 @NonNull CascadingMenuInfo parentInfo, @NonNull MenuBuilder submenu) { in findParentViewForSubmenu()
642 private int findIndexOfAddedMenu(@NonNull MenuBuilder menu) { in findIndexOfAddedMenu()
654 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { in onCloseMenu()
[all …]
DExpandedMenuView.java23 import android.support.v7.view.menu.MenuBuilder.ItemInvoker;
46 private MenuBuilder mMenu;
71 public void initialize(MenuBuilder menu) { in initialize()
/frameworks/base/core/java/com/android/internal/view/
DStandaloneActionMode.java18 import com.android.internal.view.menu.MenuBuilder;
33 public class StandaloneActionMode extends ActionMode implements MenuBuilder.Callback {
41 private MenuBuilder mMenu;
49 mMenu = new MenuBuilder(view.getContext()).setDefaultShowAsAction( in StandaloneActionMode()
133 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { in onMenuItemSelected()
137 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { in onCloseMenu()
152 public void onMenuModeChange(MenuBuilder menu) { in onMenuModeChange()
/frameworks/support/v7/appcompat/src/android/support/v7/view/
DStandaloneActionMode.java22 import android.support.v7.view.menu.MenuBuilder;
38 public class StandaloneActionMode extends ActionMode implements MenuBuilder.Callback {
46 private MenuBuilder mMenu;
54 mMenu = new MenuBuilder(view.getContext()).setDefaultShowAsAction( in StandaloneActionMode()
139 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { in onMenuItemSelected()
143 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { in onCloseMenu()
159 public void onMenuModeChange(MenuBuilder menu) { in onMenuModeChange()
/frameworks/support/design/src/android/support/design/internal/
DBottomNavigationPresenter.java26 import android.support.v7.view.menu.MenuBuilder;
38 private MenuBuilder mMenu;
48 public void initForMenu(Context context, MenuBuilder menu) { in initForMenu()
77 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) {} in onCloseMenu()
85 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { in expandItemActionView()
90 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { in collapseItemActionView()
/frameworks/base/core/java/android/widget/
DPopupMenu.java30 import com.android.internal.view.menu.MenuBuilder;
43 private final MenuBuilder mMenu;
100 mMenu = new MenuBuilder(context); in PopupMenu()
101 mMenu.setCallback(new MenuBuilder.Callback() { in PopupMenu()
103 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { in PopupMenu()
111 public void onMenuModeChange(MenuBuilder menu) { in PopupMenu()
DMenuItemHoverListener.java6 import com.android.internal.view.menu.MenuBuilder;
24 void onItemHoverExit(@NonNull MenuBuilder menu, @NonNull MenuItem item); in onItemHoverExit()
32 void onItemHoverEnter(@NonNull MenuBuilder menu, @NonNull MenuItem item); in onItemHoverEnter()
DActionMenuView.java36 import com.android.internal.view.menu.MenuBuilder;
47 public class ActionMenuView extends LinearLayout implements MenuBuilder.ItemInvoker, MenuView {
53 private MenuBuilder mMenu;
64 private MenuBuilder.Callback mMenuBuilderCallback;
626 public void initialize(@Nullable MenuBuilder menu) { in initialize()
641 mMenu = new MenuBuilder(context); in getMenu()
658 public void setMenuCallbacks(MenuPresenter.Callback pcb, MenuBuilder.Callback mcb) { in setMenuCallbacks()
667 public MenuBuilder peekMenu() { in peekMenu()
758 private class MenuBuilderCallback implements MenuBuilder.Callback {
760 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { in onMenuItemSelected()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DPopupMenu.java27 import android.support.v7.view.menu.MenuBuilder;
46 private final MenuBuilder mMenu;
103 mMenu = new MenuBuilder(context); in PopupMenu()
104 mMenu.setCallback(new MenuBuilder.Callback() { in PopupMenu()
106 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { in PopupMenu()
114 public void onMenuModeChange(MenuBuilder menu) { in PopupMenu()
DMenuItemHoverListener.java23 import android.support.v7.view.menu.MenuBuilder;
43 void onItemHoverExit(@NonNull MenuBuilder menu, @NonNull MenuItem item); in onItemHoverExit()
51 void onItemHoverEnter(@NonNull MenuBuilder menu, @NonNull MenuItem item); in onItemHoverEnter()
DActionMenuView.java27 import android.support.v7.view.menu.MenuBuilder;
47 public class ActionMenuView extends LinearLayoutCompat implements MenuBuilder.ItemInvoker,
55 private MenuBuilder mMenu;
66 MenuBuilder.Callback mMenuBuilderCallback;
637 public void initialize(MenuBuilder menu) { in initialize()
652 mMenu = new MenuBuilder(context); in getMenu()
670 public void setMenuCallbacks(MenuPresenter.Callback pcb, MenuBuilder.Callback mcb) { in setMenuCallbacks()
680 public MenuBuilder peekMenu() { in peekMenu()
773 private class MenuBuilderCallback implements MenuBuilder.Callback {
778 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { in onMenuItemSelected()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBarWrapper.java25 import com.android.internal.view.menu.MenuBuilder;
127 MenuBuilder menuBuilder = getMenuBuilder(); in inflateMenus()
162 abstract MenuBuilder getMenuBuilder(); in getMenuBuilder()
201 MenuBuilder menu = getMenuBuilder(); in inflateMenus()
204 decorToolbar.setMenu(new MenuBuilder(getActionMenuContext()), null); in inflateMenus()
221 MenuBuilder getMenuBuilder() { in getMenuBuilder()
222 return (MenuBuilder) mToolbar.getMenu(); in getMenuBuilder()
257 private MenuBuilder mMenuBuilder;
316 MenuBuilder getMenuBuilder() { in getMenuBuilder()
318 mMenuBuilder = new MenuBuilder(getActionMenuContext()); in getMenuBuilder()
/frameworks/base/core/java/com/android/internal/app/
DToolbarActionBar.java20 import com.android.internal.view.menu.MenuBuilder;
448 final MenuBuilder mb = menu instanceof MenuBuilder ? (MenuBuilder) menu : null; in populateOptionsMenu()
542 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu()
551 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { in onCloseMenu()
565 private final class MenuBuilderCallback implements MenuBuilder.Callback {
568 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { in onMenuItemSelected()
573 public void onMenuModeChange(MenuBuilder menu) { in onMenuModeChange()

1234