/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/ |
ManageCustomPermissionsFragment.java | 19 import android.view.MenuItem; 33 public boolean onOptionsItemSelected(MenuItem item) {
|
/frameworks/support/wear/src/android/support/wear/widget/drawer/ |
WearableActionDrawerMenu.java | 30 import android.view.MenuItem; 61 public MenuItem add(CharSequence title) { 66 public MenuItem add(int titleRes) { 71 public MenuItem add(int groupId, int itemId, int order, int titleRes) { 76 public MenuItem add(int groupId, int itemId, int order, CharSequence title) { 101 public MenuItem findItem(int id) { 116 public MenuItem getItem(int index) { 169 MenuItem[] outSpecificItems) { 227 public static final class WearableActionDrawerMenuItem implements MenuItem { 235 private MenuItem.OnMenuItemClickListener mClickListener [all...] |
/frameworks/base/core/java/android/view/ |
Menu.java | 31 * clicks is via {@link Activity#onOptionsItemSelected(MenuItem)} and 32 * {@link Activity#onContextItemSelected(MenuItem)}. 39 * {@link MenuItem#setTitleCondensed(CharSequence) condensed title}. The 78 * A mask of all supported modifiers for MenuItem's keyboard shortcuts 150 public MenuItem add(CharSequence title); 159 public MenuItem add(@StringRes int titleRes); 172 * about the order. See {@link MenuItem#getOrder()}. 176 public MenuItem add(int groupId, int itemId, int order, CharSequence title); 189 * about the order. See {@link MenuItem#getOrder()}. 193 public MenuItem add(int groupId, int itemId, int order, @StringRes int titleRes) [all...] |
/external/robolectric/v1/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...] |
/frameworks/support/design/src/android/support/design/internal/ |
BottomNavigationMenu.java | 25 import android.view.MenuItem; 45 protected MenuItem addInternal(int group, int id, int categoryOrder, CharSequence title) { 52 final MenuItem item = super.addInternal(group, id, categoryOrder, title);
|
/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/ |
OptionsMenuManager.java | 22 import android.view.MenuItem; 64 final MenuItem menuItem = menu.findItem(controller.getId()); 65 if (menuItem != null) { 66 controller.onPrepareOptionsItem(menuItem); 74 * This method should be called during {@link Activity#onOptionsItemSelected(MenuItem)}. 76 public boolean onOptionsItemSelected(MenuItem item) {
|
/platform_testing/libraries/app-helpers/handheld/src/android/platform/test/helpers/handheld/ |
IChromeHelper.java | 24 public enum MenuItem { 32 MenuItem(String displayName) { 87 public abstract void openMenuItem(IChromeHelper.MenuItem menuItem);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ExpandableListBasic.java | 20 import android.view.MenuItem; 34 menu.add("Add item").setOnMenuItemClickListener((MenuItem item) -> {
|
/frameworks/base/core/tests/coretests/src/android/view/ |
MenuTest.java | 39 final MenuItem item = mMenu.add(0, id, 0, "test"); 53 final MenuItem item = mMenu.add(groupId, 0, item1Index, "test"); 55 final MenuItem item2 = mMenu.add(groupId, 0, item2Index, "test2"); 100 final MenuItem stringItem = mMenu.add(title); 101 final MenuItem resItem = mMenu.add(R.string.menu_test); 111 final MenuItem item1 = mMenu.add(groupId, 1, 0, "item1"); 112 final MenuItem item2 = mMenu.add(groupId, 2, 0, "item2"); 138 final MenuItem item1 = mMenu.add(0, 1, 0, "item1"); 139 final MenuItem item2 = mMenu.add(0, 2, 0, "item2"); 155 final MenuItem subMenuItem = subMenu.getItem() [all...] |
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
MenuScenario.java | 24 import android.view.MenuItem; 30 public class MenuScenario extends Activity implements MenuItem.OnMenuItemClickListener { 33 private MenuItem[] mItems; 54 mItems = new MenuItem[mParams.numItems]; 65 MenuItem item; 103 protected MenuItem onAddMenuItem(Menu menu, int itemPosition) { 119 public boolean onMenuItemClick(MenuItem item) { 138 public int findItemPosition(MenuItem item) {
|
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/ |
MyActivity.java | 6 import android.view.MenuItem; 25 public boolean onOptionsItemSelected(MenuItem item) {
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/ |
ActionBarPreferences.java | 22 import android.view.MenuItem; 45 public boolean onOptionsItemSelected(MenuItem item) {
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
AppCompatMenuItemShortcutsTestActivity.java | 21 import android.view.MenuItem; 38 public boolean handleMenuItem(MenuItem item) {
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
MenuManager.java | 27 import android.view.MenuItem; 65 protected void updateModePicker(MenuItem grid, MenuItem list) { 76 protected void updateSelectAll(MenuItem selectAll) { 83 protected void updateCreateDir(MenuItem createDir) { 89 protected void updateOpenInActionMode(MenuItem open, SelectionDetails selectionDetails) { 94 protected void updateOpenInContextMenu(MenuItem open, SelectionDetails selectionDetails) { 98 private void updateOpen(MenuItem open, SelectionDetails selectionDetails) {
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
Licenses.java | 5 import android.view.MenuItem; 23 public boolean onOptionsItemSelected(MenuItem item) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/history/ |
HistoryManager.java | 20 import android.view.MenuItem; 29 private MenuItem mUndoMenuItem = null; 30 private MenuItem mRedoMenuItem = null; 31 private MenuItem mResetMenuItem = null; 33 public void setMenuItems(MenuItem undoItem, MenuItem redoItem, MenuItem resetItem) { 96 private void setEnabled(MenuItem item, boolean enabled) {
|
/packages/services/BuiltInPrintService/src/com/android/bips/ui/ |
AddPrintersActivity.java | 23 import android.view.MenuItem; 43 public boolean onOptionsItemSelected(MenuItem item) {
|
/packages/services/Telephony/src/com/android/phone/settings/ |
AccessibilitySettingsActivity.java | 21 import android.view.MenuItem; 37 public boolean onOptionsItemSelected(MenuItem item) {
|
PhoneAccountSettingsActivity.java | 21 import android.view.MenuItem; 37 public boolean onOptionsItemSelected(MenuItem item) {
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/ |
ActionMenuItem.java | 34 import android.view.MenuItem; 182 public MenuItem setAlphabeticShortcut(char alphaChar) { 188 public MenuItem setAlphabeticShortcut(char alphaChar, int alphaModifiers) { 195 public MenuItem setCheckable(boolean checkable) { 206 public MenuItem setChecked(boolean checked) { 212 public MenuItem setEnabled(boolean enabled) { 218 public MenuItem setIcon(Drawable icon) { 227 public MenuItem setIcon(int iconRes) { 236 public MenuItem setIntent(Intent intent) { 242 public MenuItem setNumericShortcut(char numericChar) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
DeviceMenuListener.java | 40 import org.eclipse.swt.widgets.MenuItem; 88 MenuItem item = new MenuItem(menu, SWT.CHECK); 99 MenuItem separator = new MenuItem(menu, SWT.SEPARATOR); 130 MenuItem item = new MenuItem(menu, SWT.CASCADE); 136 MenuItem deviceItem = new MenuItem(manufacturerMenu, SWT.CHECK); 165 MenuItem item = new MenuItem(menu, SWT.CHECK) [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
MenuManager.java | 28 import android.view.MenuItem; 141 protected void updateSettings(MenuItem settings, RootInfo root) { 147 protected void updateEject(MenuItem eject, RootInfo root) { 153 protected void updateSettings(MenuItem settings) { 160 protected void updateNewWindow(MenuItem newWindow) { 165 protected void updateOpenInContextMenu(MenuItem open, SelectionDetails selectionDetails) { 172 protected void updateOpenWith(MenuItem openWith, SelectionDetails selectionDetails) { 179 MenuItem openInNewWindow, SelectionDetails selectionDetails) { 186 protected void updateOpenInNewWindow(MenuItem openInNewWindow, RootInfo root) { 191 protected void updateMoveTo(MenuItem moveTo, SelectionDetails selectionDetails) [all...] |
/developers/build/prebuilts/gradle/ActionBarCompat-Basic/Application/src/main/java/com/example/android/actionbarcompat/basic/ |
MainActivity.java | 23 import android.view.MenuItem; 52 MenuItem locationItem = menu.add(0, R.id.menu_location, 0, R.string.menu_location); 56 MenuItemCompat.setShowAsAction(locationItem, MenuItem.SHOW_AS_ACTION_IF_ROOM); 69 public boolean onOptionsItemSelected(MenuItem item) {
|
/developers/build/prebuilts/gradle/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/ |
MainActivity.java | 22 import android.view.MenuItem;
|
/developers/samples/android/content/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/ |
MainActivity.java | 22 import android.view.MenuItem;
|