/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | ConversationPromotePreferenceControllerTest.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 91 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_notConversation() 99 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_conversation_notDemoted() 108 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_conversation_demoted() 118 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_filteredIn() 129 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_filteredOut() 139 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testHandlePreferenceClick() 162 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testHandlePreferenceClick_wrongKey()
|
D | ConversationDemotePreferenceControllerTest.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 89 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_notConversation() 97 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_conversation_demoted() 107 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_conversation_notDemoted() 117 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_filteredIn() 128 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_filteredOut() 138 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testHandlePreferenceClick()
|
D | LightsPreferenceControllerTest.java | 20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 115 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_notIfConfigNotAllowed() 124 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_notIfSettingNotAllowed() 141 new NotificationChannel(DEFAULT_CHANNEL_ID, "", IMPORTANCE_DEFAULT); in testIsAvailable_notIfDefaultChannel() 149 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable() 157 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_filteredIn() 166 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_filteredOut() 211 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_DEFAULT); in testOnPreferenceChange_on()
|
D | ImportancePreferenceTest.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 77 preference.setImportance(IMPORTANCE_DEFAULT); in onBindViewHolder_nonConfigurable() 109 preference.setImportance(IMPORTANCE_DEFAULT); in onBindViewHolder_selectButtonAndText() 132 preference.setImportance(IMPORTANCE_DEFAULT); in onClick_changesUICallsListener() 153 preference.setImportance(IMPORTANCE_DEFAULT); in setImportanceSummary() 175 preference.setImportance(IMPORTANCE_DEFAULT); in setImportanceSummary_default() 183 preference.setImportanceSummary((ViewGroup) holder.itemView, IMPORTANCE_DEFAULT, true); in setImportanceSummary_default() local
|
D | ConversationPriorityPreferenceControllerTest.java | 20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 108 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable() 116 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_filteredIn() 129 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_filteredOut() 180 channel.setOriginalImportance(IMPORTANCE_DEFAULT); in testUpdateState() 188 verify(pref, times(1)).setOriginalImportance(IMPORTANCE_DEFAULT); in testUpdateState() 233 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_DEFAULT); in testImportanceDefaultToLow() 263 mController.onPreferenceChange(pref, new Pair(IMPORTANCE_DEFAULT, false)); in testImportanceLowToDefault_bubblesMaintained() 265 assertEquals(IMPORTANCE_DEFAULT, channel.getImportance()); in testImportanceLowToDefault_bubblesMaintained()
|
D | VibrationPreferenceControllerTest.java | 20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 104 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_notSystemDoesNotHave() 121 new NotificationChannel(DEFAULT_CHANNEL_ID, "", IMPORTANCE_DEFAULT); in testIsAvailable_notIfDefaultChannel() 129 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable() 137 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_filteredIn() 146 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_filteredOut() 218 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_DEFAULT); in testOnPreferenceChange_on()
|
D | ConversationPriorityPreferenceTest.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 72 preference.setImportance(IMPORTANCE_DEFAULT); in onBindViewHolder_nonConfigurable() 109 preference.setImportance(IMPORTANCE_DEFAULT); in onClick_changesUICallsListener() 111 preference.setOriginalImportance(IMPORTANCE_DEFAULT); in onClick_changesUICallsListener()
|
D | HighImportancePreferenceControllerTest.java | 20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 130 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testIsAvailable() 139 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testIsAvailable_filteredIn() 149 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testIsAvailable_filteredOut() 210 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testUpdateState_default() 233 assertEquals(IMPORTANCE_DEFAULT, channel.getImportance()); in onPreferenceChange()
|
D | AppChannelsBypassingDndPreferenceControllerTest.java | 164 enabledByChannel[i] ? NotificationManager.IMPORTANCE_DEFAULT in buildGroupList() 177 NotificationManager.IMPORTANCE_DEFAULT)); in displayPreference_duplicateChannelName_AddsGroupNameAsSummary() 179 NotificationManager.IMPORTANCE_DEFAULT)); in displayPreference_duplicateChannelName_AddsGroupNameAsSummary() 182 NotificationManager.IMPORTANCE_DEFAULT)); in displayPreference_duplicateChannelName_AddsGroupNameAsSummary() 185 NotificationManager.IMPORTANCE_DEFAULT)); in displayPreference_duplicateChannelName_AddsGroupNameAsSummary()
|
D | VisibilityPreferenceControllerTest.java | 21 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 125 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_notSecure() 142 new NotificationChannel(DEFAULT_CHANNEL_ID, "", IMPORTANCE_DEFAULT); in testIsAvailable() 146 channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable() 154 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_filteredIn() 163 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_filteredOut()
|
D | NotificationPreferenceControllerTest.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 126 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in isAvailable_notIfChannelGroupBlocked() 138 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in isAvailable_notIfFailsFilterCheck() 152 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in isAvailable() 212 assertFalse(mController.checkCanBeVisible(IMPORTANCE_DEFAULT)); in testCanBeVisible_lesserImportance() 219 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testSaveImportance()
|
D | SoundPreferenceControllerTest.java | 20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 131 new NotificationChannel(DEFAULT_CHANNEL_ID, "", IMPORTANCE_DEFAULT); in testIsAvailable_notIfDefaultChannel() 139 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable() 147 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_filteredIn() 156 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_filteredOut()
|
/packages/modules/ExtServices/java/tests/src/android/ext/services/notification/ |
D | AssistantTest.kt | 23 import android.app.NotificationManager.IMPORTANCE_DEFAULT in <lambda>() 114 assistant.onNotificationEnqueued(sbn, NotificationChannel("0", "", IMPORTANCE_DEFAULT)) in <lambda>() 131 assistant.onNotificationEnqueued(sbn, NotificationChannel("0", "", IMPORTANCE_DEFAULT)) in <lambda>() 149 assistant.onNotificationEnqueued(sbn, NotificationChannel("0", "", IMPORTANCE_DEFAULT)) in <lambda>() 162 assistant.onNotificationEnqueued(sbn, NotificationChannel("0", "", IMPORTANCE_DEFAULT)) in <lambda>() 179 assistant.onNotificationEnqueued(sbn, NotificationChannel("0", "", IMPORTANCE_DEFAULT)) in <lambda>() 197 assistant.onNotificationEnqueued(sbn, NotificationChannel("0", "", IMPORTANCE_DEFAULT)) in <lambda>() 208 assistant.onNotificationEnqueued(sbn, NotificationChannel("0", "", IMPORTANCE_DEFAULT)) in <lambda>() 215 assistant.onNotificationEnqueued(sbn, NotificationChannel("0", "", IMPORTANCE_DEFAULT)) in <lambda>()
|
/packages/services/Telecomm/src/com/android/server/telecom/ui/ |
D | NotificationChannelManager.java | 80 int importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel() 96 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel() 120 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel() 128 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel() 135 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel()
|
/packages/apps/Settings/src/com/android/settings/notification/app/ |
D | HighImportancePreferenceController.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 60 return mChannel.getImportance() >= IMPORTANCE_DEFAULT; in isAvailable() 83 mChannel.setImportance(checked ? IMPORTANCE_HIGH : IMPORTANCE_DEFAULT); in onPreferenceChange()
|
D | ImportancePreferenceController.java | 20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 88 if (mChannel.getImportance() < IMPORTANCE_DEFAULT in onPreferenceChange() 90 && importance >= IMPORTANCE_DEFAULT) { in onPreferenceChange()
|
D | ImportancePreference.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 146 callChangeListener(IMPORTANCE_DEFAULT); in onBindViewHolder() 149 setImportanceSummary((ViewGroup) holder.itemView, IMPORTANCE_DEFAULT, true); in onBindViewHolder() 177 if (importance >= IMPORTANCE_DEFAULT) { in setImportanceSummary()
|
D | ConversationPriorityPreference.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 119 int newImportance = Math.max(mOriginalImportance, IMPORTANCE_DEFAULT); in onBindViewHolder() 124 int newImportance = Math.max(mOriginalImportance, IMPORTANCE_DEFAULT); in onBindViewHolder()
|
D | AllowSoundPreferenceController.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 72 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_DEFAULT in updateState()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/app/ |
D | ChannelListPreferenceControllerTest.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 96 inGroup1.addChannel(new NotificationChannel("ch1a", "Channel 1A", IMPORTANCE_DEFAULT)); in testUpdateFullList_incrementalUpdates() 112 inGroup1.addChannel(new NotificationChannel("ch1b", "Channel 1B", IMPORTANCE_DEFAULT)); in testUpdateFullList_incrementalUpdates() 147 inGroup0.addChannel(new NotificationChannel("ch0b", "Channel 0B", IMPORTANCE_DEFAULT)); in testUpdateFullList_incrementalUpdates() 175 inGroup0.addChannel(new NotificationChannel("ch0a", "Channel 0A", IMPORTANCE_DEFAULT)); in testUpdateFullList_incrementalUpdates() 205 inGroupOther.addChannel(new NotificationChannel("chXa", "Other A", IMPORTANCE_DEFAULT)); in testUpdateFullList_incrementalUpdates() 206 inGroupOther.addChannel(new NotificationChannel("chXb", "Other B", IMPORTANCE_DEFAULT)); in testUpdateFullList_incrementalUpdates() 267 inGroup.addChannel(new NotificationChannel("channelA", "Channel A", IMPORTANCE_DEFAULT)); in testUpdateFullList_groupBlockedChange() 373 channelB.setImportance(IMPORTANCE_DEFAULT); in testUpdateFullList_channelUpdates()
|
/packages/apps/Dialer/java/com/android/dialer/notification/ |
D | NotificationChannelManager.java | 136 NotificationManager.IMPORTANCE_DEFAULT); in createOngoingCallChannel() 150 NotificationManager.IMPORTANCE_DEFAULT); in createMissedCallChannel() 164 NotificationManager.IMPORTANCE_DEFAULT); in createDefaultChannel()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcBlockedNotification.java | 64 .setPriority(NotificationManager.IMPORTANCE_DEFAULT) in startNotification() 69 mContext.getString(R.string.nfcUserLabel), NotificationManager.IMPORTANCE_DEFAULT); in startNotification()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/ |
D | NotificationHelperValidImportanceTest.java | 18 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 116 { IMPORTANCE_DEFAULT, CHANNEL_ID_DEFAULT, R.string.importance_default }, in provideParams()
|
/packages/modules/ExtServices/java/src/android/ext/services/notification/ |
D | NotificationEntry.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 184 int requestedImportance = IMPORTANCE_DEFAULT; in calculateInitialImportance() 201 requestedImportance = IMPORTANCE_DEFAULT; in calculateInitialImportance()
|
/packages/services/Car/service-builtin/src/com/android/car/admin/ |
D | NotificationHelper.java | 81 case NotificationManager.IMPORTANCE_DEFAULT: in newNotificationBuilder() 123 .newNotificationBuilder(getContext(), NotificationManager.IMPORTANCE_DEFAULT) in showUserDisclaimerNotification() 179 packagesByImportance.put(NotificationManager.IMPORTANCE_DEFAULT, in showResourceOveruseNotificationsAsUser()
|