Home
last modified time | relevance | path

Searched refs:Menu (Results 1 – 25 of 214) sorted by relevance

123456789

/packages/apps/TV/tests/unit/src/com/android/tv/menu/
DMenuTest.java21 import com.android.tv.menu.Menu.OnMenuVisibilityChangeListener;
33 private Menu mMenu;
42 Mockito.when(factory.createMenuRow(Mockito.any(Menu.class), Mockito.any(Class.class))) in setUp()
45 mMenu = new Menu(getContext(), mMenuView, factory, mVisibilityChangeListener); in setUp()
50 mMenu.show(Menu.REASON_NONE); in testScheduleHide()
58 mMenu.show(Menu.REASON_NONE); in testScheduleHide()
72 mMenu.show(Menu.REASON_NONE); in testShowHide_ReasonNone()
80 Mockito.verify(mMenuView).onShow(Matchers.eq(Menu.REASON_NONE), in testShowHide_ReasonNone()
92 mMenu.show(Menu.REASON_GUIDE); in testShowHide_ReasonGuide()
100 Mockito.verify(mMenuView).onShow(Matchers.eq(Menu.REASON_GUIDE), in testShowHide_ReasonGuide()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DMenuHelper.java40 import android.view.Menu;
106 public void gettingReadyToOpen(Menu menu, IImage image); in gettingReadyToOpen()
166 public static void enableShareMenuItem(Menu menu, boolean enabled) { in enableShareMenuItem()
181 public static void enableShowOnMapMenuItem(Menu menu, boolean enabled) { in enableShowOnMapMenuItem()
578 Menu menu, in addImageMenuItems()
594 SubMenu rotateSubmenu = menu.addSubMenu(Menu.NONE, Menu.NONE, in addImageMenuItems()
627 MenuItem autoCrop = menu.add(Menu.NONE, Menu.NONE, in addImageMenuItems()
641 MenuItem setMenu = menu.add(Menu.NONE, Menu.NONE, in addImageMenuItems()
654 MenuItem item1 = menu.add(Menu.NONE, MENU_IMAGE_SHARE, in addImageMenuItems()
668 MenuItem deleteItem = menu.add(Menu.NONE, Menu.NONE, in addImageMenuItems()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiSettings.java49 import android.view.Menu;
95 /* package */ static final int MENU_ID_WPS_PBC = Menu.FIRST;
96 private static final int MENU_ID_WPS_PIN = Menu.FIRST + 1;
97 private static final int MENU_ID_ADVANCED = Menu.FIRST + 4;
98 private static final int MENU_ID_SCAN = Menu.FIRST + 5;
99 private static final int MENU_ID_CONNECT = Menu.FIRST + 6;
100 private static final int MENU_ID_FORGET = Menu.FIRST + 7;
101 private static final int MENU_ID_MODIFY = Menu.FIRST + 8;
102 private static final int MENU_ID_WRITE_NFC = Menu.FIRST + 9;
103 private static final int MENU_ID_CONFIGURE = Menu.FIRST + 10;
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettingsFragment.java26 import android.view.Menu;
38 private static final int NO_MENU_GROUP = Menu.NONE;
40 private static final int MENU_ABOUT = Menu.FIRST;
42 private static final int MENU_HELP_AND_FEEDBACK = Menu.FIRST + 1;
61 public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) { in onCreateOptionsMenu()
/packages/apps/TV/src/com/android/tv/menu/
DMenuRow.java31 private final Menu mMenu;
34 public MenuRow(Context context, Menu menu, int titleResId, int heightResId) { in MenuRow()
38 public MenuRow(Context context, Menu menu, String title, int heightResId) { in MenuRow()
55 public Menu getMenu() { in getMenu()
DMenuRowFactory.java50 public MenuRow createMenuRow(Menu menu, Class<?> key) { in createMenuRow()
76 private TvOptionsRow(Context context, Menu menu, List<CustomAction> customActions) { in TvOptionsRow()
95 private PipOptionsRow(Context context, Menu menu) { in PipOptionsRow()
112 private PartnerRow(Context context, Menu menu, String title, in PartnerRow()
DMenu.java51 public class Menu { class
95 private final WeakHandler<Menu> mHandler = new MenuWeakHandler(this, Looper.getMainLooper());
124 public Menu(Context context, IMenuView menuView, MenuRowFactory menuRowFactory, in Menu() method in Menu
324 private static class MenuWeakHandler extends WeakHandler<Menu> {
325 public MenuWeakHandler(Menu menu, Looper mainLooper) { in MenuWeakHandler()
330 public void handleMessage(Message msg, @NonNull Menu menu) { in handleMessage()
DPlayControlsRowView.java33 import com.android.tv.menu.Menu.MenuShowReason;
283 case Menu.REASON_PLAY_CONTROLS_JUMP_TO_PREVIOUS: in initialize()
291 case Menu.REASON_PLAY_CONTROLS_REWIND: in initialize()
299 case Menu.REASON_PLAY_CONTROLS_FAST_FORWARD: in initialize()
307 case Menu.REASON_PLAY_CONTROLS_JUMP_TO_NEXT: in initialize()
315 case Menu.REASON_PLAY_CONTROLS_PLAY_PAUSE: in initialize()
316 case Menu.REASON_PLAY_CONTROLS_PLAY: in initialize()
317 case Menu.REASON_PLAY_CONTROLS_PAUSE: in initialize()
/packages/experimental/LoaderApp/src/com/android/loaderapp/
DHomeXLarge.java30 import android.view.Menu;
81 public boolean onCreateActionMenu(Menu menu) { in onCreateActionMenu()
92 public boolean onUpdateActionMenu(Menu menu) { in onUpdateActionMenu()
118 public boolean onCreateContextMode(int modeId, Menu menu) { in onCreateContextMode()
123 public boolean onPrepareContextMode(int modeId, Menu menu) { in onPrepareContextMode()
DHomeGroupsXLarge.java31 import android.view.Menu;
156 public boolean onCreateActionMenu(Menu menu) { in onCreateActionMenu()
167 public boolean onUpdateActionMenu(Menu menu) { in onUpdateActionMenu()
193 public boolean onCreateContextMode(int modeId, Menu menu) { in onCreateContextMode()
198 public boolean onPrepareContextMode(int modeId, Menu menu) { in onPrepareContextMode()
/packages/apps/TV/src/com/android/tv/ui/
DTvOverlayManager.java63 import com.android.tv.menu.Menu;
64 import com.android.tv.menu.Menu.MenuShowReason;
147 private final Menu mMenu;
195 mMenu = new Menu(mainActivity, menuView, new MenuRowFactory(mainActivity), in TvOverlayManager()
196 new Menu.OnMenuVisibilityChangeListener() { in TvOverlayManager()
294 public Menu getMenu() { in getMenu()
347 showMenu(Menu.REASON_PLAY_CONTROLS_PAUSE); in showMenuWithTimeShiftPauseIfNeeded()
767 showMenu(Menu.REASON_PLAY_CONTROLS_PLAY); in onKeyUp()
771 showMenu(Menu.REASON_PLAY_CONTROLS_PAUSE); in onKeyUp()
775 showMenu(Menu.REASON_PLAY_CONTROLS_PLAY_PAUSE); in onKeyUp()
[all …]
/packages/apps/Music/src/com/android/music/
DMusicPicker.java35 import android.view.Menu;
83 static final int TRACK_MENU = Menu.FIRST;
85 static final int ALBUM_MENU = Menu.FIRST+1;
87 static final int ARTIST_MENU = Menu.FIRST+2;
500 @Override public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu()
502 menu.add(Menu.NONE, TRACK_MENU, Menu.NONE, R.string.sort_by_track); in onCreateOptionsMenu()
503 menu.add(Menu.NONE, ALBUM_MENU, Menu.NONE, R.string.sort_by_album); in onCreateOptionsMenu()
504 menu.add(Menu.NONE, ARTIST_MENU, Menu.NONE, R.string.sort_by_artist); in onCreateOptionsMenu()
/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/
DMenuItemController.java18 import android.view.Menu;
44 void setInitialState(Menu menu); in setInitialState()
51 void showMenuItem(Menu menu); in showMenuItem()
DActionBarMenuManager.java20 import android.view.Menu;
59 public void createOptionsMenu(Menu menu, MenuInflater inflater) { in createOptionsMenu()
79 public void prepareShowMenu(Menu menu) { in prepareShowMenu()
/packages/apps/Settings/src/com/android/settings/applications/
DRunningServices.java21 import android.view.Menu;
38 private Menu mOptionsMenu;
61 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu()
100 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu()
/packages/apps/Stk/src/com/android/stk/
DStkApp.java31 static final int MENU_ID_END_SESSION = android.view.Menu.FIRST;
32 static final int MENU_ID_BACK = android.view.Menu.FIRST + 1;
33 static final int MENU_ID_HELP = android.view.Menu.FIRST + 2;
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/
DPermissionAppsFragment.java35 import android.view.Menu;
60 private static final int MENU_SHOW_SYSTEM = Menu.FIRST;
61 private static final int MENU_HIDE_SYSTEM = Menu.FIRST + 1;
112 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu()
113 mShowSystemMenu = menu.add(Menu.NONE, MENU_SHOW_SYSTEM, Menu.NONE, in onCreateOptionsMenu()
115 mHideSystemMenu = menu.add(Menu.NONE, MENU_HIDE_SYSTEM, Menu.NONE, in onCreateOptionsMenu()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/
DPermissionAppsFragment.java33 import android.view.Menu;
60 private static final int MENU_SHOW_SYSTEM = Menu.FIRST;
61 private static final int MENU_HIDE_SYSTEM = Menu.FIRST + 1;
112 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu()
113 mShowSystemMenu = menu.add(Menu.NONE, MENU_SHOW_SYSTEM, Menu.NONE, in onCreateOptionsMenu()
115 mHideSystemMenu = menu.add(Menu.NONE, MENU_HIDE_SYSTEM, Menu.NONE, in onCreateOptionsMenu()
/packages/apps/Settings/src/com/android/settings/
DZonePicker.java26 import android.view.Menu;
57 private static final int MENU_TIMEZONE = Menu.FIRST+1;
58 private static final int MENU_ALPHABETICAL = Menu.FIRST;
158 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu()
167 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DDevicePickerFragment.java26 import android.view.Menu;
41 private static final int MENU_ID_REFRESH = Menu.FIRST;
70 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu()
71 menu.add(Menu.NONE, MENU_ID_REFRESH, 0, R.string.bluetooth_search_for_devices) in onCreateOptionsMenu()
DBluetoothSettings.java38 import android.view.Menu;
73 private static final int MENU_ID_SCAN = Menu.FIRST;
74 private static final int MENU_ID_RENAME_DEVICE = Menu.FIRST + 1;
75 private static final int MENU_ID_SHOW_RECEIVED = Menu.FIRST + 2;
226 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu()
235 menu.add(Menu.NONE, MENU_ID_SCAN, 0, textId) in onCreateOptionsMenu()
238 menu.add(Menu.NONE, MENU_ID_RENAME_DEVICE, 0, R.string.bluetooth_rename_device) in onCreateOptionsMenu()
241 menu.add(Menu.NONE, MENU_ID_SHOW_RECEIVED, 0, R.string.bluetooth_show_received_files) in onCreateOptionsMenu()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DHelp.java21 import android.view.Menu;
38 public void addHelpMenuItem(Menu menu, String activityName) { in addHelpMenuItem()
42 public void addHelpMenuItem(Menu menu, String activityName, boolean showAsAction) { in addHelpMenuItem()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionaryAddWordFragment.java27 import android.view.Menu;
52 private static final int OPTIONS_MENU_ADD = Menu.FIRST;
53 private static final int OPTIONS_MENU_DELETE = Menu.FIRST + 1;
92 public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) { in onCreateOptionsMenu()
/packages/apps/Messaging/src/com/android/messaging/ui/
DBugleActionBarActivity.java24 import android.view.Menu;
55 private Menu mActionBarMenu;
177 public boolean onCreateOptionsMenu(final Menu menu) { in onCreateOptionsMenu()
187 public boolean onPrepareOptionsMenu(final Menu menu) { in onPrepareOptionsMenu()
317 public Menu getMenu() { in getMenu()
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleListEditor.java27 import android.view.Menu;
52 private static final int MENU_ID_REMOVE = Menu.FIRST + 1;
55 private Menu mMenu;
212 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu()
214 menu.add(Menu.NONE, MENU_ID_REMOVE, 0, R.string.locale_remove_menu); in onCreateOptionsMenu()

123456789