Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationListenerTest.java66 private StatusBarNotification mSbn; field in NotificationListenerTest
81 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
87 mListener.onNotificationPosted(mSbn, mRanking); in testNotificationAddCallsAddNotification()
89 verify(mEntryManager).addNotification(mSbn, mRanking); in testNotificationAddCallsAddNotification()
94 when(mNotificationData.get(mSbn.getKey())).thenReturn(new NotificationEntry(mSbn)); in testNotificationUpdateCallsUpdateNotification()
95 mListener.onNotificationPosted(mSbn, mRanking); in testNotificationUpdateCallsUpdateNotification()
97 verify(mEntryManager).updateNotification(mSbn, mRanking); in testNotificationUpdateCallsUpdateNotification()
102 mListener.onNotificationRemoved(mSbn, mRanking); in testNotificationRemovalCallsRemoveNotification()
104 verify(mEntryManager).removeNotification(eq(mSbn.getKey()), eq(mRanking), anyInt()); in testNotificationRemovalCallsRemoveNotification()
DSmartReplyControllerTest.java70 @Mock private StatusBarNotification mSbn; field in SmartReplyControllerTest
95 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, in setUp()
97 mEntry = new NotificationEntry(mSbn); in setUp()
108 argThat(sbn -> sbn.getKey().equals(mSbn.getKey())), isNull()); in testSendSmartReply_updatesRemoteInput()
117 verify(mIStatusBarService).onNotificationSmartReplySent(mSbn.getKey(), in testSendSmartReply_logsToStatusBar()
128 verify(mIStatusBarService).onNotificationSmartReplySent(mSbn.getKey(), in testSendSmartReply_logsToStatusBar_modifiedBeforeSending()
140 verify(mIStatusBarService).onNotificationSmartSuggestionsAdded(mSbn.getKey(), in testShowSmartSuggestions_logsToStatusBar()
149 assertTrue(mSmartReplyController.isSendingSmartReply(mSbn.getKey())); in testSendSmartReply_reportsSending()
158 assertFalse(mSmartReplyController.isSendingSmartReply(mSbn.getKey())); in testSendingSmartReply_afterRemove_shouldReturnFalse()
DNotificationRemoteInputManagerTest.java63 private StatusBarNotification mSbn; field in NotificationRemoteInputManagerTest
77 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, in setUp()
79 mEntry = new NotificationEntry(mSbn); in setUp()
93 mRemoteInputManager.onPerformRemoveNotification(mEntry, mSbn.getKey()); in testPerformOnRemoveNotification()
DAlertingNotificationManagerTest.java74 private StatusBarNotification mSbn; field in AlertingNotificationManagerTest
131 mSbn = createNewNotification(0 /* id */); in setUp()
132 mEntry = new NotificationEntry(mSbn); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DForegroundServiceLifetimeExtenderTest.java42 private StatusBarNotification mSbn; field in ForegroundServiceLifetimeExtenderTest
54 mSbn = mock(StatusBarNotification.class); in setup()
55 when(mSbn.getNotification()).thenReturn(mNotif); in setup()
57 mEntry = new NotificationEntry(mSbn); in setup()
65 when(mSbn.getPostTime()).thenReturn(System.currentTimeMillis()); in testShouldExtendLifetime_should_foreground()
72 when(mSbn.getPostTime()).thenReturn(System.currentTimeMillis() - MIN_FGS_TIME_MS - 1); in testShouldExtendLifetime_shouldNot_foreground()
79 when(mSbn.getPostTime()).thenReturn(System.currentTimeMillis() - MIN_FGS_TIME_MS - 1); in testShouldExtendLifetime_shouldNot_notForeground()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationInfoTest.java108 private StatusBarNotification mSbn; field in NotificationInfoTest
165 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
206 mSbn, in testBindNotification_SetsTextApplicationName()
231 mSbn, in testBindNotification_SetsPackageIcon()
252 mSbn, in testBindNotification_noDelegate()
268 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, "other", 0, null, TEST_UID, 0, in testBindNotification_delegate()
283 mSbn, in testBindNotification_delegate()
307 mSbn, in testBindNotification_GroupNameHiddenIfNoGroup()
334 mSbn, in testBindNotification_SetsGroupNameIfNonNull()
356 mSbn, in testBindNotification_SetsTextChannelName()
[all …]
DAppOpsInfoTest.java71 private StatusBarNotification mSbn; field in AppOpsInfoTest
90 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, 0, in setUp()
97 mAppOpsInfo.bindGuts(mMockPackageManager, null, mSbn, new ArraySet<>()); in testBindNotification_SetsTextApplicationName()
107 mAppOpsInfo.bindGuts(mMockPackageManager, null, mSbn, new ArraySet<>()); in testBindNotification_SetsPackageIcon()
123 }, mSbn, expectedOps); in testBindNotification_SetsOnClickListenerForSettings()
142 }, mSbn, expectedOps); in testOk()
154 mAppOpsInfo.bindGuts(mMockPackageManager, null, mSbn, expectedOps); in testPrompt_camera()
163 mAppOpsInfo.bindGuts(mMockPackageManager, null, mSbn, expectedOps); in testPrompt_mic()
172 mAppOpsInfo.bindGuts(mMockPackageManager, null, mSbn, expectedOps); in testPrompt_overlay()
182 mAppOpsInfo.bindGuts(mMockPackageManager, null, mSbn, expectedOps); in testPrompt_camera_mic()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationEntryManagerTest.java138 private StatusBarNotification mSbn; field in NotificationEntryManagerTest
238 mSbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME, 0, null, TEST_UID, in setUp()
240 mEntry = new NotificationEntry(mSbn); in setUp()
271 mEntryManager.addNotification(mSbn, mRankingMap); in testAddNotification()
282 verify(mBindCallback).onBindRow(entryCaptor.capture(), any(), eq(mSbn), any()); in testAddNotification()
290 assertEquals(mEntryManager.getNotificationData().get(mSbn.getKey()), entry); in testAddNotification()
305 mEntryManager.updateNotification(mSbn, mRankingMap); in testUpdateNotification()
331 mEntryManager.updateNotification(mSbn, mRankingMap); in testUpdateNotification_prePostEntryOrder()
355 mEntryManager.removeNotification(mSbn.getKey(), mRankingMap, UNDEFINED_DISMISS_REASON); in testRemoveNotification()
364 assertNull(mEntryManager.getNotificationData().get(mSbn.getKey())); in testRemoveNotification()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationInfo.java130 private StatusBarNotification mSbn; field in NotificationInfo
196 mCheckSaveListener.checkSave(saveImportance, mSbn); in handleSaveImportance()
294 mSbn = sbn; in bindNotification()
305 mAppUid = mSbn.getUid(); in bindNotification()
306 mDelegatePkg = mSbn.getOpPkg(); in bindNotification()
418 mSbn.getId(), mSbn.getTag()); in bindHeader()
420 && !TextUtils.isEmpty(mSbn.getNotification().getSettingsText())) { in bindHeader()
857 return mSbn == null ? new LogMaker(MetricsEvent.NOTIFICATION_BLOCKING_HELPER)
858 : mSbn.getLogMaker().setCategory(MetricsEvent.NOTIFICATION_BLOCKING_HELPER);
DAppOpsInfo.java48 private StatusBarNotification mSbn; field in AppOpsInfo
71 mSbn = sbn; in bindGuts()
96 mAppUid = mSbn.getUid(); in bindHeader()
DNotificationSnooze.java80 private StatusBarNotification mSbn; field in NotificationSnooze
219 mSbn = sbn; in setStatusBarNotification()
424 mSnoozeListener.snooze(mSbn, mSelectedOption); in handleCloseControls()
DNotificationContentInflater.java839 private final StatusBarNotification mSbn; field in NotificationContentInflater.AsyncInflationTask
869 mSbn = notification; in AsyncInflationTask()
896 mSbn.getNotification()); in doInBackground()
898 Context packageContext = mSbn.getPackageContext(mContext); in doInBackground()
899 Notification notification = mSbn.getNotification(); in doInBackground()