/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
H A D | BubbleEntry.java | 38 private StatusBarNotification mSbn; field in BubbleEntry 49 mSbn = sbn; in BubbleEntry() 61 return mSbn; in getStatusBarNotification() 71 return mSbn.getKey(); in getKey() 76 return mSbn.getGroupKey(); in getGroupKey() 81 return mSbn.getNotification().getLocusId(); in getLocusId() 101 mSbn.getNotification().flags &= ~FLAG_BUBBLE; in setFlagBubble() 104 mSbn.getNotification().flags |= FLAG_BUBBLE; in setFlagBubble() 110 return (mSbn.getNotification().flags & FLAG_BUBBLE) != 0; in isBubble()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
H A D | NotificationEntryManagerTest.java | 143 private StatusBarNotification mSbn; field in NotificationEntryManagerTest 193 mSbn = mEntry.getSbn(); in setUp() 231 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification_noDuplicateEntriesCreated() 235 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification_noDuplicateEntriesCreated() 236 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification_noDuplicateEntriesCreated() 237 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification_noDuplicateEntriesCreated() 242 if (entry.getKey().equals(mSbn.getKey())) { in testAddNotification_noDuplicateEntriesCreated() 252 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification_setsUserSentiment() 306 mEntryManager.addNotification(mSbn, mRankingMap); in testRemoveUninflatedNotification_removesNotificationFromAllNotifsList() 330 mEntryManager.addNotification(mSbn, mRankingMap); in testRemoveNotification_whilePending_onlyCollectionListenerNotified() [all …]
|
H A D | AssistantFeedbackControllerTest.java | 71 private StatusBarNotification mSbn; field in AssistantFeedbackControllerTest 80 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, in setUp() 146 .setSbn(mSbn) in getEntry()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | SmartReplyControllerTest.java | 77 @Mock private StatusBarNotification mSbn; field in SmartReplyControllerTest 116 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, in setUp() 119 .setSbn(mSbn) in setUp() 131 argThat(sbn -> sbn.getKey().equals(mSbn.getKey())), isNull()); in testSendSmartReply_updatesRemoteInput() 140 verify(mIStatusBarService).onNotificationSmartReplySent(mSbn.getKey(), in testSendSmartReply_logsToStatusBar() 151 verify(mIStatusBarService).onNotificationSmartReplySent(mSbn.getKey(), in testSendSmartReply_logsToStatusBar_modifiedBeforeSending() 163 verify(mIStatusBarService).onNotificationSmartSuggestionsAdded(mSbn.getKey(), in testShowSmartSuggestions_logsToStatusBar() 172 assertTrue(mSmartReplyController.isSendingSmartReply(mSbn.getKey())); in testSendSmartReply_reportsSending() 181 assertFalse(mSmartReplyController.isSendingSmartReply(mSbn.getKey())); in testSendingSmartReply_afterRemove_shouldReturnFalse()
|
H A 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()
|
H A D | AlertingNotificationManagerTest.java | 75 private StatusBarNotification mSbn; field in AlertingNotificationManagerTest 136 mSbn = createNewNotification(0 /* id */); in setUp() 138 .setSbn(mSbn) in setUp()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
H A D | FeedbackInfoTest.java | 84 private StatusBarNotification mSbn; field in FeedbackInfoTest 116 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp() 124 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), in testBindNotification_SetsTextApplicationName() 135 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), in testBindNotification_SetsPackageIcon() 145 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testPrompt_silenced() 157 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testPrompt_promoted() 169 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testPrompt_alerted() 181 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testPrompt_demoted() 191 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testPositiveFeedback() 208 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testNegativeFeedback() [all …]
|
H A D | NotificationEntryManagerInflationTest.java | 153 private StatusBarNotification mSbn; field in NotificationEntryManagerInflationTest 177 mSbn = new SbnBuilder() in setUp() 305 mSbn.getKey(), in setUp() 344 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification() 363 assertNotNull(mEntryManager.getActiveNotificationUnfiltered(mSbn.getKey())); in testAddNotification() 372 mEntryManager.addNotification(mSbn, mRankingMap); in testUpdateNotification() 383 mEntryManager.updateNotification(mSbn, mRankingMap); in testUpdateNotification() 401 mEntryManager.addNotification(mSbn, mRankingMap); in testContentViewInflationDuringRowInflationInflatesCorrectViews()
|
H A 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()
|
H A D | NotificationConversationInfoTest.java | 117 private StatusBarNotification mSbn; field in NotificationConversationInfoTest 207 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp() 209 mEntry = new NotificationEntryBuilder().setSbn(mSbn).setShortcutInfo(mShortcutInfo).build(); in setUp() 214 mBubbleSbn = new SbnBuilder(mSbn).setBubbleMetadata( in setUp() 391 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate() 392 mSbn.getNotification(), UserHandle.CURRENT, null, 0); in testBindNotification_delegate() 400 .setSbn(mSbn) in testBindNotification_delegate()
|
H A D | NotificationInfoTest.java | 101 private StatusBarNotification mSbn; field in NotificationInfoTest 163 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp() 165 mEntry = new NotificationEntryBuilder().setSbn(mSbn).build(); in setUp() 244 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate() 252 NotificationEntry entry = new NotificationEntryBuilder().setSbn(mSbn).build(); in testBindNotification_delegate()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
H A D | NotificationEntry.java | 97 private StatusBarNotification mSbn; field in NotificationEntry 234 return mSbn; in getSbn() 250 mSbn = sbn; in setSbn() 373 return (mSbn.getNotification().flags & FLAG_BUBBLE) != 0; in isBubble() 402 mSbn.getNotification().flags &= ~FLAG_BUBBLE; in setFlagBubble() 405 mSbn.getNotification().flags |= FLAG_BUBBLE; in setFlagBubble() 481 mSbn.getNotification().color; in getContrastedColor() 543 Bundle extras = mSbn.getNotification().extras; in isLastMessageFromReply() 791 return mSbn.isClearable(); in isDismissable() 807 if ((mSbn.getNotification().flags in isExemptFromDndVisualSuppression() [all …]
|
/aosp12/packages/modules/ExtServices/java/src/android/ext/services/notification/ |
H A D | NotificationEntry.java | 54 private final StatusBarNotification mSbn; field in NotificationEntry 70 mSbn = cloneStatusBarNotificationLight(sbn); in NotificationEntry() 142 mSbn.getPackageName(), PackageManager.MATCH_ALL, in isPreChannelsNotification() 143 mSbn.getUser()); in isPreChannelsNotification() 148 Log.w(TAG, "Couldn't look up " + mSbn.getPackageName()); in isPreChannelsNotification() 269 return mSbn.getPackageName().equals(defaultSmsApp); in isDefaultSmsApp() 322 return mSbn; in getSbn()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
H A D | NotificationInfo.java | 125 private StatusBarNotification mSbn; field in NotificationInfo 217 mSbn = entry.getSbn(); in bindNotification() 226 mAppUid = mSbn.getUid(); in bindNotification() 227 mDelegatePkg = mSbn.getOpPkg(); in bindNotification() 328 mSbn.getId(), mSbn.getTag()); in bindHeader() 330 && !TextUtils.isEmpty(mSbn.getNotification().getSettingsText())) { in bindHeader() 689 if (mSbn != null) { 691 mSbn.getUid(), mSbn.getPackageName(), mSbn.getInstanceId()); 702 return mSbn == null ? new LogMaker(MetricsEvent.NOTIFICATION_BLOCKING_HELPER) 703 : mSbn.getLogMaker().setCategory(MetricsEvent.NOTIFICATION_BLOCKING_HELPER);
|
H A 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()
|
H A D | NotificationConversationInfo.java | 104 private StatusBarNotification mSbn; field in NotificationConversationInfo 215 mSbn = entry.getSbn(); in bindNotification() 220 mAppUid = mSbn.getUid(); in bindNotification() 221 mDelegatePkg = mSbn.getOpPkg(); in bindNotification() 340 mPackageName, UserHandle.getUserId(mSbn.getUid()))); in bindIcon() 548 && BubblesManager.areBubblesEnabled(mContext, mSbn.getUser()); in willShowAsBubble()
|
H A D | NotificationSnooze.java | 80 private StatusBarNotification mSbn; field in NotificationSnooze 212 mSbn = sbn; in setStatusBarNotification() 419 mSnoozeListener.snooze(mSbn, mSelectedOption); in handleCloseControls()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/ |
H A D | BubbleTest.java | 57 private StatusBarNotification mSbn; field in BubbleTest 80 when(mSbn.getNotification()).thenReturn(mNotif); in setUp() 82 when(mSbn.getKey()).thenReturn("mock"); in setUp() 83 mBubbleEntry = new BubbleEntry(mSbn, null, true, false, false, false); in setUp()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
H A D | NotificationEntryBuilder.java | 52 private StatusBarNotification mSbn = null; field in NotificationEntryBuilder 89 final StatusBarNotification sbn = mSbn != null ? mSbn : mSbnBuilder.build(); in buildOrApply() 121 mSbn = sbn; in setSbn()
|
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | ShortcutHelperTest.java | 83 StatusBarNotification mSbn; field in ShortcutHelperTest 99 when(mSbn.getPackageName()).thenReturn(PKG); in setUp() 110 when(mockRecord.getSbn()).thenReturn(mSbn); in setUpMockNotificationRecord()
|