/packages/apps/Gallery/src/com/android/camera/ |
D | MenuHelper.java | 40 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 …]
|
D | ImageGallery.java | 49 import android.view.Menu; 166 private MenuItem addSlideShowMenu(Menu menu) { in addSlideShowMenu() 167 return menu.add(Menu.NONE, Menu.NONE, MenuHelper.POSITION_SLIDESHOW, in addSlideShowMenu() 476 public boolean onCreateOptionsMenu(Menu menu) { 492 MenuItem item = menu.add(Menu.NONE, Menu.NONE, 508 item = menu.add(Menu.NONE, Menu.NONE, 528 public boolean onPrepareOptionsMenu(Menu menu) {
|
/packages/apps/TV/tests/unit/src/com/android/tv/menu/ |
D | MenuTest.java | 24 import com.android.tv.menu.Menu.OnMenuVisibilityChangeListener; 38 private Menu mMenu; 46 Mockito.when(factory.createMenuRow(Mockito.any(Menu.class), Mockito.any(Class.class))) in setUp() 49 mMenu = new Menu(getTargetContext(), mMenuView, factory, mVisibilityChangeListener); in setUp() 55 mMenu.show(Menu.REASON_NONE); in testScheduleHide() 63 mMenu.show(Menu.REASON_NONE); in testScheduleHide() 78 mMenu.show(Menu.REASON_NONE); in testShowHide_ReasonNone() 86 Mockito.verify(mMenuView).onShow(Matchers.eq(Menu.REASON_NONE), in testShowHide_ReasonNone() 99 mMenu.show(Menu.REASON_GUIDE); in testShowHide_ReasonGuide() 107 Mockito.verify(mMenuView).onShow(Matchers.eq(Menu.REASON_GUIDE), in testShowHide_ReasonGuide() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | MenuManager.java | 21 import android.view.Menu; 54 public void updateActionMenu(Menu menu, SelectionDetails selection) { in updateActionMenu() 72 public void updateOptionMenu(Menu menu) { in updateOptionMenu() 97 public void inflateContextMenuForContainer(Menu menu, MenuInflater inflater) { in inflateContextMenuForContainer() 102 Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) { in inflateContextMenuForDocs() 117 public void updateContextMenuForFiles(Menu menu, SelectionDetails selectionDetails) { in updateContextMenuForFiles() 146 public void updateContextMenuForDirs(Menu menu, SelectionDetails selectionDetails) { in updateContextMenuForDirs() 166 public void updateContextMenu(Menu menu, SelectionDetails selectionDetails) { in updateContextMenu() 187 public void updateContextMenuForContainer(Menu menu) { in updateContextMenuForContainer() 200 public void updateRootContextMenu(Menu menu, RootInfo root, DocumentInfo docInfo) { in updateRootContextMenu()
|
/packages/apps/Music/src/com/android/music/ |
D | MusicPicker.java | 35 import android.view.Menu; 82 static final int TRACK_MENU = Menu.FIRST; 84 static final int ALBUM_MENU = Menu.FIRST + 1; 86 static final int ARTIST_MENU = Menu.FIRST + 2; 493 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() 495 menu.add(Menu.NONE, TRACK_MENU, Menu.NONE, R.string.sort_by_track); in onCreateOptionsMenu() 496 menu.add(Menu.NONE, ALBUM_MENU, Menu.NONE, R.string.sort_by_album); in onCreateOptionsMenu() 497 menu.add(Menu.NONE, ARTIST_MENU, Menu.NONE, R.string.sort_by_artist); in onCreateOptionsMenu()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | PowerUsageSummary.java | 41 import android.view.Menu; 109 private static final int MENU_STATS_TYPE = Menu.FIRST; 111 static final int MENU_HIGH_POWER_APPS = Menu.FIRST + 3; 113 static final int MENU_ADDITIONAL_BATTERY_INFO = Menu.FIRST + 4; 115 static final int MENU_TOGGLE_APPS = Menu.FIRST + 5; 116 private static final int MENU_HELP = Menu.FIRST + 6; 323 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() 325 menu.add(Menu.NONE, MENU_STATS_TYPE, Menu.NONE, R.string.menu_stats_total) in onCreateOptionsMenu() 330 menu.add(Menu.NONE, MENU_HIGH_POWER_APPS, Menu.NONE, R.string.high_power_apps); in onCreateOptionsMenu() 333 menu.add(Menu.NONE, MENU_ADDITIONAL_BATTERY_INFO, in onCreateOptionsMenu() [all …]
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TvOverlayManager.java | 61 import com.android.tv.menu.Menu; 62 import com.android.tv.menu.Menu.MenuShowReason; 213 private final Menu mMenu; 268 mMenu = new Menu(mainActivity, tvView, optionsManager, menuView, in TvOverlayManager() 270 new Menu.OnMenuVisibilityChangeListener() { in TvOverlayManager() 372 public Menu getMenu() { in getMenu() 438 showMenu(Menu.REASON_PLAY_CONTROLS_PAUSE); in showMenuWithTimeShiftPauseIfNeeded() 1025 showMenu(Menu.REASON_PLAY_CONTROLS_PLAY); in onKeyUp() 1030 showMenu(Menu.REASON_PLAY_CONTROLS_PAUSE); in onKeyUp() 1034 showMenu(Menu.REASON_PLAY_CONTROLS_PLAY_PAUSE); in onKeyUp() [all …]
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | Menu.java | 55 public class Menu { class 108 private final WeakHandler<Menu> mHandler = new MenuWeakHandler(this, Looper.getMainLooper()); 119 Menu(Context context, IMenuView menuView, MenuRowFactory menuRowFactory, in Menu() method in Menu 124 public Menu(Context context, TunableTvView tvView, TvOptionsManager optionsManager, in Menu() method in Menu 342 private static class MenuWeakHandler extends WeakHandler<Menu> { 343 public MenuWeakHandler(Menu menu, Looper mainLooper) { in MenuWeakHandler() 348 public void handleMessage(Message msg, @NonNull Menu menu) { in handleMessage()
|
D | MenuRow.java | 32 private final Menu mMenu; 37 public MenuRow(Context context, Menu menu, int titleResId, int heightResId) { in MenuRow() 41 public MenuRow(Context context, Menu menu, String title, int heightResId) { in MenuRow() 58 public Menu getMenu() { in getMenu()
|
D | PlayControlsRowView.java | 45 import com.android.tv.menu.Menu.MenuShowReason; 398 case Menu.REASON_PLAY_CONTROLS_JUMP_TO_PREVIOUS: in initialize() 406 case Menu.REASON_PLAY_CONTROLS_REWIND: in initialize() 414 case Menu.REASON_PLAY_CONTROLS_FAST_FORWARD: in initialize() 422 case Menu.REASON_PLAY_CONTROLS_JUMP_TO_NEXT: in initialize() 430 case Menu.REASON_PLAY_CONTROLS_PLAY_PAUSE: in initialize() 431 case Menu.REASON_PLAY_CONTROLS_PLAY: in initialize() 432 case Menu.REASON_PLAY_CONTROLS_PAUSE: in initialize()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | SettingsFragment.java | 26 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/experimental/LoaderApp/src/com/android/loaderapp/ |
D | HomeXLarge.java | 30 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()
|
D | HomeGroupsXLarge.java | 31 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/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/ |
D | PermissionAppsFragment.java | 34 import android.view.Menu; 57 private static final int MENU_SHOW_SYSTEM = Menu.FIRST; 58 private static final int MENU_HIDE_SYSTEM = Menu.FIRST + 1; 110 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() 112 mShowSystemMenu = menu.add(Menu.NONE, MENU_SHOW_SYSTEM, Menu.NONE, in onCreateOptionsMenu() 114 mHideSystemMenu = menu.add(Menu.NONE, MENU_HIDE_SYSTEM, Menu.NONE, in onCreateOptionsMenu()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/ |
D | PermissionAppsFragment.java | 35 import android.view.Menu; 58 private static final int MENU_SHOW_SYSTEM = Menu.FIRST; 59 private static final int MENU_HIDE_SYSTEM = Menu.FIRST + 1; 126 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() 128 mShowSystemMenu = menu.add(Menu.NONE, MENU_SHOW_SYSTEM, Menu.NONE, in onCreateOptionsMenu() 130 mHideSystemMenu = menu.add(Menu.NONE, MENU_HIDE_SYSTEM, Menu.NONE, in onCreateOptionsMenu()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiSettings.java | 50 import android.view.Menu; 92 /* package */ static final int MENU_ID_WPS_PBC = Menu.FIRST; 93 private static final int MENU_ID_WPS_PIN = Menu.FIRST + 1; 94 private static final int MENU_ID_CONNECT = Menu.FIRST + 6; 95 private static final int MENU_ID_FORGET = Menu.FIRST + 7; 96 private static final int MENU_ID_MODIFY = Menu.FIRST + 8; 97 private static final int MENU_ID_WRITE_NFC = Menu.FIRST + 9; 504 menu.add(Menu.NONE, MENU_ID_CONNECT, 0, R.string.wifi_menu_connect); in onCreateContextMenu() 517 menu.add(Menu.NONE, MENU_ID_FORGET, 0, R.string.wifi_menu_forget); in onCreateContextMenu() 520 menu.add(Menu.NONE, MENU_ID_MODIFY, 0, R.string.wifi_menu_modify); in onCreateContextMenu() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/keyboard/ |
D | CustomActionsPopup.java | 19 import android.view.Menu; 81 Menu menu = popup.getMenu(); in show() 83 menu.add(Menu.NONE, action.getId(), Menu.NONE, action.getLabel()); in show()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | PrivateVolumeOptionMenuController.java | 22 import android.view.Menu; 55 public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) { in onCreateOptionsMenu() 56 menu.add(Menu.NONE, OPTIONS_MENU_MIGRATE_DATA, 0, R.string.storage_menu_migrate); in onCreateOptionsMenu() 60 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu()
|
/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/ |
D | SearchMenuItemController.java | 24 import android.view.Menu; 31 import static android.view.Menu.FIRST; 32 import static android.view.Menu.NONE; 74 public void onCreateOptionsItem(Menu menu) { in onCreateOptionsItem()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningServices.java | 20 import android.view.Menu; 37 private Menu mOptionsMenu; 62 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() 101 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu()
|
/packages/apps/Settings/src/com/android/settings/search/ |
D | SavedQueryController.java | 25 import android.view.Menu; 98 public void buildMenuItem(Menu menu) { in buildMenuItem() 100 menu.add(Menu.NONE, MENU_SEARCH_HISTORY, Menu.NONE, R.string.search_clear_history); in buildMenuItem()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | PowerUsageSummaryTest.java | 46 import android.view.Menu; 119 private Menu mMenu; 236 verify(mMenu).add(Menu.NONE, MENU_ADDITIONAL_BATTERY_INFO, in testOptionsMenu_additionalBatteryInfoEnabled() 237 Menu.NONE, R.string.additional_battery_info); in testOptionsMenu_additionalBatteryInfoEnabled() 252 verify(mMenu, never()).add(Menu.NONE, MENU_ADDITIONAL_BATTERY_INFO, in testOptionsMenu_additionalBatteryInfoDisabled() 253 Menu.NONE, R.string.additional_battery_info); in testOptionsMenu_additionalBatteryInfoDisabled() 289 verify(mMenu).add(Menu.NONE, MENU_TOGGLE_APPS, Menu.NONE, R.string.show_all_apps); in testOptionsMenu_toggleAppsEnabled()
|
/packages/apps/Settings/src/com/android/settings/datetime/ |
D | ZonePicker.java | 26 import android.view.Menu; 56 private static final int MENU_TIMEZONE = Menu.FIRST+1; 57 private static final int MENU_ALPHABETICAL = Menu.FIRST; 179 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() 188 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | BugleActionBarActivity.java | 24 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/ |
D | LocaleListEditor.java | 27 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()
|