/packages/apps/TV/tests/unit/src/com/android/tv/menu/ |
D | MenuTest.java | 37 private Menu mMenu; field in MenuTest 48 mMenu = new Menu(getTargetContext(), mMenuView, factory, mVisibilityChangeListener); in setUp() 49 mMenu.disableAnimationForTest(); in setUp() 55 mMenu.show(Menu.REASON_NONE); in testScheduleHide() 57 assertWithMessage("Hide is not scheduled").that(mMenu.isHideScheduled()).isTrue(); in testScheduleHide() 58 mMenu.hide(false); in testScheduleHide() 60 assertWithMessage("Hide is scheduled").that(mMenu.isHideScheduled()).isFalse(); in testScheduleHide() 62 mMenu.setKeepVisible(true); in testScheduleHide() 63 mMenu.show(Menu.REASON_NONE); in testScheduleHide() 65 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 42 mMenu = menu; in MenuRow() 53 return mMenu; in getMenu()
|
/packages/apps/UnifiedEmail/src/com/android/mail/photo/ |
D | MailPhotoViewController.java | 84 private Menu mMenu; field in MailPhotoViewController 115 mMenu = menu; in onCreateOptionsMenu() 117 mSaveItem = mMenu.findItem(R.id.menu_save); in onCreateOptionsMenu() 118 mSaveAllItem = mMenu.findItem(R.id.menu_save_all); in onCreateOptionsMenu() 119 mShareItem = mMenu.findItem(R.id.menu_share); in onCreateOptionsMenu() 120 mShareAllItem = mMenu.findItem(R.id.menu_share_all); in onCreateOptionsMenu() 121 mPrintItem = mMenu.findItem(R.id.menu_print); in onCreateOptionsMenu() 122 mDownloadAgainItem = mMenu.findItem(R.id.menu_download_again); in onCreateOptionsMenu() 123 mExtraOption1Item = mMenu.findItem(R.id.attachment_extra_option1); in onCreateOptionsMenu() 185 if (mMenu != null) { in updateActionItems() [all …]
|
/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/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/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 | 48 private RecyclerView mMenu; field in MDTest 123 mMenu = findViewById(R.id.menu); in onCreate() 124 mMenu.setAdapter(new MenuAdapter(this)); in onCreate() 125 mMenu.setLayoutManager(new GridLayoutManager(this, 3)); in onCreate() 135 boolean menuVisible = mMenu.getVisibility() == View.VISIBLE; in toggleMenuVisibility() 136 mMenu.setVisibility(menuVisible ? View.GONE : View.VISIBLE); in toggleMenuVisibility()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TvOverlayManager.java | 200 private final Menu mMenu; field in TvOverlayManager 268 mMenu = in TvOverlayManager() 285 mMenu.setChannelTuner(mChannelTuner); in TvOverlayManager() 366 mMenu.release(); in release() 375 return mMenu; in getMenu() 419 mMenu.show(reason); in showMenu() 735 mMenu.hide(withAnimation); in hideOverlays() 952 } else if (mMenu.isActive()) { in onUserInteraction() 953 mMenu.scheduleHide(); in onUserInteraction() 971 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 | 82 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 302 mFragment.onCreateOptionsMenu(mMenu, mMenuInflater); in optionsMenu_advancedPageEnabled() 304 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 | 194 private Menu mMenu; field in FilterShowActivity 1000 mMenu = menu; in onCreateOptionsMenu() 1006 if (mMenu == null || mMasterImage == null) { in setupMenu() 1009 MenuItem undoItem = mMenu.findItem(R.id.undoButton); in setupMenu() 1010 MenuItem redoItem = mMenu.findItem(R.id.redoButton); in setupMenu() 1011 MenuItem resetItem = mMenu.findItem(R.id.resetHistoryButton); in setupMenu() 1012 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()
|