Home
last modified time | relevance | path

Searched refs:mSbn (Results 1 – 16 of 16) sorted by relevance

/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DBubbleEntry.java38 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DSmartReplyControllerTest.java70 @Mock private StatusBarNotification mSbn; field in SmartReplyControllerTest
99 mSbn = new StatusBarNotification( in setUp()
111 .setSbn(mSbn) in setUp()
122 argThat(sbn -> sbn.getKey().equals(mSbn.getKey())), anyString()); in testSendSmartReply_updatesRemoteInput()
131 verify(mIStatusBarService).onNotificationSmartReplySent(mSbn.getKey(), in testSendSmartReply_logsToStatusBar()
142 verify(mIStatusBarService).onNotificationSmartReplySent(mSbn.getKey(), in testSendSmartReply_logsToStatusBar_modifiedBeforeSending()
154 verify(mIStatusBarService).onNotificationSmartSuggestionsAdded(mSbn.getKey(), in testShowSmartSuggestions_logsToStatusBar()
163 assertTrue(mSmartReplyController.isSendingSmartReply(mSbn.getKey())); in testSendSmartReply_reportsSending()
172 assertFalse(mSmartReplyController.isSendingSmartReply(mSbn.getKey())); in testSendingSmartReply_afterRemove_shouldReturnFalse()
H A DNotificationListenerTest.java64 private StatusBarNotification mSbn; field in NotificationListenerTest
77 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
85 mListener.onNotificationPosted(mSbn, mRanking); in testNotificationAddCallsAddNotification()
87 verify(mNotificationHandler).onNotificationPosted(mSbn, mRanking); in testNotificationAddCallsAddNotification()
92 mListener.onNotificationRemoved(mSbn, mRanking); in testNotificationRemovalCallsRemoveNotification()
94 verify(mNotificationHandler).onNotificationRemoved(eq(mSbn), eq(mRanking), anyInt()); in testNotificationRemovalCallsRemoveNotification()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
H A DFeedbackInfoTest.java83 private StatusBarNotification mSbn; field in FeedbackInfoTest
112 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
120 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), in testBindNotification_SetsTextApplicationName()
131 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), in testBindNotification_SetsPackageIcon()
141 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testPrompt_silenced()
153 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testPrompt_promoted()
165 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testPrompt_alerted()
177 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testPrompt_demoted()
187 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testPositiveFeedback()
204 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testNegativeFeedback()
[all …]
H A DPartialConversationInfoTest.java88 private StatusBarNotification mSbn; field in PartialConversationInfoTest
155 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
157 mEntry = new NotificationEntryBuilder().setSbn(mSbn).build(); in setUp()
216 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate()
224 NotificationEntry entry = new NotificationEntryBuilder().setSbn(mSbn).build(); in testBindNotification_delegate()
H A DNotificationInfoTest.java105 private StatusBarNotification mSbn; field in NotificationInfoTest
170 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
172 mEntry = new NotificationEntryBuilder().setSbn(mSbn).build(); in setUp()
254 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate()
262 NotificationEntry entry = new NotificationEntryBuilder().setSbn(mSbn).build(); in testBindNotification_delegate()
676 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in testBindNotification_whenCurrentlyInCall()
678 mEntry.setSbn(mSbn); in testBindNotification_whenCurrentlyInCall()
720 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in testBindNotification_whenCurrentlyInCall_notCall()
722 mEntry.setSbn(mSbn); in testBindNotification_whenCurrentlyInCall_notCall()
H A DNotificationConversationInfoTest.java118 private StatusBarNotification mSbn; field in NotificationConversationInfoTest
210 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
212 mEntry = new NotificationEntryBuilder().setSbn(mSbn).setShortcutInfo(mShortcutInfo).build(); in setUp()
217 mBubbleSbn = new SbnBuilder(mSbn).setBubbleMetadata( in setUp()
394 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate()
395 mSbn.getNotification(), UserHandle.CURRENT, null, 0); in testBindNotification_delegate()
403 .setSbn(mSbn) in testBindNotification_delegate()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
H A DNotificationEntry.java97 private StatusBarNotification mSbn; field in NotificationEntry
261 return mSbn; in getSbn()
277 mSbn = sbn; in setSbn()
439 mSbn.getNotification().flags &= ~FLAG_BUBBLE; in setFlagBubble()
442 mSbn.getNotification().flags |= FLAG_BUBBLE; in setFlagBubble()
518 mSbn.getNotification().color; in getContrastedColor()
582 Bundle extras = mSbn.getNotification().extras; in isLastMessageFromReply()
762 if (!mSbn.isClearable()) { in isClearable()
786 if (mSbn.isNonDismissable()) { in isDismissableForState()
791 return !mSbn.isOngoing() || !isLocked; in isDismissableForState()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DNotificationInfo.java125 private StatusBarNotification mSbn; field in NotificationInfo
219 mSbn = entry.getSbn(); in bindNotification()
228 mAppUid = mSbn.getUid(); in bindNotification()
229 mDelegatePkg = mSbn.getOpPkg(); in bindNotification()
234 mIsSystemRegisteredCall = mSbn.getNotification().isStyle(Notification.CallStyle.class) in bindNotification()
235 && mINotificationManager.isInCall(mSbn.getPackageName(), mSbn.getUid()); in bindNotification()
343 mSbn.getId(), mSbn.getTag()); in bindHeader()
345 && !TextUtils.isEmpty(mSbn.getNotification().getSettingsText())) { in bindHeader()
706 if (mSbn != null) {
708 mSbn.getUid(), mSbn.getPackageName(), mSbn.getInstanceId());
[all …]
H A DPartialConversationInfo.java57 private StatusBarNotification mSbn; field in PartialConversationInfo
93 mSbn = entry.getSbn(); in bindNotification()
98 mAppUid = mSbn.getUid(); in bindNotification()
99 mDelegatePkg = mSbn.getOpPkg(); in bindNotification()
H A DNotificationConversationInfo.java105 private StatusBarNotification mSbn; field in NotificationConversationInfo
161 if (mUm.isSameProfileGroup(UserHandle.USER_SYSTEM, mSbn.getNormalizedUserId())) {
218 mSbn = entry.getSbn(); in bindNotification()
224 mAppUid = mSbn.getUid(); in bindNotification()
225 mDelegatePkg = mSbn.getOpPkg(); in bindNotification()
275 && BubblesManager.areBubblesEnabled(mContext, mSbn.getUser())) { in bindActions()
349 mPackageName, UserHandle.getUserId(mSbn.getUid()))); in bindIcon()
555 && BubblesManager.areBubblesEnabled(mContext, mSbn.getUser()); in willShowAsBubble()
H A DNotificationSnooze.java82 private StatusBarNotification mSbn; field in NotificationSnooze
214 mSbn = sbn; in setStatusBarNotification()
426 mSnoozeListener.snooze(mSbn, mSelectedOption); in handleCloseControls()
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/notification/collection/
H A DNotificationEntryBuilder.java53 private StatusBarNotification mSbn = null; field in NotificationEntryBuilder
97 final StatusBarNotification sbn = mSbn != null ? mSbn : mSbnBuilder.build(); in buildOrApply()
139 mSbn = sbn; in setSbn()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
H A DBubbleTest.java61 private StatusBarNotification mSbn; field in BubbleTest
84 when(mSbn.getNotification()).thenReturn(mNotif); in setUp()
86 when(mSbn.getKey()).thenReturn("mock"); in setUp()
87 mBubbleEntry = new BubbleEntry(mSbn, null, true, false, false, false); in setUp()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
H A DAssistantFeedbackControllerTest.java70 private StatusBarNotification mSbn; field in AssistantFeedbackControllerTest
79 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, in setUp()
162 .setSbn(mSbn) in getEntry()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DShortcutHelperTest.java83 StatusBarNotification mSbn; field in ShortcutHelperTest
99 when(mSbn.getPackageName()).thenReturn(PKG); in setUp()
110 when(mockRecord.getSbn()).thenReturn(mSbn); in setUpMockNotificationRecord()