Lines Matching refs:menu
30 import com.android.internal.view.menu.MenuBuilder;
661 // Cut/copy menu entries are not available for passwords, but being able to select all
2793 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
2796 final Context context = !legacy && menu instanceof MenuBuilder ?
2797 ((MenuBuilder) menu).getContext() :
2807 menu.add(0, TextView.ID_SELECT_ALL, 0, com.android.internal.R.string.selectAll).
2815 menu.add(0, TextView.ID_CUT, 0, com.android.internal.R.string.cut).
2824 menu.add(0, TextView.ID_COPY, 0, com.android.internal.R.string.copy).
2833 menu.add(0, TextView.ID_PASTE, 0, com.android.internal.R.string.paste).
2844 if (!mCustomSelectionActionModeCallback.onCreateActionMode(mode, menu)) {
2850 if (menu.hasVisibleItems() || mode.getCustomView() != null) {
2860 public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
2862 return mCustomSelectionActionModeCallback.onPrepareActionMode(mode, menu);