/frameworks/support/v4/java/android/support/v4/view/ |
D | MenuItemCompat.java | 21 import android.view.MenuItem; 72 void setShowAsAction(MenuItem item, int actionEnum); in setShowAsAction() 73 MenuItem setActionView(MenuItem item, View view); in setActionView() 74 MenuItem setActionView(MenuItem item, int resId); in setActionView() 75 View getActionView(MenuItem item); in getActionView() 76 boolean expandActionView(MenuItem item); in expandActionView() 77 boolean collapseActionView(MenuItem item); in collapseActionView() 78 boolean isActionViewExpanded(MenuItem item); in isActionViewExpanded() 79 MenuItem setOnActionExpandListener(MenuItem item, OnActionExpandListener listener); in setOnActionExpandListener() 99 public boolean onMenuItemActionExpand(MenuItem item); in onMenuItemActionExpand() [all …]
|
D | MenuCompat.java | 19 import android.view.MenuItem; 33 public static void setShowAsAction(MenuItem item, int actionEnum) { in setShowAsAction()
|
/frameworks/base/core/java/android/view/ |
D | MenuItem.java | 39 public interface MenuItem { interface 86 public boolean onMenuItemClick(MenuItem item); in onMenuItemClick() 105 public boolean onMenuItemActionExpand(MenuItem item); in onMenuItemActionExpand() 113 public boolean onMenuItemActionCollapse(MenuItem item); in onMenuItemActionCollapse() 154 public MenuItem setTitle(CharSequence title); in setTitle() 168 public MenuItem setTitle(int title); in setTitle() 185 public MenuItem setTitleCondensed(CharSequence title); in setTitleCondensed() 204 public MenuItem setIcon(Drawable icon); in setIcon() 217 public MenuItem setIcon(int iconRes); in setIcon() 245 public MenuItem setIntent(Intent intent); in setIntent() [all …]
|
D | Menu.java | 142 public MenuItem add(CharSequence title); in add() 151 public MenuItem add(int titleRes); in add() 168 public MenuItem add(int groupId, int itemId, int order, CharSequence title); in add() 185 public MenuItem add(int groupId, int itemId, int order, int titleRes); in add() 297 Intent intent, int flags, MenuItem[] outSpecificItems); in addIntentOptions() 377 public MenuItem findItem(int id); in findItem() 395 public MenuItem getItem(int index); in getItem()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ActionMenuItem.java | 24 import android.view.MenuItem; 31 public class ActionMenuItem implements MenuItem { 48 private MenuItem.OnMenuItemClickListener mClickListener; 133 public MenuItem setAlphabeticShortcut(char alphaChar) { in setAlphabeticShortcut() 138 public MenuItem setCheckable(boolean checkable) { in setCheckable() 148 public MenuItem setChecked(boolean checked) { in setChecked() 153 public MenuItem setEnabled(boolean enabled) { in setEnabled() 158 public MenuItem setIcon(Drawable icon) { in setIcon() 164 public MenuItem setIcon(int iconRes) { in setIcon() 170 public MenuItem setIntent(Intent intent) { in setIntent() [all …]
|
D | MenuItemImpl.java | 29 import android.view.MenuItem; 38 public final class MenuItemImpl implements MenuItem { 70 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() 232 public MenuItem setAlphabeticShortcut(char alphaChar) { in setAlphabeticShortcut() 246 public MenuItem setNumericShortcut(char numericChar) { in setNumericShortcut() 256 public MenuItem setShortcut(char numericChar, char alphaChar) { in setShortcut() 349 public MenuItem setTitle(CharSequence title) { in setTitle() [all …]
|
D | ActionMenu.java | 29 import android.view.MenuItem; 51 public MenuItem add(CharSequence title) { in add() 55 public MenuItem add(int titleRes) { in add() 59 public MenuItem add(int groupId, int itemId, int order, int titleRes) { in add() 63 public MenuItem add(int groupId, int itemId, int order, CharSequence title) { in add() 72 MenuItem[] outSpecificItems) { in addIntentOptions() 89 final MenuItem item = add(groupId, itemId, order, ri.loadLabel(pm)) in addIntentOptions() 140 public MenuItem findItem(int id) { in findItem() 144 public MenuItem getItem(int index) { in getItem()
|
D | MenuBuilder.java | 36 import android.view.MenuItem; 116 private int mDefaultShowAsAction = MenuItem.SHOW_AS_ACTION_NEVER; 169 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item); in onMenuItemSelected() 342 final MenuItem item = getItem(i); in saveActionViewStates() 374 final MenuItem item = getItem(i); in restoreActionViewStates() 387 MenuItem itemToExpand = findItem(expandedId); in restoreActionViewStates() 405 private MenuItem addInternal(int group, int id, int categoryOrder, CharSequence title) { in addInternal() 429 public MenuItem add(CharSequence title) { in add() 433 public MenuItem add(int titleRes) { in add() 437 public MenuItem add(int group, int id, int categoryOrder, CharSequence title) { in add() [all …]
|
D | SubMenuBuilder.java | 22 import android.view.MenuItem; 65 public MenuItem getItem() { in getItem() 80 boolean dispatchMenuItemSelected(MenuBuilder menu, MenuItem item) { in dispatchMenuItemSelected()
|
/frameworks/support/v4/ics/android/support/v4/view/ |
D | MenuItemCompatIcs.java | 20 import android.view.MenuItem; 23 public static boolean expandActionView(MenuItem item) { in expandActionView() 27 public static boolean collapseActionView(MenuItem item) { in collapseActionView() 31 public static boolean isActionViewExpanded(MenuItem item) { in isActionViewExpanded() 35 public static MenuItem setOnActionExpandListener(MenuItem item, in setOnActionExpandListener() 46 boolean onMenuItemActionExpand(MenuItem item); in onMenuItemActionExpand() 47 boolean onMenuItemActionCollapse(MenuItem item); in onMenuItemActionCollapse() 51 static class OnActionExpandListenerWrapper implements MenuItem.OnActionExpandListener { 59 public boolean onMenuItemActionExpand(MenuItem item) { in onMenuItemActionExpand() 64 public boolean onMenuItemActionCollapse(MenuItem item) { in onMenuItemActionCollapse()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
D | MenuItemWrapperICS.java | 27 import android.view.MenuItem; 37 public class MenuItemWrapperICS extends BaseMenuWrapper<android.view.MenuItem> implements SupportMe… 47 MenuItemWrapperICS(android.view.MenuItem object, boolean emulateProviderVisibilityOverride) { in MenuItemWrapperICS() 53 MenuItemWrapperICS(android.view.MenuItem object) { in MenuItemWrapperICS() 73 public MenuItem setTitle(CharSequence title) { in setTitle() 79 public MenuItem setTitle(int title) { in setTitle() 90 public MenuItem setTitleCondensed(CharSequence title) { in setTitleCondensed() 101 public MenuItem setIcon(Drawable icon) { in setIcon() 107 public MenuItem setIcon(int iconRes) { in setIcon() 118 public MenuItem setIntent(Intent intent) { in setIntent() [all …]
|
D | ActionMenuItem.java | 27 import android.view.MenuItem; 137 public MenuItem setAlphabeticShortcut(char alphaChar) { in setAlphabeticShortcut() 142 public MenuItem setCheckable(boolean checkable) { in setCheckable() 152 public MenuItem setChecked(boolean checked) { in setChecked() 157 public MenuItem setEnabled(boolean enabled) { in setEnabled() 162 public MenuItem setIcon(Drawable icon) { in setIcon() 168 public MenuItem setIcon(int iconRes) { in setIcon() 174 public MenuItem setIntent(Intent intent) { in setIntent() 179 public MenuItem setNumericShortcut(char numericChar) { in setNumericShortcut() 184 public MenuItem setOnMenuItemClickListener(OnMenuItemClickListener menuItemClickListener) { in setOnMenuItemClickListener() [all …]
|
D | BaseMenuWrapper.java | 20 import android.view.MenuItem; 28 private HashMap<MenuItem, SupportMenuItem> mMenuItems; 36 final SupportMenuItem getMenuItemWrapper(android.view.MenuItem frameworkItem) { in getMenuItemWrapper() 40 mMenuItems = new HashMap<MenuItem, SupportMenuItem>(); in getMenuItemWrapper() 88 Iterator<android.view.MenuItem> iterator = mMenuItems.keySet().iterator(); in internalRemoveGroup() 89 android.view.MenuItem menuItem; in internalRemoveGroup() 104 Iterator<android.view.MenuItem> iterator = mMenuItems.keySet().iterator(); in internalRemoveItem() 105 android.view.MenuItem menuItem; in internalRemoveItem()
|
D | MenuWrapperICS.java | 24 import android.view.MenuItem; 34 public MenuItem add(CharSequence title) { in add() 39 public MenuItem add(int titleRes) { in add() 44 public MenuItem add(int groupId, int itemId, int order, CharSequence title) { in add() 49 public MenuItem add(int groupId, int itemId, int order, int titleRes) { in add() 76 Intent[] specifics, Intent intent, int flags, MenuItem[] outSpecificItems) { in addIntentOptions() 77 android.view.MenuItem[] items = null; in addIntentOptions() 79 items = new android.view.MenuItem[outSpecificItems.length]; in addIntentOptions() 133 public MenuItem findItem(int id) { in findItem() 143 public MenuItem getItem(int index) { in getItem()
|
D | MenuItemImpl.java | 31 import android.view.MenuItem; 183 public MenuItem setEnabled(boolean enabled) { in setEnabled() 221 public MenuItem setIntent(Intent intent) { in setIntent() 230 public MenuItem setCallback(Runnable callback) { in setCallback() 241 public MenuItem setAlphabeticShortcut(char alphaChar) { in setAlphabeticShortcut() 259 public MenuItem setNumericShortcut(char numericChar) { in setNumericShortcut() 272 public MenuItem setShortcut(char numericChar, char alphaChar) { in setShortcut() 368 public MenuItem setTitle(CharSequence title) { in setTitle() 381 public MenuItem setTitle(int title) { in setTitle() 391 public MenuItem setTitleCondensed(CharSequence title) { in setTitleCondensed() [all …]
|
D | MenuWrapperFactory.java | 24 import android.view.MenuItem; 40 public static MenuItem createMenuItemWrapper(android.view.MenuItem frameworkMenuItem) { in createMenuItemWrapper() 65 android.view.MenuItem frameworkMenuItem) { in createSupportMenuItemWrapper()
|
D | MenuItemWrapperJB.java | 20 import android.view.MenuItem; 24 MenuItemWrapperJB(android.view.MenuItem object) { in MenuItemWrapperJB() 43 public View onCreateActionView(MenuItem forItem) { in onCreateActionView()
|
D | MenuBuilder.java | 39 import android.view.MenuItem; 191 public boolean onMenuItemSelected(MenuBuilder menu, MenuItem item); in onMenuItemSelected() 364 final MenuItem item = getItem(i); in saveActionViewStates() 396 final MenuItem item = getItem(i); in restoreActionViewStates() 409 MenuItem itemToExpand = findItem(expandedId); in restoreActionViewStates() 427 private MenuItem addInternal(int group, int id, int categoryOrder, CharSequence title) { in addInternal() 451 public MenuItem add(CharSequence title) { in add() 456 public MenuItem add(int titleRes) { in add() 461 public MenuItem add(int group, int id, int categoryOrder, CharSequence title) { in add() 466 public MenuItem add(int group, int id, int categoryOrder, int title) { in add() [all …]
|
/frameworks/support/v4/honeycomb/android/support/v4/view/ |
D | MenuItemCompatHoneycomb.java | 19 import android.view.MenuItem; 26 public static void setShowAsAction(MenuItem item, int actionEnum) { in setShowAsAction() 30 public static MenuItem setActionView(MenuItem item, View view) { in setActionView() 34 public static MenuItem setActionView(MenuItem item, int resId) { in setActionView() 38 public static View getActionView(MenuItem item) { in getActionView()
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ActivityTestMain.java | 47 import android.view.MenuItem; 169 menu.add("Animate!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { in onCreateOptionsMenu() 171 public boolean onMenuItemClick(MenuItem item) { in onCreateOptionsMenu() 179 menu.add("Bind!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { in onCreateOptionsMenu() 180 @Override public boolean onMenuItemClick(MenuItem item) { in onCreateOptionsMenu() 201 menu.add("Start!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { in onCreateOptionsMenu() 202 @Override public boolean onMenuItemClick(MenuItem item) { in onCreateOptionsMenu() 208 menu.add("Send!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { in onCreateOptionsMenu() 209 @Override public boolean onMenuItemClick(MenuItem item) { in onCreateOptionsMenu() 216 menu.add("Call!").setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { in onCreateOptionsMenu() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | MenuTest.java | 29 import android.view.MenuItem; 46 final MenuItem item = mMenu.add(0, id, 0, "test"); in testItemId() 60 final MenuItem item = mMenu.add(groupId, 0, item1Index, "test"); in testGroupId() 62 final MenuItem item2 = mMenu.add(groupId, 0, item2Index, "test2"); in testGroupId() 181 final MenuItem stringItem = mMenu.add(title); in testTitle() 182 final MenuItem resItem = mMenu.add(R.string.menu_test); in testTitle() 192 final MenuItem item1 = mMenu.add(groupId, 1, 0, "item1"); in testCheckable() 193 final MenuItem item2 = mMenu.add(groupId, 2, 0, "item2"); in testCheckable() 219 final MenuItem item1 = mMenu.add(0, 1, 0, "item1"); in testVisibility() 220 final MenuItem item2 = mMenu.add(0, 2, 0, "item2"); in testVisibility() [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/support/v4/java/android/support/v4/internal/view/ |
D | SupportMenuItem.java | 21 import android.view.MenuItem; 33 public interface SupportMenuItem extends android.view.MenuItem { 98 public MenuItem setShowAsActionFlags(int actionEnum); in setShowAsActionFlags() 112 public MenuItem setActionView(View view); in setActionView() 126 public MenuItem setActionView(int resId); in setActionView()
|
/frameworks/testing/espresso/espresso-sample/src/main/java/com/google/android/apps/common/testing/ui/testapp/ |
D | MenuActivity.java | 26 import android.view.MenuItem; 53 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() 67 public boolean onContextItemSelected(MenuItem item) { in onContextItemSelected() 86 public boolean onMenuItemSelected(int featureId, MenuItem item) { in onMenuItemSelected() 92 public boolean onMenuItemClick(MenuItem item) { in onMenuItemClick()
|
D | ActionBarTestActivity.java | 24 import android.view.MenuItem; 69 public boolean onOptionsItemSelected(MenuItem menu) { in onOptionsItemSelected() 92 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked()
|