/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | HeaderPreferenceControllerTest.java | 19 import static android.app.NotificationManager.IMPORTANCE_NONE; 112 NotificationChannel channel = new NotificationChannel("cid", "cname", IMPORTANCE_NONE); in testGetLabel() 117 NotificationChannel.DEFAULT_CHANNEL_ID, "", IMPORTANCE_NONE); in testGetLabel() 133 NotificationChannel channel = new NotificationChannel("cid", "cname", IMPORTANCE_NONE); in testGetSummary() 143 NotificationChannel.DEFAULT_CHANNEL_ID, "", IMPORTANCE_NONE); in testGetSummary()
|
D | BlockPreferenceControllerTest.java | 23 import static android.app.NotificationManager.IMPORTANCE_NONE; 154 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_systemApp() 302 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_NONE); in testUpdateState_channelBlocked() 353 assertEquals(IMPORTANCE_NONE, channel.getImportance()); in testOnSwitchChanged_channel_default() 374 assertEquals(IMPORTANCE_NONE, channel.getImportance()); in testOnSwitchChanged_channel_nonDefault()
|
D | NotificationsOffPreferenceControllerTest.java | 19 import static android.app.NotificationManager.IMPORTANCE_NONE; 90 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_yesIfChannelBlocked() 99 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testUpdateState_channel()
|
D | AppLinkPreferenceControllerTest.java | 21 import static android.app.NotificationManager.IMPORTANCE_NONE; 92 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
|
D | DescriptionPreferenceControllerTest.java | 20 import static android.app.NotificationManager.IMPORTANCE_NONE; 91 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
|
D | NotificationPreferenceControllerTest.java | 23 import static android.app.NotificationManager.IMPORTANCE_NONE; 111 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in isAvailable_notIfChannelBlocked() 273 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsChannelBlockable_canUndoSystemBlock()
|
D | HighImportancePreferenceControllerTest.java | 22 import static android.app.NotificationManager.IMPORTANCE_NONE; 106 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
|
D | MinImportancePreferenceControllerTest.java | 22 import static android.app.NotificationManager.IMPORTANCE_NONE; 106 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
|
D | ImportancePreferenceControllerTest.java | 23 import static android.app.NotificationManager.IMPORTANCE_NONE; 123 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_ifChannelBlocked()
|
D | BadgePreferenceControllerTest.java | 22 import static android.app.NotificationManager.IMPORTANCE_NONE; 103 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | NotificationPreferenceController.java | 19 import static android.app.NotificationManager.IMPORTANCE_NONE; 82 return mChannel.getImportance() != IMPORTANCE_NONE; in isAvailable() 123 return channel.getImportance() == IMPORTANCE_NONE; in isChannelBlockable() 127 || channel.getImportance() == IMPORTANCE_NONE; in isChannelBlockable()
|
D | BlockPreferenceController.java | 20 import static android.app.NotificationManager.IMPORTANCE_NONE; 90 && mChannel.getImportance() != NotificationManager.IMPORTANCE_NONE); in updateState() 107 if (blocked || originalImportance == IMPORTANCE_NONE) { in onSwitchChanged() 108 final int importance = blocked ? IMPORTANCE_NONE in onSwitchChanged()
|
D | ChannelListPreferenceController.java | 20 import static android.app.NotificationManager.IMPORTANCE_NONE; 191 channelPref.setChecked(channel.getImportance() != IMPORTANCE_NONE); in populateSingleChannelPrefs() 207 int importance = value ? IMPORTANCE_LOW : IMPORTANCE_NONE; in populateSingleChannelPrefs() 217 importance != IMPORTANCE_NONE); in populateSingleChannelPrefs() local
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | BlockPreferenceController.java | 20 import static android.app.NotificationManager.IMPORTANCE_NONE; 83 && mChannel.getImportance() != NotificationManager.IMPORTANCE_NONE); in updateState() 100 if (blocked || originalImportance == IMPORTANCE_NONE) { in onSwitchChanged() 101 final int importance = blocked ? IMPORTANCE_NONE in onSwitchChanged()
|
D | NotificationPreferenceController.java | 19 import static android.app.NotificationManager.IMPORTANCE_NONE; 80 return mChannel.getImportance() != IMPORTANCE_NONE; in isAvailable() 126 return mChannel.getImportance() == IMPORTANCE_NONE; in isChannelBlockable() 135 || mChannel.getImportance() == IMPORTANCE_NONE; in isChannelBlockable()
|
D | ImportancePreference.java | 23 import static android.app.NotificationManager.IMPORTANCE_NONE; 98 if (mImportance == IMPORTANCE_NONE) { in onBindViewHolder() 112 case IMPORTANCE_NONE: in onBindViewHolder() 138 callChangeListener(IMPORTANCE_NONE); in onBindViewHolder()
|
D | NotificationSettingsBase.java | 20 import static android.app.NotificationManager.IMPORTANCE_NONE; 284 channelPref.setChecked(channel.getImportance() != IMPORTANCE_NONE); in populateSingleChannelPrefs() 303 int importance = value ? IMPORTANCE_LOW : IMPORTANCE_NONE; in populateSingleChannelPrefs() 332 || channel.getImportance() == NotificationManager.IMPORTANCE_NONE; in isChannelBlockable() 425 hideDynamicFields = mChannel.getImportance() == IMPORTANCE_NONE; in onImportanceChanged()
|
D | NotificationBackend.java | 18 import static android.app.NotificationManager.IMPORTANCE_NONE; 149 defaultChannel.setImportance(enabled ? IMPORTANCE_UNSPECIFIED : IMPORTANCE_NONE); in setNotificationsEnabledForPackage()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/ |
D | ChannelNotificationSettingsTest.java | 20 import static android.app.NotificationManager.IMPORTANCE_NONE; 90 new NotificationChannel("blocked", "blocked", IMPORTANCE_NONE); in launchNotificationSettings_blockedChannel() 95 blocked.setImportance(IMPORTANCE_NONE); in launchNotificationSettings_blockedChannel()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | NotificationChannelSlice.java | 20 import static android.app.NotificationManager.IMPORTANCE_NONE; 197 final int importance = newState ? IMPORTANCE_LOW : IMPORTANCE_NONE; in onNotifyChange() 291 null /* actionTitle */, channel.getImportance() != IMPORTANCE_NONE))); in getNotificationChannelRows() 410 if (channel.getImportance() != IMPORTANCE_NONE) { in isAllChannelsBlocked() 470 || channel.getImportance() == IMPORTANCE_NONE; in isChannelBlockable()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/ |
D | NotificationChannelSlice.java | 20 import static android.app.NotificationManager.IMPORTANCE_NONE; 201 final int importance = newState ? IMPORTANCE_LOW : IMPORTANCE_NONE; in onNotifyChange() 286 null /* actionTitle */, channel.getImportance() != IMPORTANCE_NONE))); in getNotificationChannelRows() 409 if (channel.getImportance() != IMPORTANCE_NONE) { in isAllChannelsBlocked() 469 || channel.getImportance() == IMPORTANCE_NONE; in isChannelBlockable()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | NotificationsPreferenceController.java | 19 import static android.app.NotificationManager.IMPORTANCE_NONE; 86 defaultChannel.setImportance(enabled ? IMPORTANCE_UNSPECIFIED : IMPORTANCE_NONE); in handlePreferenceChanged()
|
/packages/modules/NetworkStack/src/com/android/networkstack/ |
D | NetworkStackNotifier.java | 19 import static android.app.NotificationManager.IMPORTANCE_NONE; 305 return channel.getImportance() != IMPORTANCE_NONE; in isVenueInfoNotificationEnabled()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/ |
D | NetworkStackNotifierTest.kt | 23 import android.app.NotificationManager.IMPORTANCE_NONE 255 val channel = NotificationChannel(CHANNEL_VENUE_INFO, "test channel", IMPORTANCE_NONE) in testConnectedVenueInfoNotification_VenueInfoDisabled()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | NotificationChannelSliceTest.java | 20 import static android.app.NotificationManager.IMPORTANCE_NONE; 372 isChannelBlock ? IMPORTANCE_NONE : IMPORTANCE_LOW)); in buildNotificationChannel()
|