/packages/apps/TV/tests/unit/src/com/android/tv/menu/ |
D | MenuTest.java | 38 private Menu mMenu; field in MenuTest 51 mMenu = new Menu(getTargetContext(), mMenuView, factory, mVisibilityChangeListener); in setUp() 52 mMenu.disableAnimationForTest(); in setUp() 58 mMenu.show(Menu.REASON_NONE); in testScheduleHide() 60 assertWithMessage("Hide is not scheduled").that(mMenu.isHideScheduled()).isTrue(); in testScheduleHide() 61 mMenu.hide(false); in testScheduleHide() 63 assertWithMessage("Hide is scheduled").that(mMenu.isHideScheduled()).isFalse(); in testScheduleHide() 65 mMenu.setKeepVisible(true); in testScheduleHide() 66 mMenu.show(Menu.REASON_NONE); in testScheduleHide() 68 assertWithMessage("Hide is scheduled").that(mMenu.isHideScheduled()).isFalse(); in testScheduleHide() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/actionbar/ |
D | SearchMenuControllerTest.java | 56 private Menu mMenu; field in SearchMenuControllerTest 74 when(mMenu.add(Menu.NONE, MENU_SEARCH, 0 /* order */, R.string.search_menu)) in setUp() 81 mHost.getSettingsLifecycle().onCreateOptionsMenu(mMenu, null /* inflater */); in init_observableFragment_shouldAddMenu() 83 verify(mMenu).add(Menu.NONE, MENU_SEARCH, 0 /* order */, R.string.search_menu); in init_observableFragment_shouldAddMenu() 93 mHost.getSettingsLifecycle().onCreateOptionsMenu(mMenu, null /* inflater */); in init_doNotNeedSearchIcon_shouldNotAddMenu() 94 verifyZeroInteractions(mMenu); in init_doNotNeedSearchIcon_shouldNotAddMenu() 101 mHost.getSettingsLifecycle().onCreateOptionsMenu(mMenu, null /* inflater */); in init_deviceNotProvisioned_shouldNotAddMenu() 103 verifyZeroInteractions(mMenu); in init_deviceNotProvisioned_shouldNotAddMenu() 113 mHost.getSettingsLifecycle().onCreateOptionsMenu(mMenu, null /* inflater */); in init_startFromSetupWizard_shouldNotAddMenu() 115 verifyZeroInteractions(mMenu); in init_startFromSetupWizard_shouldNotAddMenu()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | MenuUpdater.java | 35 private final Menu mMenu; field in MenuUpdater 48 mMenu.update(ChannelsRow.ID); 56 mMenu.update(ChannelsRow.ID); 63 mMenu.update(TvOptionsRow.ID); 68 mMenu = menu; in MenuUpdater() 76 mMenu.update(PlayControlsRow.ID); in MenuUpdater() 105 mMenu.update(TvOptionsRow.ID); in onStreamInfoChanged()
|
D | MenuRow.java | 30 private final Menu mMenu; field in MenuRow 44 mMenu = menu; in MenuRow() 55 return mMenu; in getMenu()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
D | SwapButton.java | 38 private Menu mMenu; field in SwapButton 87 if (mMenu == null) { in onFling() 93 if (mCurrentMenuIndex == mMenu.size()) { in onFling() 97 mListener.swapRight(mMenu.getItem(mCurrentMenuIndex)); in onFling() 103 mCurrentMenuIndex = mMenu.size() - 1; in onFling() 106 mListener.swapLeft(mMenu.getItem(mCurrentMenuIndex)); in onFling()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/ |
D | VolumeOptionMenuControllerTest.java | 56 private Menu mMenu; field in VolumeOptionMenuControllerTest 90 mController.onPrepareOptionsMenu(mMenu); in onPrepareOptionsMenu_unSupportedDiskInfo_formatIsVisible() 109 mController.onPrepareOptionsMenu(mMenu); in onPrepareOptionsMenu_missingVolumeRecord_forgetIsVisible() 127 mController.onPrepareOptionsMenu(mMenu); in onPrepareOptionsMenu_unmountedStorage_mountIsVisible() 142 mController.onPrepareOptionsMenu(mMenu); in onPrepareOptionsMenu_privateNotDefaultInternal_someMenusAreVisible() 159 mController.onPrepareOptionsMenu(mMenu); in onPrepareOptionsMenu_privateDefaultInternal_mostMenusAreNotVisible() 180 mController.onPrepareOptionsMenu(mMenu); in onPrepareOptionsMenu_publicStorage_someMenusArcVisible() 196 mController.onPrepareOptionsMenu(mMenu); in onPrepareOptionsMenu_noExternalStorage_migrateNotVisible() 208 mController.onPrepareOptionsMenu(mMenu); in onPrepareOptionsMenu_externalPrimaryStorageAvailable_migrateIsVisible() 219 mController.onPrepareOptionsMenu(mMenu); in onPrepareOptionsMenu_externalUnmounted_migrateIsVisible()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ActionModeController.java | 57 private @Nullable Menu mMenu; field in ActionModeController 126 mMenu = null; in onDestroyActionMode() 165 mMenu = menu; in onPrepareActionMode() 171 assert(mMenu != null); in updateActionMenu() 172 mMenuManager.updateActionMenu(mMenu, mScope.selectionDetails); in updateActionMenu() 173 Menus.disableHiddenItems(mMenu); in updateActionMenu() 209 assert(mMenu == null); in reset()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/ |
D | WifiNetworkDetailsFragment2Test.java | 66 Menu mMenu; field in WifiNetworkDetailsFragment2Test 98 doReturn(menuItem).when(mMenu).add(anyInt(), eq(Menu.FIRST), anyInt(), anyInt()); in onCreateOptionsMenu_shouldSetCorrectIcon() 100 mFragment.onCreateOptionsMenu(mMenu, mock(MenuInflater.class)); in onCreateOptionsMenu_shouldSetCorrectIcon() 109 mFragment.onCreateOptionsMenu(mMenu, mock(MenuInflater.class)); in onCreateOptionsMenu_isNotSavedNetwork_shouldNotAddEditMenu() 111 verify(mMenu, never()).add(anyInt(), anyInt(), anyInt(), eq(R.string.wifi_modify)); in onCreateOptionsMenu_isNotSavedNetwork_shouldNotAddEditMenu() 118 mFragment.onCreateOptionsMenu(mMenu, mock(MenuInflater.class)); in onCreateOptionsMenu_uiRestricted_shouldNotAddEditMenu() 120 verify(mMenu, never()).add(anyInt(), anyInt(), anyInt(), eq(R.string.wifi_modify)); in onCreateOptionsMenu_uiRestricted_shouldNotAddEditMenu()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDeviceDetailsFragmentTest.java | 64 private RoboMenu mMenu; field in BluetoothDeviceDetailsFragmentTest 97 mMenu = new RoboMenu(mContext); in setUp() 110 mFragment.onCreateOptionsMenu(mMenu, mInflater); in getTitle_displayEditTitle() 112 final MenuItem item = mMenu.getItem(0); in getTitle_displayEditTitle() 119 mFragment.onCreateOptionsMenu(mMenu, mInflater); in editMenu_clicked_showDialog() 120 final MenuItem item = mMenu.getItem(0); in editMenu_clicked_showDialog()
|
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/ |
D | MDTest.java | 49 private RecyclerView mMenu; field in MDTest 125 mMenu = findViewById(R.id.menu); in onCreate() 126 mMenu.setAdapter(new MenuAdapter(this)); in onCreate() 127 mMenu.setLayoutManager(new GridLayoutManager(this, 3)); in onCreate() 145 boolean menuVisible = mMenu.getVisibility() == View.VISIBLE; in toggleMenuVisibility() 146 mMenu.setVisibility(menuVisible ? View.GONE : View.VISIBLE); in toggleMenuVisibility()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/ |
D | ManageApplicationsTest.java | 86 private Menu mMenu; field in ManageApplicationsTest 129 ReflectionHelpers.setField(mFragment, "mOptionsMenu", mMenu); in updateMenu_mainListType_showAppReset() 132 assertThat(mMenu.findItem(R.id.reset_app_preferences).isVisible()).isTrue(); in updateMenu_mainListType_showAppReset() 139 ReflectionHelpers.setField(mFragment, "mOptionsMenu", mMenu); in updateMenu_batteryListType_hideAppReset() 142 assertThat(mMenu.findItem(R.id.reset_app_preferences).isVisible()).isFalse(); in updateMenu_batteryListType_hideAppReset() 149 ReflectionHelpers.setField(mFragment, "mOptionsMenu", mMenu); in updateMenu_hideNotificationOptions() 152 assertThat(mMenu.findItem(R.id.sort_order_recent_notification).isVisible()).isFalse(); in updateMenu_hideNotificationOptions() 153 assertThat(mMenu.findItem(R.id.sort_order_frequent_notification).isVisible()).isFalse(); in updateMenu_hideNotificationOptions() 162 when(mMenu.findItem(R.id.search_app_list_menu)).thenReturn(searchMenu); in onCreateOptionsMenu_shouldSetSearchQueryListener() 163 when(mMenu.add(anyInt() /* groupId */, anyInt() /* itemId */, anyInt() /* order */, in onCreateOptionsMenu_shouldSetSearchQueryListener() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/ |
D | SearchViewManager.java | 90 private @Nullable Menu mMenu; field in SearchViewManager 221 mMenu = menu; in install() 222 mMenuItem = mMenu.findItem(R.id.option_menu_search); in install() 258 if (mMenu != null && isExpanded() && mFullBar) { in updateMenu() 259 mMenu.setGroupVisible(R.id.group_hide_when_searching, false); in updateMenu() 398 if (mFullBar && mMenu != null) { in onSearchExpanded() 399 mMenu.setGroupVisible(R.id.group_hide_when_searching, false); in onSearchExpanded() 549 mMenu.setGroupVisible(R.id.group_hide_when_searching, true);
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TvOverlayManager.java | 208 private final Menu mMenu; field in TvOverlayManager 282 mMenu = in TvOverlayManager() 299 mMenu.setChannelTuner(mChannelTuner); in TvOverlayManager() 380 mMenu.release(); in release() 389 return mMenu; in getMenu() 433 mMenu.show(reason); in showMenu() 749 mMenu.hide(withAnimation); in hideOverlays() 966 } else if (mMenu.isActive()) { in onUserInteraction() 967 mMenu.scheduleHide(); in onUserInteraction() 985 if (mMenu.isActive() in onKeyDown() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
D | KitchenSinkActivity.java | 93 private RecyclerView mMenu; field in KitchenSinkActivity 304 mMenu = findViewById(R.id.menu); in onCreate() 305 mMenu.setAdapter(new MenuAdapter(this)); in onCreate() 306 mMenu.setLayoutManager(new GridLayoutManager(this, 4)); in onCreate() 330 boolean menuVisible = mMenu.getVisibility() == View.VISIBLE; in toggleMenuVisibility() 331 mMenu.setVisibility(menuVisible ? View.GONE : View.VISIBLE); in toggleMenuVisibility()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | ActionModeHandler.java | 71 private Menu mMenu; field in ActionModeHandler 240 mMenu = menu; in onCreateActionMode() 418 MenuExecutor.updateMenuOperation(mMenu, 0); in updateSupportedOperation() 456 MenuExecutor.updateMenuOperation(mMenu, operation); in updateSupportedOperation() 457 MenuExecutor.updateMenuForPanorama(mMenu, in updateSupportedOperation()
|
/packages/apps/Settings/src/com/android/settings/localepicker/ |
D | LocaleListEditor.java | 69 private Menu mMenu; field in LocaleListEditor 276 mMenu = menu; in onCreateOptionsMenu() 317 if (mMenu == null) { in updateVisibilityOfRemoveMenu() 321 final MenuItem menuItemRemove = mMenu.findItem(MENU_ID_REMOVE); in updateVisibilityOfRemoveMenu()
|
/packages/apps/EmergencyInfo/src/com/android/emergency/view/ |
D | ViewInfoActivity.java | 77 private Menu mMenu; field in ViewInfoActivity 163 mMenu = menu; in onCreateOptionsMenu() 190 return mMenu; in getMenu()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
D | FilterShowActivity.java | 192 private Menu mMenu; field in FilterShowActivity 998 mMenu = menu; in onCreateOptionsMenu() 1004 if (mMenu == null || mPrimaryImage == null) { in setupMenu() 1007 MenuItem undoItem = mMenu.findItem(R.id.undoButton); in setupMenu() 1008 MenuItem redoItem = mMenu.findItem(R.id.redoButton); in setupMenu() 1009 MenuItem resetItem = mMenu.findItem(R.id.resetHistoryButton); in setupMenu() 1010 MenuItem printItem = mMenu.findItem(R.id.printButton); in setupMenu()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | EventInfoFragment.java | 280 private Menu mMenu = null; field in EventInfoFragment 552 mMenu = menu; in onCreateOptionsMenu() 798 mWindowStyle == EventInfoFragment.FULL_WINDOW_STYLE) && mMenu != null) { in updateCalendar()
|