/packages/apps/TV/tests/unit/src/com/android/tv/menu/ |
D | MenuTest.java | 21 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/ |
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 …]
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiSettings.java | 49 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/ |
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/apps/TV/src/com/android/tv/menu/ |
D | MenuRow.java | 31 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()
|
D | MenuRowFactory.java | 50 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()
|
D | Menu.java | 51 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()
|
D | PlayControlsRowView.java | 33 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/ |
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/TV/src/com/android/tv/ui/ |
D | TvOverlayManager.java | 63 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/ |
D | MusicPicker.java | 35 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/ |
D | MenuItemController.java | 18 import android.view.Menu; 44 void setInitialState(Menu menu); in setInitialState() 51 void showMenuItem(Menu menu); in showMenuItem()
|
D | ActionBarMenuManager.java | 20 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/ |
D | RunningServices.java | 21 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/ |
D | StkApp.java | 31 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/ |
D | PermissionAppsFragment.java | 35 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/ |
D | PermissionAppsFragment.java | 33 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/ |
D | ZonePicker.java | 26 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/ |
D | DevicePickerFragment.java | 26 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()
|
D | BluetoothSettings.java | 38 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/ |
D | Help.java | 21 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/ |
D | UserDictionaryAddWordFragment.java | 27 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/ |
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()
|