/frameworks/support/design/src/android/support/design/internal/ |
NavigationMenu.java | 23 import android.view.SubMenu; 38 public SubMenu addSubMenu(int group, int id, int categoryOrder, CharSequence title) { 40 final SubMenuBuilder subMenu = new NavigationSubMenu(getContext(), this, item); 41 item.setSubMenu(subMenu); 42 return subMenu;
|
NavigationMenuPresenter.java | 41 import android.view.SubMenu; 122 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { 474 SubMenu subMenu = item.getSubMenu(); 475 if (subMenu.hasVisibleItems()) { 482 for (int j = 0, size = subMenu.size(); j < size; j++) { 483 MenuItemImpl subMenuItem = (MenuItemImpl) subMenu.getItem(j);
|
/cts/tests/tests/view/src/android/view/cts/ |
MenuInflaterTest.java | 31 import android.view.SubMenu; 206 SubMenu subMenu = menu.findItem(R.id.submenu).getSubMenu(); 207 assertNotNull(subMenu); 209 assertTrue(subMenu.findItem(R.id.nongroup_checkable_item_1).isCheckable()); 210 assertFalse(subMenu.findItem(R.id.nongroup_checkable_item_1).isChecked()); 212 assertTrue(subMenu.findItem(R.id.nongroup_checkable_item_2).isCheckable()); 213 assertTrue(subMenu.findItem(R.id.nongroup_checkable_item_2).isChecked()); 215 assertTrue(subMenu.findItem(R.id.nongroup_checkable_item_3).isCheckable()) [all...] |
/external/autotest/frontend/client/src/autotest/common/ui/ |
ContextMenu.java | 65 MenuBar subMenu = new AutoHideMenu(); 66 menu.addItem(text, subMenu); 67 return subMenu;
|
/frameworks/base/core/java/android/view/ |
MenuInflater.java | 163 // A menu start tag denotes a submenu for an item 164 SubMenu subMenu = menuState.addSubMenuItem(); 165 registerMenu(subMenu, attrs); 167 // Parse the submenu into returned SubMenu 168 parseMenu(parser, attrs, subMenu); 184 // a submenu, it would have been added already) 220 private void registerMenu(@SuppressWarnings("unused") SubMenu subMenu, [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
SupportMenuInflater.java | 40 import android.view.SubMenu; 170 // A menu start tag denotes a submenu for an item 171 SubMenu subMenu = menuState.addSubMenuItem(); 173 // Parse the submenu into returned SubMenu 174 parseMenu(parser, attrs, subMenu); 190 // a submenu, it would have been added already) 482 public SubMenu addSubMenuItem() { 484 SubMenu subMenu = menu.addSubMenu(groupId, itemId, itemCategoryOrder, itemTitle) [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/view/ |
TestMenuItem.java | 19 private SubMenu subMenu; 171 return subMenu != null; 175 public SubMenu getSubMenu() { 176 return subMenu; 179 public void setSubMenu(SubMenu subMenu) { 180 this.subMenu = subMenu;
|
/frameworks/base/core/java/android/widget/ |
ShareActionProvider.java | 29 import android.view.SubMenu; 198 public void onPrepareSubMenu(SubMenu subMenu) { 200 subMenu.clear(); 211 subMenu.add(0, i, i, activity.loadLabel(packageManager)) 218 SubMenu expandedSubMenu = subMenu.addSubMenu(Menu.NONE, collapsedActivityCount,
|
ActionMenuPresenter.java | 492 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { 493 if (!subMenu.hasVisibleItems()) return false; 495 SubMenuBuilder topSubMenu = subMenu; 501 // This means the submenu was opened from an overflow menu item, indicating the 502 // MenuPopupHelper will handle opening the submenu via its MenuPopup. Return false to 503 // ensure that the MenuPopup acts as presenter for the submenu, and acts on its 504 // responsibility to display the new submenu. 508 mOpenSubMenuId = subMenu.getItem().getItemId(); 511 final int count = subMenu.size(); 513 MenuItem childItem = subMenu.getItem(i) [all...] |
Editor.java | 90 import android.view.SubMenu; [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
MenuTest.java | 30 import android.view.SubMenu; 235 final SubMenu subMenu = mMenu.addSubMenu(0, 0, 0, "submenu"); 236 final MenuItem subMenuItem = subMenu.getItem(); 237 final MenuItem item1 = subMenu.add(0, 1, 0, "item1"); 238 final MenuItem item2 = subMenu.add(0, 2, 0, "item2");
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
ShareActionProvider.java | 33 import android.view.SubMenu; 39 * overflow menu, it creates a submenu with the appropriate sharing 255 public void onPrepareSubMenu(SubMenu subMenu) { 257 subMenu.clear(); 268 subMenu.add(0, i, i, activity.loadLabel(packageManager)) 275 SubMenu expandedSubMenu = subMenu.addSubMenu(Menu.NONE, collapsedActivityCount,
|
ActionMenuPresenter.java | 287 public boolean onSubMenuSelected(SubMenuBuilder subMenu) { 288 if (!subMenu.hasVisibleItems()) return false; 290 SubMenuBuilder topSubMenu = subMenu; 296 // This means the submenu was opened from an overflow menu item, indicating the 297 // MenuPopupHelper will handle opening the submenu via its MenuPopup. Return false to 298 // ensure that the MenuPopup acts as presenter for the submenu, and acts on its 299 // responsibility to display the new submenu. 303 mOpenSubMenuId = subMenu.getItem().getItemId(); 306 final int count = subMenu.size(); 308 MenuItem childItem = subMenu.getItem(i) [all...] |
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ |
ScriptManager.java | 285 Menu subMenu = 288 subMenu.add(Menu.NONE, MenuId.INTERPRETER_MANAGER.getId(), Menu.NONE, "Interpreters"); 289 subMenu.add(Menu.NONE, MenuId.TRIGGER_MANAGER.getId(), Menu.NONE, "Triggers"); 290 subMenu.add(Menu.NONE, MenuId.LOGCAT_VIEWER.getId(), Menu.NONE, "Logcat");
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
MenuBuilder.java | 38 import android.view.SubMenu; 263 private boolean dispatchSubMenuSelected(SubMenuBuilder subMenu, 271 result = preferredPresenter.onSubMenuSelected(subMenu); 279 result = presenter.onSubMenuSelected(subMenu); 354 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); 355 subMenu.saveActionViewStates(outStates); 380 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); 381 subMenu.restoreActionViewStates(states); 445 public SubMenu addSubMenu(CharSequence title) { 449 public SubMenu addSubMenu(int titleRes) [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/ |
MenuBuilder.java | 41 import android.view.SubMenu; 289 private boolean dispatchSubMenuSelected(SubMenuBuilder subMenu, 297 result = preferredPresenter.onSubMenuSelected(subMenu); 305 result = presenter.onSubMenuSelected(subMenu); 380 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); 381 subMenu.saveActionViewStates(outStates); 406 final SubMenuBuilder subMenu = (SubMenuBuilder) item.getSubMenu(); 407 subMenu.restoreActionViewStates(states); 475 public SubMenu addSubMenu(CharSequence title) { 480 public SubMenu addSubMenu(int titleRes) [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
FloatingToolbar.java | 266 Menu subMenu = menuItem.getSubMenu(); 267 if (subMenu != null) { 268 menuItems.addAll(getVisibleAndEnabledMenuItems(subMenu)); [all...] |
/prebuilts/sdk/current/support/v7/appcompat/libs/ |
android-support-v7-appcompat.jar | |
/prebuilts/sdk/current/support/design/libs/ |
android-support-design.jar | |
/external/robolectric/v3/runtime/ |
shadows-core-3.1-SNAPSHOT-16.jar | |
shadows-core-3.1-SNAPSHOT-17.jar | |
shadows-core-3.1-SNAPSHOT-18.jar | |
shadows-core-3.1-SNAPSHOT-19.jar | |
shadows-core-3.1-SNAPSHOT-21.jar | |
shadows-core-3.1-SNAPSHOT-22.jar | |