/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerNotificationWarnings.java | 237 final Notification.Builder nb = in showInvalidChargerNotification() local 247 SystemUI.overrideNotificationAppName(mContext, nb, false); in showInvalidChargerNotification() 248 final Notification n = nb.build(); in showInvalidChargerNotification() 268 final Notification.Builder nb = in showWarningNotification() local 281 nb.setContentIntent(pendingBroadcast(ACTION_SHOW_BATTERY_SETTINGS)); in showWarningNotification() 288 nb.setColor(Utils.getColorAttrDefaultColor(mContext, android.R.attr.colorError)); in showWarningNotification() 292 nb.addAction(0, in showWarningNotification() 296 nb.setOnlyAlertOnce(!mPlaySound); in showWarningNotification() 298 SystemUI.overrideNotificationAppName(mContext, nb, false); in showWarningNotification() 299 final Notification n = nb.build(); in showWarningNotification() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationTest.java | 78 Notification.Builder nb = new Notification.Builder(mContext, "channel"); in testStripsExtendersInLowRamModeNoWhitelistNoTv() local 79 nb.extend(new Notification.CarExtender().setColor(Color.RED)); in testStripsExtendersInLowRamModeNoWhitelistNoTv() 80 nb.extend(new Notification.TvExtender().setChannelId("different channel")); in testStripsExtendersInLowRamModeNoWhitelistNoTv() 81 nb.extend(new Notification.WearableExtender().setDismissalId("dismiss")); in testStripsExtendersInLowRamModeNoWhitelistNoTv() 82 Notification before = nb.build(); in testStripsExtendersInLowRamModeNoWhitelistNoTv() 104 Notification.Builder nb = new Notification.Builder(mContext, "channel"); in testStripsExtendersInLowRamModeHasWhitelist() local 105 nb.extend(new Notification.CarExtender().setColor(Color.RED)); in testStripsExtendersInLowRamModeHasWhitelist() 106 nb.extend(new Notification.TvExtender().setChannelId("different channel")); in testStripsExtendersInLowRamModeHasWhitelist() 107 nb.extend(new Notification.WearableExtender().setDismissalId("dismiss")); in testStripsExtendersInLowRamModeHasWhitelist() 108 Notification before = nb.build(); in testStripsExtendersInLowRamModeHasWhitelist() [all …]
|
D | GroupHelperTest.java | 66 Notification.Builder nb = new Notification.Builder(getContext(), "test_channel_id") in getSbn() local 70 nb.setGroup(groupKey); in getSbn() 72 return new StatusBarNotification(pkg, pkg, id, tag, 0, 0, nb.build(), user, null, in getSbn()
|
D | NotificationManagerServiceTest.java | 436 Notification.Builder nb = new Notification.Builder(mContext, "a") in generateSbn() local 440 nb.build(), new UserHandle(userId), null, postTime); in generateSbn() 452 Notification.Builder nb = new Notification.Builder(mContext, channel.getId()) in generateNotificationRecord() local 458 nb.setBubbleMetadata(getBasicBubbleMetadataBuilder().build()); in generateNotificationRecord() 461 nb.build(), new UserHandle(mUid), null, 0); in generateNotificationRecord() 479 Notification.Builder nb = new Notification.Builder(mContext, channel.getId()) in generateNotificationRecord() local 483 nb.extend(extender); in generateNotificationRecord() 486 nb.setBubbleMetadata(getBasicBubbleMetadataBuilder().build()); in generateNotificationRecord() 489 nb.build(), new UserHandle(mUid), null, 0); in generateNotificationRecord() 2578 Notification.Builder nb = new Notification.Builder(mContext, in testNoFakeColorizedPermission() local [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/ |
D | PluginInstanceManager.java | 366 final Notification.Builder nb = new Notification.Builder(mContext, in handleLoadPlugin() 381 nb.setContentTitle("Plugin \"" + label + "\" is too old") in handleLoadPlugin() 386 nb.setContentTitle("Plugin \"" + label + "\" is too new") in handleLoadPlugin() 393 nb.addAction(new Action.Builder(null, "Disable plugin", pi).build()); in handleLoadPlugin() 395 .notifyAsUser(cls, SystemMessage.NOTE_PLUGIN, nb.build(), in handleLoadPlugin()
|
D | PluginManagerImpl.java | 241 final Notification.Builder nb = in onReceive() local 254 nb.addAction(new Action.Builder(null, "Restart SysUI", pi).build()); in onReceive() 256 SystemMessage.NOTE_PLUGIN, nb.build(), UserHandle.ALL); in onReceive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationData.java | 80 final StatusBarNotification nb = b.notification; 107 && isSystemNotification(nb); 135 return Long.compare(nb.getNotification().when, na.getNotification().when);
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationDataTest.java | 251 Notification.Builder nb = Notification.Builder.recoverBuilder(mContext, n); in testIsExemptFromDndVisualSuppression_media() local 252 nb.setStyle(new Notification.MediaStyle().setMediaSession(mock(MediaSession.Token.class))); in testIsExemptFromDndVisualSuppression_media() 253 n = nb.build(); in testIsExemptFromDndVisualSuppression_media()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationGutsManagerTest.java | 492 Notification.Builder nb = new Notification.Builder(mContext, in createTestNotificationRow() local 500 ExpandableNotificationRow row = mHelper.createRow(nb.build()); in createTestNotificationRow()
|
/frameworks/base/core/jni/ |
D | android_media_AudioSystem.cpp | 1996 jsize nb = env->GetArrayLength(deviceTypes); in android_media_AudioSystem_setUidDeviceAffinities() local 1997 if (nb == 0 || nb != env->GetArrayLength(deviceAddresses)) { in android_media_AudioSystem_setUidDeviceAffinities() 2007 for (jint i = 0; i < nb; i++) { in android_media_AudioSystem_setUidDeviceAffinities() 2014 for (jint i = 0; i < nb; i++) { in android_media_AudioSystem_setUidDeviceAffinities()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Bitmap_Delegate.java | 434 /*package*/ static void nativeCopyPixelsFromBuffer(long nb, Buffer src) { in nativeCopyPixelsFromBuffer() argument
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayPolicy.java | 3087 boolean nb = mNavigationBarController.checkShowTransientBarLw() in requestTransientBars() 3089 if (sb || nb) { in requestTransientBars() 3091 if (!nb && swipeTarget == mNavigationBar) { in requestTransientBars() 3096 if (nb) mNavigationBarController.showTransient(); in requestTransientBars()
|