/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | MinImportancePreferenceControllerTest.java | 20 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()
|
D | ImportancePreferenceControllerTest.java | 22 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()
|
D | AllowSoundPreferenceControllerTest.java | 21 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()
|
D | ConversationPriorityPreferenceControllerTest.java | 22 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()
|
D | ConversationPriorityPreferenceTest.java | 20 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()
|
D | ImportancePreferenceTest.java | 20 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
|
D | AppLinkPreferenceControllerTest.java | 20 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()
|
D | BlockPreferenceControllerTest.java | 21 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()
|
D | NotificationPreferenceControllerTest.java | 21 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()
|
D | LightsPreferenceControllerTest.java | 22 import static android.app.NotificationManager.IMPORTANCE_LOW; 132 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_LOW); in testIsAvailable_notIfNotImportant()
|
D | DndPreferenceControllerTest.java | 21 import static android.app.NotificationManager.IMPORTANCE_LOW; 193 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in testOnPreferenceChange_on()
|
D | VibrationPreferenceControllerTest.java | 22 import static android.app.NotificationManager.IMPORTANCE_LOW; 112 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_LOW); in testIsAvailable_notIfNotImportant()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | NotificationUtils.kt | 25 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/ |
D | MinImportancePreferenceController.java | 19 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()
|
D | ConversationPriorityPreference.java | 20 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()
|
D | ImportancePreference.java | 21 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()
|
D | AllowSoundPreferenceController.java | 20 import static android.app.NotificationManager.IMPORTANCE_LOW; 81 ((Boolean) newValue ? IMPORTANCE_UNSPECIFIED : IMPORTANCE_LOW); in onPreferenceChange()
|
D | ChannelListPreferenceController.java | 19 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()
|
D | BlockPreferenceController.java | 19 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/ |
D | NotificationHelperInvalidImportanceTest.java | 18 import static android.app.NotificationManager.IMPORTANCE_LOW; 65 IMPORTANCE_LOW, in provideParams()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiNotificationManager.java | 83 NotificationManager.IMPORTANCE_LOW); in createNotificationChannels() 98 NotificationManager.IMPORTANCE_LOW); in createNotificationChannels()
|
/packages/services/Telecomm/src/com/android/server/telecom/ui/ |
D | NotificationChannelManager.java | 104 importance = NotificationManager.IMPORTANCE_LOW; in createChannel() 112 importance = NotificationManager.IMPORTANCE_LOW; in createChannel()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | ContactsNotificationChannelsUtil.java | 41 NotificationManager.IMPORTANCE_LOW); in createDefaultChannel()
|
/packages/modules/Permission/tests/cts/permission/AppThatRequestOneTimePermission/src/android/permission/cts/appthatrequestpermission/ |
D | KeepAliveForegroundService.java | 60 NotificationManager.IMPORTANCE_LOW)); in onStartCommand()
|
/packages/modules/ExtServices/java/src/android/ext/services/notification/ |
D | NotificationEntry.java | 21 import static android.app.NotificationManager.IMPORTANCE_LOW; 198 requestedImportance = IMPORTANCE_LOW; in calculateInitialImportance()
|