Home
last modified time | relevance | path

Searched refs:MenuItem (Results 1 – 25 of 64) sorted by relevance

123

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/fakes/
DRoboMenuItem.java8 import android.view.MenuItem;
16 public class RoboMenuItem implements MenuItem {
74 public MenuItem setTitle(CharSequence title) { in setTitle()
80 public MenuItem setTitle(int title) { in setTitle()
90 public MenuItem setTitleCondensed(CharSequence title) { in setTitleCondensed()
100 public MenuItem setIcon(Drawable icon) { in setIcon()
106 public MenuItem setIcon(int iconRes) { in setIcon()
117 public MenuItem setIntent(Intent intent) { in setIntent()
128 public MenuItem setShortcut(char numericChar, char alphaChar) { in setShortcut()
133 public MenuItem setNumericShortcut(char numericChar) { in setNumericShortcut()
[all …]
DRoboMenu.java8 import android.view.MenuItem;
20 private List<MenuItem> menuItems = new ArrayList<>();
32 public MenuItem add(CharSequence title) { in add()
37 public MenuItem add(int titleRes) { in add()
42 public MenuItem add(int groupId, int itemId, int order, CharSequence title) { in add()
54 public MenuItem add(int groupId, int itemId, int order, int titleRes) { in add()
104 Intent intent, int flags, MenuItem[] outSpecificItems) { in addIntentOptions()
110 MenuItem menuItem = findItem(id); in removeItem()
141 public MenuItem findItem(int id) { in findItem()
142 for (MenuItem item : menuItems) { in findItem()
[all …]
DRoboSubMenu.java5 import android.view.MenuItem;
63 public MenuItem getItem() { in getItem()
/external/python/cpython2/Mac/Demo/mlte/
Dmlted.py180 self.newitem = MenuItem(m, "New window", "N", self.open)
181 self.openitem = MenuItem(m, "Open...", "O", self.openfile)
182 self.closeitem = MenuItem(m, "Close", "W", self.closewin)
184 self.saveitem = MenuItem(m, "Save", "S", self.save)
185 self.saveasitem = MenuItem(m, "Save as...", "", self.saveas)
187 self.quititem = MenuItem(m, "Quit", "Q", self.quit)
190 self.undoitem = MenuItem(m, "Undo", "Z", self.undo)
191 self.redoitem = MenuItem(m, "Redo", None, self.redo)
193 self.cutitem = MenuItem(m, "Cut", "X", self.cut)
194 self.copyitem = MenuItem(m, "Copy", "C", self.copy)
[all …]
/external/python/cpython2/Mac/Demo/textedit/
Dped.py190 self.newitem = MenuItem(m, "New window", "N", self.open)
191 self.openitem = MenuItem(m, "Open...", "O", self.openfile)
192 self.closeitem = MenuItem(m, "Close", "W", self.closewin)
194 self.saveitem = MenuItem(m, "Save", "S", self.save)
195 self.saveasitem = MenuItem(m, "Save as...", "", self.saveas)
197 self.quititem = MenuItem(m, "Quit", "Q", self.quit)
200 self.undoitem = MenuItem(m, "Undo", "Z", self.undo)
201 self.cutitem = MenuItem(m, "Cut", "X", self.cut)
202 self.copyitem = MenuItem(m, "Copy", "C", self.copy)
203 self.pasteitem = MenuItem(m, "Paste", "V", self.paste)
[all …]
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/translit/
DDemo.java20 import java.awt.MenuItem;
135 MenuItem mitem; in initMenus()
140 menu.add(mitem = new MenuItem("Quit")); in initMenus()
217 MenuItem mItem = new MenuItem(fonts[i]); in initMenus()
226 MenuItem mItem = new MenuItem("" + sizes[i]); in initMenus()
236 translitMenu.add(convertSelectionItem = new MenuItem("Transliterate", in initMenus()
244 translitMenu.add(swapSelectionItem = new MenuItem("Reverse", in initMenus()
258 translitMenu.add(convertTypingItem = new MenuItem("No Typing Conversion", in initMenus()
286 helpMenu.add(mitem = new MenuItem("Help")); in initMenus()
305 helpMenu.add(mitem = new MenuItem("Hex...", in initMenus()
[all …]
/external/tensorflow/tensorflow/python/debug/cli/
Danalyzer_cli.py89 debugger_cli_common.MenuItem(
94 debugger_cli_common.MenuItem(
99 debugger_cli_common.MenuItem(
104 debugger_cli_common.MenuItem(
109 debugger_cli_common.MenuItem(
115 debugger_cli_common.MenuItem(
118 debugger_cli_common.MenuItem("print_tensor", None, enabled=False))
120 debugger_cli_common.MenuItem("list_inputs", None, enabled=False))
122 debugger_cli_common.MenuItem("list_outputs", None, enabled=False))
125 debugger_cli_common.MenuItem("run_info", "run_info"))
[all …]
Dcli_shared.py251 font_attr = [debugger_cli_common.MenuItem("", command), "bold"]
312 debugger_cli_common.MenuItem(None, "pf '%s'" % feed_key_name))
361 command_menu_node = debugger_cli_common.MenuItem(
380 RL("help.", debugger_cli_common.MenuItem("", "help")) +
386 menu.append(debugger_cli_common.MenuItem("run", "run"))
387 menu.append(debugger_cli_common.MenuItem(
389 menu.append(debugger_cli_common.MenuItem("exit", "exit"))
Dcurses_widgets.py180 (debugger_cli_common.MenuItem(None, backward_command)
185 (debugger_cli_common.MenuItem(None, forward_command)
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/fakes/
DRoboMenuItemTest.java7 import android.view.MenuItem;
18 private MenuItem item;
121 item = item.setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_ALWAYS); in methodsShouldReturnThis()
164 static class TestOnActionExpandListener implements MenuItem.OnActionExpandListener {
168 public boolean onMenuItemActionExpand(MenuItem menuItem) { in onMenuItemActionExpand()
174 public boolean onMenuItemActionCollapse(MenuItem menuItem) { in onMenuItemActionCollapse()
DRoboMenuTest.java9 import android.view.MenuItem;
74 MenuItem item = menu.getItem(0); in add_AddsItemsInOrder()
/external/autotest/frontend/client/src/autotest/common/ui/
DContextMenu.java7 import com.google.gwt.user.client.ui.MenuItem;
35 public MenuItem addItem(String text, Command cmd) { in addItem()
40 for (MenuItem menuItem : getItems()) { in setEnabled()
/external/autotest/frontend/client/src/autotest/public/
Dstandard.css24 .gwt-MenuBar .gwt-MenuItem {
27 .gwt-MenuBar .gwt-MenuItem-selected {
34 .gwt-MenuBar-horizontal .gwt-MenuItem {
60 .gwt-MenuBar-vertical .gwt-MenuItem {
/external/python/cpython2/Mac/Demo/imgbrowse/
Dimgbrowse.py39 self.openitem = FrameWork.MenuItem(m, "Open...", "O", self.opendoc)
40 self.infoitem = FrameWork.MenuItem(m, "Info", "I", self.info)
41 self.quititem = FrameWork.MenuItem(m, "Quit", "Q", self.quit)
/external/swiftshader/third_party/llvm-7.0/llvm/test/tools/llvm-rc/
Dparser.test33 ; PGOOD-NEXT: MenuItem ("Item&1"), ID = 301 CHECKED MENUBREAK
34 ; PGOOD-NEXT: MenuItem ("Item&2"), ID = 302 CHECKED MENUBARBREAK
35 ; PGOOD-NEXT: MenuItem ("Item&3"), ID = 303 HELP INACTIVE MENUBREAK
36 ; PGOOD-NEXT: MenuItem ("Item&4"), ID = 304 GRAYED
40 ; PGOOD-NEXT: MenuItem ("&A"), ID = 401
41 ; PGOOD-NEXT: MenuItem ("&B"), ID = 402
46 ; PGOOD-NEXT: MenuItem ("&Row"), ID = 500
47 ; PGOOD-NEXT: MenuItem ("&Column"), ID = 501 CHECKED
49 ; PGOOD-NEXT: MenuItem ("&Word"), ID = 502
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/util/
DColorsActivity.java12 import android.view.MenuItem;
15 import android.view.MenuItem.OnMenuItemClickListener;
267 MenuItem reset = menu.add("Reset"); in onCreateOptionsMenu()
272 public boolean onMenuItemClick(MenuItem arg0) { in onCreateOptionsMenu()
/external/gptfdisk/
Dgptcurses.h32 struct MenuItem { struct
38 static struct MenuItem menuMain[] = { argument
/external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/
DAbstractFragmentsActivity.java7 import android.view.MenuItem;
56 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected()
DAbstractPagesActivity.java7 import android.view.MenuItem;
62 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPopupMenuTest.java6 import android.view.MenuItem;
63 public boolean onMenuItemClick(MenuItem menuItem) { in getOnClickListener_returnsOnClickListener()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ui/
DUiFacade.java25 import android.view.MenuItem;
504 MenuItem menuItem = menu.add(item.mmTitle); in onCreateContextMenu()
513 MenuItem menuItem = menu.add(MENU_GROUP_ID, Menu.NONE, Menu.NONE, item.mmTitle); in onPrepareOptionsMenu()
688 private final MenuItem.OnMenuItemClickListener mmListener;
695 mmListener = new MenuItem.OnMenuItemClickListener() { in UiMenuItem()
697 public boolean onMenuItemClick(MenuItem item) { in UiMenuItem()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
DTriggerManager.java27 import android.view.MenuItem;
98 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected()
116 public boolean onContextItemSelected(MenuItem item) { in onContextItemSelected()
DScriptProcessMonitor.java30 import android.view.MenuItem;
138 public boolean onContextItemSelected(MenuItem item) { in onContextItemSelected()
173 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected()
/external/python/cpython2/Lib/plat-mac/
DFrameWork.py132 self._quititem = MenuItem(m, "Quit", "Q", self._quit)
664 class MenuItem: class
699 class RadioItem(MenuItem):
701 MenuItem.__init__(self, menu, title, shortcut, callback, 'radio')
703 class CheckItem(MenuItem):
705 MenuItem.__init__(self, menu, title, shortcut, callback, 'check')
1089 self.saveitem = MenuItem(m, "Save", "S", self.save)
1096 self.itemeh = MenuItem(m, "Enable Help", None, self.enablehelp)
1097 self.itemdbg = MenuItem(m, "Debug", None, self.debug)
1099 self.quititem = MenuItem(m, "Quit", "Q", self.quit)
[all …]
/external/skqp/platform_tools/android/apps/arcore/src/main/java/org/skia/arcore/
DHelloArActivity.java36 import android.view.MenuItem;
190 public boolean onContextItemSelected(MenuItem item) { in onContextItemSelected()
217 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected()

123