Home
last modified time | relevance | path

Searched refs:IMPORTANCE_NONE (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DHeaderPreferenceControllerTest.java19 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()
DBlockPreferenceControllerTest.java23 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()
DNotificationsOffPreferenceControllerTest.java19 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()
DAppLinkPreferenceControllerTest.java21 import static android.app.NotificationManager.IMPORTANCE_NONE;
92 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
DDescriptionPreferenceControllerTest.java20 import static android.app.NotificationManager.IMPORTANCE_NONE;
91 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
DNotificationPreferenceControllerTest.java23 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()
DHighImportancePreferenceControllerTest.java22 import static android.app.NotificationManager.IMPORTANCE_NONE;
106 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
DMinImportancePreferenceControllerTest.java22 import static android.app.NotificationManager.IMPORTANCE_NONE;
106 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
DImportancePreferenceControllerTest.java23 import static android.app.NotificationManager.IMPORTANCE_NONE;
123 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_ifChannelBlocked()
DBadgePreferenceControllerTest.java22 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/
DNotificationPreferenceController.java19 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()
DBlockPreferenceController.java20 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()
DChannelListPreferenceController.java20 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/
DBlockPreferenceController.java20 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()
DNotificationPreferenceController.java19 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()
DImportancePreference.java23 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()
DNotificationSettingsBase.java20 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()
DNotificationBackend.java18 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/
DChannelNotificationSettingsTest.java20 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/
DNotificationChannelSlice.java20 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/
DNotificationChannelSlice.java20 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/
DNotificationsPreferenceController.java19 import static android.app.NotificationManager.IMPORTANCE_NONE;
86 defaultChannel.setImportance(enabled ? IMPORTANCE_UNSPECIFIED : IMPORTANCE_NONE); in handlePreferenceChanged()
/packages/modules/NetworkStack/src/com/android/networkstack/
DNetworkStackNotifier.java19 import static android.app.NotificationManager.IMPORTANCE_NONE;
305 return channel.getImportance() != IMPORTANCE_NONE; in isVenueInfoNotificationEnabled()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/
DNetworkStackNotifierTest.kt23 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/
DNotificationChannelSliceTest.java20 import static android.app.NotificationManager.IMPORTANCE_NONE;
372 isChannelBlock ? IMPORTANCE_NONE : IMPORTANCE_LOW)); in buildNotificationChannel()

12