/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/deviceinfo/ |
D | PrivateVolumeOptionMenuControllerTest.java | 50 private Menu mMenu; field in PrivateVolumeOptionMenuControllerTest 69 when(mMenu.findItem(anyInt())).thenReturn(mMigrateMenuItem); in setUp() 78 mController.onCreateOptionsMenu(mMenu, mMenuInflater); in testMigrateDataMenuItemIsAdded() 80 verify(mMenu).add(Menu.NONE, 100, Menu.NONE, R.string.storage_menu_migrate); in testMigrateDataMenuItemIsAdded() 88 mController.onCreateOptionsMenu(mMenu, mMenuInflater); in testMigrateDataIsNotVisibleNormally() 89 mController.onPrepareOptionsMenu(mMenu); in testMigrateDataIsNotVisibleNormally() 98 mController.onCreateOptionsMenu(mMenu, mMenuInflater); in testMigrateDataIsVisibleWhenExternalVolumeIsPrimary() 99 mController.onPrepareOptionsMenu(mMenu); in testMigrateDataIsVisibleWhenExternalVolumeIsPrimary() 109 mController.onCreateOptionsMenu(mMenu, mMenuInflater); in testMigrateDataIsNotVisibleWhenExternalVolumeIsNotMounted() 110 mController.onPrepareOptionsMenu(mMenu); in testMigrateDataIsNotVisibleWhenExternalVolumeIsNotMounted() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/actionbar/ |
D | SearchMenuControllerTest.java | 50 private Menu mMenu; field in SearchMenuControllerTest 73 when(mMenu.add(Menu.NONE, Menu.NONE, 0 /* order */, R.string.search_menu)) in setUp() 80 mPreferenceHost.getSettingsLifecycle().onCreateOptionsMenu(mMenu, null /* inflater */); in init_prefFragment_shouldAddMenu() 82 verify(mMenu).add(Menu.NONE, Menu.NONE, 0 /* order */, R.string.search_menu); in init_prefFragment_shouldAddMenu() 88 mHost.getSettingsLifecycle().onCreateOptionsMenu(mMenu, null /* inflater */); in init_observableFragment_shouldAddMenu() 90 verify(mMenu).add(Menu.NONE, Menu.NONE, 0 /* order */, R.string.search_menu); in init_observableFragment_shouldAddMenu() 100 mHost.getSettingsLifecycle().onCreateOptionsMenu(mMenu, null /* inflater */); in init_doNotNeedSearchIcon_shouldNotAddMenu() 101 verifyZeroInteractions(mMenu); in init_doNotNeedSearchIcon_shouldNotAddMenu() 108 mHost.getSettingsLifecycle().onCreateOptionsMenu(mMenu, null /* inflater */); in init_deviceNotProvisioned_shouldNotAddMenu() 110 verifyZeroInteractions(mMenu); in init_deviceNotProvisioned_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/robotests/src/com/android/settings/applications/manageapplications/ |
D | ManageApplicationsTest.java | 82 private Menu mMenu; field in ManageApplicationsTest 121 ReflectionHelpers.setField(mFragment, "mOptionsMenu", mMenu); in updateMenu_mainListType_showAppReset() 124 assertThat(mMenu.findItem(R.id.reset_app_preferences).isVisible()).isTrue(); in updateMenu_mainListType_showAppReset() 131 ReflectionHelpers.setField(mFragment, "mOptionsMenu", mMenu); in updateMenu_batteryListType_hideAppReset() 134 assertThat(mMenu.findItem(R.id.reset_app_preferences).isVisible()).isFalse(); in updateMenu_batteryListType_hideAppReset() 141 ReflectionHelpers.setField(mFragment, "mOptionsMenu", mMenu); in updateMenu_hideNotificationOptions() 144 assertThat(mMenu.findItem(R.id.sort_order_recent_notification).isVisible()).isFalse(); in updateMenu_hideNotificationOptions() 145 assertThat(mMenu.findItem(R.id.sort_order_frequent_notification).isVisible()).isFalse(); in updateMenu_hideNotificationOptions() 170 when(mMenu.findItem(R.id.search_app_list_menu)).thenReturn(searchMenu); in onCreateOptionsMenu_shouldSetSearchQueryListener() 171 when(mMenu.add(anyInt() /* groupId */, anyInt() /* itemId */, anyInt() /* order */, in onCreateOptionsMenu_shouldSetSearchQueryListener() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ActionModeController.java | 59 private @Nullable Menu mMenu; field in ActionModeController 122 mMenu = null; in onDestroyActionMode() 156 mMenu = menu; in onPrepareActionMode() 162 assert(mMenu != null); in updateActionMenu() 163 mMenuManager.updateActionMenu(mMenu, mScope.selectionDetails); in updateActionMenu() 164 Menus.disableHiddenItems(mMenu); in updateActionMenu() 207 assert(mMenu == null); in reset()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDeviceDetailsFragmentTest.java | 62 private RoboMenu mMenu; field in BluetoothDeviceDetailsFragmentTest 95 mMenu = new RoboMenu(mContext); in setUp() 108 mFragment.onCreateOptionsMenu(mMenu, mInflater); in getTitle_displayEditTitle() 110 final MenuItem item = mMenu.getItem(0); in getTitle_displayEditTitle() 117 mFragment.onCreateOptionsMenu(mMenu, mInflater); in editMenu_clicked_showDialog() 118 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/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/apps/DocumentsUI/src/com/android/documentsui/queries/ |
D | SearchViewManager.java | 89 private Menu mMenu; field in SearchViewManager 218 mMenu = menu; in install() 219 mMenuItem = mMenu.findItem(R.id.option_menu_search); in install() 248 mMenu.setGroupVisible(R.id.group_hide_when_searching, false); in updateMenu() 377 mMenu.setGroupVisible(R.id.group_hide_when_searching, false); in onSearchExpanded() 509 mMenu.setGroupVisible(R.id.group_hide_when_searching, true);
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
D | KitchenSinkActivity.java | 80 private RecyclerView mMenu; field in KitchenSinkActivity 251 mMenu = findViewById(R.id.menu); in onCreate() 252 mMenu.setAdapter(new MenuAdapter(this)); in onCreate() 253 mMenu.setLayoutManager(new GridLayoutManager(this, 3)); in onCreate() 277 boolean menuVisible = mMenu.getVisibility() == View.VISIBLE; in toggleMenuVisibility() 278 mMenu.setVisibility(menuVisible ? View.GONE : View.VISIBLE); in toggleMenuVisibility()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/localepicker/ |
D | LocaleListEditor.java | 59 private Menu mMenu; field in LocaleListEditor 257 mMenu = menu; in onCreateOptionsMenu() 295 if (mMenu == null) { in updateVisibilityOfRemoveMenu() 299 final MenuItem menuItemRemove = mMenu.findItem(MENU_ID_REMOVE); in updateVisibilityOfRemoveMenu()
|
/packages/apps/Settings/src/com/android/settings/localepicker/ |
D | LocaleListEditor.java | 59 private Menu mMenu; field in LocaleListEditor 257 mMenu = menu; in onCreateOptionsMenu() 295 if (mMenu == null) { in updateVisibilityOfRemoveMenu() 299 final MenuItem menuItemRemove = mMenu.findItem(MENU_ID_REMOVE); in updateVisibilityOfRemoveMenu()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | PowerUsageAdvancedTest.java | 55 private Menu mMenu; field in PowerUsageAdvancedTest 105 mFragment.onCreateOptionsMenu(mMenu, mMenuInflater); in testOptionsMenu_toggleAppsEnabled() 107 verify(mMenu).add(Menu.NONE, PowerUsageAdvanced.MENU_TOGGLE_APPS, Menu.NONE, in testOptionsMenu_toggleAppsEnabled()
|
D | PowerUsageSummaryTest.java | 120 private Menu mMenu; field in PowerUsageSummaryTest 299 mFragment.onCreateOptionsMenu(mMenu, mMenuInflater); in optionsMenu_advancedPageEnabled() 301 verify(mMenu).add(Menu.NONE, MENU_ADVANCED_BATTERY, Menu.NONE, in optionsMenu_advancedPageEnabled()
|
/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/EmergencyInfo/src/com/android/emergency/view/ |
D | ViewInfoActivity.java | 71 private Menu mMenu; field in ViewInfoActivity 151 mMenu = menu; in onCreateOptionsMenu() 178 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()
|