HomeSort by relevance Sort by last modified time
    Searched refs:getImportance (Results 1 - 25 of 59) sorted by null

1 2 3

  /frameworks/base/services/core/java/com/android/server/notification/
NotificationComparator.java 89 final int leftImportance = left.getImportance();
90 final int rightImportance = right.getImportance();
121 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) {
132 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) {
140 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) {
150 return mMessagingUtil.isImportantMessaging(record.sbn, record.getImportance());
ImportanceExtractor.java 44 record.setUserImportance(record.getChannel().getImportance());
NotificationIntrusivenessExtractor.java 51 && record.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT) {
RankingConfig.java 28 int getImportance(String packageName, int uid);
RankingHelper.java 506 && record.getImportance() > NotificationManager.IMPORTANCE_MIN
528 public int getImportance(String packageName, int uid) {
639 channel.getImportance() < existing.getImportance()) {
640 existing.setImportance(channel.getImportance());
657 if (channel.getImportance() < IMPORTANCE_NONE
658 || channel.getImportance() > NotificationManager.IMPORTANCE_MAX) {
717 r.importance = updatedChannel.getImportance();
    [all...]
  /frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
ImportanceExtractorTest.java 86 when(mConfig.getImportance(anyString(), anyInt())).thenReturn(
92 int notificationImportance = r.getImportance();
97 assertEquals(notificationImportance, r.getImportance());
105 when(mConfig.getImportance(anyString(), anyInt())).thenReturn(
NotificationListenerServiceTest.java 86 assertEquals(getImportance(i), ranking.getImportance());
119 importance[i] = getImportance(i);
151 private int getImportance(int index) {
160 return new NotificationChannel(key, key, getImportance(index));
  /packages/apps/Settings/src/com/android/settings/notification/
AllowSoundPreferenceController.java 65 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_DEFAULT
66 || mChannel.getImportance() == IMPORTANCE_UNSPECIFIED);
ImportancePreferenceController.java 85 pref.setValue(String.valueOf(mChannel.getImportance()));
98 if (mChannel.getImportance() < IMPORTANCE_DEFAULT
116 int importance = channel.getImportance();
NotificationPreferenceController.java 78 return mChannel.getImportance() != IMPORTANCE_NONE;
119 int importance = mChannel.getImportance();
146 || mChannel.getImportance() == IMPORTANCE_NONE;
BlockPreferenceController.java 82 && mChannel.getImportance() != NotificationManager.IMPORTANCE_NONE);
95 final int originalImportance = mChannel.getImportance();
NotificationSettingsBase.java 280 channelPref.setChecked(channel.getImportance() != IMPORTANCE_NONE);
326 || channel.getImportance() == NotificationManager.IMPORTANCE_NONE;
419 hideDynamicFields = mChannel.getImportance() == IMPORTANCE_NONE;
  /packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
BlockPreferenceControllerTest.java 106 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
132 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE);
142 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
230 assertEquals(IMPORTANCE_LOW, channel.getImportance());
244 assertEquals(IMPORTANCE_NONE, channel.getImportance());
248 assertEquals(IMPORTANCE_UNSPECIFIED, channel.getImportance());
265 assertEquals(IMPORTANCE_NONE, channel.getImportance());
268 assertEquals(IMPORTANCE_DEFAULT, channel.getImportance());
ImportancePreferenceControllerTest.java 106 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE);
115 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW);
125 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW);
133 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
151 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
189 assertEquals(IMPORTANCE_HIGH, channel.getImportance());
208 assertEquals(IMPORTANCE_LOW, channel.getImportance());
NotificationPreferenceControllerTest.java 107 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE);
128 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT);
155 when(channel.getImportance()).thenReturn(IMPORTANCE_UNSPECIFIED);
165 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW);
175 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW);
185 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW);
195 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT);
235 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
258 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE);
AppLinkPreferenceControllerTest.java 91 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE);
100 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW);
111 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW);
AllowSoundPreferenceControllerTest.java 120 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW);
170 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
181 when(channel.getImportance()).thenReturn(IMPORTANCE_UNSPECIFIED);
192 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW);
213 assertEquals(IMPORTANCE_UNSPECIFIED, mController.mChannel.getImportance());
232 assertEquals(IMPORTANCE_LOW, mController.mChannel.getImportance());
DescriptionPreferenceControllerTest.java 90 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE);
99 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW);
116 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW);
136 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW);
BadgePreferenceControllerTest.java 100 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE);
110 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
120 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
141 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
154 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
166 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH);
NotificationsOffPreferenceControllerTest.java 88 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE);
97 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE);
  /cts/hostsidetests/incident/src/com/android/server/cts/
NotificationIncidentTest.java 65 assertTrue(record.getImportance() > IMPORTANCE_NONE);
105 assertTrue("Record importance is an invalid value: " + rp.getImportance(),
106 rp.getImportance() == IMPORTANCE_UNSPECIFIED ||
107 (rp.getImportance() >= IMPORTANCE_NONE && rp.getImportance() <= IMPORTANCE_MAX));
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
ChannelsTest.java 96 assertEquals(NotificationManager.IMPORTANCE_NONE, newChannel.getImportance());
109 assertEquals(NotificationManager.IMPORTANCE_HIGH, newChannel.getImportance());
118 assertEquals(NotificationManager.IMPORTANCE_HIGH, newChannel.getImportance());
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowNotificationManagerTest.java 54 assertThat(channel.getImportance()).isEqualTo(1);
80 assertThat(channel.getImportance()).isEqualTo(1);
83 assertThat(channel.getImportance()).isEqualTo(1);
103 assertThat(channel.getImportance()).isEqualTo(1);
  /frameworks/base/core/java/android/app/
NotificationChannel.java 367 * audio attributes. Notification channels with an {@link #getImportance() importance} of at
488 public int getImportance() {
709 if (getImportance() != DEFAULT_IMPORTANCE) {
711 null, ATT_IMPORTANCE, Integer.toString(getImportance()));
774 if (getImportance() != DEFAULT_IMPORTANCE) {
776 NotificationListenerService.Ranking.importanceToString(getImportance()));
893 if (getImportance() != that.getImportance()) return false;
    [all...]
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
NotificationInfoTest.java 418 int originalImportance = mNotificationChannel.getImportance();
426 assertEquals(originalImportance, mNotificationChannel.getImportance());
441 assertEquals(IMPORTANCE_UNSPECIFIED, mNotificationChannel.getImportance());
631 assertEquals(IMPORTANCE_NONE, updated.getValue().getImportance());
662 assertEquals(IMPORTANCE_NONE, updated.getValue().getImportance());
    [all...]

Completed in 314 milliseconds

1 2 3