/frameworks/base/core/java/android/util/ |
D | DayOfMonthCursor.java | 37 private int mRow; field in DayOfMonthCursor 50 mRow = getRowOf(dayOfMonth); in DayOfMonthCursor() 56 return mRow; in getSelectedRow() 64 mRow = row; in setSelectedRowColumn() 69 return getDayAt(mRow, mColumn); in getSelectedDayOfMonth() 77 if (isWithinCurrentMonth(mRow, mColumn)) { in getSelectedMonthOffset() 80 if (mRow == 0) { in getSelectedMonthOffset() 87 mRow = getRowOf(dayOfMonth); in setSelectedDayOfMonth() 92 return (mRow == row) && (mColumn == column); in isSelected() 101 if (isWithinCurrentMonth(mRow - 1, mColumn)) { in up() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/ |
D | BubbleControllerTest.java | 132 private ExpandableNotificationRow mRow; field in BubbleControllerTest 162 mRow = mNotificationTestHelper.createBubble(mDeleteIntent); in setUp() 168 when(mNotificationData.get(mRow.getEntry().key)).thenReturn(mRow.getEntry()); in setUp() 169 when(mNotificationData.getChannel(mRow.getEntry().key)).thenReturn(mRow.getEntry().channel); in setUp() 207 mBubbleController.updateBubble(mRow.getEntry()); in testAddBubble() 216 mBubbleController.updateBubble(mRow.getEntry()); in testHasBubbles() 222 mBubbleController.updateBubble(mRow.getEntry()); in testRemoveBubble() 223 assertNotNull(mBubbleData.getBubbleWithKey(mRow.getEntry().key)); in testRemoveBubble() 228 mBubbleController.removeBubble(mRow.getEntry().key, BubbleController.DISMISS_USER_GESTURE); in testRemoveBubble() 230 assertNull(mBubbleData.getBubbleWithKey(mRow.getEntry().key)); in testRemoveBubble() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | VisualStabilityManagerTest.java | 53 private ExpandableNotificationRow mRow = mock(ExpandableNotificationRow.class); field in VisualStabilityManagerTest 66 mEntry.setRow(mRow); in setUp() 68 when(mRow.getEntry()).thenReturn(mEntry); in setUp() 75 assertFalse(mVisualStabilityManager.canReorderNotification(mRow)); in testPanelExpansion() 77 assertTrue(mVisualStabilityManager.canReorderNotification(mRow)); in testPanelExpansion() 84 assertFalse(mVisualStabilityManager.canReorderNotification(mRow)); in testScreenOn() 86 assertTrue(mVisualStabilityManager.canReorderNotification(mRow)); in testScreenOn() 140 mVisualStabilityManager.notifyViewAddition(mRow); in testAddedCanReorder() 141 assertTrue(mVisualStabilityManager.canReorderNotification(mRow)); in testAddedCanReorder() 150 assertFalse(mVisualStabilityManager.canReorderNotification(mRow)); in testReorderingVisibleHeadsUpNotAllowed() [all …]
|
D | NotificationFilterTest.java | 76 private ExpandableNotificationRow mRow; field in NotificationFilterTest 99 mRow = new NotificationTestHelper(getContext()).createRow(); in setUp() 142 StatusBarNotification sbn = mRow.getEntry().notification; in testSuppressSystemAlertNotification() 147 assertTrue(mNotificationFilter.shouldFilterOut(mRow.getEntry())); in testSuppressSystemAlertNotification() 152 StatusBarNotification sbn = mRow.getEntry().notification; in testDoNotSuppressSystemAlertNotification() 160 assertFalse(mNotificationFilter.shouldFilterOut(mRow.getEntry())); in testDoNotSuppressSystemAlertNotification() 165 assertFalse(mNotificationFilter.shouldFilterOut(mRow.getEntry())); in testDoNotSuppressSystemAlertNotification() 170 assertFalse(mNotificationFilter.shouldFilterOut(mRow.getEntry())); in testDoNotSuppressSystemAlertNotification() 178 assertFalse(mNotificationFilter.shouldFilterOut(mRow.getEntry())); in testDoNotSuppressMalformedSystemAlertNotification() 180 StatusBarNotification sbn = mRow.getEntry().notification; in testDoNotSuppressMalformedSystemAlertNotification() [all …]
|
D | ActivityLaunchAnimatorTest.java | 61 private ExpandableNotificationRow mRow = mock(ExpandableNotificationRow.class); field in ActivityLaunchAnimatorTest 78 RemoteAnimationAdapter launchAnimation = mLaunchAnimator.getLaunchAnimation(mRow, in testReturnsNullIfNotEnabled() 87 RemoteAnimationAdapter launchAnimation = mLaunchAnimator.getLaunchAnimation(mRow, in testNotWorkingWhenOccluded() 95 RemoteAnimationAdapter launchAnimation = mLaunchAnimator.getLaunchAnimation(mRow, in testTimeoutCalled()
|
D | NotificationEntryManagerTest.java | 116 @Mock private ExpandableNotificationRow mRow; field in NotificationEntryManagerTest 355 mEntry.setRow(mRow); in testRemoveNotification() 365 verify(mRow).setRemoved(); in testRemoveNotification() 399 mEntry.setRow(mRow); in testUpdateNotificationRanking() 405 verify(mRow).setEntry(eq(mEntry)); in testUpdateNotificationRanking() 416 mEntry.setRow(mRow); in testUpdateNotificationRanking_noChange() 421 verify(mRow, never()).setEntry(eq(mEntry)); in testUpdateNotificationRanking_noChange() 435 verify(mRow, never()).setEntry(eq(mEntry)); in testUpdateNotificationRanking_rowNotInflatedYet() 450 verify(mRow, never()).setEntry(eq(mEntry)); in testUpdateNotificationRanking_pendingNotification()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationContentInflaterTest.java | 71 private ExpandableNotificationRow mRow; field in NotificationContentInflaterTest 82 mRow = spy(row); in setUp() 83 mNotificationInflater = new NotificationContentInflater(mRow); in setUp() 125 verify(mRow).onNotificationUpdated(); in testInflationCallsUpdated() 135 assertNotNull(mRow.getPrivateLayout().getHeadsUpChild()); in testInflationOnlyInflatesSetFlags() 136 verify(mRow).onNotificationUpdated(); in testInflationOnlyInflatesSetFlags() 141 mRow.getPrivateLayout().removeAllViews(); in testInflationThrowsErrorDoesntCallUpdated() 142 mRow.getStatusBarNotification().getNotification().contentView in testInflationThrowsErrorDoesntCallUpdated() 146 assertTrue(mRow.getPrivateLayout().getChildCount() == 0); in testInflationThrowsErrorDoesntCallUpdated() 147 verify(mRow, times(0)).onNotificationUpdated(); in testInflationThrowsErrorDoesntCallUpdated() [all …]
|
D | NotificationMenuRowTest.java | 57 private ExpandableNotificationRow mRow; field in NotificationMenuRowTest 62 mRow = mock(ExpandableNotificationRow.class); in setup() 66 when(mRow.getEntry()).thenReturn(entry); in setup() 79 row.createMenu(mRow, null); in testAttachDetach() 89 row.createMenu(mRow, null); in testRecreateMenu() 91 row.createMenu(mRow, null); in testRecreateMenu() 107 row.createMenu(mRow, null); in testNoAppOpsInSlowSwipe() 119 row.createMenu(mRow, null); in testNoSnoozeInSlowSwipe() 131 row.createMenu(mRow, null); in testSnoozeInSlowSwipe() 141 row.createMenu(mRow, null); in testNoAppOpsInSlowSwipe_biDirectionalSwipe()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationContentInflater.java | 110 private final ExpandableNotificationRow mRow; field in NotificationContentInflater 121 mRow = row; in NotificationContentInflater() 162 if (mRow.getEntry() == null) { in updateNeedsRedaction() 225 if (mRow.isRemoved()) { in inflateNotificationViews() 233 StatusBarNotification sbn = mRow.getEntry().notification; in inflateNotificationViews() 236 mRow.getImageResolver().preloadImages(sbn.getNotification()); in inflateNotificationViews() 243 mRow, in inflateNotificationViews() 266 result = inflateSmartReplyViews(result, reInflateFlags, mRow.getEntry(), in inflateNotificationViews() 267 mRow.getContext(), packageContext, mRow.getHeadsUpManager(), in inflateNotificationViews() 268 mRow.getExistingSmartRepliesAndActions()); in inflateNotificationViews() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationCustomViewWrapperTest.java | 42 private ExpandableNotificationRow mRow; field in NotificationCustomViewWrapperTest 47 mRow = new NotificationTestHelper(mContext).createRow(); in setUp() 54 NotificationViewWrapper wrap = NotificationCustomViewWrapper.wrap(mContext, v, mRow); in testBackgroundPersists() 55 wrap.onContentUpdated(mRow); in testBackgroundPersists() 60 wrap.onContentUpdated(mRow); in testBackgroundPersists()
|
D | NotificationViewWrapperTest.java | 46 private ExpandableNotificationRow mRow; field in NotificationViewWrapperTest 53 mRow = new NotificationTestHelper(getContext()).createRow(); in setup() 54 mNotificationViewWrapper = new TestableNotificationViewWrapper(mContext, mView, mRow); in setup()
|
D | NotificationMediaTemplateViewWrapperTest.java | 56 private ExpandableNotificationRow mRow; field in NotificationMediaTemplateViewWrapperTest 97 mRow = new NotificationTestHelper(mContext).createRow(mNotif); in makeTestNotification() 103 mView, mRow); in makeTestNotification() 104 mWrapper.onContentUpdated(mRow); in makeTestNotification()
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/ |
D | WeightTest.java | 34 private View mRow; field in WeightTest 48 mRow = activity.findViewById(R.id.row); in setUp() 56 assertNotNull(mRow); in testSetUpConditions() 61 assertEquals(mCell1.getWidth() + mCell2.getWidth() + mCell3.getWidth(), mRow.getWidth()); in testAllCellsFillParent()
|
/frameworks/base/media/java/android/media/ |
D | ClosedCaptionRenderer.java | 575 final int mRow; field in Cea608CCParser.PAC 604 mRow = row; in PAC() 613 return mRow; in getRow() 623 mRow, mCol, super.toString()); in toString() 761 private int mRow; field in Cea608CCParser.CCMemory 775 mRow = MAX_ROWS; in erase() 780 if (mLines[mRow] != null) { in der() 782 if (mLines[mRow].charAt(i) != TS) { in der() 783 for (int j = mCol; j < mLines[mRow].length(); j++) { in der() 789 mLines[mRow] = null; in der() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ExpandHelperTest.java | 45 private ExpandableNotificationRow mRow; field in ExpandHelperTest 53 mRow = new NotificationTestHelper(context).createRow(); in setUp() 62 mExpandHelper.startExpanding(mRow, 0); in testAnimationDoesntClearViewIfNewExpansionStarted() 64 mExpandHelper.startExpanding(mRow, 0); in testAnimationDoesntClearViewIfNewExpansionStarted()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationDataTest.java | 110 private ExpandableNotificationRow mRow; field in NotificationDataTest 138 mRow = new NotificationTestHelper(getContext()).createRow(); in setUp() 146 mNotificationData.rankingOverrides.put(mRow.getEntry().key, override); in testChannelSetWhenAdded() 147 mNotificationData.add(mRow.getEntry()); in testChannelSetWhenAdded() 148 assertEquals(NOTIFICATION_CHANNEL, mRow.getEntry().channel); in testChannelSetWhenAdded() 153 mNotificationData.add(mRow.getEntry()); in testAllRelevantNotisTaggedWithAppOps() 167 NotificationTestHelper.PKG, mRow.getEntry().key, true); in testAllRelevantNotisTaggedWithAppOps() 172 assertTrue(mRow.getEntry().key + " doesn't have op " + op, in testAllRelevantNotisTaggedWithAppOps() 173 mNotificationData.get(mRow.getEntry().key).mActiveAppOps.contains(op)); in testAllRelevantNotisTaggedWithAppOps() 183 mNotificationData.add(mRow.getEntry()); in testAppOpsRemoval() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSliceView.java | 96 private Row mRow; field in KeyguardSliceView 146 mRow = findViewById(R.id.row); in onFinishInflate() 195 mRow.setVisibility(GONE); in showSlice() 235 mRow.setVisibility(subItemsCount > 0 ? VISIBLE : GONE); in showSlice() 236 LinearLayout.LayoutParams layoutParams = (LayoutParams) mRow.getLayoutParams(); in showSlice() 238 mRow.setLayoutParams(layoutParams); in showSlice() 245 KeyguardSliceButton button = mRow.findViewWithTag(itemTag); in showSlice() 251 mRow.addView(button, viewIndex); in showSlice() 284 for (int i = 0; i < mRow.getChildCount(); i++) { in showSlice() 285 View child = mRow.getChildAt(i); in showSlice() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationHeaderUtil.java | 97 private final ExpandableNotificationRow mRow; field in NotificationHeaderUtil 102 mRow = row; in NotificationHeaderUtil() 104 mComparators.add(new HeaderProcessor(mRow, in NotificationHeaderUtil() 110 mComparators.add(new HeaderProcessor(mRow, in NotificationHeaderUtil() 115 mComparators.add(new HeaderProcessor(mRow, in NotificationHeaderUtil() 134 mComparators.add(HeaderProcessor.forTextView(mRow, in NotificationHeaderUtil() 136 mComparators.add(HeaderProcessor.forTextView(mRow, in NotificationHeaderUtil() 144 List<ExpandableNotificationRow> notificationChildren = mRow.getNotificationChildren(); in updateChildrenHeaderAppearance() 210 || mRow.getStatusBarNotification().getNotification().showsTime() in sanitizeHeader()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumeDialogImpl.java | 1374 private final VolumeRow mRow; 1377 mRow = row; 1382 if (mRow.ss == null) return; 1383 if (D.BUG) Log.d(TAG, AudioSystem.streamToString(mRow.stream) 1386 if (mRow.ss.levelMin > 0) { 1387 final int minProgress = mRow.ss.levelMin * 100; 1394 if (mRow.ss.level != userLevel || mRow.ss.muted && userLevel > 0) { 1395 mRow.userAttempt = SystemClock.uptimeMillis(); 1396 if (mRow.requestedLevel != userLevel) { 1397 mController.setActiveStream(mRow.stream); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationViewWrapper.java | 50 protected final ExpandableNotificationRow mRow; field in NotificationViewWrapper 80 mRow = row; in NotificationViewWrapper() 115 if (mRow.getEntry().targetSdk >= Build.VERSION_CODES.Q) { in needsInversion() 272 return mRow.isSummaryWithChildren() ? 0 : mBackgroundColor; in getCustomBackgroundColor()
|
D | NotificationMediaTemplateViewWrapper.java | 178 final MediaSession.Token token = mRow.getEntry().notification.getNotification().extras in resolveViews() 407 String packageName = mRow.getEntry().notification.getPackageName(); in newLog() 419 String packageName = mRow.getEntry().notification.getPackageName(); in newLog()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | AlertingNotificationManagerTest.java | 77 @Mock protected ExpandableNotificationRow mRow; field in AlertingNotificationManagerTest 133 mEntry.setRow(mRow); in setUp() 184 entry.setRow(mRow); in testReleaseAllImmediately()
|
D | NotificationTestHelper.java | 73 private ExpandableNotificationRow mRow; field in NotificationTestHelper 290 mRow = (ExpandableNotificationRow) inflater.inflate( in generateRow() 294 ExpandableNotificationRow row = mRow; in generateRow()
|
D | NotificationRemoteInputManagerTest.java | 59 @Mock private ExpandableNotificationRow mRow; field in NotificationRemoteInputManagerTest 85 mEntry.setRow(mRow); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/ |
D | NotificationLoggerTest.java | 75 @Mock private ExpandableNotificationRow mRow; field in NotificationLoggerTest 100 mEntry.setRow(mRow); in setUp()
|