/development/samples/browseable/PdfRendererBasic/src/com.example.android.pdfrendererbasic/ |
MainActivity.java | 22 import android.view.Menu; 42 public boolean onCreateOptionsMenu(Menu menu) { 43 getMenuInflater().inflate(R.menu.main, menu);
|
/frameworks/base/core/java/com/android/internal/widget/ |
DecorContentParent.java | 23 import android.view.Menu; 25 import com.android.internal.view.menu.MenuPresenter; 48 void setMenu(Menu menu, MenuPresenter.Callback cb);
|
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
MenuLayout.java | 17 package android.view.menu; 19 import android.view.menu.MenuScenario.Params; 22 import android.view.Menu; 41 public boolean onPrepareOptionsMenu(Menu menu) { 44 * This activity is meant to try a bunch of different menu layouts. So, 45 * we recreate the menu every time it is prepared. 47 menu.clear(); 48 onCreateOptionsMenu(menu);
|
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/ |
MainActivity.java | 6 import android.view.Menu; 24 public boolean onCreateOptionsMenu(Menu menu) { 25 // Inflate the menu; this adds items to the action bar if it is present. 26 getMenuInflater().inflate(R.menu.menu_main, menu);
|
/frameworks/data-binding/integration-tests/App With Spaces/app/src/main/java/android/databinding/appwithspaces/ |
MainActivity.java | 22 import android.view.Menu; 41 public boolean onCreateOptionsMenu(Menu menu) { 42 // Inflate the menu; this adds items to the action bar if it is present. 43 getMenuInflater().inflate(R.menu.menu_main, menu);
|
/frameworks/data-binding/integration-tests/MultiModuleTestApp/app/src/main/java/android/databinding/multimoduletestapp/ |
MainActivity.java | 22 import android.view.Menu; 41 public boolean onCreateOptionsMenu(Menu menu) { 42 // Inflate the menu; this adds items to the action bar if it is present. 43 getMenuInflater().inflate(R.menu.menu_main, menu);
|
/frameworks/data-binding/integration-tests/MultiModuleTestApp/testlibrary/src/main/java/android/databinding/testlibrary/ |
TestLibraryMainActivity.java | 21 import android.view.Menu; 37 public boolean onCreateOptionsMenu(Menu menu) { 38 // Inflate the menu; this adds items to the action bar if it is present. 39 getMenuInflater().inflate(R.menu.menu_test_library_main, menu);
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/ |
ActionBarMechanics.java | 21 import android.view.Menu; 27 * standard options menu. This demo is for informative purposes only; see ActionBarUsage for 46 public boolean onCreateOptionsMenu(Menu menu) { 47 // Menu items default to never show in the action bar. On most devices this means 48 // they will show in the standard options menu panel when the menu button is pressed. 50 // Action Bar that will display remaining items in a cascading menu. 51 menu.add("Normal item"); 53 MenuItem actionItem = menu.add("Action Button") [all...] |
MenuItemIconTinting.java | 21 import android.view.Menu; 29 * This demonstrates icon tinting on menu items. 44 public boolean onCreateOptionsMenu(Menu menu) { 46 inflater.inflate(R.menu.menu_with_tinted_icons, menu);
|
ActionBarActionMode.java | 22 import android.view.Menu; 50 public boolean onCreateActionMode(ActionMode mode, Menu menu) { 51 mode.getMenuInflater().inflate(R.menu.actions, menu); 56 public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
|
ToolbarActionMode.java | 25 import android.view.Menu; 54 public boolean onCreateActionMode(ActionMode mode, Menu menu) { 55 mode.getMenuInflater().inflate(R.menu.actions, menu); 60 public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
AppCompatDelegateImplN.java | 22 import android.view.Menu; 46 List<KeyboardShortcutGroup> data, Menu menu, int deviceId) { 48 if (panel != null && panel.menu != null) { 49 // The menu provided is one created by PhoneWindow which we don't actually use. 51 super.onProvideKeyboardShortcuts(data, panel.menu, deviceId); 53 // If we don't have a menu, jump pass through the original instead 54 super.onProvideKeyboardShortcuts(data, menu, deviceId);
|
/packages/apps/TV/src/com/android/tv/menu/ |
ItemListRow.java | 17 package com.android.tv.menu; 22 import com.android.tv.menu.ItemListRowView.ItemListAdapter; 25 * A menu item which is used to represents the list of the items. 33 public ItemListRow(Context context, Menu menu, int titleResId, int itemHeightResId, 35 this(context, menu, context.getString(titleResId), itemHeightResId, adapter); 38 public ItemListRow(Context context, Menu menu, String title, int itemHeightResId, 40 super(context, menu, title, itemHeightResId);
|
IMenuView.java | 17 package com.android.tv.menu; 19 import com.android.tv.menu.Menu.MenuShowReason; 24 * An base interface for menu view. 28 * Sets menu rows. 33 * Shows the main menu. 35 * <p> The inherited class should show the menu and select the row corresponding to 36 * {@code rowIdToSelect}. If the menu is already visible, change the current selection to the 45 * Hides the main menu 50 * Updates the menu contents [all...] |
/development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/ |
Notepadv2.java | 24 import android.view.Menu; 35 private static final int INSERT_ID = Menu.FIRST; 36 private static final int DELETE_ID = Menu.FIRST + 1; 69 public boolean onCreateOptionsMenu(Menu menu) { 70 super.onCreateOptionsMenu(menu); 71 menu.add(0, INSERT_ID,0, R.string.menu_insert); 87 public void onCreateContextMenu(ContextMenu menu, View v, 89 super.onCreateContextMenu(menu, v, menuInfo);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListWithEmptyView.java | 24 import android.view.Menu; 52 public static final int MENU_ADD = Menu.FIRST + 1; 53 public static final int MENU_REMOVE = Menu.FIRST + 2; 74 public boolean onCreateOptionsMenu(Menu menu) { 75 super.onCreateOptionsMenu(menu); 76 menu.add(0, MENU_ADD, 0, R.string.menu_add) 78 menu.add(0, MENU_REMOVE, 0, R.string.menu_remove)
|
/packages/apps/Launcher3/src/com/android/launcher3/keyboard/ |
CustomActionsPopup.java | 19 import android.view.Menu; 37 * Handles showing a popup menu with available custom actions for a launcher icon. 81 Menu menu = popup.getMenu(); local 83 menu.add(Menu.NONE, action.getId(), Menu.NONE, action.getLabel());
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
PrivateVolumeOptionMenuController.java | 22 import android.view.Menu; 37 * Handles the option menu on the Storage settings. 55 public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) { 56 menu.add(Menu.NONE, OPTIONS_MENU_MIGRATE_DATA, 0, R.string.storage_menu_migrate); 60 public void onPrepareOptionsMenu(Menu menu) { 67 final MenuItem migrate = menu.findItem(OPTIONS_MENU_MIGRATE_DATA);
|
/cts/tests/app/app/src/android/app/stubs/ |
KeyboardShortcutsActivity.java | 21 import android.view.Menu; 39 public boolean onCreateOptionsMenu(Menu menu) { 40 menu.add(ITEM_1_NAME).setAlphabeticShortcut(ITEM_1_SHORTCUT); 83 List<KeyboardShortcutGroup> data, Menu menu, int deviceId) { 91 super.onProvideKeyboardShortcuts(data, menu, deviceId);
|
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-SearchView/src/main/src/com/example/android/actionbarcompat/searchview/ |
SearchActivity.java | 23 import android.view.Menu; 49 * Use this method to instantiate your menu, inflating our {@code main} menu resource. 52 public boolean onCreateOptionsMenu(Menu menu) { 53 // Inflate our menu from the resources by using the menu inflater. 54 getMenuInflater().inflate(R.menu.main, menu); 56 return super.onCreateOptionsMenu(menu); [all...] |
/development/tutorials/NotepadCodeLab/Notepadv1Solution/src/com/android/demo/notepad1/ |
Notepadv1.java | 22 import android.view.Menu; 27 public static final int INSERT_ID = Menu.FIRST; 43 public boolean onCreateOptionsMenu(Menu menu) { 44 boolean result = super.onCreateOptionsMenu(menu); 45 menu.add(0, INSERT_ID, 0, R.string.menu_insert);
|
/frameworks/base/core/java/android/view/ |
ActionMode.java | 31 * read the <a href="{@docRoot}guide/topics/ui/menus.html#context-menu">Menus</a> 199 * Invalidate the action mode and refresh menu content. The mode's 201 * {@link Callback#onPrepareActionMode(ActionMode, Menu)} method called. 202 * If it returns true the menu will be scanned for updated content and any relevant changes 236 * Returns the menu of actions that this action mode presents. 237 * @return The action mode's menu. 239 public abstract Menu getMenu(); 294 * <li>{@link Callback#onCreateActionMode(ActionMode, Menu)} once on initial 296 * <li>{@link Callback#onPrepareActionMode(ActionMode, Menu)} after creation 306 * Called when action mode is first created. The menu supplied will be used t [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
WindowDecorActionBarTest.java | 23 import android.view.Menu; 80 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { 90 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/ |
ObservableActivity.java | 22 import android.view.Menu; 80 public boolean onCreateOptionsMenu(final Menu menu) { 81 if (super.onCreateOptionsMenu(menu)) { 82 mLifecycle.onCreateOptionsMenu(menu, null); 89 public boolean onPrepareOptionsMenu(final Menu menu) { 90 if (super.onPrepareOptionsMenu(menu)) { 91 mLifecycle.onPrepareOptionsMenu(menu);
|
ObservableDialogFragment.java | 21 import android.view.Menu; 69 public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) { 70 mLifecycle.onCreateOptionsMenu(menu, inflater); 71 super.onCreateOptionsMenu(menu, inflater); 75 public void onPrepareOptionsMenu(final Menu menu) { 76 mLifecycle.onPrepareOptionsMenu(menu); 77 super.onPrepareOptionsMenu(menu);
|