/frameworks/base/core/java/com/android/internal/notification/ |
D | SystemNotificationChannels.java | 20 import android.app.NotificationManager; 61 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() 66 NotificationManager.IMPORTANCE_LOW); in createAll() 73 NotificationManager.IMPORTANCE_DEFAULT); in createAll() 82 NotificationManager.IMPORTANCE_LOW); in createAll() 88 NotificationManager.IMPORTANCE_LOW); in createAll() 97 NotificationManager.IMPORTANCE_LOW); in createAll() 104 NotificationManager.IMPORTANCE_LOW); in createAll() 110 NotificationManager.IMPORTANCE_LOW); in createAll() 116 NotificationManager.IMPORTANCE_HIGH); in createAll() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | NotificationChannelController.java | 20 import android.app.NotificationManager; 64 NotificationManager.IMPORTANCE_DEFAULT); in createAll() 73 NotificationManager.IMPORTANCE_LOW); in createAll() 80 NotificationManager.IMPORTANCE_LOW in createAll() 87 NotificationManager.IMPORTANCE_DEFAULT); in createAll() 90 context.getSystemService(NotificationManager.class) in createAll() 94 NotificationManager.IMPORTANCE_HIGH), in createAll() 97 NotificationManager.IMPORTANCE_LOW), in createAll() 109 context.getSystemService(NotificationManager.class) in createAll() 113 context.getSystemService(NotificationManager.class) in createAll() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | NotificationChannels.java | 18 import android.app.NotificationManager; 42 final NotificationManager nm = context.getSystemService(NotificationManager.class); in createAll() 45 NotificationManager.IMPORTANCE_MAX); in createAll() 57 NotificationManager.IMPORTANCE_HIGH); in createAll() 62 NotificationManager.IMPORTANCE_MIN); in createAll() 68 ? NotificationManager.IMPORTANCE_DEFAULT in createAll() 69 : NotificationManager.IMPORTANCE_LOW); in createAll() 74 NotificationManager.IMPORTANCE_DEFAULT); in createAll() 101 NotificationManager.IMPORTANCE_MAX)); in createAll() 113 name, NotificationManager.IMPORTANCE_HIGH); // pop on screen in createScreenshotChannel()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | ZenModeControllerImplTest.java | 25 import android.app.NotificationManager; 51 NotificationManager mNm; 60 mContext.addMockSystemService(NotificationManager.class, mNm); in setUp() 84 NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST; in testAreNotificationsHiddenInShade_zenOffShadeSuppressed() 93 NotificationManager.Policy policy = new NotificationManager.Policy(0, 0, 0, in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed() 94 NotificationManager.Policy.SUPPRESSED_EFFECT_STATUS_BAR); in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed() 104 NotificationManager.Policy policy = new NotificationManager.Policy(0, 0, 0, in testAreNotificationsHiddenInShade_zenOnShadeSuppressed() 105 NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST); in testAreNotificationsHiddenInShade_zenOnShadeSuppressed()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeExtractorTest.java | 19 import static android.app.NotificationManager.IMPORTANCE_LOW; 20 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST; 21 import static android.app.NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK; 32 import android.app.NotificationManager; 63 new NotificationManager.Policy(0,0,0)); in testExtractIntercepted() 78 new NotificationManager.Policy(0,0,0)); in testExtractVisualDisturbancesNotIntercepted() 93 new NotificationManager.Policy(0,0,0, SUPPRESSED_EFFECT_PEEK in testExtractVisualDisturbancesIntercepted() 98 assertEquals(NotificationManager.Policy.SUPPRESSED_EFFECT_PEEK in testExtractVisualDisturbancesIntercepted() 99 | NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST, in testExtractVisualDisturbancesIntercepted()
|
D | NotificationComparatorTest.java | 29 import android.app.NotificationManager; 115 mRecordMinCall.setSystemImportance(NotificationManager.IMPORTANCE_MIN); in setUp() 124 mRecordHighCall.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() 133 mRecordDefaultMedia.setSystemImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp() 140 mRecordInlineReply.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() 149 mRecordSms.setSystemImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp() 157 mRecordStarredContact.setSystemImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp() 164 mRecordContact.setSystemImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp() 170 mRecordUrgent.setSystemImportance(NotificationManager.IMPORTANCE_HIGH); in setUp() 180 mRecordCheater.setSystemImportance(NotificationManager.IMPORTANCE_LOW); in setUp() [all …]
|
D | ImportanceExtractorTest.java | 27 import android.app.NotificationManager; 86 NotificationManager.IMPORTANCE_MIN); in testAppPreferenceChannelNone() 88 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_UNSPECIFIED); in testAppPreferenceChannelNone() 95 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, r.getImportance()); in testAppPreferenceChannelNone() 105 NotificationManager.IMPORTANCE_MIN); in testAppPreferenceChannelPreference() 107 new NotificationChannel("a", "a", NotificationManager.IMPORTANCE_HIGH); in testAppPreferenceChannelPreference() 113 assertEquals(r.getImportance(), NotificationManager.IMPORTANCE_HIGH); in testAppPreferenceChannelPreference()
|
D | PreferencesHelperTest.java | 18 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 19 import static android.app.NotificationManager.IMPORTANCE_HIGH; 20 import static android.app.NotificationManager.IMPORTANCE_LOW; 21 import static android.app.NotificationManager.IMPORTANCE_MAX; 22 import static android.app.NotificationManager.IMPORTANCE_NONE; 23 import static android.app.NotificationManager.IMPORTANCE_UNSPECIFIED; 46 import android.app.NotificationManager; 120 private NotificationManager.Policy mTestNotificationPolicy; 169 mTestNotificationPolicy = new NotificationManager.Policy(0, 0, 0, 0, in setUp() 170 NotificationManager.Policy.STATE_CHANNELS_BYPASSING_DND); in setUp() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ForegroundServiceControllerTest.java | 30 import android.app.NotificationManager; 136 entryAdded(sbn_user1_app1, NotificationManager.IMPORTANCE_DEFAULT); in testNeedsDisclosureAfterRemovingUnrelatedNotification() 141 NotificationManager.IMPORTANCE_DEFAULT); in testNeedsDisclosureAfterRemovingUnrelatedNotification() 144 entryAdded(sbn_user1_app1_fg, NotificationManager.IMPORTANCE_DEFAULT); in testNeedsDisclosureAfterRemovingUnrelatedNotification() 160 entryAdded(sbn_user1_app1, NotificationManager.IMPORTANCE_DEFAULT); in testSimpleAddRemove() 164 NotificationManager.IMPORTANCE_DEFAULT); in testSimpleAddRemove() 170 NotificationManager.IMPORTANCE_DEFAULT); in testSimpleAddRemove() 176 NotificationManager.IMPORTANCE_DEFAULT); in testSimpleAddRemove() 181 NotificationManager.IMPORTANCE_DEFAULT); in testSimpleAddRemove() 186 NotificationManager.IMPORTANCE_DEFAULT); in testSimpleAddRemove() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | ChannelsTest.java | 23 import android.app.NotificationManager; 46 private final NotificationManager mMockNotificationManager = mock(NotificationManager.class); 84 NotificationManager.IMPORTANCE_MIN); in testInheritFromLegacy_keepsUserLockedLegacySettings() 85 legacyChannel.setImportance(NotificationManager.IMPORTANCE_NONE);; in testInheritFromLegacy_keepsUserLockedLegacySettings() 93 assertEquals(NotificationManager.IMPORTANCE_NONE, newChannel.getImportance()); in testInheritFromLegacy_keepsUserLockedLegacySettings() 100 NotificationManager.IMPORTANCE_MIN); in testInheritFromLegacy_dropsUnlockedLegacySettings() 106 assertEquals(NotificationManager.IMPORTANCE_HIGH, newChannel.getImportance()); in testInheritFromLegacy_dropsUnlockedLegacySettings() 115 assertEquals(NotificationManager.IMPORTANCE_HIGH, newChannel.getImportance()); in testInheritFromLegacy_noLegacyExists()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | ZenModeControllerImpl.java | 23 import android.app.NotificationManager; 69 private final NotificationManager mNoMan; 79 private NotificationManager.Policy mConsolidatedNotificationPolicy; 98 mNoMan = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in ZenModeControllerImpl() 121 & NotificationManager.Policy.SUPPRESSED_EFFECT_NOTIFICATION_LIST) != 0; in areNotificationsHiddenInShade() 166 public NotificationManager.Policy getConsolidatedPolicy() { in getConsolidatedPolicy() 183 filter.addAction(NotificationManager.ACTION_EFFECTS_SUPPRESSOR_CHANGED); in onUserSwitched() 191 return NotificationManager.from(mContext).getEffectsSuppressor(); in getEffectsSuppressor() 196 return NotificationManager.from(mContext) in isCountdownConditionSupported() 235 private void fireConsolidatedPolicyChanged(NotificationManager.Policy policy) { in fireConsolidatedPolicyChanged() [all …]
|
D | ZenModeController.java | 19 import android.app.NotificationManager; 34 NotificationManager.Policy getConsolidatedPolicy(); in getConsolidatedPolicy() 52 default void onConsolidatedPolicyChanged(NotificationManager.Policy policy) {} in onConsolidatedPolicyChanged()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/ |
D | EnableZenModeDialogTest.java | 33 import android.app.NotificationManager; 59 private NotificationManager mNotificationManager; 81 NotificationManager.Policy alarmsEnabledPolicy = new NotificationManager.Policy( in setup() 82 NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS, 0, 0, 0); in setup() 169 new NotificationManager.Policy( in testNoAlarmWarning() 170 NotificationManager.Policy.PRIORITY_CATEGORY_ALARMS, 0, 0, 0)); in testNoAlarmWarning() 185 new NotificationManager.Policy(0, 0, 0, 0)); in testAlarmWarning()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ScreenshotServiceErrorReceiver.java | 19 import android.app.NotificationManager; 35 NotificationManager nm = (NotificationManager) in onReceive()
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | TestAlertActivity.java | 4 import android.app.NotificationManager; 27 NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); in onPause()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
D | LeakReporterTest.java | 26 import android.app.NotificationManager; 51 private NotificationManager mNotificationManager; 59 mNotificationManager = mock(NotificationManager.class); in setup() 60 mContext.addMockSystemService(NotificationManager.class, mNotificationManager); in setup()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | ServiceIntentSender.java | 22 import android.app.NotificationManager; 44 NotificationManager.IMPORTANCE_LOW); in ServiceIntentSender() 45 final NotificationManager notificationManager = in ServiceIntentSender() 46 (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in ServiceIntentSender()
|
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
D | SchedulerService.java | 21 import android.app.NotificationManager; 32 getSystemService(NotificationManager.class).createNotificationChannel( in onStartCommand() 34 NotificationManager.IMPORTANCE_DEFAULT)); in onStartCommand()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationComparator.java | 18 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 21 import android.app.NotificationManager; 137 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantColorized() 148 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantOngoing() 156 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantPeople()
|
/frameworks/base/core/java/android/preference/ |
D | SeekBarVolumizer.java | 21 import android.app.NotificationManager; 95 private final NotificationManager mNotificationManager; 130 private NotificationManager.Policy mNotificationPolicy; 148 mNotificationManager = context.getSystemService(NotificationManager.class); in SeekBarVolumizer() 150 mAllowAlarms = (mNotificationPolicy.priorityCategories & NotificationManager.Policy in SeekBarVolumizer() 152 mAllowMedia = (mNotificationPolicy.priorityCategories & NotificationManager.Policy in SeekBarVolumizer() 527 filter.addAction(NotificationManager.ACTION_INTERRUPTION_FILTER_CHANGED); in setListening() 528 filter.addAction(NotificationManager.ACTION_NOTIFICATION_POLICY_CHANGED); in setListening() 565 } else if (NotificationManager.ACTION_INTERRUPTION_FILTER_CHANGED.equals(action)) { in onReceive() 568 } else if (NotificationManager.ACTION_NOTIFICATION_POLICY_CHANGED.equals(action)) { in onReceive() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationData.java | 21 import android.app.NotificationManager; 82 int aImportance = NotificationManager.IMPORTANCE_DEFAULT; 83 int bImportance = NotificationManager.IMPORTANCE_DEFAULT; 101 && aImportance > NotificationManager.IMPORTANCE_MIN; 103 && bImportance > NotificationManager.IMPORTANCE_MIN; 105 boolean aSystemMax = aImportance >= NotificationManager.IMPORTANCE_HIGH 107 boolean bSystemMax = bImportance >= NotificationManager.IMPORTANCE_HIGH 254 if (mTmpRanking.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT in isHighPriority() 293 && mTmpRanking.getImportance() >= NotificationManager.IMPORTANCE_LOW; in isImportantOngoing() 330 return NotificationManager.IMPORTANCE_UNSPECIFIED; in getImportance()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | MockLockSettingsContext.java | 20 import android.app.NotificationManager; 32 private NotificationManager mNotificationManager; 39 NotificationManager notificationManager, DevicePolicyManager devicePolicyManager, in MockLockSettingsContext()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | InstantAppNotifier.java | 30 import android.app.NotificationManager; 101 NotificationManager noMan = mContext.getSystemService(NotificationManager.class); in start() 152 NotificationManager noMan = mContext.getSystemService(NotificationManager.class); in updateForegroundInstantApps() 198 @NonNull NotificationManager noMan, in checkAndPostForPrimaryScreen() 219 @NonNull NotificationManager noMan, in checkAndPostForStack() 250 @NonNull NotificationManager noMan, in postInstantAppNotif()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WrongPasswordNotifier.java | 20 import android.app.NotificationManager; 46 private final NotificationManager mNotificationManager; 53 (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in WrongPasswordNotifier()
|
D | WakeupOnboarding.java | 23 import android.app.NotificationManager; 57 private NotificationManager mNotificationManager; 189 private NotificationManager getNotificationManager() { in getNotificationManager() 191 mNotificationManager = (NotificationManager) in getNotificationManager()
|