Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
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()
DNotificationListenerTest.java67 private StatusBarNotification mSbn; field in NotificationListenerTest
81 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
89 mListener.onNotificationPosted(mSbn, mRanking); in testNotificationAddCallsAddNotification()
91 verify(mNotificationHandler).onNotificationPosted(mSbn, mRanking); in testNotificationAddCallsAddNotification()
96 mListener.onNotificationRemoved(mSbn, mRanking); in testNotificationRemovalCallsRemoveNotification()
98 verify(mNotificationHandler).onNotificationRemoved(eq(mSbn), eq(mRanking), anyInt()); in testNotificationRemovalCallsRemoveNotification()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DFeedbackInfoTest.java88 private StatusBarNotification mSbn; field in FeedbackInfoTest
119 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
135 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), in testBindNotification_SetsTextApplicationName()
147 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), in testBindNotification_SetsPackageIcon()
158 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testPrompt_silenced()
170 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testPrompt_promoted()
182 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testPrompt_alerted()
194 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testPrompt_demoted()
204 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testPositiveFeedback()
221 mFeedbackInfo.bindGuts(mMockPackageManager, mSbn, getEntry(), mMockNotificationRow, in testNegativeFeedback()
[all …]
DPartialConversationInfoTest.java85 private StatusBarNotification mSbn; field in PartialConversationInfoTest
150 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
152 mEntry = new NotificationEntryBuilder().setSbn(mSbn).build(); in setUp()
208 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate()
216 NotificationEntry entry = new NotificationEntryBuilder().setSbn(mSbn).build(); in testBindNotification_delegate()
DNotificationInfoTest.java101 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()
245 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate()
253 NotificationEntry entry = new NotificationEntryBuilder().setSbn(mSbn).build(); in testBindNotification_delegate()
574 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in testBindNotification_whenCurrentlyInCall()
576 mEntry.setSbn(mSbn); in testBindNotification_whenCurrentlyInCall()
617 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in testBindNotification_whenCurrentlyInCall_notCall()
619 mEntry.setSbn(mSbn); in testBindNotification_whenCurrentlyInCall_notCall()
DNotificationConversationInfoTest.java120 private StatusBarNotification mSbn; field in NotificationConversationInfoTest
211 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
213 mEntry = new NotificationEntryBuilder().setSbn(mSbn).setShortcutInfo(mShortcutInfo).build(); in setUp()
218 mBubbleSbn = new SbnBuilder(mSbn).setBubbleMetadata( in setUp()
395 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate()
396 mSbn.getNotification(), UserHandle.CURRENT, null, 0); in testBindNotification_delegate()
404 .setSbn(mSbn) in testBindNotification_delegate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationInfo.java123 private StatusBarNotification mSbn; field in NotificationInfo
214 mSbn = entry.getSbn(); in bindNotification()
223 mAppUid = mSbn.getUid(); in bindNotification()
224 mDelegatePkg = mSbn.getOpPkg(); in bindNotification()
229 mIsSystemRegisteredCall = mSbn.getNotification().isStyle(Notification.CallStyle.class) in bindNotification()
230 && mINotificationManager.isInCall(mSbn.getPackageName(), mSbn.getUid()); in bindNotification()
303 mSbn.getNotification().extras.getParcelable(EXTRA_BUILDER_APPLICATION_INFO, in bindHeader()
325 mSbn.getId(), mSbn.getTag()); in bindHeader()
327 && !TextUtils.isEmpty(mSbn.getNotification().getSettingsText())) { in bindHeader()
686 if (mSbn != null) {
[all …]
DNotificationConversationInfo.java106 private StatusBarNotification mSbn; field in NotificationConversationInfo
162 if (mUm.isSameProfileGroup(UserHandle.USER_SYSTEM, mSbn.getNormalizedUserId())) {
219 mSbn = entry.getSbn(); in bindNotification()
225 mAppUid = mSbn.getUid(); in bindNotification()
226 mDelegatePkg = mSbn.getOpPkg(); in bindNotification()
276 && BubblesManager.areBubblesEnabled(mContext, mSbn.getUser())) { in bindActions()
351 mPackageName, UserHandle.getUserId(mSbn.getUid()))); in bindIcon()
360 mSbn.getNotification().extras.getParcelable(EXTRA_BUILDER_APPLICATION_INFO, in bindPackage()
554 && BubblesManager.areBubblesEnabled(mContext, mSbn.getUser()); in willShowAsBubble()
DPartialConversationInfo.java55 private StatusBarNotification mSbn; field in PartialConversationInfo
89 mSbn = entry.getSbn(); in bindNotification()
94 mAppUid = mSbn.getUid(); in bindNotification()
95 mDelegatePkg = mSbn.getOpPkg(); in bindNotification()
DNotificationSnooze.java87 private StatusBarNotification mSbn; field in NotificationSnooze
262 mSbn = sbn; in setStatusBarNotification()
476 mSnoozeListener.snooze(mSbn, mSelectedOption); in handleCloseControls()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntry.java103 private StatusBarNotification mSbn; field in NotificationEntry
279 return mSbn; in getSbn()
295 mSbn = sbn; in setSbn()
296 mBubbleMetadata = mSbn.getNotification().getBubbleMetadata(); in setSbn()
428 return (mSbn.getNotification().flags & FLAG_BUBBLE) != 0; in isBubble()
457 mSbn.getNotification().flags &= ~FLAG_BUBBLE; in setFlagBubble()
460 mSbn.getNotification().flags |= FLAG_BUBBLE; in setFlagBubble()
536 mSbn.getNotification().color; in getContrastedColor()
587 Bundle extras = mSbn.getNotification().extras; in isLastMessageFromReply()
765 if (!mSbn.isClearable()) { in isClearable()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
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()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntryBuilder.java56 private StatusBarNotification mSbn = null; field in NotificationEntryBuilder
114 final StatusBarNotification sbn = mSbn != null ? mSbn : mSbnBuilder.build(); in buildOrApply()
156 mSbn = sbn; in setSbn()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DAssistantFeedbackControllerTest.java71 private StatusBarNotification mSbn; field in AssistantFeedbackControllerTest
80 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, in setUp()
163 .setSbn(mSbn) in getEntry()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DShortcutHelperTest.java83 StatusBarNotification mSbn; field in ShortcutHelperTest
99 when(mSbn.getPackageName()).thenReturn(PKG); in setUp()
110 when(mockRecord.getSbn()).thenReturn(mSbn); in setUpMockNotificationRecord()