Home
last modified time | relevance | path

Searched refs:menu (Results 1 – 25 of 33) sorted by relevance

12

/cts/tests/app/app/src/android/app/stubs/
DTestDialog.java193 public boolean onCreatePanelMenu(int featureId, Menu menu) { in onCreatePanelMenu() argument
195 return super.onCreatePanelMenu(featureId, menu); in onCreatePanelMenu()
205 public boolean onPreparePanel(int featureId, View view, Menu menu) { in onPreparePanel() argument
207 return super.onPreparePanel(featureId, view, menu); in onPreparePanel()
217 public boolean onMenuOpened(int featureId, Menu menu) { in onMenuOpened() argument
219 return super.onMenuOpened(featureId, menu); in onMenuOpened()
223 public void onPanelClosed(int featureId, Menu menu) { in onPanelClosed() argument
225 super.onPanelClosed(featureId, menu); in onPanelClosed()
229 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
231 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
[all …]
DAppStubActivity.java85 public void onOptionsMenuClosed(Menu menu) { in onOptionsMenuClosed() argument
86 super.onOptionsMenuClosed(menu); in onOptionsMenuClosed()
91 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
93 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
97 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
99 if(menu != null) in onCreateOptionsMenu()
100 menu.add(0, 0, 0, "Fake Item"); in onCreateOptionsMenu()
101 return super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
143 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { in onCreateContextMenu() argument
144 super.onCreateContextMenu(menu,v,menuInfo); in onCreateContextMenu()
DActionBarActivity.java40 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
41 getMenuInflater().inflate(R.menu.flat_menu, menu); in onCreateOptionsMenu()
DInstrumentationTestActivity.java170 public boolean onMenuOpened(int featureId, Menu menu) { in onMenuOpened() argument
172 return super.onMenuOpened(featureId, menu); in onMenuOpened()
176 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
177 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
179 inflater.inflate(R.menu.browser, menu); in onCreateOptionsMenu()
181 menu.add("title"); in onCreateOptionsMenu()
187 public boolean onCreatePanelMenu(int featureId, Menu menu) { in onCreatePanelMenu() argument
188 return super.onCreatePanelMenu(featureId, menu); in onCreatePanelMenu()
DKeyboardShortcutsActivity.java39 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
40 menu.add(ITEM_1_NAME).setAlphabeticShortcut(ITEM_1_SHORTCUT); in onCreateOptionsMenu()
83 List<KeyboardShortcutGroup> data, Menu menu, int deviceId) { in onProvideKeyboardShortcuts() argument
91 super.onProvideKeyboardShortcuts(data, menu, deviceId); in onProvideKeyboardShortcuts()
DExpandableListTestActivity.java32 import com.android.internal.view.menu.ContextMenuBuilder;
172 public void onCreateContextMenu(ContextMenu menu, View v, in onCreateContextMenu() argument
175 super.onCreateContextMenu(menu, v, menuInfo); in onCreateContextMenu()
/cts/tests/tests/widget/src/android/widget/cts/
DActionMenuViewTest.java75 final Menu menu = mActionMenuView.getMenu(); in testMenuContent() local
76 assertNotNull(menu); in testMenuContent()
78 mActivity.getMenuInflater().inflate(R.menu.toolbar_menu, menu); in testMenuContent()
80 assertEquals(6, menu.size()); in testMenuContent()
81 assertEquals(R.id.action_highlight, menu.getItem(0).getItemId()); in testMenuContent()
82 assertEquals(R.id.action_edit, menu.getItem(1).getItemId()); in testMenuContent()
83 assertEquals(R.id.action_delete, menu.getItem(2).getItemId()); in testMenuContent()
84 assertEquals(R.id.action_ignore, menu.getItem(3).getItemId()); in testMenuContent()
85 assertEquals(R.id.action_share, menu.getItem(4).getItemId()); in testMenuContent()
86 assertEquals(R.id.action_print, menu.getItem(5).getItemId()); in testMenuContent()
[all …]
DToolbarCtsActivity.java52 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
54 return super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
58 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
60 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
DToolbarTest.java136 () -> mMainToolbar.inflateMenu(R.menu.toolbar_menu)); in testMenuContent()
138 final Menu menu = mMainToolbar.getMenu(); in testMenuContent() local
140 assertEquals(6, menu.size()); in testMenuContent()
141 assertEquals(R.id.action_highlight, menu.getItem(0).getItemId()); in testMenuContent()
142 assertEquals(R.id.action_edit, menu.getItem(1).getItemId()); in testMenuContent()
143 assertEquals(R.id.action_delete, menu.getItem(2).getItemId()); in testMenuContent()
144 assertEquals(R.id.action_ignore, menu.getItem(3).getItemId()); in testMenuContent()
145 assertEquals(R.id.action_share, menu.getItem(4).getItemId()); in testMenuContent()
146 assertEquals(R.id.action_print, menu.getItem(5).getItemId()); in testMenuContent()
154 menu.performIdentifierAction(R.id.action_highlight, 0); in testMenuContent()
[all …]
DPopupMenuTest.java107 mPopupMenu.setOnDismissListener((PopupMenu menu) -> { in teardown() argument
124 final Menu menu = mPopupMenu.getMenu(); in verifyMenuContent() local
125 assertEquals(6, menu.size()); in verifyMenuContent()
126 assertEquals(R.id.action_highlight, menu.getItem(0).getItemId()); in verifyMenuContent()
127 assertEquals(R.id.action_edit, menu.getItem(1).getItemId()); in verifyMenuContent()
128 assertEquals(R.id.action_delete, menu.getItem(2).getItemId()); in verifyMenuContent()
129 assertEquals(R.id.action_ignore, menu.getItem(3).getItemId()); in verifyMenuContent()
130 assertEquals(R.id.action_share, menu.getItem(4).getItemId()); in verifyMenuContent()
131 assertEquals(R.id.action_print, menu.getItem(5).getItemId()); in verifyMenuContent()
133 final SubMenu shareSubMenu = menu.getItem(4).getSubMenu(); in verifyMenuContent()
[all …]
DExpandableListBasic.java33 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
34 menu.add("Add item").setOnMenuItemClickListener((MenuItem item) -> { in onCreateOptionsMenu()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowCtsActivity.java51 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
52 menu.add(Menu.NONE, Menu.NONE, Menu.NONE, "Quit").setShortcut('1', 'q'); in onCreateOptionsMenu()
53 menu.add(Menu.NONE, Menu.NONE, Menu.NONE, "Action").setShortcut('2', 'a'); in onCreateOptionsMenu()
55 return super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
59 public void onOptionsMenuClosed(Menu menu) { in onOptionsMenuClosed() argument
60 super.onOptionsMenuClosed(menu); in onOptionsMenuClosed()
/cts/tests/tests/view/src/android/view/cts/
DContentPaneCtsActivity.java37 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
39 getMenuInflater().inflate(R.menu.menu_settings, menu); in onCreateOptionsMenu()
DTooltipActivity.java32 ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) { in onCreateContextMenu() argument
33 menu.add("context menu"); in onCreateContextMenu()
DPointerCaptureCtsActivity.java34 ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) { in onCreateContextMenu() argument
35 menu.add("context menu"); in onCreateContextMenu()
DMenuInflaterTest.java84 mMenuInflater.inflate(R.menu.browser, mMenu); in testInflate()
97 mMenuInflater.inflate(R.menu.browser, null); in testInflateNullMenu()
105 mMenuInflater.inflate(R.menu.visible_shortcut, mMenu); in testInflateAlphabeticShortcutFromXml()
121 mMenuInflater.inflate(R.menu.visible_shortcut, mMenu); in testInflateShortcutModifiersFromXml()
146 mMenuInflater.inflate(R.menu.title_icon, mMenu); in testInflateDrawableFromXml()
165 mMenuInflater.inflate(R.menu.category_order, mMenu); in testInflateOrderFromXml()
191 mMenuInflater.inflate(R.menu.checkable, mMenu); in testInflateCheckableFromXmlNone()
210 mMenuInflater.inflate(R.menu.checkable, mMenu); in testInflateCheckableFromXmlMultiples()
235 mMenuInflater.inflate(R.menu.checkable, mMenu); in testInflateCheckableFromXmlExclusive()
263 mMenuInflater.inflate(R.menu.checkable, mMenu); in testInflateCheckableFromXmlSubmenu()
[all …]
DActionModeCallback2Test.java81 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
86 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
DMenuItemTest.java59 mActivity.getMainToolbar().inflateMenu(R.menu.menu_regular); in setup()
DMockView.java319 protected void onCreateContextMenu(ContextMenu menu) { in onCreateContextMenu() argument
320 super.onCreateContextMenu(menu); in onCreateContextMenu()
/cts/tests/tests/content/HelloWorldApp/src7/com/example/helloworld/
DMainActivity.java38 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
40 getMenuInflater().inflate(R.menu.menu_main, menu); in onCreateOptionsMenu()
/cts/tests/tests/content/HelloWorldApp/src5/com/example/helloworld/
DMainActivity.java38 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
40 getMenuInflater().inflate(R.menu.menu_main, menu); in onCreateOptionsMenu()
/cts/tests/tests/content/HelloWorldApp/src_shell/com/android/shell/
DMainActivity.java38 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
40 getMenuInflater().inflate(R.menu.menu_main, menu); in onCreateOptionsMenu()
/cts/tests/app/src/android/app/cts/
DToolbarActionBarTest.java38 () -> mActivity.getToolbar().inflateMenu(R.menu.flat_menu)); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Activities/
DTestActivity.java195 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
197 getMenuInflater().inflate(R.menu.menu_cts, menu); in onCreateOptionsMenu()
/cts/tests/fragment/src/android/fragment/cts/
DFragmentLifecycleTest.java974 Menu menu = mock(Menu.class); in optionsMenu() local
975 fc.dispatchPrepareOptionsMenu(menu); in optionsMenu()
979 fc.dispatchPrepareOptionsMenu(menu); in optionsMenu()
1282 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
1285 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()

12