/packages/apps/TV/tests/unit/src/com/android/tv/menu/ |
D | MenuTest.java | 23 import com.android.tv.menu.Menu.OnMenuVisibilityChangeListener; 38 private Menu mMenu; 48 ArgumentMatchers.any(Menu.class), ArgumentMatchers.any(Class.class))) in setUp() 51 mMenu = new Menu(getTargetContext(), mMenuView, factory, mVisibilityChangeListener); in setUp() 58 mMenu.show(Menu.REASON_NONE); in testScheduleHide() 66 mMenu.show(Menu.REASON_NONE); in testScheduleHide() 81 mMenu.show(Menu.REASON_NONE); in testShowHide_ReasonNone() 91 Matchers.eq(Menu.REASON_NONE), in testShowHide_ReasonNone() 105 mMenu.show(Menu.REASON_GUIDE); in testShowHide_ReasonGuide() 115 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/location/ |
D | RecentLocationRequestSeeAllFragment.java | 19 import android.view.Menu; 35 private static final int MENU_SHOW_SYSTEM = Menu.FIRST + 1; 36 private static final int MENU_HIDE_SYSTEM = Menu.FIRST + 2; 92 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() 94 mShowSystemMenu = menu.add(Menu.NONE, MENU_SHOW_SYSTEM, Menu.NONE, in onCreateOptionsMenu() 96 mHideSystemMenu = menu.add(Menu.NONE, MENU_HIDE_SYSTEM, Menu.NONE, in onCreateOptionsMenu()
|
D | RecentLocationAccessSeeAllFragment.java | 20 import android.view.Menu; 38 private static final int MENU_SHOW_SYSTEM = Menu.FIRST + 1; 39 private static final int MENU_HIDE_SYSTEM = Menu.FIRST + 2; 113 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() 115 mShowSystemMenu = menu.add(Menu.NONE, MENU_SHOW_SYSTEM, Menu.NONE, in onCreateOptionsMenu() 117 mHideSystemMenu = menu.add(Menu.NONE, MENU_HIDE_SYSTEM, Menu.NONE, in onCreateOptionsMenu()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | InstantAppButtonsPreferenceControllerTest.java | 41 import android.view.Menu; 137 final Menu menu = mock(Menu.class); in onCreateOptionsMenu_noLaunchUri_shouldNotAddInstallInstantAppMenu() 149 final Menu menu = mock(Menu.class); in onCreateOptionsMenu_hasLaunchUri_shouldAddForceStop() 161 final Menu menu = mock(Menu.class); in onPrepareOptionsMenu_noAppStoreLink_shoulDisableInstallInstantAppMenu() 174 final Menu menu = mock(Menu.class); in onPrepareOptionsMenu_hasAppStoreLink_shoulNotDisableInstallInstantAppMenu() 185 final Menu menu = mock(Menu.class); in onPrepareOptionsMenu_installMenuNotFound_shoulNotCrash()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | MenuManager.java | 20 import android.view.Menu; 48 protected Menu mOptionMenu; 62 public void updateActionMenu(Menu menu, SelectionDetails selection) { in updateActionMenu() 82 public void updateOptionMenu(Menu menu) { in updateOptionMenu() 105 public void updateSubMenu(Menu menu) { in updateSubMenu() 131 Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) { in inflateContextMenuForContainer() 136 Menu menu, MenuInflater inflater, SelectionDetails selectionDetails) { in inflateContextMenuForDocs() 151 public void updateContextMenuForFiles(Menu menu, SelectionDetails selectionDetails) { in updateContextMenuForFiles() 180 public void updateContextMenuForDirs(Menu menu, SelectionDetails selectionDetails) { in updateContextMenuForDirs() 200 public void updateContextMenu(Menu menu, SelectionDetails selectionDetails) { in updateContextMenu() [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/Settings/src/com/android/settings/datausage/ |
D | UnrestrictedDataAccess.java | 20 import android.view.Menu; 37 private static final int MENU_SHOW_SYSTEM = Menu.FIRST + 42; 52 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() 53 menu.add(Menu.NONE, MENU_SHOW_SYSTEM, Menu.NONE, in onCreateOptionsMenu()
|
/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/ |
D | EditTextVariations.java | 35 import android.view.Menu; 158 public boolean onCreateOptionsMenu(final Menu menu) { in onCreateOptionsMenu() 161 menu.add(Menu.NONE, MENU_NAVIGATE_ON, 0, getString(R.string.menu_navigate_on)); in onCreateOptionsMenu() 162 menu.add(Menu.NONE, MENU_NAVIGATE_OFF, 1, getString(R.string.menu_navigate_off)); in onCreateOptionsMenu() 163 menu.add(Menu.NONE, MENU_SOFTINPUT_VISIBLE, 2, getString(R.string.menu_softinput_visible)); in onCreateOptionsMenu() 164 menu.add(Menu.NONE, MENU_SOFTINPUT_HIDDEN, 3, getString(R.string.menu_softinput_hidden)); in onCreateOptionsMenu() 165 menu.add(Menu.NONE, MENU_CHANGE_THEME, 4, R.string.menu_change_theme); in onCreateOptionsMenu() 167 menu.add(Menu.NONE, MENU_DIRECT_REPLY, 5, R.string.menu_direct_reply); in onCreateOptionsMenu() 171 menu.add(Menu.NONE, MENU_VERSION, 6, in onCreateOptionsMenu()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | MenuRow.java | 30 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() 54 public Menu getMenu() { in getMenu()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/ |
D | BridgedAppsSettings.java | 27 import android.view.Menu; 42 private static final int MENU_SHOW_SYSTEM = Menu.FIRST + 42; 60 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() 61 menu.add(Menu.NONE, MENU_SHOW_SYSTEM, Menu.NONE, in onCreateOptionsMenu()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TvOverlayManager.java | 62 import com.android.tv.menu.Menu; 63 import com.android.tv.menu.Menu.MenuShowReason; 208 private final Menu mMenu; 283 new Menu( in TvOverlayManager() 289 new Menu.OnMenuVisibilityChangeListener() { in TvOverlayManager() 388 public Menu getMenu() { in getMenu() 440 showMenu(Menu.REASON_PLAY_CONTROLS_PAUSE); in showMenuWithTimeShiftPauseIfNeeded() 1033 showMenu(Menu.REASON_PLAY_CONTROLS_PLAY); in onKeyUp() 1038 showMenu(Menu.REASON_PLAY_CONTROLS_PAUSE); in onKeyUp() 1042 showMenu(Menu.REASON_PLAY_CONTROLS_PLAY_PAUSE); in onKeyUp() [all …]
|
/packages/apps/Settings/src/com/android/settings/print/ |
D | PrintJobSettingsFragment.java | 23 import android.view.Menu; 69 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() 78 MenuItem cancel = menu.add(0, MENU_ITEM_ID_CANCEL, Menu.NONE, in onCreateOptionsMenu() 84 MenuItem restart = menu.add(0, MENU_ITEM_ID_RESTART, Menu.NONE, in onCreateOptionsMenu()
|
/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/ |
D | SearchMenuItemController.kt | 22 import android.view.Menu 23 import android.view.Menu.FIRST 24 import android.view.Menu.NONE 61 override fun onCreateOptionsItem(menu: Menu) { in onCreateOptionsItem()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningServices.java | 21 import android.view.Menu; 37 private Menu mOptionsMenu; 62 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() 105 public void onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/ |
D | PermissionsFrameFragment.java | 22 import android.view.Menu; 42 static final int MENU_ALL_PERMS = Menu.FIRST + 1; 43 public static final int MENU_SHOW_SYSTEM = Menu.FIRST + 2; 44 public static final int MENU_HIDE_SYSTEM = Menu.FIRST + 3; 66 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu()
|
/packages/apps/Settings/src/com/android/settings/search/actionbar/ |
D | SearchMenuController.java | 25 import android.view.Menu; 45 public static final int MENU_SEARCH = Menu.FIRST + 10; 66 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() 88 final MenuItem searchItem = menu.add(Menu.NONE, MENU_SEARCH, 0 /* order */, in onCreateOptionsMenu()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/savedqueries/ |
D | SavedQueryController.java | 22 import android.view.Menu; 101 public void buildMenuItem(Menu menu) { in buildMenuItem() 103 menu.add(Menu.NONE, MENU_SEARCH_HISTORY, Menu.NONE, R.string.search_clear_history); in buildMenuItem()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | NetworkProviderSettings.java | 43 import android.view.Menu; 108 static final int MENU_ID_CONNECT = Menu.FIRST + 1; 110 static final int MENU_ID_DISCONNECT = Menu.FIRST + 2; 112 static final int MENU_ID_FORGET = Menu.FIRST + 3; 113 static final int MENU_ID_MODIFY = Menu.FIRST + 4; 114 static final int MENU_FIX_CONNECTIVITY = Menu.FIRST + 5; 115 static final int MENU_ID_SHARE = Menu.FIRST + 6; 537 menu.add(Menu.NONE, MENU_ID_CONNECT, 0 /* order */, R.string.wifi_connect); in onCreateContextMenu() 541 menu.add(Menu.NONE, MENU_ID_SHARE, 0 /* order */, R.string.share); in onCreateContextMenu() 542 menu.add(Menu.NONE, MENU_ID_DISCONNECT, 1 /* order */, in onCreateContextMenu() [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestMenuInflater.java | 19 import android.view.Menu; 28 public Menu lastInflatedMenu; 35 public void inflate(@MenuRes int menuId, Menu menu) { in inflate()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/actionbar/ |
D | SearchMenuControllerTest.java | 31 import android.view.Menu; 56 private Menu mMenu; 74 when(mMenu.add(Menu.NONE, MENU_SEARCH, 0 /* order */, R.string.search_menu)) in setUp() 83 verify(mMenu).add(Menu.NONE, MENU_SEARCH, 0 /* order */, R.string.search_menu); in init_observableFragment_shouldAddMenu()
|
/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/ |
D | PermissionUsageV2Fragment.java | 38 import android.view.Menu; 221 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() 224 mShowSystemMenu = menu.add(Menu.NONE, MENU_SHOW_SYSTEM, Menu.NONE, in onCreateOptionsMenu() 226 mHideSystemMenu = menu.add(Menu.NONE, MENU_HIDE_SYSTEM, Menu.NONE, in onCreateOptionsMenu() 232 MenuItem refresh = menu.add(Menu.NONE, MENU_REFRESH, Menu.NONE, in onCreateOptionsMenu()
|
/packages/apps/Stk/src/com/android/stk/ |
D | StkInputActivity.java | 34 import android.view.Menu; 126 Menu menu = mPopupMenu.getMenu(); in onClick() 308 public boolean onCreateOptionsMenu(android.view.Menu menu) { in onCreateOptionsMenu() 314 private void createOptionsMenuInternal(Menu menu) { in createOptionsMenuInternal() 315 menu.add(Menu.NONE, StkApp.MENU_ID_END_SESSION, 1, R.string.menu_end_session); in createOptionsMenuInternal() 320 public boolean onPrepareOptionsMenu(android.view.Menu menu) { in onPrepareOptionsMenu() 326 private void prepareOptionsMenuInternal(Menu menu) { in prepareOptionsMenuInternal()
|
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;
|