Home
last modified time | relevance | path

Searched refs:IMPORTANCE_DEFAULT (Results 1 – 25 of 68) sorted by relevance

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DConversationPromotePreferenceControllerTest.java19 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()
DConversationDemotePreferenceControllerTest.java19 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()
DLightsPreferenceControllerTest.java20 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()
DImportancePreferenceTest.java19 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
DConversationPriorityPreferenceControllerTest.java20 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()
DVibrationPreferenceControllerTest.java20 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()
DConversationPriorityPreferenceTest.java19 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()
DHighImportancePreferenceControllerTest.java20 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()
DAppChannelsBypassingDndPreferenceControllerTest.java164 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()
DVisibilityPreferenceControllerTest.java21 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()
DNotificationPreferenceControllerTest.java19 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()
DSoundPreferenceControllerTest.java20 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/
DAssistantTest.kt23 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/
DNotificationChannelManager.java80 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/
DHighImportancePreferenceController.java19 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()
DImportancePreferenceController.java20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
88 if (mChannel.getImportance() < IMPORTANCE_DEFAULT in onPreferenceChange()
90 && importance >= IMPORTANCE_DEFAULT) { in onPreferenceChange()
DImportancePreference.java19 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()
DConversationPriorityPreference.java19 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()
DAllowSoundPreferenceController.java19 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/
DChannelListPreferenceControllerTest.java19 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/
DNotificationChannelManager.java136 NotificationManager.IMPORTANCE_DEFAULT); in createOngoingCallChannel()
150 NotificationManager.IMPORTANCE_DEFAULT); in createMissedCallChannel()
164 NotificationManager.IMPORTANCE_DEFAULT); in createDefaultChannel()
/packages/apps/Nfc/src/com/android/nfc/
DNfcBlockedNotification.java64 .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/
DNotificationHelperValidImportanceTest.java18 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/
DNotificationEntry.java19 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/
DNotificationHelper.java81 case NotificationManager.IMPORTANCE_DEFAULT: in newNotificationBuilder()
123 .newNotificationBuilder(getContext(), NotificationManager.IMPORTANCE_DEFAULT) in showUserDisclaimerNotification()
179 packagesByImportance.put(NotificationManager.IMPORTANCE_DEFAULT, in showResourceOveruseNotificationsAsUser()

123