Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationBlockingHelperManagerTest.java69 @Mock private NotificationMenuRow mMenuRow; field in NotificationBlockingHelperManagerTest
82 when(mMenuRow.getLongpressMenuItem(any(Context.class))).thenReturn(mMenuItem); in setUp()
131 assertTrue(mBlockingHelperManager.perhapsShowBlockingHelper(row, mMenuRow)); in testPerhapsShowBlockingHelper_shown()
147 assertFalse(mBlockingHelperManager.perhapsShowBlockingHelper(groupRow, mMenuRow)); in testPerhapsShowBlockingHelper_notShownForMultiChannelGroup()
157 assertTrue(mBlockingHelperManager.perhapsShowBlockingHelper(groupRow, mMenuRow)); in testPerhapsShowBlockingHelper_shownForLargeGroup()
173 assertTrue(mBlockingHelperManager.perhapsShowBlockingHelper(childRow, mMenuRow)); in testPerhapsShowBlockingHelper_shownForOnlyChildNotification()
183 assertFalse(mBlockingHelperManager.perhapsShowBlockingHelper(row, mMenuRow)); in testPerhapsShowBlockingHelper_notShownDueToNeutralUserSentiment()
192 assertFalse(mBlockingHelperManager.perhapsShowBlockingHelper(row, mMenuRow)); in testPerhapsShowBlockingHelper_notShownDueToPositiveUserSentiment()
202 assertFalse(mBlockingHelperManager.perhapsShowBlockingHelper(row, mMenuRow)); in testPerhapsShowBlockingHelper_notShownDueToShadeVisibility()
211 assertFalse(mBlockingHelperManager.perhapsShowBlockingHelper(row, mMenuRow)); in testPerhapsShowBlockingHelper_notShownDueToNonblockability()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableNotificationRow.java235 private NotificationMenuRowPlugin mMenuRow; field in ExpandableNotificationRow
578 if (mMenuRow != null) { in onNotificationUpdated()
579 mMenuRow.onNotificationUpdated(mStatusBarNotification); in onNotificationUpdated()
580 mMenuRow.setAppName(mAppName); in onNotificationUpdated()
610 if (mMenuRow != null) { in onNotificationRankingUpdated()
611 mMenuRow.onNotificationUpdated(mStatusBarNotification); in onNotificationRankingUpdated()
756 if (mMenuRow != null && mMenuRow.getMenuView() != null) {
757 mMenuRow.setAppName(mAppName);
876 if (mMenuRow != null && mMenuRow.isMenuVisible()) {
1157 boolean existed = mMenuRow != null && mMenuRow.getMenuView() != null;
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationSwipeHelperTest.java68 private NotificationMenuRowPlugin mMenuRow; field in NotificationSwipeHelperTest
82 mMenuRow = mock(NotificationMenuRowPlugin.class); in setUp()
127 mSwipeHelper.setCurrentMenuRow(mMenuRow); in testSetCurrentMenuRow()
128 assertEquals("currentMenuRow set correctly after setCurrentMenuRow", mMenuRow, in testSetCurrentMenuRow()
176 when(mSwipeHelper.getCurrentMenuRow()).thenReturn(mMenuRow); in testOnMoveUpdate_menuRow()
183 verify(mMenuRow, times(1)).onTouchMove(10); in testOnMoveUpdate_menuRow()
204 when(mSwipeHelper.getCurrentMenuRow()).thenReturn(mMenuRow); in testHandleUpEvent_menuRow()
205 doNothing().when(mSwipeHelper).handleMenuRowSwipe(mEvent, mView, 0, mMenuRow); in testHandleUpEvent_menuRow()
209 verify(mMenuRow, times(1)).onTouchEnd(); in testHandleUpEvent_menuRow()
210 verify(mSwipeHelper, times(1)).handleMenuRowSwipe(mEvent, mView, 0, mMenuRow); in testHandleUpEvent_menuRow()