/frameworks/base/core/java/android/view/ |
D | MenuItem.java | 47 public interface MenuItem { interface 94 public boolean onMenuItemClick(MenuItem item); in onMenuItemClick() 113 public boolean onMenuItemActionExpand(MenuItem item); in onMenuItemActionExpand() 121 public boolean onMenuItemActionCollapse(MenuItem item); in onMenuItemActionCollapse() 162 public MenuItem setTitle(CharSequence title); in setTitle() 176 public MenuItem setTitle(@StringRes int title); in setTitle() 193 public MenuItem setTitleCondensed(CharSequence title); in setTitleCondensed() 212 public MenuItem setIcon(Drawable icon); in setIcon() 225 public MenuItem setIcon(@DrawableRes int iconRes); in setIcon() 253 public default MenuItem setIconTintList(@Nullable ColorStateList tint) { return this; } in setIconTintList() [all …]
|
D | Menu.java | 150 public MenuItem add(CharSequence title); in add() 159 public MenuItem add(@StringRes int titleRes); in add() 176 public MenuItem add(int groupId, int itemId, int order, CharSequence title); in add() 193 public MenuItem add(int groupId, int itemId, int order, @StringRes int titleRes); in add() 305 Intent intent, int flags, MenuItem[] outSpecificItems); in addIntentOptions() 385 public MenuItem findItem(int id); in findItem() 403 public MenuItem getItem(int index); in getItem()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ActionMenuItem.java | 30 import android.view.MenuItem; 37 public class ActionMenuItem implements MenuItem { 60 private MenuItem.OnMenuItemClickListener mClickListener; 157 public MenuItem setAlphabeticShortcut(char alphaChar) { in setAlphabeticShortcut() 162 public MenuItem setAlphabeticShortcut(char alphachar, int alphaModifiers) { in setAlphabeticShortcut() 168 public MenuItem setCheckable(boolean checkable) { in setCheckable() 178 public MenuItem setChecked(boolean checked) { in setChecked() 183 public MenuItem setEnabled(boolean enabled) { in setEnabled() 188 public MenuItem setIcon(Drawable icon) { in setIcon() 196 public MenuItem setIcon(int iconRes) { in setIcon() [all …]
|
D | MenuItemImpl.java | 34 import android.view.MenuItem; 46 public final class MenuItemImpl implements MenuItem { 87 private MenuItem.OnMenuItemClickListener mClickListener; 181 public MenuItem setEnabled(boolean enabled) { in setEnabled() 214 public MenuItem setIntent(Intent intent) { in setIntent() 223 public MenuItem setCallback(Runnable callback) { in setCallback() 239 public MenuItem setAlphabeticShortcut(char alphaChar) { in setAlphabeticShortcut() 250 public MenuItem setAlphabeticShortcut(char alphaChar, int alphaModifiers){ in setAlphabeticShortcut() 275 public MenuItem setNumericShortcut(char numericChar) { in setNumericShortcut() 286 public MenuItem setNumericShortcut(char numericChar, int numericModifiers){ in setNumericShortcut() [all …]
|
D | ActionMenu.java | 28 import android.view.MenuItem; 54 public MenuItem add(CharSequence title) { in add() 58 public MenuItem add(int titleRes) { in add() 62 public MenuItem add(int groupId, int itemId, int order, int titleRes) { in add() 66 public MenuItem add(int groupId, int itemId, int order, CharSequence title) { in add() 75 MenuItem[] outSpecificItems) { in addIntentOptions() 92 final MenuItem item = add(groupId, itemId, order, ri.loadLabel(pm)) in addIntentOptions() 143 public MenuItem findItem(int id) { in findItem() 147 public MenuItem getItem(int index) { in getItem()
|
D | MenuBuilder.java | 39 import android.view.MenuItem; 121 private int mDefaultShowAsAction = MenuItem.SHOW_AS_ACTION_NEVER; 180 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item); in onMenuItemSelected() 358 final MenuItem item = getItem(i); in saveActionViewStates() 390 final MenuItem item = getItem(i); in restoreActionViewStates() 403 MenuItem itemToExpand = findItem(expandedId); in restoreActionViewStates() 422 private MenuItem addInternal(int group, int id, int categoryOrder, CharSequence title) { in addInternal() 446 public MenuItem add(CharSequence title) { in add() 450 public MenuItem add(int titleRes) { in add() 454 public MenuItem add(int group, int id, int categoryOrder, CharSequence title) { in add() [all …]
|
D | SubMenuBuilder.java | 23 import android.view.MenuItem; 66 public MenuItem getItem() { in getItem() 83 boolean dispatchMenuItemSelected(MenuBuilder menu, MenuItem item) { in dispatchMenuItemSelected()
|
D | MenuPopup.java | 23 import android.view.MenuItem; 128 wrappedAdapter.mAdapterMenu.performItemAction((MenuItem) outerAdapter.getItem(position), 0); in onItemClick() 203 MenuItem childItem = menu.getItem(i); in shouldPreserveIconSpacing()
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ActivityTestMain.java | 49 import android.view.MenuItem; 219 menu.add("Animate!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { in onCreateOptionsMenu() 221 public boolean onMenuItemClick(MenuItem item) { in onCreateOptionsMenu() 229 menu.add("Bind!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { in onCreateOptionsMenu() 230 @Override public boolean onMenuItemClick(MenuItem item) { in onCreateOptionsMenu() 251 menu.add("Start!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { in onCreateOptionsMenu() 252 @Override public boolean onMenuItemClick(MenuItem item) { in onCreateOptionsMenu() 258 … menu.add("Rebind Isolated!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { in onCreateOptionsMenu() 259 @Override public boolean onMenuItemClick(MenuItem item) { in onCreateOptionsMenu() 286 menu.add("Send!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { in onCreateOptionsMenu() [all …]
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/ |
D | NotificationMenuRowPlugin.java | 28 import com.android.systemui.plugins.statusbar.NotificationMenuRowPlugin.MenuItem; 37 @DependsOn(target = MenuItem.class) 49 public void onMenuClicked(View row, int x, int y, MenuItem menu); in onMenuClicked() 56 @ProvidesInterface(version = MenuItem.VERSION) 57 public interface MenuItem { interface 70 public ArrayList<MenuItem> getMenuItems(Context context); in getMenuItems() 75 public MenuItem getLongpressMenuItem(Context context); in getLongpressMenuItem() 80 public MenuItem getFeedbackMenuItem(Context context); in getFeedbackMenuItem() 85 public MenuItem getSnoozeMenuItem(Context context); in getSnoozeMenuItem() 87 public void setMenuItems(ArrayList<MenuItem> items); in setMenuItems() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | MenuTest.java | 40 final MenuItem item = mMenu.add(0, id, 0, "test"); in testItemId() 54 final MenuItem item = mMenu.add(groupId, 0, item1Index, "test"); in testGroupId() 56 final MenuItem item2 = mMenu.add(groupId, 0, item2Index, "test2"); in testGroupId() 101 final MenuItem stringItem = mMenu.add(title); in testTitle() 102 final MenuItem resItem = mMenu.add(R.string.menu_test); in testTitle() 112 final MenuItem item1 = mMenu.add(groupId, 1, 0, "item1"); in testCheckable() 113 final MenuItem item2 = mMenu.add(groupId, 2, 0, "item2"); in testCheckable() 139 final MenuItem item1 = mMenu.add(0, 1, 0, "item1"); in testVisibility() 140 final MenuItem item2 = mMenu.add(0, 2, 0, "item2"); in testVisibility() 156 final MenuItem subMenuItem = subMenu.getItem(); in testSubMenu() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
D | MenuScenario.java | 24 import android.view.MenuItem; 30 public class MenuScenario extends Activity implements MenuItem.OnMenuItemClickListener { 33 private MenuItem[] mItems; 54 mItems = new MenuItem[mParams.numItems]; in onParamsChanged() 65 MenuItem item; in onCreateOptionsMenu() 103 protected MenuItem onAddMenuItem(Menu menu, int itemPosition) { in onAddMenuItem() 119 public boolean onMenuItemClick(MenuItem item) { in onMenuItemClick() 138 public int findItemPosition(MenuItem item) { in findItemPosition()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | FloatingToolbar.java | 40 import android.view.MenuItem; 90 private static final MenuItem.OnMenuItemClickListener NO_OP_MENUITEM_CLICK_LISTENER = 101 private MenuItem.OnMenuItemClickListener mMenuItemClickListener = NO_OP_MENUITEM_CLICK_LISTENER; 128 private final Comparator<MenuItem> mMenuItemComparator = (menuItem1, menuItem2) -> { 180 MenuItem.OnMenuItemClickListener menuItemClickListener) { in setOnMenuItemClickListener() 279 List<MenuItem> menuItems = getVisibleAndEnabledMenuItems(mMenu); in doShow() 300 private static List<MenuItem> getVisibleAndEnabledMenuItems(Menu menu) { in getVisibleAndEnabledMenuItems() 301 List<MenuItem> menuItems = new ArrayList<>(); in getVisibleAndEnabledMenuItems() 303 MenuItem menuItem = menu.getItem(i); in getVisibleAndEnabledMenuItems() 413 private final Map<MenuItemRepr, MenuItem> mMenuItems = new LinkedHashMap<>(); [all …]
|
/frameworks/base/core/java/android/widget/ |
D | MenuItemHoverListener.java | 4 import android.view.MenuItem; 24 void onItemHoverExit(@NonNull MenuBuilder menu, @NonNull MenuItem item); in onItemHoverExit() 32 void onItemHoverEnter(@NonNull MenuBuilder menu, @NonNull MenuItem item); in onItemHoverEnter()
|
D | MenuPopupWindow.java | 26 import android.view.MenuItem; 77 public void onItemHoverEnter(@NonNull MenuBuilder menu, @NonNull MenuItem item) { in onItemHoverEnter() 85 public void onItemHoverExit(@NonNull MenuBuilder menu, @NonNull MenuItem item) { in onItemHoverExit() 100 private MenuItem mHoveredMenuItem; 165 MenuItem menuItem = null; in onHoverEvent() 176 final MenuItem oldMenuItem = mHoveredMenuItem; in onHoverEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationMenuRow.java | 79 private MenuItem mFeedbackItem; 80 private MenuItem mSnoozeItem; 81 private ArrayList<MenuItem> mLeftMenuItems; 82 private ArrayList<MenuItem> mRightMenuItems; 83 private final Map<View, MenuItem> mMenuItemsByView = new ArrayMap<>(); 132 public ArrayList<MenuItem> getMenuItems(Context context) { in getMenuItems() 137 public MenuItem getLongpressMenuItem(Context context) { in getLongpressMenuItem() 142 public MenuItem getFeedbackMenuItem(Context context) { in getFeedbackMenuItem() 147 public MenuItem getSnoozeMenuItem(Context context) { in getSnoozeMenuItem() 314 List<MenuItem> menuItems = mOnLeft ? mLeftMenuItems : mRightMenuItems; in populateMenuViews() [all …]
|
/frameworks/base/packages/SettingsLib/HelpUtils/src/com/android/settingslib/ |
D | HelpUtils.java | 33 import android.view.MenuItem; 34 import android.view.MenuItem.OnMenuItemClickListener; 93 MenuItem helpItem = menu.add(0, MENU_HELP, 0, R.string.help_feedback_label); in prepareHelpMenuItem() 113 MenuItem helpItem = menu.add(0, MENU_HELP, 0, R.string.help_feedback_label); in prepareHelpMenuItem() 129 static boolean prepareHelpMenuItem(final Activity activity, MenuItem helpMenuItem, in prepareHelpMenuItem() 148 public boolean onMenuItemClick(MenuItem item) { in prepareHelpMenuItem() 164 helpMenuItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS); in prepareHelpMenuItem()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/events/ |
D | OnOptionsItemSelected.java | 19 import android.view.MenuItem; 22 boolean onOptionsItemSelected(MenuItem menuItem); in onOptionsItemSelected()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | HelpUtilsTest.java | 43 import android.view.MenuItem; 163 final MenuItem item = mock(MenuItem.class); in prepareHelpMenuItem_shouldShowIcon() 177 verify(item).setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS); in prepareHelpMenuItem_shouldShowIcon() 186 mock(MenuItem.class)); in prepareHelpMenuItem_noItem_addItem() 198 when(item.findItem(MENU_HELP)).thenReturn(mock(MenuItem.class)); in prepareHelpMenuItem_hasItem_notAddItem() 201 mock(MenuItem.class)); in prepareHelpMenuItem_hasItem_notAddItem()
|
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/ |
D | MyActivity.java | 6 import android.view.MenuItem; 25 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected()
|
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/ |
D | TouchLatencyActivity.java | 30 import android.view.MenuItem; 206 public void changeMode(MenuItem item) { in changeMode() 263 MenuItem menuItem = menu.findItem(R.id.display_mode); in onCreateOptionsMenu() 272 private void updateDisplayMode(MenuItem menuItem, Mode displayMode) { in updateDisplayMode() 278 public void changeDisplayMode(MenuItem item) { in changeDisplayMode() 292 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected()
|
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/ |
D | MainActivity.java | 7 import android.view.MenuItem; 31 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | StandaloneActionMode.java | 27 import android.view.MenuItem; 50 MenuItem.SHOW_AS_ACTION_IF_ROOM); in StandaloneActionMode() 133 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item) { in onMenuItemSelected()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | NavigationDrawerActivity.java | 19 import android.view.MenuItem; 50 public boolean onNavigationItemSelected(MenuItem item) { in onNavigationItemSelected()
|
/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/app/ |
D | BaseDemoActivity.kt | 24 import android.view.MenuItem 70 override fun onOptionsItemSelected(item: MenuItem): Boolean { in onOptionsItemSelected()
|