/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | AppOpsInfoTest.java | 72 private StatusBarNotification mSbn; field in AppOpsInfoTest 92 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp() 99 mAppOpsInfo.bindGuts(mMockPackageManager, null, mSbn, mUiEventLogger, new ArraySet<>()); in testBindNotification_SetsTextApplicationName() 109 mAppOpsInfo.bindGuts(mMockPackageManager, null, mSbn, mUiEventLogger, new ArraySet<>()); in testBindNotification_SetsPackageIcon() 125 }, mSbn, mUiEventLogger, expectedOps); in testBindNotification_SetsOnClickListenerForSettings() 135 mAppOpsInfo.bindGuts(mMockPackageManager, null, mSbn, mUiEventLogger, new ArraySet<>()); in testBindNotification_LogsOpen() 152 }, mSbn, mUiEventLogger, expectedOps); in testOk() 164 mAppOpsInfo.bindGuts(mMockPackageManager, null, mSbn, mUiEventLogger, expectedOps); in testPrompt_camera() 173 mAppOpsInfo.bindGuts(mMockPackageManager, null, mSbn, mUiEventLogger, expectedOps); in testPrompt_mic() 182 mAppOpsInfo.bindGuts(mMockPackageManager, null, mSbn, mUiEventLogger, expectedOps); in testPrompt_overlay() [all …]
|
D | NotificationEntryManagerInflationTest.java | 138 private StatusBarNotification mSbn; field in NotificationEntryManagerInflationTest 161 mSbn = new SbnBuilder() in setUp() 279 mSbn.getKey(), in setUp() 316 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification() 335 assertNotNull(mEntryManager.getActiveNotificationUnfiltered(mSbn.getKey())); in testAddNotification() 344 mEntryManager.addNotification(mSbn, mRankingMap); in testUpdateNotification() 355 mEntryManager.updateNotification(mSbn, mRankingMap); in testUpdateNotification() 373 mEntryManager.addNotification(mSbn, mRankingMap); in testContentViewInflationDuringRowInflationInflatesCorrectViews()
|
D | PartialConversationInfoTest.java | 92 private StatusBarNotification mSbn; field in PartialConversationInfoTest 159 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp() 161 mEntry = new NotificationEntryBuilder().setSbn(mSbn).build(); in setUp() 220 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate() 228 NotificationEntry entry = new NotificationEntryBuilder().setSbn(mSbn).build(); in testBindNotification_delegate()
|
D | NotificationConversationInfoTest.java | 120 private StatusBarNotification mSbn; field in NotificationConversationInfoTest 213 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp() 215 mEntry = new NotificationEntryBuilder().setSbn(mSbn).setShortcutInfo(mShortcutInfo).build(); in setUp() 219 mBubbleSbn = new SbnBuilder(mSbn).setBubbleMetadata( in setUp() 390 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate() 391 mSbn.getNotification(), UserHandle.CURRENT, null, 0); in testBindNotification_delegate() 399 .setSbn(mSbn) in testBindNotification_delegate()
|
D | NotificationInfoTest.java | 104 private StatusBarNotification mSbn; field in NotificationInfoTest 164 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp() 166 mEntry = new NotificationEntryBuilder().setSbn(mSbn).build(); in setUp() 248 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate() 256 NotificationEntry entry = new NotificationEntryBuilder().setSbn(mSbn).build(); in testBindNotification_delegate()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | NotificationEntryManagerTest.java | 132 private StatusBarNotification mSbn; field in NotificationEntryManagerTest 182 mSbn = mEntry.getSbn(); in setUp() 209 setUserSentiment(mSbn.getKey(), Ranking.USER_SENTIMENT_NEUTRAL); in setUp() 215 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification_noDuplicateEntriesCreated() 219 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification_noDuplicateEntriesCreated() 220 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification_noDuplicateEntriesCreated() 221 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification_noDuplicateEntriesCreated() 226 if (entry.getKey().equals(mSbn.getKey())) { in testAddNotification_noDuplicateEntriesCreated() 230 assertEquals("Should only be one entry with key=" + mSbn.getKey() + " in mAllNotifs. " in testAddNotification_noDuplicateEntriesCreated() 236 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification_setsUserSentiment() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | SmartReplyControllerTest.java | 73 @Mock private StatusBarNotification mSbn; field in SmartReplyControllerTest 105 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, in setUp() 108 .setSbn(mSbn) in setUp() 120 argThat(sbn -> sbn.getKey().equals(mSbn.getKey())), isNull()); in testSendSmartReply_updatesRemoteInput() 129 verify(mIStatusBarService).onNotificationSmartReplySent(mSbn.getKey(), in testSendSmartReply_logsToStatusBar() 140 verify(mIStatusBarService).onNotificationSmartReplySent(mSbn.getKey(), in testSendSmartReply_logsToStatusBar_modifiedBeforeSending() 152 verify(mIStatusBarService).onNotificationSmartSuggestionsAdded(mSbn.getKey(), in testShowSmartSuggestions_logsToStatusBar() 161 assertTrue(mSmartReplyController.isSendingSmartReply(mSbn.getKey())); in testSendSmartReply_reportsSending() 170 assertFalse(mSmartReplyController.isSendingSmartReply(mSbn.getKey())); in testSendingSmartReply_afterRemove_shouldReturnFalse()
|
D | NotificationListenerTest.java | 58 private StatusBarNotification mSbn; field in NotificationListenerTest 69 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp() 77 mListener.onNotificationPosted(mSbn, mRanking); in testNotificationAddCallsAddNotification() 79 verify(mNotificationHandler).onNotificationPosted(mSbn, mRanking); in testNotificationAddCallsAddNotification() 84 mListener.onNotificationRemoved(mSbn, mRanking); in testNotificationRemovalCallsRemoveNotification() 86 verify(mNotificationHandler).onNotificationRemoved(eq(mSbn), eq(mRanking), anyInt()); in testNotificationRemovalCallsRemoveNotification()
|
D | AlertingNotificationManagerTest.java | 75 private StatusBarNotification mSbn; field in AlertingNotificationManagerTest 132 mSbn = createNewNotification(0 /* id */); in setUp() 134 .setSbn(mSbn) in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationEntry.java | 97 private StatusBarNotification mSbn; field in NotificationEntry 228 return mSbn; in getSbn() 244 mSbn = sbn; in setSbn() 245 mBubbleMetadata = mSbn.getNotification().getBubbleMetadata(); in setSbn() 382 return (mSbn.getNotification().flags & FLAG_BUBBLE) != 0; in isBubble() 411 mSbn.getNotification().flags &= ~FLAG_BUBBLE; in setFlagBubble() 414 mSbn.getNotification().flags |= FLAG_BUBBLE; in setFlagBubble() 491 mSbn.getNotification().color; in getContrastedColor() 553 Bundle extras = mSbn.getNotification().extras; in isLastMessageFromReply() 791 boolean ongoing = ((mSbn.getNotification().flags & Notification.FLAG_ONGOING_EVENT) != 0); in isDismissable() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | AppOpsInfo.java | 49 private StatusBarNotification mSbn; field in AppOpsInfo 74 mSbn = sbn; in bindGuts() 101 mAppUid = mSbn.getUid(); in bindHeader() 209 if (mSbn != null) { in logUiEvent() 211 mSbn.getUid(), mSbn.getPackageName(), mSbn.getInstanceId()); in logUiEvent()
|
D | NotificationInfo.java | 119 private StatusBarNotification mSbn; field in NotificationInfo 199 mSbn = entry.getSbn(); in bindNotification() 208 mAppUid = mSbn.getUid(); in bindNotification() 209 mDelegatePkg = mSbn.getOpPkg(); in bindNotification() 300 mSbn.getId(), mSbn.getTag()); in bindHeader() 302 && !TextUtils.isEmpty(mSbn.getNotification().getSettingsText())) { in bindHeader() 638 if (mSbn != null) { 640 mSbn.getUid(), mSbn.getPackageName(), mSbn.getInstanceId()); 651 return mSbn == null ? new LogMaker(MetricsEvent.NOTIFICATION_BLOCKING_HELPER) 652 : mSbn.getLogMaker().setCategory(MetricsEvent.NOTIFICATION_BLOCKING_HELPER);
|
D | PartialConversationInfo.java | 68 private StatusBarNotification mSbn; field in PartialConversationInfo 113 mSbn = entry.getSbn(); in bindNotification() 118 mAppUid = mSbn.getUid(); in bindNotification() 119 mDelegatePkg = mSbn.getOpPkg(); in bindNotification()
|
D | NotificationConversationInfo.java | 103 private StatusBarNotification mSbn; field in NotificationConversationInfo 230 mSbn = entry.getSbn(); in bindNotification() 235 mAppUid = mSbn.getUid(); in bindNotification() 236 mDelegatePkg = mSbn.getOpPkg(); in bindNotification() 549 mPackageName, UserHandle.getUserId(mSbn.getUid()))) in showPriorityOnboarding()
|
D | NotificationSnooze.java | 80 private StatusBarNotification mSbn; field in NotificationSnooze 211 mSbn = sbn; in setStatusBarNotification() 418 mSnoozeListener.snooze(mSbn, mSelectedOption); in handleCloseControls()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationEntryBuilder.java | 49 private StatusBarNotification mSbn = null; field in NotificationEntryBuilder 59 StatusBarNotification sbn = mSbn != null ? mSbn : mSbnBuilder.build(); in build() 92 mSbn = sbn; in setSbn()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ShortcutHelperTest.java | 75 StatusBarNotification mSbn; field in ShortcutHelperTest 89 when(mSbn.getPackageName()).thenReturn(PKG); in setUp() 99 when(mockRecord.getSbn()).thenReturn(mSbn); in setUpMockNotificationRecord()
|