Home
last modified time | relevance | path

Searched refs:IMPORTANCE_DEFAULT (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationInfoTest.java20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
212 IMPORTANCE_DEFAULT, in testBindNotification_SetsTextApplicationName()
237 IMPORTANCE_DEFAULT, in testBindNotification_SetsPackageIcon()
258 IMPORTANCE_DEFAULT, in testBindNotification_noDelegate()
289 IMPORTANCE_DEFAULT, in testBindNotification_delegate()
313 IMPORTANCE_DEFAULT, in testBindNotification_GroupNameHiddenIfNoGroup()
340 IMPORTANCE_DEFAULT, in testBindNotification_SetsGroupNameIfNonNull()
362 IMPORTANCE_DEFAULT, in testBindNotification_SetsTextChannelName()
383 IMPORTANCE_DEFAULT, in testBindNotification_DefaultChannelDoesNotUseChannelName()
408 IMPORTANCE_DEFAULT, in testBindNotification_DefaultChannelUsesChannelNameIfMoreChannelsExist()
[all …]
DChannelEditorDialogControllerTest.kt22 import android.app.NotificationManager.IMPORTANCE_DEFAULT
68 channel1 = NotificationChannel(TEST_CHANNEL, TEST_CHANNEL_NAME, IMPORTANCE_DEFAULT) in setup()
69 channel2 = NotificationChannel(TEST_CHANNEL2, TEST_CHANNEL_NAME2, IMPORTANCE_DEFAULT) in setup()
71 NotificationChannel.DEFAULT_CHANNEL_ID, TEST_CHANNEL_NAME, IMPORTANCE_DEFAULT) in setup()
113 val channel3 = NotificationChannel("test_channel_3", "Test channel 3", IMPORTANCE_DEFAULT) in testPrepareDialogForApp_retrievesUpTo4Channels()
114 val channel4 = NotificationChannel("test_channel_4", "Test channel 4", IMPORTANCE_DEFAULT) in testPrepareDialogForApp_retrievesUpTo4Channels()
141 IMPORTANCE_DEFAULT, channel2.importance) in testApply_demoteChannel()
DNotificationGutsManagerTest.java22 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
94 TEST_CHANNEL_ID, TEST_CHANNEL_ID, IMPORTANCE_DEFAULT);
374 row.getEntry().importance = IMPORTANCE_DEFAULT; in testInitializeNotificationInfoView_highPriority()
395 eq(IMPORTANCE_DEFAULT), in testInitializeNotificationInfoView_highPriority()
DNotificationBlockingHelperManagerTest.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
142 new NotificationChannel(Integer.toString(i++), "", IMPORTANCE_DEFAULT); in testPerhapsShowBlockingHelper_notShownForMultiChannelGroup()
DExpandableNotificationRowTest.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
337 new NotificationChannel("id" + i, "dinnertime" + i, IMPORTANCE_DEFAULT); in testGetNumUniqueChildren_multiChannel()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationChannelTest.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
52 new NotificationChannel("1", "one", IMPORTANCE_DEFAULT); in testWriteToParcel()
62 NotificationChannel channel = new NotificationChannel("a", "ab", IMPORTANCE_DEFAULT); in testSystemBlockable()
70 NotificationChannel channel = new NotificationChannel("a", "ab", IMPORTANCE_DEFAULT); in testEmptyVibration_noException()
81 NotificationChannel channel = new NotificationChannel("a", "ab", IMPORTANCE_DEFAULT); in testBackupEmptySound()
92 NotificationChannel restored = new NotificationChannel("a", "ab", IMPORTANCE_DEFAULT); in testBackupEmptySound()
DNotificationIntrusivenessExtractorTest.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
58 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testIntrusive_fillScreen()
76 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testOldNotificationsNotIntrusive()
DNotificationComparatorTest.java133 mRecordDefaultMedia.setSystemImportance(NotificationManager.IMPORTANCE_DEFAULT); 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()
207 mNoMediaSessionMedia.setSystemImportance(NotificationManager.IMPORTANCE_DEFAULT); in setUp()
DNotificationRecordTest.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
91 new NotificationChannel(channelId, "test", NotificationManager.IMPORTANCE_DEFAULT);
328 assertEquals(NotificationManager.IMPORTANCE_DEFAULT, record.getImportance()); in testImportance_upgrade()
867 new NotificationChannel(channelId, "", IMPORTANCE_DEFAULT)); in testCalculateImportance_asstImportanceChannelUpdate()
933 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testIgnoreImportanceAdjustmentsForOemLockedChannels()
941 assertEquals(IMPORTANCE_DEFAULT, record.getImportance()); in testIgnoreImportanceAdjustmentsForOemLockedChannels()
952 assertEquals(IMPORTANCE_DEFAULT, record.getImportance()); in testIgnoreImportanceAdjustmentsForOemLockedChannels()
957 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testIgnoreImportanceAdjustmentsForDefaultAppLockedChannels()
965 assertEquals(IMPORTANCE_DEFAULT, record.getImportance()); in testIgnoreImportanceAdjustmentsForDefaultAppLockedChannels()
976 assertEquals(IMPORTANCE_DEFAULT, record.getImportance()); in testIgnoreImportanceAdjustmentsForDefaultAppLockedChannels()
[all …]
DPreferencesHelperTest.java18 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
1010 update2.setImportance(IMPORTANCE_DEFAULT); in testLockFields_lightsAndImportance()
1495 NotificationManager.IMPORTANCE_DEFAULT); in testCreateChannel_noOverrideSound()
1525 new NotificationChannel("not deleted", "belongs to notDeleted", IMPORTANCE_DEFAULT); in testDeleteGroup()
1528 new NotificationChannel("deleted", "belongs to deleted", IMPORTANCE_DEFAULT); in testDeleteGroup()
1834 NotificationChannel nc = new NotificationChannel("id", "hello", IMPORTANCE_DEFAULT); in testCreateChannel_updateName()
1845 assertEquals(IMPORTANCE_DEFAULT, actual.getImportance()); in testCreateChannel_updateName()
1854 NotificationChannel nc = new NotificationChannel("id", "hello", IMPORTANCE_DEFAULT); in testCreateChannel_addToGroup()
1866 assertEquals(IMPORTANCE_DEFAULT, actual.getImportance()); in testCreateChannel_addToGroup()
2055 NotificationChannel a = new NotificationChannel("a", "a", IMPORTANCE_DEFAULT); in testGetNotificationChannelGroupWithChannels()
[all …]
DRankingHelperTest.java18 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
207 IMPORTANCE_DEFAULT); in getDefaultChannel()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DForegroundServiceControllerTest.java136 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()
207 entryAdded(sbn_user1_app1, NotificationManager.IMPORTANCE_DEFAULT); // not fg in testDisclosureBasic()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationComparator.java18 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
55 final boolean isLeftHighImportance = leftImportance >= IMPORTANCE_DEFAULT; in compare()
56 final boolean isRightHighImportance = rightImportance >= IMPORTANCE_DEFAULT; in compare()
DNotificationIntrusivenessExtractor.java51 && record.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT) { in process()
DNotificationRecord.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
350 int requestedImportance = IMPORTANCE_DEFAULT; in calculateInitialImportance()
361 requestedImportance = IMPORTANCE_DEFAULT; in calculateInitialImportance()
381 if (requestedImportance < IMPORTANCE_DEFAULT) { in calculateInitialImportance()
382 requestedImportance = IMPORTANCE_DEFAULT; in calculateInitialImportance()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DNotificationChannelController.java64 NotificationManager.IMPORTANCE_DEFAULT); in createAll()
87 NotificationManager.IMPORTANCE_DEFAULT); in createAll()
143 NotificationManager.IMPORTANCE_DEFAULT); in migrateVoicemailNotificationSettings()
/frameworks/base/core/java/com/android/internal/notification/
DSystemNotificationChannels.java73 NotificationManager.IMPORTANCE_DEFAULT); in createAll()
142 NotificationManager.IMPORTANCE_DEFAULT); in createAll()
167 NotificationManager.IMPORTANCE_DEFAULT); in createAll()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNotificationChannels.java68 ? NotificationManager.IMPORTANCE_DEFAULT in createAll()
74 NotificationManager.IMPORTANCE_DEFAULT); in createAll()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DChannelEditorListView.kt20 import android.app.NotificationManager.IMPORTANCE_DEFAULT in <lambda>()
181 gentle = importance != IMPORTANCE_UNSPECIFIED && importance < IMPORTANCE_DEFAULT in updateImportance()
DNotificationInfo.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
151 mChosenImportance = IMPORTANCE_DEFAULT;
541 if ((mWasShownHighPriority && mChosenImportance >= IMPORTANCE_DEFAULT)
542 || (!mWasShownHighPriority && mChosenImportance < IMPORTANCE_DEFAULT)) {
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
88 new NotificationChannel("default", "Default", IMPORTANCE_DEFAULT)); in onCreate()
676 "channel for sound and a custom vibration", IMPORTANCE_DEFAULT);
739 "blue", IMPORTANCE_DEFAULT);
756 "red", IMPORTANCE_DEFAULT);
796 "resource sound", IMPORTANCE_DEFAULT);
815 "resource sound", IMPORTANCE_DEFAULT);
835 "vibrate", IMPORTANCE_DEFAULT);
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DSchedulerService.java34 NotificationManager.IMPORTANCE_DEFAULT)); in onStartCommand()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationData.java82 int aImportance = NotificationManager.IMPORTANCE_DEFAULT;
83 int bImportance = NotificationManager.IMPORTANCE_DEFAULT;
254 if (mTmpRanking.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT in isHighPriority()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationTestHelper.java20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
270 IMPORTANCE_DEFAULT); in generateRow()
/frameworks/base/core/tests/coretests/BstatsTestApp/src/com/android/coretests/apps/bstatstestapp/
DTestService.java86 NotificationManager.IMPORTANCE_DEFAULT)); in startForeground()

12