/aosp14/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()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | SmartReplyControllerTest.java | 70 @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 D | NotificationListenerTest.java | 64 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 D | FeedbackInfoTest.java | 83 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 D | PartialConversationInfoTest.java | 88 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 D | NotificationInfoTest.java | 105 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 D | NotificationConversationInfoTest.java | 118 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 D | NotificationEntry.java | 97 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 D | NotificationInfo.java | 125 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 D | PartialConversationInfo.java | 57 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 D | NotificationConversationInfo.java | 105 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 D | NotificationSnooze.java | 82 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 D | NotificationEntryBuilder.java | 53 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 D | BubbleTest.java | 61 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 D | AssistantFeedbackControllerTest.java | 70 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 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()
|