Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerNotificationWarnings.java240 final Notification.Builder nb = in showInvalidChargerNotification() local
250 SystemUI.overrideNotificationAppName(mContext, nb, false); in showInvalidChargerNotification()
251 final Notification n = nb.build(); in showInvalidChargerNotification()
271 final Notification.Builder nb = in showWarningNotification() local
284 nb.setContentIntent(pendingBroadcast(ACTION_SHOW_BATTERY_SETTINGS)); in showWarningNotification()
291 nb.setColor(Utils.getColorAttrDefaultColor(mContext, android.R.attr.colorError)); in showWarningNotification()
295 nb.addAction(0, in showWarningNotification()
299 nb.setOnlyAlertOnce(!mPlaySound); in showWarningNotification()
301 SystemUI.overrideNotificationAppName(mContext, nb, false); in showWarningNotification()
302 final Notification n = nb.build(); in showWarningNotification()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationRecordLoggerTest.java48 Notification.Builder nb = new Notification.Builder(mContext, channel.getId()); in getNotification() local
50 UID, 0, nb.build(), new UserHandle(UID), null, in getNotification()
DNotificationTest.java73 Notification.Builder nb = new Notification.Builder(mContext, "channel"); in testDoesNotStripsExtenders() local
74 nb.extend(new Notification.CarExtender().setColor(Color.RED)); in testDoesNotStripsExtenders()
75 nb.extend(new Notification.TvExtender().setChannelId("different channel")); in testDoesNotStripsExtenders()
76 nb.extend(new Notification.WearableExtender().setDismissalId("dismiss")); in testDoesNotStripsExtenders()
77 Notification before = nb.build(); in testDoesNotStripsExtenders()
DNotificationManagerServiceTest.java714 Notification.Builder nb = new Notification.Builder(mContext, "a") in generateSbn() local
719 nb.build(), new UserHandle(userId), null, postTime); in generateSbn()
725 Notification.Builder nb = new Notification.Builder(mContext, channel.getId()) in generateNotificationRecord() local
732 nb.build(), UserHandle.getUserHandleForUid(mUid), null, 0); in generateNotificationRecord()
745 Notification.Builder nb = new Notification.Builder(mContext, channel.getId()) in generateNotificationRecord() local
750 nb.extend(extender); in generateNotificationRecord()
753 nb.build(), UserHandle.getUserHandleForUid(mUid), null, 0); in generateNotificationRecord()
761 Notification.Builder nb = new Notification.Builder(mContext, channel.getId()) in generateNotificationRecord() local
765 nb.build(), new UserHandle(userId), null, 0); in generateNotificationRecord()
782 Notification.Builder nb = getMessageStyleNotifBuilder(addMetadata, groupKey, isSummary); in generateMessageBubbleNotifRecord() local
[all …]
DGroupHelperTest.java68 Notification.Builder nb = new Notification.Builder(getContext(), "test_channel_id") in getSbn() local
72 nb.setGroup(groupKey); in getSbn()
74 return new StatusBarNotification(pkg, pkg, id, tag, 0, 0, nb.build(), user, null, in getSbn()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginInstanceManager.java362 final Notification.Builder nb = new Notification.Builder(mContext, in handleLoadPlugin()
377 nb.setContentTitle("Plugin \"" + label + "\" is too old") in handleLoadPlugin()
382 nb.setContentTitle("Plugin \"" + label + "\" is too new") in handleLoadPlugin()
390 nb.addAction(new Action.Builder(null, "Disable plugin", pi).build()); in handleLoadPlugin()
392 .notify(SystemMessage.NOTE_PLUGIN, nb.build()); in handleLoadPlugin()
DPluginManagerImpl.java252 final Notification.Builder nb = in onReceive() local
265 nb.addAction(new Action.Builder(null, "Restart SysUI", pi).build()); in onReceive()
267 .notify(SystemMessage.NOTE_PLUGIN, nb.build()); in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationRankingManager.kt77 val nb = b.sbn in <lambda>() constant
116 else -> nb.notification.`when`.compareTo(na.notification.`when`) in <lambda>()
/frameworks/base/core/tests/coretests/src/android/service/notification/
DStatusBarNotificationTest.java194 Notification.Builder nb = getNotificationBuilder(null, CHANNEL_ID) in testIsAppGroup() local
197 sbn = getNotification(PKG, nb); in testIsAppGroup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManagerTest.java484 Notification.Builder nb = new Notification.Builder(mContext, in createTestNotificationRow() local
492 ExpandableNotificationRow row = mHelper.createRow(nb.build()); in createTestNotificationRow()
/frameworks/layoutlib/bridge/src/android/graphics/
DBitmap_Delegate.java450 /*package*/ static void nativeCopyPixelsFromBuffer(long nb, Buffer src) { in nativeCopyPixelsFromBuffer() argument
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java3104 Notification.Builder nb = Notification.Builder.recoverBuilder(appContext, n);
3106 if (nb.getStyle() instanceof Notification.BigTextStyle) {
3107 text = ((Notification.BigTextStyle) nb.getStyle()).getBigText();
3108 } else if (nb.getStyle() instanceof Notification.MessagingStyle) {
3109 Notification.MessagingStyle ms = (Notification.MessagingStyle) nb.getStyle();