Searched refs:menu (Results 1 - 25 of 265) sorted by relevance

1234567891011

/packages/apps/TV/src/com/android/tv/menu/
H A DItemListRow.java17 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, argument
35 this(context, menu, context.getString(titleResId), itemHeightResId, adapter);
38 public ItemListRow(Context context, Menu menu, String title, int itemHeightResId, argument
40 super(context, menu, title, itemHeightResId);
H A DIMenuView.java17 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.
57 * Checks if the menu vie
[all...]
H A DMenuRow.java17 package com.android.tv.menu;
22 * A base class of the item which will be displayed in the main menu.
34 public MenuRow(Context context, Menu menu, int titleResId, int heightResId) { argument
35 this(context, menu, context.getString(titleResId), heightResId);
38 public MenuRow(Context context, Menu menu, String title, int heightResId) { argument
41 mMenu = menu;
53 * Returns the menu object.
75 * This method is called only by the menu when necessary.
80 * Indicates whether this row is shown in the menu.
88 * This method is called when the main menu i
[all...]
H A DMenuRowFactory.java17 package com.android.tv.menu;
31 * A factory class to create menu rows.
50 public MenuRow createMenuRow(Menu menu, Class<?> key) { argument
52 return new PlayControlsRow(mMainActivity, menu, mMainActivity.getTimeShiftManager());
54 return new ChannelsRow(mMainActivity, menu, mMainActivity.getProgramDataManager());
60 return new PartnerRow(mMainActivity, menu, title, customActions);
64 return new TvOptionsRow(mMainActivity, menu, mTvCustomizationManager
67 return new PipOptionsRow(mMainActivity, menu);
73 * A menu row which represents the TV options row.
76 private TvOptionsRow(Context context, Menu menu, Lis argument
95 PipOptionsRow(Context context, Menu menu) argument
112 PartnerRow(Context context, Menu menu, String title, List<CustomAction> customActions) argument
[all...]
H A DPlayControlsRow.java17 package com.android.tv.menu;
29 public PlayControlsRow(Context context, Menu menu, TimeShiftManager timeShiftManager) { argument
30 super(context, menu, R.string.menu_title_play_controls, R.dimen.play_controls_height);
/packages/services/Car/car-support-lib/src/android/support/car/app/menu/compat/
H A DEmbeddedSearchBoxEditListenerCompat.java16 package android.support.car.app.menu.compat;
18 import android.support.car.app.menu.SearchBoxEditListener;
21 android.car.app.menu.SearchBoxEditListener {
/packages/apps/UnifiedEmail/src/com/android/mail/ui/settings/
H A DMailPreferenceFragment.java38 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { argument
39 menu.clear();
40 inflater.inflate(R.menu.settings_fragment_menu, menu);
/packages/services/Car/car-lib/src/android/car/app/menu/
H A DSearchBoxEditListener.java16 package android.car.app.menu;
H A DSubscriptionCallbacks.java16 package android.car.app.menu;
23 * The callbacks to receive menu items updates.
29 * @param items The list of menu items. To retrieve the content of the item, use the keys
40 * Called when the car menu items with the specified parent id are changed.
42 * @param item The new menu item. To retrieve the content of the item, use the keys
/packages/services/Car/car-support-lib/src/android/support/car/app/menu/
H A DSearchBoxEditListener.java16 package android.support.car.app.menu;
H A DRootMenu.java17 package android.support.car.app.menu;
20 import android.support.car.app.menu.compat.CarMenuConstantsComapt.MenuItemConstants;
23 * Stores the root id for the menu. The RootMenu is the main menu.
/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/
H A DActionBarMenuManager.java27 * Activity scoped singleton that manages action bar menus. Each menu item is controlled by a
33 // A map of all menu item controllers, keyed by menu item id.
41 * Add one or more {@link MenuItemController} to the actionbar menu.
59 public void createOptionsMenu(Menu menu, MenuInflater inflater) { argument
60 if (menu.size() > 0) {
63 inflater.inflate(R.menu.desk_clock_menu, menu);
69 controller.setInitialState(menu);
75 * Prepares the popup to displays all required menu item
79 prepareShowMenu(Menu menu) argument
[all...]
H A DMenuItemController.java22 * Interface for handling a single menu item in action bar.
37 * Returns the menu item id that the controller is responsible for.
42 * Sets the initial state for the menu item.
44 void setInitialState(Menu menu); argument
47 * Find the menu item this controller cares about, and make it visible.
49 * @param menu The menu object containing an item that controller can handle.
51 void showMenuItem(Menu menu); argument
56 * @param item The menu item being clicked.
H A DAbstractMenuItemController.java38 public void setInitialState(Menu menu) { argument
H A DSearchMenuItemController.java31 * {@link MenuItemController} for search menu.
63 public void setInitialState(Menu menu) { argument
64 super.setInitialState(menu);
65 final MenuItem search = menu.findItem(SEARCH_MENU_RES_ID);
79 public void showMenuItem(Menu menu) { argument
80 menu.findItem(SEARCH_MENU_RES_ID).setVisible(true);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DHelp.java38 public void addHelpMenuItem(Menu menu, String activityName) { argument
39 addHelpMenuItem(menu, activityName, false);
42 public void addHelpMenuItem(Menu menu, String activityName, boolean showAsAction) { argument
46 inflater.inflate(R.menu.help, menu);
47 MenuItem item = menu.findItem(R.id.menu_help);
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DWebViewContextMenu.java47 * <p>Handles display and behavior of the context menu for known actionable content in WebViews.
52 * <li>res/menu/webview_context_menu.xml</li>
118 * when the menu item is clicked.
137 // For our copy menu items.
185 // For our share menu items.
206 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo info) { argument
231 // an inflated menu can be used again. This is not available
234 // Also, we are copying the menu file from browser until
236 inflater.inflate(getMenuResourceId(), menu);
238 // Initially make set the menu ite
368 setupAnchorMenu(String extra, ContextMenu menu) argument
397 setupImageMenu(String url, ContextMenu menu) argument
[all...]
H A DEmailCopyContextMenu.java44 * <li>res/menu/email_copy_context_menu.xml</li>
49 // IDs for displaying in the menu
95 * Creates context menu via MenuInflater and populates with items defined
96 * in res/menu/email_copy_context_menu.xml
99 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo info) { argument
102 inflater.inflate(getMenuResourceId(), menu);
104 // Create menu and bind listener/intent
105 menu.setHeaderTitle(mAddress);
106 menu.findItem(SEND_EMAIL_ITEM).setIntent(new Intent(Intent.ACTION_VIEW,
108 menu
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DActionBarController.java108 public boolean onCreateOptionsMenu(Menu menu) { argument
109 mEmptyTrashItem = menu.findItem(R.id.empty_trash);
110 mEmptySpamItem = menu.findItem(R.id.empty_spam);
112 // the menu should be displayed if the mode is known
119 return R.menu.conversation_list_menu;
121 return R.menu.conversation_actions;
123 return R.menu.conversation_list_menu;
125 return R.menu.conversation_list_search_results_actions;
127 return R.menu.conversation_actions;
129 return R.menu
245 onPrepareOptionsMenu(Menu menu) argument
389 setConversationModeOptions(Menu menu) argument
[all...]
H A DAccountFeedbackActivity.java38 * overflow menu.
89 public boolean onCreateOptionsMenu(Menu menu) { argument
94 getMenuInflater().inflate(R.menu.account_feedback_menu, menu);
95 mHelpAndFeedbackItem = menu.findItem(R.id.help_info_menu_item);
100 public boolean onPrepareOptionsMenu(Menu menu) { argument
106 return super.onPrepareOptionsMenu(menu);
/packages/apps/Calendar/extensions_src/com/android/calendar/extensions/
H A DAllInOneMenuExtensions.java24 * Skeleton for additional options in the AllInOne menu.
31 public Integer getExtensionMenuResource(Menu menu) { argument
/packages/apps/Calendar/src/com/android/calendar/
H A DAllInOneMenuExtensionsInterface.java24 * Interface for additional options in the AllInOne menu.
30 Integer getExtensionMenuResource(Menu menu); argument
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DMockSearchSettings.java26 public void addMenuItems(Menu menu, boolean showDisabled) { argument
/packages/services/Telephony/src/com/android/phone/settings/fdn/
H A DFdnList.java73 public boolean onCreateOptionsMenu(Menu menu) { argument
74 super.onCreateOptionsMenu(menu);
78 // Added the icons to the context menu
79 menu.add(0, MENU_ADD, 0, r.getString(R.string.menu_add))
81 menu.add(0, MENU_EDIT, 0, r.getString(R.string.menu_edit))
83 menu.add(0, MENU_DELETE, 0, r.getString(R.string.menu_delete))
89 public boolean onPrepareOptionsMenu(Menu menu) { argument
90 super.onPrepareOptionsMenu(menu);
93 menu.findItem(MENU_ADD).setVisible(true);
94 menu
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
H A DArchivedConversationListActivity.java60 public boolean onCreateOptionsMenu(Menu menu) { argument
61 if (super.onCreateOptionsMenu(menu)) {
64 getMenuInflater().inflate(R.menu.archived_conversation_list_menu, menu);
65 final MenuItem item = menu.findItem(R.id.action_debug_options);

Completed in 3781 milliseconds

1234567891011