Home
last modified time | relevance | path

Searched refs:IMPORTANCE_LOW (Results 1 – 25 of 48) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DMinImportancePreferenceControllerTest.java20 import static android.app.NotificationManager.IMPORTANCE_LOW;
115 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notForDefaultChannel()
125 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
133 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_disabledByAdmin()
148 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_notConfigurable()
163 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_systemButConfigurable()
178 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_defaultApp()
202 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_LOW); in testUpdateState_low()
214 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in onPreferenceChange()
DImportancePreferenceControllerTest.java22 import static android.app.NotificationManager.IMPORTANCE_LOW;
132 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notForDefaultChannel()
142 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
221 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in testImportanceLowToHigh()
248 mController.onPreferenceChange(pref, IMPORTANCE_LOW); in testImportanceHighToLow()
250 assertEquals(IMPORTANCE_LOW, channel.getImportance()); in testImportanceHighToLow()
DNotificationPreferenceControllerTest.java21 import static android.app.NotificationManager.IMPORTANCE_LOW;
170 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testCanBeVisible_sameImportance()
173 assertTrue(mController.checkCanBeVisible(IMPORTANCE_LOW)); in testCanBeVisible_sameImportance()
180 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testCanBeVisible_greaterImportance()
190 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testCanBeVisible_lesserImportance()
212 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsBlockable_oemWhitelist()
226 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsBlockable_defaultApp()
DAllowSoundPreferenceControllerTest.java21 import static android.app.NotificationManager.IMPORTANCE_LOW;
122 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
193 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_notCheckedForLowImportanceChannel()
204 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in testOnPreferenceChange_on()
233 assertEquals(IMPORTANCE_LOW, mController.mChannel.getImportance()); in testOnPreferenceChange_off()
DDescriptionPreferenceControllerTest.java19 import static android.app.NotificationManager.IMPORTANCE_LOW;
100 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notIfNoChannelDesc()
117 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_channel()
137 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_channel()
DImportancePreferenceTest.java20 import static android.app.NotificationManager.IMPORTANCE_LOW;
89 preference.setImportance(IMPORTANCE_LOW); in onBindViewHolder_nonConfigurable()
143 verify(preference, times(1)).callChangeListener(IMPORTANCE_LOW); in onClick_changesUICallsListener()
162 preference.setImportanceSummary((ViewGroup) holder.itemView, IMPORTANCE_LOW, true); in setImportanceSummary() local
DAppLinkPreferenceControllerTest.java20 import static android.app.NotificationManager.IMPORTANCE_LOW;
101 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notNoIntent()
112 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
DBlockPreferenceControllerTest.java22 import static android.app.NotificationManager.IMPORTANCE_LOW;
326 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testUpdateState_noCrashIfCalledTwice()
335 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testUpdateState_doesNotResetImportance()
339 assertEquals(IMPORTANCE_LOW, channel.getImportance()); in testUpdateState_doesNotResetImportance()
DDndPreferenceControllerTest.java21 import static android.app.NotificationManager.IMPORTANCE_LOW;
165 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in testOnPreferenceChange_on()
DVibrationPreferenceControllerTest.java22 import static android.app.NotificationManager.IMPORTANCE_LOW;
107 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_LOW); in testIsAvailable_notIfNotImportant()
DLightsPreferenceControllerTest.java22 import static android.app.NotificationManager.IMPORTANCE_LOW;
125 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_LOW); in testIsAvailable_notIfNotImportant()
DBadgePreferenceControllerTest.java21 import static android.app.NotificationManager.IMPORTANCE_LOW;
244 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in testOnPreferenceChange_on_channel()
/packages/apps/DeskClock/src/com/android/deskclock/
DNotificationUtils.java21 import static androidx.core.app.NotificationManagerCompat.IMPORTANCE_LOW;
84 IMPORTANCE_LOW in CHANNEL_PROPS.put() argument
88 IMPORTANCE_LOW in CHANNEL_PROPS.put() argument
97 IMPORTANCE_LOW in CHANNEL_PROPS.put() argument
101 IMPORTANCE_LOW in CHANNEL_PROPS.put() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DImportancePreference.java21 import static android.app.NotificationManager.IMPORTANCE_LOW;
99 mImportance = IMPORTANCE_LOW; in onBindViewHolder()
100 callChangeListener(IMPORTANCE_LOW); in onBindViewHolder()
120 case IMPORTANCE_LOW: in onBindViewHolder()
142 callChangeListener(IMPORTANCE_LOW); in onBindViewHolder()
DMinImportancePreferenceController.java19 import static android.app.NotificationManager.IMPORTANCE_LOW;
59 return mChannel.getImportance() <= IMPORTANCE_LOW; in isAvailable()
77 mChannel.setImportance(checked ? IMPORTANCE_MIN : IMPORTANCE_LOW); in onPreferenceChange()
DAllowSoundPreferenceController.java20 import static android.app.NotificationManager.IMPORTANCE_LOW;
75 ((Boolean) newValue ? IMPORTANCE_UNSPECIFIED : IMPORTANCE_LOW); in onPreferenceChange()
/packages/apps/Settings/src/com/android/settings/notification/
DMinImportancePreferenceController.java19 import static android.app.NotificationManager.IMPORTANCE_LOW;
59 return mChannel.getImportance() <= IMPORTANCE_LOW; in isAvailable()
77 mChannel.setImportance(checked ? IMPORTANCE_MIN : IMPORTANCE_LOW); in onPreferenceChange()
DImportancePreference.java21 import static android.app.NotificationManager.IMPORTANCE_LOW;
119 case IMPORTANCE_LOW: in onBindViewHolder()
133 callChangeListener(IMPORTANCE_LOW); in onBindViewHolder()
136 setImportanceSummary((ViewGroup) holder.itemView, IMPORTANCE_LOW, true); in onBindViewHolder()
DChannelListPreferenceController.java19 import static android.app.NotificationManager.IMPORTANCE_LOW;
183 if (channel.getImportance() > IMPORTANCE_LOW) { in populateSingleChannelPrefs()
207 int importance = value ? IMPORTANCE_LOW : IMPORTANCE_NONE; in populateSingleChannelPrefs()
213 if (channel.getImportance() > IMPORTANCE_LOW) { in populateSingleChannelPrefs()
DAllowSoundPreferenceController.java20 import static android.app.NotificationManager.IMPORTANCE_LOW;
75 ((Boolean) newValue ? IMPORTANCE_UNSPECIFIED : IMPORTANCE_LOW); in onPreferenceChange()
/packages/modules/ExtServices/tests/src/android/ext/services/notification/
DNotificationCategorizerTest.java21 import static android.app.NotificationManager.IMPORTANCE_LOW;
192 when(mEntry.getChannel()).thenReturn(new NotificationChannel("", "", IMPORTANCE_LOW)); in testSystemLowCategory()
193 when(mEntry.getImportance()).thenReturn(IMPORTANCE_LOW); in testSystemLowCategory()
DAssistantTest.java20 import static android.app.NotificationManager.IMPORTANCE_LOW;
75 new NotificationChannel("one", "", IMPORTANCE_LOW);
84 new NotificationChannel("one", "", IMPORTANCE_LOW);
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DNotificationChannelManager.java101 importance = NotificationManager.IMPORTANCE_LOW; in createChannel()
109 importance = NotificationManager.IMPORTANCE_LOW; in createChannel()
/packages/modules/ExtServices/src/android/ext/services/notification/
DAssistant.java19 import static android.app.NotificationManager.IMPORTANCE_LOW;
266 final int importance = entry.getImportance() < IMPORTANCE_LOW in createEnqueuedNotificationAdjustment()
267 ? entry.getImportance() : IMPORTANCE_LOW; in createEnqueuedNotificationAdjustment()
DNotificationEntry.java22 import static android.app.NotificationManager.IMPORTANCE_LOW;
206 requestedImportance = IMPORTANCE_LOW; in calculateInitialImportance()

12