/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
NotificationManagerTest.java | 30 assertEquals(notification1, shadowOf(notificationManager).getNotification(1)); 34 assertEquals(notification2, shadowOf(notificationManager).getNotification(31)); 43 assertEquals(notification2, shadowOf(notificationManager).getNotification(1)); 50 assertEquals(notification1, shadowOf(notificationManager).getNotification("a tag")); 57 assertNull(shadowOf(notificationManager).getNotification(null)); 64 assertNull(shadowOf(notificationManager).getNotification("unknown tag")); 73 assertNull(shadowOf(notificationManager).getNotification(1)); 82 assertNull(shadowOf(notificationManager).getNotification(1)); 83 assertNull(shadowOf(notificationManager).getNotification("a tag")); 93 assertNull(shadowOf(notificationManager).getNotification(1)) [all...] |
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/ |
MessagingConverter.java | 35 Notification notification = sbn.getNotification(); 42 CarExtender ce = new CarExtender(sbn.getNotification()); 77 CarExtender ce = new CarExtender(sbn.getNotification()); 82 largeIcon = sbn.getNotification().largeIcon;
|
/frameworks/base/services/core/java/com/android/server/notification/ |
NotificationAdjustmentExtractor.java | 34 if (record == null || record.getNotification() == null) {
|
NotificationIntrusivenessExtractor.java | 45 if (record == null || record.getNotification() == null) { 58 if (record.getNotification().fullScreenIntent != null) {
|
NotificationComparator.java | 109 final int leftPriority = left.sbn.getNotification().priority; 110 final int rightPriority = right.sbn.getNotification().priority; 124 return record.getNotification().isColorized(); 155 return (record.getNotification().flags & ongoingFlags) != 0; 159 return record.getNotification().hasMediaSession();
|
ImportanceExtractor.java | 35 if (record == null || record.getNotification() == null) {
|
NotificationChannelExtractor.java | 35 if (record == null || record.getNotification() == null) {
|
PriorityExtractor.java | 36 if (record == null || record.getNotification() == null) {
|
VisibilityExtractor.java | 36 if (record == null || record.getNotification() == null) {
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
NotificationRecordTest.java | 128 private StatusBarNotification getNotification(String pkg, boolean noisy, boolean defaultSound, 187 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, 200 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, 214 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, 226 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, 239 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, 252 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, 264 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, 277 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, 289 StatusBarNotification sbn = getNotification(PKG_O, false /* noisy */ [all...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowNotificationManagerTest.java | 136 assertEquals(notification1, shadowOf(notificationManager).getNotification(null, 1)); 140 assertEquals(notification2, shadowOf(notificationManager).getNotification(null, 31)); 149 assertEquals(notification2, shadowOf(notificationManager).getNotification(null, 1)); 156 assertEquals(notification1, shadowOf(notificationManager).getNotification("a tag", 1)); 163 assertNull(shadowOf(notificationManager).getNotification(null, 1)); 170 assertNull(shadowOf(notificationManager).getNotification("unknown tag", 1)); 179 assertNull(shadowOf(notificationManager).getNotification(null, 1)); 188 assertNull(shadowOf(notificationManager).getNotification(null, 1)); 189 assertNull(shadowOf(notificationManager).getNotification("a tag", 1)); 199 assertNull(shadowOf(notificationManager).getNotification(null, 1)) [all...] |
ShadowServiceTest.java | 70 assertThat(nm.getNotification(23)).isSameAs(n); 85 assertThat(nm.getNotification(21)).isNull(); 97 assertThat(nm.getNotification(21)).isSameAs(n); 109 assertThat(nm.getNotification(21)).isNull();
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
CrossProfileNotificationListenerService.java | 58 if (NOTIFICATION_CHANNEL.equals(sbn.getNotification().getChannelId())) { 62 + sbn.getNotification().getChannelId());
|
/development/samples/AppNavigation/src/com/example/android/appnavigation/app/ |
NotificationsActivity.java | 50 nm.notify("direct_tag", R.id.direct_notification, builder.getNotification()); 65 nm.notify("interstitial_tag", R.id.interstitial_notification, builder.getNotification());
|
/frameworks/base/core/java/android/service/notification/ |
StatusBarNotification.java | 118 if (overrideGroupKey != null && getNotification().isGroupSummary()) { 128 final String group = getNotification().getGroup(); 129 final String sortKey = getNotification().getSortKey(); 155 if (getNotification().getGroup() != null || getNotification().getSortKey() != null) { 288 public Notification getNotification() { 328 return getNotification().getGroup();
|
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/supl_notify/ |
Ver2_SUPLNOTIFY.java | 102 public Notification getNotification() { 128 return getNotification() != null; 140 return getNotification(); 163 + getNotification().toIndentedString(indent);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
NotificationBigPictureTemplateViewWrapper.java | 45 final Bundle extras = notification.getNotification().extras;
|
/packages/apps/Dialer/java/com/android/dialer/notification/ |
NotificationManagerUtils.java | 34 if (TextUtils.equals(groupKey, notification.getNotification().getGroup())) {
|
DialerNotificationManager.java | 96 return notification.getNotification().getGroup(); 108 if (TextUtils.equals(groupKey, notification.getNotification().getGroup())) { 109 if ((notification.getNotification().flags & Notification.FLAG_GROUP_SUMMARY) != 0) {
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowNotificationManager.java | 61 public Notification getNotification(int id) { 65 public Notification getNotification(String tag) {
|
/frameworks/support/samples/SupportAppNavigation/src/main/java/com/example/android/support/appnavigation/app/ |
NotificationsActivity.java | 64 nm.notify("direct_tag", R.id.direct_notification, builder.getNotification()); 79 nm.notify("interstitial_tag", R.id.interstitial_notification, builder.getNotification());
|
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/ |
NotificationSecurityTests.java | 68 Log.i(LOG_TAG, sbn.getNotification().extras.getString(Notification.EXTRA_TITLE)); 70 String sentTitle = sbn.getNotification().extras.getString(Notification.EXTRA_TITLE);
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
ForegroundServiceControllerTest.java | 323 sbn_user1_app1_fg_sneaky.getNotification().flags = 0; 329 sbn_user1_app1_fg_sneaky.getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE; 342 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE; 359 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE; 387 sbn_user1_app1.getNotification().flags = 0; 402 sbn_user1_app1_fg_sneaky.getNotification().flags = 0; 407 sbn_user1_app1_fg_sneaky.getNotification().flags = Notification.FLAG_FOREGROUND_SERVICE; 425 sbn_user1_app1.getNotification().flags |= Notification.FLAG_FOREGROUND_SERVICE; 450 when(sbn.getNotification()).thenReturn(n); 465 sbn.getNotification().contentView = null [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
NotificationDataTest.java | 220 sbn.getNotification().extras = bundle; 230 sbn.getNotification().extras = bundle; 258 sbn.getNotification().extras = bundle; 306 Notification n = mMockStatusBarNotification.getNotification(); 319 Notification n = mMockStatusBarNotification.getNotification(); 323 when(mMockStatusBarNotification.getNotification()).thenReturn(n); 349 when(mMockStatusBarNotification.getNotification()).thenReturn( 355 when(mMockStatusBarNotification.getNotification()).thenReturn( 360 when(mMockStatusBarNotification.getNotification()).thenReturn( 365 when(mMockStatusBarNotification.getNotification()).thenReturn [all...] |
/packages/experimental/NotificationListenerSample/src/com/android/example/notificationlistener/ |
Listener.java | 207 if ((sbn.getNotification().flags & Notification.FLAG_AUTO_CANCEL) != 0 && 208 sbn.getNotification().contentIntent != null) { 210 sbn.getNotification().contentIntent.send(); 224 if (sbn.getNotification().contentIntent != null) { 226 sbn.getNotification().contentIntent.send(); 231 if ((sbn.getNotification().flags & Notification.FLAG_AUTO_CANCEL) != 0) {
|