/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/view/ |
TestMenu.java | 8 import android.view.MenuItem; 15 private List<MenuItem> menuItems = new ArrayList<MenuItem>(); 27 public MenuItem add(CharSequence title) { 32 public MenuItem add(int titleRes) { 37 public MenuItem add(int groupId, int itemId, int order, CharSequence title) { 38 TestMenuItem menuItem = new TestMenuItem(); 39 menuItems.add(menuItem); 40 menuItem.setItemId(itemId); 41 menuItem.setTitle(title) [all...] |
/external/chromium/chrome/browser/ui/cocoa/wrench_menu/ |
menu_tracked_root_view.h | 21 @property(assign, nonatomic) NSMenuItem* menuItem;
|
/external/chromium_org/chrome/browser/ui/cocoa/wrench_menu/ |
menu_tracked_root_view.h | 20 @property(assign, nonatomic) NSMenuItem* menuItem;
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
BaseMenuWrapper.java | 20 import android.view.MenuItem; 28 private HashMap<MenuItem, SupportMenuItem> mMenuItems; 36 final SupportMenuItem getMenuItemWrapper(android.view.MenuItem frameworkItem) { 40 mMenuItems = new HashMap<MenuItem, SupportMenuItem>(); 88 Iterator<android.view.MenuItem> iterator = mMenuItems.keySet().iterator(); 89 android.view.MenuItem menuItem; 92 menuItem = iterator.next(); 93 if (groupId == menuItem.getGroupId()) { 104 Iterator<android.view.MenuItem> iterator = mMenuItems.keySet().iterator() [all...] |
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeLeopard/SDL Application/ |
SDLMain.m | 107 NSMenuItem *menuItem; 114 while ((menuItem = [enumerator nextObject])) 116 aRange = [[menuItem title] rangeOfString:@"SDL App"]; 118 [menuItem setTitle: [[menuItem title] stringByReplacingRange:aRange with:appName]]; 119 if ([menuItem hasSubmenu]) 120 [self fixMenu:[menuItem submenu] withAppName:appName]; 131 NSMenuItem *menuItem; 147 menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"]; 148 [menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask|NSCommandKeyMask)] [all...] |
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeLeopard/SDL Cocoa Application/ |
SDLMain.m | 107 NSMenuItem *menuItem; 114 while ((menuItem = [enumerator nextObject])) 116 aRange = [[menuItem title] rangeOfString:@"SDL App"]; 118 [menuItem setTitle: [[menuItem title] stringByReplacingRange:aRange with:appName]]; 119 if ([menuItem hasSubmenu]) 120 [self fixMenu:[menuItem submenu] withAppName:appName]; 131 NSMenuItem *menuItem; 147 menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"]; 148 [menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask|NSCommandKeyMask)] [all...] |
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeLeopard/SDL OpenGL Application/ |
SDLMain.m | 107 NSMenuItem *menuItem; 114 while ((menuItem = [enumerator nextObject])) 116 aRange = [[menuItem title] rangeOfString:@"SDL App"]; 118 [menuItem setTitle: [[menuItem title] stringByReplacingRange:aRange with:appName]]; 119 if ([menuItem hasSubmenu]) 120 [self fixMenu:[menuItem submenu] withAppName:appName]; 131 NSMenuItem *menuItem; 147 menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"]; 148 [menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask|NSCommandKeyMask)] [all...] |
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeSnowLeopard/SDL Application/ |
SDLMain.m | 107 NSMenuItem *menuItem; 114 while ((menuItem = [enumerator nextObject])) 116 aRange = [[menuItem title] rangeOfString:@"SDL App"]; 118 [menuItem setTitle: [[menuItem title] stringByReplacingRange:aRange with:appName]]; 119 if ([menuItem hasSubmenu]) 120 [self fixMenu:[menuItem submenu] withAppName:appName]; 131 NSMenuItem *menuItem; 147 menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"]; 148 [menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask|NSCommandKeyMask)] [all...] |
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeSnowLeopard/SDL Cocoa Application/ |
SDLMain.m | 107 NSMenuItem *menuItem; 114 while ((menuItem = [enumerator nextObject])) 116 aRange = [[menuItem title] rangeOfString:@"SDL App"]; 118 [menuItem setTitle: [[menuItem title] stringByReplacingRange:aRange with:appName]]; 119 if ([menuItem hasSubmenu]) 120 [self fixMenu:[menuItem submenu] withAppName:appName]; 131 NSMenuItem *menuItem; 147 menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"]; 148 [menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask|NSCommandKeyMask)] [all...] |
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeSnowLeopard/SDL OpenGL Application/ |
SDLMain.m | 107 NSMenuItem *menuItem; 114 while ((menuItem = [enumerator nextObject])) 116 aRange = [[menuItem title] rangeOfString:@"SDL App"]; 118 [menuItem setTitle: [[menuItem title] stringByReplacingRange:aRange with:appName]]; 119 if ([menuItem hasSubmenu]) 120 [self fixMenu:[menuItem submenu] withAppName:appName]; 131 NSMenuItem *menuItem; 147 menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"]; 148 [menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask|NSCommandKeyMask)] [all...] |
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeTiger/SDL Application/ |
SDLMain.m | 107 NSMenuItem *menuItem; 114 while ((menuItem = [enumerator nextObject])) 116 aRange = [[menuItem title] rangeOfString:@"SDL App"]; 118 [menuItem setTitle: [[menuItem title] stringByReplacingRange:aRange with:appName]]; 119 if ([menuItem hasSubmenu]) 120 [self fixMenu:[menuItem submenu] withAppName:appName]; 131 NSMenuItem *menuItem; 147 menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"]; 148 [menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask|NSCommandKeyMask)] [all...] |
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeTiger/SDL Cocoa Application/ |
SDLMain.m | 107 NSMenuItem *menuItem; 114 while ((menuItem = [enumerator nextObject])) 116 aRange = [[menuItem title] rangeOfString:@"SDL App"]; 118 [menuItem setTitle: [[menuItem title] stringByReplacingRange:aRange with:appName]]; 119 if ([menuItem hasSubmenu]) 120 [self fixMenu:[menuItem submenu] withAppName:appName]; 131 NSMenuItem *menuItem; 147 menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"]; 148 [menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask|NSCommandKeyMask)] [all...] |
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeTiger/SDL OpenGL Application/ |
SDLMain.m | 107 NSMenuItem *menuItem; 114 while ((menuItem = [enumerator nextObject])) 116 aRange = [[menuItem title] rangeOfString:@"SDL App"]; 118 [menuItem setTitle: [[menuItem title] stringByReplacingRange:aRange with:appName]]; 119 if ([menuItem hasSubmenu]) 120 [self fixMenu:[menuItem submenu] withAppName:appName]; 131 NSMenuItem *menuItem; 147 menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"]; 148 [menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask|NSCommandKeyMask)] [all...] |
/external/qemu/distrib/sdl-1.2.15/src/main/macosx/ |
SDLMain.m | 107 NSMenuItem *menuItem; 114 while ((menuItem = [enumerator nextObject])) 116 aRange = [[menuItem title] rangeOfString:@"SDL App"]; 118 [menuItem setTitle: [[menuItem title] stringByReplacingRange:aRange with:appName]]; 119 if ([menuItem hasSubmenu]) 120 [self fixMenu:[menuItem submenu] withAppName:appName]; 130 NSMenuItem *menuItem; 146 menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"]; 147 [menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask|NSCommandKeyMask)] [all...] |
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-SearchView/src/main/src/com/example/android/actionbarcompat/searchview/ |
SearchActivity.java | 24 import android.view.MenuItem; 70 MenuItem searchItem = menu.findItem(R.id.menu_search); 85 public boolean onMenuItemActionExpand(MenuItem menuItem) { 91 public boolean onMenuItemActionCollapse(MenuItem menuItem) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
TargetMenuListener.java | 31 import org.eclipse.swt.widgets.MenuItem; 84 MenuItem menuItem = new MenuItem(menu, SWT.CHECK); 85 menuItem.setText("Automatically Pick Best"); 86 menuItem.addSelectionListener(new TargetMenuListener(chooser, null, true)); 88 menuItem.setSelection(true); 92 MenuItem separator = new MenuItem(menu, SWT.SEPARATOR); 109 MenuItem item = new MenuItem(menu, SWT.CHECK) [all...] |
/packages/apps/Settings/src/com/android/settings/accessibility/ |
ToggleFeaturePreferenceFragment.java | 31 import android.view.MenuItem; 108 MenuItem menuItem = menu.add(mSettingsTitle); 109 menuItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); 110 menuItem.setIntent(mSettingsIntent);
|
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-ListPopupMenu/ActionBarCompat-ListPopupMenuSample/src/main/java/com/example/android/actionbarcompat/listpopupmenu/ |
PopupListFragment.java | 21 import android.view.MenuItem; 88 public boolean onMenuItemClick(MenuItem menuItem) { 89 switch (menuItem.getItemId()) {
|
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-ListViewModalSelect/src/main/src/com/example/android/actionbarcompat/listviewmodalselect/ |
CheeseListFragment.java | 27 import android.view.MenuItem; 110 public boolean onActionItemClicked(ActionMode actionMode, MenuItem menuItem) { 112 switch (menuItem.getItemId()) {
|
/development/samples/browseable/ListPopupMenu/src/com.example.android.actionbarcompat.listpopupmenu/ |
PopupListFragment.java | 21 import android.view.MenuItem; 88 public boolean onMenuItemClick(MenuItem menuItem) { 89 switch (menuItem.getItemId()) {
|
/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/ |
V8InspectorFrontendHostCustom.cpp | 97 ContextMenuItem menuItem((typeString == "checkbox" ? CheckableActionType : ActionType), typedId, toWebCoreStringWithNullCheck(label)); 99 menuItem.setChecked(checked->ToBoolean()->Value()); 101 menuItem.setEnabled(enabled->ToBoolean()->Value()); 102 menu.appendItem(menuItem);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
MailActionBarView.java | 36 import android.view.MenuItem; 69 OnQueryTextListener, OnSuggestionListener, MenuItem.OnActionExpandListener, 80 private MenuItem mSearch; 91 private MenuItem mHelpItem; 92 private MenuItem mSendFeedbackItem; 93 private MenuItem mRefreshItem; 94 private MenuItem mFolderSettingsItem; 95 private MenuItem mEmptyTrashItem; 96 private MenuItem mEmptySpamItem; 218 protected MenuItem getSearch() [all...] |
/packages/apps/Settings/src/com/android/settings/nfc/ |
PaymentSettings.java | 34 import android.view.MenuItem; 159 MenuItem menuItem = menu.add(R.string.nfc_payment_menu_item_add_service); 160 menuItem.setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_IF_ROOM); 161 menuItem.setIntent(new Intent(Intent.ACTION_VIEW,Uri.parse(searchUri)));
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ |
IngestActivity.java | 37 import android.view.MenuItem; 75 private MenuItem mMenuSwitcherItem; 76 private MenuItem mActionMenuSwitcherItem; 167 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { 196 public boolean onOptionsItemSelected(MenuItem item) { 340 private void setSwitcherMenuState(MenuItem menuItem, boolean inFullscreenMode) { 341 if (menuItem == null) return; 343 menuItem.setIcon(android.R.drawable.ic_menu_zoom); 344 menuItem.setTitle(R.string.switch_photo_fullscreen) [all...] |
/frameworks/opt/mailcommon/java/com/android/mailcommon/ |
WebViewContextMenu.java | 33 import android.view.MenuItem; 57 MenuItem.OnMenuItemClickListener { 87 private class Copy implements MenuItem.OnMenuItemClickListener { 95 public boolean onMenuItemClick(MenuItem item) { 102 private class Share implements MenuItem.OnMenuItemClickListener { 110 public boolean onMenuItemClick(MenuItem item) { 174 final MenuItem menuItem = menu.getItem(i); 175 menuItem.setOnMenuItemClickListener(this); 205 final MenuItem dialMenuItem [all...] |