Home
last modified time | relevance | path

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

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DMinImportancePreferenceControllerTest.java20 import static android.app.NotificationManager.IMPORTANCE_LOW;
120 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notForDefaultChannel()
130 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
139 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_filteredIn()
149 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_filteredOut()
157 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_disabledByAdmin()
172 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_notConfigurable()
187 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_Configurable()
211 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_LOW); in testUpdateState_low()
223 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in onPreferenceChange()
DImportancePreferenceControllerTest.java22 import static android.app.NotificationManager.IMPORTANCE_LOW;
137 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notForDefaultChannel()
147 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
156 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_filteredIn()
166 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_filteredOut()
229 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in testImportanceLowToHigh()
258 mController.onPreferenceChange(pref, IMPORTANCE_LOW); in testImportanceHighToLow()
260 assertEquals(IMPORTANCE_LOW, channel.getImportance()); in testImportanceHighToLow()
DAllowSoundPreferenceControllerTest.java21 import static android.app.NotificationManager.IMPORTANCE_LOW;
128 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
138 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_filteredIn()
149 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_filteredOut()
208 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_notCheckedForLowImportanceChannel()
220 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in testOnPreferenceChange_on()
251 assertEquals(IMPORTANCE_LOW, mController.mChannel.getImportance()); in testOnPreferenceChange_off()
DConversationPriorityPreferenceControllerTest.java22 import static android.app.NotificationManager.IMPORTANCE_LOW;
195 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in testImportanceLowToImportant()
213 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in testImportanceLowToDefault()
243 mController.onPreferenceChange(pref, new Pair(IMPORTANCE_LOW, false)); in testImportanceDefaultToLow()
245 assertEquals(IMPORTANCE_LOW, channel.getImportance()); in testImportanceDefaultToLow()
253 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in testImportanceLowToDefault_bubblesMaintained()
DConversationPriorityPreferenceTest.java20 import static android.app.NotificationManager.IMPORTANCE_LOW;
90 preference.setImportance(IMPORTANCE_LOW); in onBindViewHolder_selectButtonAndText()
118 verify(preference, times(1)).callChangeListener(new Pair(IMPORTANCE_LOW, false)); in onClick_changesUICallsListener()
DImportancePreferenceTest.java20 import static android.app.NotificationManager.IMPORTANCE_LOW;
88 preference.setImportance(IMPORTANCE_LOW); in onBindViewHolder_nonConfigurable()
142 verify(preference, times(1)).callChangeListener(IMPORTANCE_LOW); in onClick_changesUICallsListener()
161 preference.setImportanceSummary((ViewGroup) holder.itemView, IMPORTANCE_LOW, true); in setImportanceSummary() local
DAppLinkPreferenceControllerTest.java20 import static android.app.NotificationManager.IMPORTANCE_LOW;
103 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notNoIntent()
114 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
DBlockPreferenceControllerTest.java21 import static android.app.NotificationManager.IMPORTANCE_LOW;
236 mController.onResume(appRow, new NotificationChannel("a", "a", IMPORTANCE_LOW), null, null, in testIsEnabled_importanceLocked_channel()
332 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testUpdateState_noCrashIfCalledTwice()
341 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testUpdateState_doesNotResetImportance()
345 assertEquals(IMPORTANCE_LOW, channel.getImportance()); in testUpdateState_doesNotResetImportance()
DNotificationPreferenceControllerTest.java21 import static android.app.NotificationManager.IMPORTANCE_LOW;
189 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testCanBeVisible_sameImportance()
192 assertTrue(mController.checkCanBeVisible(IMPORTANCE_LOW)); in testCanBeVisible_sameImportance()
199 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testCanBeVisible_greaterImportance()
209 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testCanBeVisible_lesserImportance()
DLightsPreferenceControllerTest.java22 import static android.app.NotificationManager.IMPORTANCE_LOW;
132 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_LOW); in testIsAvailable_notIfNotImportant()
DDndPreferenceControllerTest.java21 import static android.app.NotificationManager.IMPORTANCE_LOW;
193 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in testOnPreferenceChange_on()
DVibrationPreferenceControllerTest.java22 import static android.app.NotificationManager.IMPORTANCE_LOW;
112 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_LOW); in testIsAvailable_notIfNotImportant()
/packages/apps/DeskClock/src/com/android/deskclock/
DNotificationUtils.kt25 import androidx.core.app.NotificationManagerCompat.IMPORTANCE_LOW
76 IMPORTANCE_LOW
80 IMPORTANCE_LOW
89 IMPORTANCE_LOW
93 IMPORTANCE_LOW
/packages/apps/Settings/src/com/android/settings/notification/app/
DMinImportancePreferenceController.java19 import static android.app.NotificationManager.IMPORTANCE_LOW;
60 return mChannel.getImportance() <= IMPORTANCE_LOW; in isAvailable()
83 mChannel.setImportance(checked ? IMPORTANCE_MIN : IMPORTANCE_LOW); in onPreferenceChange()
DConversationPriorityPreference.java20 import static android.app.NotificationManager.IMPORTANCE_LOW;
115 callChangeListener(new Pair(IMPORTANCE_LOW, false)); in onBindViewHolder()
116 updateToggles((ViewGroup) holder.itemView, IMPORTANCE_LOW, false, true); in onBindViewHolder()
148 if (importance <= IMPORTANCE_LOW && importance > IMPORTANCE_UNSPECIFIED) { in updateToggles()
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()
DAllowSoundPreferenceController.java20 import static android.app.NotificationManager.IMPORTANCE_LOW;
81 ((Boolean) newValue ? IMPORTANCE_UNSPECIFIED : IMPORTANCE_LOW); in onPreferenceChange()
DChannelListPreferenceController.java19 import static android.app.NotificationManager.IMPORTANCE_LOW;
353 if (channel.getImportance() > IMPORTANCE_LOW) { in updateSingleChannelPrefs()
379 ? Math.max(channel.getOriginalImportance(), IMPORTANCE_LOW) in updateSingleChannelPrefs()
385 if (channel.getImportance() > IMPORTANCE_LOW) { in updateSingleChannelPrefs()
DBlockPreferenceController.java19 import static android.app.NotificationManager.IMPORTANCE_LOW;
119 : Math.max(mChannel.getOriginalImportance(), IMPORTANCE_LOW); in onCheckedChanged()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/
DNotificationHelperInvalidImportanceTest.java18 import static android.app.NotificationManager.IMPORTANCE_LOW;
65 IMPORTANCE_LOW, in provideParams()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiNotificationManager.java83 NotificationManager.IMPORTANCE_LOW); in createNotificationChannels()
98 NotificationManager.IMPORTANCE_LOW); in createNotificationChannels()
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DNotificationChannelManager.java104 importance = NotificationManager.IMPORTANCE_LOW; in createChannel()
112 importance = NotificationManager.IMPORTANCE_LOW; in createChannel()
/packages/apps/Contacts/src/com/android/contacts/util/
DContactsNotificationChannelsUtil.java41 NotificationManager.IMPORTANCE_LOW); in createDefaultChannel()
/packages/modules/Permission/tests/cts/permission/AppThatRequestOneTimePermission/src/android/permission/cts/appthatrequestpermission/
DKeepAliveForegroundService.java60 NotificationManager.IMPORTANCE_LOW)); in onStartCommand()
/packages/modules/ExtServices/java/src/android/ext/services/notification/
DNotificationEntry.java21 import static android.app.NotificationManager.IMPORTANCE_LOW;
198 requestedImportance = IMPORTANCE_LOW; in calculateInitialImportance()

123