Home
last modified time | relevance | path

Searched refs:mMenuRow (Results 1 – 4 of 4) sorted by relevance

/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
H A DNotificationBlockingHelperManagerTest.java72 @Mock private NotificationMenuRow mMenuRow; field in NotificationBlockingHelperManagerTest
86 when(mMenuRow.getLongpressMenuItem(any(Context.class))).thenReturn(mMenuItem); in setUp()
137 assertTrue(mBlockingHelperManager.perhapsShowBlockingHelper(row, mMenuRow)); in testPerhapsShowBlockingHelper_shown()
158 assertFalse(mBlockingHelperManager.perhapsShowBlockingHelper(groupRow, mMenuRow)); in testPerhapsShowBlockingHelper_notShownForMultiChannelGroup()
170 assertTrue(mBlockingHelperManager.perhapsShowBlockingHelper(groupRow, mMenuRow)); in testPerhapsShowBlockingHelper_shownForLargeGroup()
189 assertTrue(mBlockingHelperManager.perhapsShowBlockingHelper(childRow, mMenuRow)); in testPerhapsShowBlockingHelper_shownForOnlyChildNotification()
201 assertFalse(mBlockingHelperManager.perhapsShowBlockingHelper(row, mMenuRow)); in testPerhapsShowBlockingHelper_notShownDueToNeutralUserSentiment()
212 assertFalse(mBlockingHelperManager.perhapsShowBlockingHelper(row, mMenuRow)); in testPerhapsShowBlockingHelper_notShownDueToPositiveUserSentiment()
224 assertFalse(mBlockingHelperManager.perhapsShowBlockingHelper(row, mMenuRow)); in testPerhapsShowBlockingHelper_notShownDueToShadeVisibility()
235 assertFalse(mBlockingHelperManager.perhapsShowBlockingHelper(row, mMenuRow)); in testPerhapsShowBlockingHelper_notShownDueToNonblockability()
[all …]
H A DExpandableNotificationRowDragControllerTest.java58 private NotificationMenuRow mMenuRow = mock(NotificationMenuRow.class); field in ExpandableNotificationRowDragControllerTest
74 when(mMenuRow.getLongpressMenuItem(any(Context.class))).thenReturn(mMenuItem); in setUp()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DExpandableNotificationRow.java888 if (mMenuRow != null && mMenuRow.isMenuVisible()) {
1151 boolean existed = mMenuRow != null && mMenuRow.getMenuView() != null;
1204 return mMenuRow;
1209 return mMenuRow;
1235 View oldMenu = mMenuRow == null ? null : mMenuRow.getMenuView();
1257 if (mMenuRow != null && mMenuRow.getMenuView() != null) {
1649 if (mMenuRow == null || !mMenuRow.isMenuVisible()) {
1962 if (mMenuRow != null && mMenuRow.getMenuView() != null) {
2519 if (mMenuRow != null && mMenuRow.getMenuView() != null) {
2722 if (mMenuRow != null && mMenuRow.isMenuVisible()) {
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
H A DNotificationSwipeHelperTest.java70 private NotificationMenuRowPlugin mMenuRow; field in NotificationSwipeHelperTest
86 mMenuRow = mock(NotificationMenuRowPlugin.class); in setUp()
131 mSwipeHelper.setCurrentMenuRow(mMenuRow); in testSetCurrentMenuRow()
132 assertEquals("currentMenuRow set correctly after setCurrentMenuRow", mMenuRow, in testSetCurrentMenuRow()
180 when(mSwipeHelper.getCurrentMenuRow()).thenReturn(mMenuRow); in testOnMoveUpdate_menuRow()
187 verify(mMenuRow, times(1)).onTouchMove(10); in testOnMoveUpdate_menuRow()
208 when(mSwipeHelper.getCurrentMenuRow()).thenReturn(mMenuRow); in testHandleUpEvent_menuRow()
209 doNothing().when(mSwipeHelper).handleMenuRowSwipe(mEvent, mView, 0, mMenuRow); in testHandleUpEvent_menuRow()
213 verify(mMenuRow, times(1)).onTouchEnd(); in testHandleUpEvent_menuRow()
214 verify(mSwipeHelper, times(1)).handleMenuRowSwipe(mEvent, mView, 0, mMenuRow); in testHandleUpEvent_menuRow()