/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 | 121 private ExpandableNotificationRow mRow; field in BubbleControllerTest 151 mRow = mNotificationTestHelper.createBubble(mDeleteIntent); in setUp() 169 when(mNotificationData.getChannel(mRow.getEntry().key)).thenReturn(mRow.getEntry().channel); in setUp() 199 mBubbleController.updateBubble(mRow.getEntry()); in testAddBubble() 208 mBubbleController.updateBubble(mRow.getEntry()); in testHasBubbles() 214 mBubbleController.updateBubble(mRow.getEntry()); in testRemoveBubble() 219 mBubbleController.removeBubble(mRow.getEntry().key, BubbleController.DISMISS_USER_GESTURE); in testRemoveBubble() 221 assertTrue(mRow.getEntry().isBubbleDismissed()); in testRemoveBubble() 228 mEntryListener.onPendingEntryAdded(mRow.getEntry()); in testRemoveBubble_withDismissedNotif() 229 mBubbleController.updateBubble(mRow.getEntry()); in testRemoveBubble_withDismissedNotif() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationContentInflaterTest.java | 73 private ExpandableNotificationRow mRow; field in NotificationContentInflaterTest 84 mRow = spy(row); in setUp() 85 mNotificationInflater = new NotificationContentInflater(mRow); in setUp() 127 verify(mRow).onNotificationUpdated(); in testInflationCallsUpdated() 137 assertNotNull(mRow.getPrivateLayout().getHeadsUpChild()); in testInflationOnlyInflatesSetFlags() 138 assertNull(mRow.getShowingLayout().getAmbientChild()); in testInflationOnlyInflatesSetFlags() 139 verify(mRow).onNotificationUpdated(); in testInflationOnlyInflatesSetFlags() 144 mRow.getPrivateLayout().removeAllViews(); in testInflationThrowsErrorDoesntCallUpdated() 145 mRow.getStatusBarNotification().getNotification().contentView in testInflationThrowsErrorDoesntCallUpdated() 149 assertTrue(mRow.getPrivateLayout().getChildCount() == 0); 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/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 | 75 private ExpandableNotificationRow mRow; field in NotificationFilterTest 98 mRow = new NotificationTestHelper(getContext()).createRow(); in setUp() 141 StatusBarNotification sbn = mRow.getEntry().notification; in testSuppressSystemAlertNotification() 146 assertTrue(mNotificationFilter.shouldFilterOut(mRow.getEntry())); in testSuppressSystemAlertNotification() 151 StatusBarNotification sbn = mRow.getEntry().notification; in testDoNotSuppressSystemAlertNotification() 159 assertFalse(mNotificationFilter.shouldFilterOut(mRow.getEntry())); in testDoNotSuppressSystemAlertNotification() 164 assertFalse(mNotificationFilter.shouldFilterOut(mRow.getEntry())); in testDoNotSuppressSystemAlertNotification() 169 assertFalse(mNotificationFilter.shouldFilterOut(mRow.getEntry())); in testDoNotSuppressSystemAlertNotification() 177 assertFalse(mNotificationFilter.shouldFilterOut(mRow.getEntry())); in testDoNotSuppressMalformedSystemAlertNotification() 179 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 | 114 @Mock private ExpandableNotificationRow mRow; field in NotificationEntryManagerTest 352 mEntry.setRow(mRow); in testRemoveNotification() 362 verify(mRow).setRemoved(); in testRemoveNotification() 396 mEntry.setRow(mRow); in testUpdateNotificationRanking() 402 verify(mRow).setEntry(eq(mEntry)); in testUpdateNotificationRanking() 413 mEntry.setRow(mRow); in testUpdateNotificationRanking_noChange() 418 verify(mRow, never()).setEntry(eq(mEntry)); in testUpdateNotificationRanking_noChange() 432 verify(mRow, never()).setEntry(eq(mEntry)); in testUpdateNotificationRanking_rowNotInflatedYet() 447 verify(mRow, never()).setEntry(eq(mEntry)); in testUpdateNotificationRanking_pendingNotification()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationContentInflater.java | 124 private final ExpandableNotificationRow mRow; field in NotificationContentInflater 136 mRow = row; in NotificationContentInflater() 179 if (mRow.getEntry() == null) { in updateNeedsRedaction() 243 if (mRow.isRemoved()) { in inflateNotificationViews() 251 StatusBarNotification sbn = mRow.getEntry().notification; in inflateNotificationViews() 254 mRow.getImageResolver().preloadImages(sbn.getNotification()); in inflateNotificationViews() 261 mRow, in inflateNotificationViews() 285 result = inflateSmartReplyViews(result, reInflateFlags, mRow.getEntry(), in inflateNotificationViews() 286 mRow.getContext(), mRow.getHeadsUpManager(), in inflateNotificationViews() 287 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/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/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/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/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationDataTest.java | 109 private ExpandableNotificationRow mRow; field in NotificationDataTest 137 mRow = new NotificationTestHelper(getContext()).createRow(); in setUp() 145 mNotificationData.rankingOverrides.put(mRow.getEntry().key, override); in testChannelSetWhenAdded() 146 mNotificationData.add(mRow.getEntry()); in testChannelSetWhenAdded() 147 assertEquals(NOTIFICATION_CHANNEL, mRow.getEntry().channel); in testChannelSetWhenAdded() 152 mNotificationData.add(mRow.getEntry()); in testAllRelevantNotisTaggedWithAppOps() 166 NotificationTestHelper.PKG, mRow.getEntry().key, true); in testAllRelevantNotisTaggedWithAppOps() 171 assertTrue(mRow.getEntry().key + " doesn't have op " + op, in testAllRelevantNotisTaggedWithAppOps() 172 mNotificationData.get(mRow.getEntry().key).mActiveAppOps.contains(op)); in testAllRelevantNotisTaggedWithAppOps() 182 mNotificationData.add(mRow.getEntry()); in testAppOpsRemoval() [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() 266 return mRow.isSummaryWithChildren() ? 0 : mBackgroundColor; in getCustomBackgroundColor()
|
D | NotificationMediaTemplateViewWrapper.java | 134 final MediaSession.Token token = mRow.getEntry().notification.getNotification().extras in resolveViews() 347 String packageName = mRow.getEntry().notification.getPackageName(); in newLog() 359 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 | 70 private ExpandableNotificationRow mRow; field in NotificationTestHelper 283 mRow = (ExpandableNotificationRow) inflater.inflate( in generateRow() 287 ExpandableNotificationRow row = mRow; in generateRow()
|
D | NotificationRemoteInputManagerTest.java | 56 @Mock private ExpandableNotificationRow mRow; field in NotificationRemoteInputManagerTest 80 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()
|