Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/com/android/internal/view/menu/
DMenuPresenter.java40 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing); in onCloseMenu()
52 public boolean onOpenSubMenu(MenuBuilder subMenu); in onOpenSubMenu()
65 public void initForMenu(@NonNull Context context, @Nullable MenuBuilder menu); in initForMenu()
111 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing); in onCloseMenu()
126 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item); in expandItemActionView()
135 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item); in collapseItemActionView()
DSubMenuBuilder.java31 public class SubMenuBuilder extends MenuBuilder implements SubMenu {
32 private MenuBuilder mParentMenu;
35 public SubMenuBuilder(Context context, MenuBuilder parentMenu, MenuItemImpl item) { in SubMenuBuilder()
78 public MenuBuilder getRootMenu() { in getRootMenu()
83 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.java35 private MenuBuilder mMenu;
41 public MenuDialogHelper(MenuBuilder menu) { in MenuDialogHelper()
53 final MenuBuilder menu = mMenu; in show()
152 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { in onCloseMenu()
162 public boolean onOpenSubMenu(MenuBuilder subMenu) { in onOpenSubMenu()
DCascadingMenuPopup.java73 private final List<MenuBuilder> mPendingMenus = new LinkedList<>();
122 public void onItemHoverExit(@NonNull MenuBuilder menu, @NonNull MenuItem item) {
131 @NonNull final MenuBuilder menu, @NonNull final MenuItem item) {
246 for (MenuBuilder menu : mPendingMenus) { in show()
335 public void addMenu(MenuBuilder menu) { in addMenu()
350 private void showMenu(@NonNull MenuBuilder menu) { in showMenu()
461 @NonNull MenuBuilder parent, @NonNull MenuBuilder submenu) { in findMenuItemForSubmenu()
482 @NonNull CascadingMenuInfo parentInfo, @NonNull MenuBuilder submenu) { in findParentViewForSubmenu()
600 private int findIndexOfAddedMenu(@NonNull MenuBuilder menu) { in findIndexOfAddedMenu()
612 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { in onCloseMenu()
[all …]
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()
DMenuPopupHelper.java44 private final MenuBuilder mMenu;
60 public MenuPopupHelper(@NonNull Context context, @NonNull MenuBuilder menu) { in MenuPopupHelper()
65 public MenuPopupHelper(@NonNull Context context, @NonNull MenuBuilder menu, in MenuPopupHelper()
70 public MenuPopupHelper(@NonNull Context context, @NonNull MenuBuilder menu, in MenuPopupHelper()
76 public MenuPopupHelper(@NonNull Context context, @NonNull MenuBuilder menu, in MenuPopupHelper()
DListMenuPresenter.java43 MenuBuilder mMenu;
81 public void initForMenu(@NonNull Context context, @Nullable MenuBuilder menu) { in initForMenu()
148 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { in onCloseMenu()
175 public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item) { in expandItemActionView()
179 public boolean collapseItemActionView(MenuBuilder menu, MenuItemImpl item) { in collapseItemActionView()
DMenuAdapter.java26 MenuBuilder mAdapterMenu;
35 public MenuAdapter(MenuBuilder menu, LayoutInflater inflater, boolean overflowOnly, in MenuAdapter()
61 public MenuBuilder getAdapterMenu() { in getAdapterMenu()
DMenuBuilder.java52 public class MenuBuilder implements Menu { class
179 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item); in onMenuItemSelected()
187 public void onMenuModeChange(MenuBuilder menu); in onMenuModeChange()
198 public MenuBuilder(Context context) { in MenuBuilder() method in MenuBuilder
214 public MenuBuilder setDefaultShowAsAction(int defaultShowAsAction) { in setDefaultShowAsAction()
786 boolean dispatchMenuItemSelected(MenuBuilder menu, MenuItem item) { in dispatchMenuItemSelected()
848 ((MenuBuilder)item.getSubMenu()).findItemsWithShortcutForKey(items, keyCode, event); in findItemsWithShortcutForKey()
1200 protected MenuBuilder setHeaderTitleInt(CharSequence title) { in setHeaderTitleInt()
1212 protected MenuBuilder setHeaderTitleInt(int titleRes) { in setHeaderTitleInt()
1224 protected MenuBuilder setHeaderIconInt(Drawable icon) { in setHeaderIconInt()
[all …]
DStandardMenuPopup.java50 private final MenuBuilder mMenu;
114 public StandardMenuPopup(Context context, MenuBuilder menu, View anchorView, int popupStyleAttr, in StandardMenuPopup()
220 public void addMenu(MenuBuilder menu) { in addMenu()
298 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) { in onCloseMenu()
DIconMenuPresenter.java54 public void initForMenu(@NonNull Context context, @Nullable MenuBuilder menu) { in initForMenu()
180 public void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing) {
189 public boolean onOpenSubMenu(MenuBuilder subMenu) {
/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()
DFloatingActionMode.java37 import com.android.internal.view.menu.MenuBuilder;
49 @NonNull private final MenuBuilder mMenu;
89 mMenu = new MenuBuilder(context).setDefaultShowAsAction( in FloatingActionMode()
92 mMenu.setCallback(new MenuBuilder.Callback() { in FloatingActionMode()
94 public void onMenuModeChange(MenuBuilder menu) {} in FloatingActionMode()
97 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { in FloatingActionMode()
/frameworks/base/core/java/android/widget/
DPopupMenu.java31 import com.android.internal.view.menu.MenuBuilder;
45 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.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.java37 import com.android.internal.view.menu.MenuBuilder;
48 public class ActionMenuView extends LinearLayout implements MenuBuilder.ItemInvoker, MenuView {
54 private MenuBuilder mMenu;
65 private MenuBuilder.Callback mMenuBuilderCallback;
628 public void initialize(@Nullable MenuBuilder menu) { in initialize()
643 mMenu = new MenuBuilder(context); in getMenu()
661 public void setMenuCallbacks(MenuPresenter.Callback pcb, MenuBuilder.Callback mcb) { in setMenuCallbacks()
671 public MenuBuilder peekMenu() { in peekMenu()
765 private class MenuBuilderCallback implements MenuBuilder.Callback {
767 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { in onMenuItemSelected()
[all …]
DMenuPopupWindow.java32 import com.android.internal.view.menu.MenuBuilder;
77 public void onItemHoverEnter(@NonNull MenuBuilder menu, @NonNull MenuItem item) { in onItemHoverEnter()
85 public void onItemHoverExit(@NonNull MenuBuilder menu, @NonNull MenuItem item) { in onItemHoverExit()
178 final MenuBuilder menu = menuAdapter.getAdapterMenu(); in onHoverEvent()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBarWrapper.java26 import com.android.internal.view.menu.MenuBuilder;
125 MenuBuilder menuBuilder = getMenuBuilder(); in inflateMenus()
152 abstract MenuBuilder getMenuBuilder(); in getMenuBuilder()
191 MenuBuilder menu = getMenuBuilder(); in inflateMenus()
194 decorToolbar.setMenu(new MenuBuilder(getActionMenuContext()), null); in inflateMenus()
211 MenuBuilder getMenuBuilder() { in getMenuBuilder()
212 return (MenuBuilder) mToolbar.getMenu(); in getMenuBuilder()
247 private MenuBuilder mMenuBuilder;
306 MenuBuilder getMenuBuilder() { in getMenuBuilder()
308 mMenuBuilder = new MenuBuilder(getActionMenuContext()); in getMenuBuilder()
DOverflowMenuAdapter.java19 import com.android.internal.view.menu.MenuBuilder;
37 private final MenuBuilder mMenu;
41 public OverflowMenuAdapter(MenuBuilder menu, Context context) { in OverflowMenuAdapter()
/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()
/frameworks/base/core/java/com/android/internal/widget/
DDecorToolbar.java32 import com.android.internal.view.menu.MenuBuilder;
105 MenuBuilder.Callback menuBuilderCallback); in setMenuCallbacks()
/frameworks/base/core/tests/coretests/src/android/view/
DMenuTest.java24 import com.android.internal.view.menu.MenuBuilder;
30 private MenuBuilder mMenu;
34 mMenu = new MenuBuilder(super.getContext()); in setUp()
/frameworks/layoutlib/bridge/src/com/android/internal/view/menu/
DMenuBuilder_Delegate.java33 /*package*/ static MenuItemImpl createNewMenuItem(MenuBuilder thisMenu, int group, int id, in createNewMenuItem()

12