Home
last modified time | relevance | path

Searched refs:findItem (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/view/
DMenuTest.java49 Assert.assertEquals(item, mMenu.findItem(id)); in testItemId()
201 mMenu.findItem(2).setChecked(true); in testCheckable()
212 mMenu.findItem(2).setChecked(true); in testCheckable()
229 mMenu.findItem(2).setVisible(false); in testVisibility()
241 Assert.assertEquals(item1, mMenu.findItem(1)); in testSubMenu()
242 Assert.assertEquals(item2, mMenu.findItem(2)); in testSubMenu()
255 Assert.assertEquals(item1, mMenu.findItem(1)); in testRemove()
257 Assert.assertNull(mMenu.findItem(1)); in testRemove()
259 Assert.assertEquals(item2, mMenu.findItem(2)); in testRemove()
261 Assert.assertNull(mMenu.findItem(2)); in testRemove()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DFragmentTuner.java152 MenuItem open = menu.findItem(R.id.menu_open); in updateActionMenu()
153 MenuItem share = menu.findItem(R.id.menu_share); in updateActionMenu()
154 MenuItem delete = menu.findItem(R.id.menu_delete); in updateActionMenu()
155 MenuItem rename = menu.findItem(R.id.menu_rename); in updateActionMenu()
156 MenuItem selectAll = menu.findItem(R.id.menu_select_all); in updateActionMenu()
212 menu.findItem(R.id.menu_open).setVisible(false); // "open" is never used in Files. in updateActionMenu()
215 MenuItem copy = menu.findItem(R.id.menu_copy_to_clipboard); in updateActionMenu()
216 MenuItem paste = menu.findItem(R.id.menu_paste_from_clipboard); in updateActionMenu()
219 MenuItem rename = menu.findItem(R.id.menu_rename); in updateActionMenu()
220 MenuItem moveTo = menu.findItem(R.id.menu_move_to); in updateActionMenu()
[all …]
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
DActionBarUsage.java54 .getActionView(menu.findItem(R.id.action_search)); in onCreateOptionsMenu()
62 Drawable icon = menu.findItem(mSortMode).getIcon(); in onPrepareOptionsMenu()
63 menu.findItem(R.id.action_sort).setIcon(icon); in onPrepareOptionsMenu()
DActionBarShareActionProvider.java42 menu.findItem(R.id.menu_item_share_provider_action_bar)); in onPrepareOptionsPanel()
DToolbarUsage.java53 .getActionView(menu.findItem(R.id.action_search)); in onCreateOptionsMenu()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
DPopupMenuTest.java383 mPopupMenu.getMenu().findItem(R.id.action_delete));
409 mPopupMenu.getMenu().findItem(R.id.action_highlight));
432 mPopupMenu.getMenu().findItem(R.id.action_share));
471 mPopupMenu.getMenu().findItem(R.id.action_share_circles));
497 mPopupMenu.getMenu().findItem(R.id.action_share));
533 mPopupMenu.getMenu().findItem(R.id.action_share).getSubMenu().
540 mPopupMenu.getMenu().findItem(R.id.action_share_email));
/frameworks/av/media/libstagefright/foundation/
DAMessage.cpp204 const AMessage::Item *AMessage::findItem( in findItem() function in android::AMessage
256 const Item *item = findItem(name, kType##NAME); \
323 const Item *item = findItem(name, kTypeString); in findString()
332 const Item *item = findItem(name, kTypeObject); in findObject()
341 const Item *item = findItem(name, kTypeBuffer); in findBuffer()
350 const Item *item = findItem(name, kTypeMessage); in findMessage()
361 const Item *item = findItem(name, kTypeRect); in findRect()
806 const Item *oitem = other->findItem(item.mName, item.mType); in changesFrom()
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DMenuWrapperICS.java138 public MenuItem findItem(int id) { in findItem() method in MenuWrapperICS
139 return getMenuItemWrapper(mWrappedObject.findItem(id)); in findItem()
DMenuBuilder.java413 MenuItem itemToExpand = findItem(expandedId); in restoreActionViewStates()
669 public MenuItem findItem(int id) { in findItem() method in MenuBuilder
676 MenuItem possibleItem = item.getSubMenu().findItem(id); in findItem()
943 return performItemAction(findItem(id), flags); in performIdentifierAction()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DFilesActivity.java204 final MenuItem createDir = menu.findItem(R.id.menu_create_dir); in onPrepareOptionsMenu()
205 final MenuItem pasteFromCb = menu.findItem(R.id.menu_paste_from_clipboard); in onPrepareOptionsMenu()
206 final MenuItem settings = menu.findItem(R.id.menu_settings); in onPrepareOptionsMenu()
207 final MenuItem newWindow = menu.findItem(R.id.menu_new_window); in onPrepareOptionsMenu()
DBaseActivity.java167 final MenuItem sort = menu.findItem(R.id.menu_sort); in onPrepareOptionsMenu()
168 final MenuItem sortSize = menu.findItem(R.id.menu_sort_size); in onPrepareOptionsMenu()
169 final MenuItem grid = menu.findItem(R.id.menu_grid); in onPrepareOptionsMenu()
170 final MenuItem list = menu.findItem(R.id.menu_list); in onPrepareOptionsMenu()
171 final MenuItem advanced = menu.findItem(R.id.menu_advanced); in onPrepareOptionsMenu()
172 final MenuItem fileSize = menu.findItem(R.id.menu_file_size); in onPrepareOptionsMenu()
DDocumentsToolbar.java70 return getMenu().findItem(R.id.menu_search); in getSearchMenu()
DDocumentsActivity.java230 final MenuItem createDir = menu.findItem(R.id.menu_create_dir); in onPrepareOptionsMenu()
231 final MenuItem grid = menu.findItem(R.id.menu_grid); in onPrepareOptionsMenu()
232 final MenuItem list = menu.findItem(R.id.menu_list); in onPrepareOptionsMenu()
233 final MenuItem fileSize = menu.findItem(R.id.menu_file_size); in onPrepareOptionsMenu()
/frameworks/support/design/tests/src/android/support/design/testutils/
DBottomNavigationViewActions.java82 navigationView.getMenu().findItem(menuItemId).setIcon(iconDrawable);
DNavigationViewActions.java302 navigationView.getMenu().findItem(menuItemId).setIcon(iconDrawable);
/frameworks/base/core/java/android/view/
DMenu.java378 public MenuItem findItem(int id); in findItem() method
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuBuilder.java387 MenuItem itemToExpand = findItem(expandedId); in restoreActionViewStates()
623 public MenuItem findItem(int id) { in findItem() method in MenuBuilder
630 MenuItem possibleItem = item.getSubMenu().findItem(id); in findItem()
890 return performItemAction(findItem(id), flags); in performIdentifierAction()
DIconMenuPresenter.java152 MenuItem item = mMenu.findItem(subMenuId);
DActionMenu.java140 public MenuItem findItem(int id) { in findItem() method in ActionMenu
/frameworks/av/include/media/stagefright/foundation/
DAMessage.h227 const Item *findItem(const char *name, Type type) const;
/frameworks/base/core/java/com/android/internal/app/
DLocalePickerWithRegion.java234 final MenuItem searchMenuItem = menu.findItem(R.id.locale_search_menu); in onCreateOptionsMenu()
/frameworks/base/docs/html/training/search/
Dbackward-compat.jd80 (SearchView) menu.findItem(R.id.search).getActionView();
/frameworks/base/docs/html/training/appbar/
Daction-views.jd144 <strong>MenuItem searchItem = menu.findItem(R.id.action_search);</strong>
200 MenuItem actionMenuItem = menu.findItem(R.id.myActionItem);
/frameworks/support/design/tests/src/android/support/design/widget/
DBottomNavigationViewTest.java102 mBottomNavigation.getMenu().findItem(R.id.destination_profile)); in testNavigationSelectionListener()
/frameworks/base/docs/html/training/sharing/
Dshareaction.jd104 MenuItem item = menu.findItem(R.id.menu_item_share);

123