Home
last modified time | relevance | path

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

123

/packages/modules/ExtServices/tests/src/android/ext/services/notification/
DNotificationCategorizerTest.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
71 when(mEntry.getChannel()).thenReturn(new NotificationChannel("", "", IMPORTANCE_DEFAULT)); in testPeopleCategory()
103 when(mEntry.getChannel()).thenReturn(new NotificationChannel("", "", IMPORTANCE_DEFAULT)); in testOngoingCategory()
118 when(mEntry.getChannel()).thenReturn(new NotificationChannel("", "", IMPORTANCE_DEFAULT)); in testAlarmCategory()
133 when(mEntry.getChannel()).thenReturn(new NotificationChannel("", "", IMPORTANCE_DEFAULT)); in testCallCategory()
148 when(mEntry.getChannel()).thenReturn(new NotificationChannel("", "", IMPORTANCE_DEFAULT)); in testReminderCategory()
163 when(mEntry.getChannel()).thenReturn(new NotificationChannel("", "", IMPORTANCE_DEFAULT)); in testEventCategory()
177 when(mEntry.getChannel()).thenReturn(new NotificationChannel("", "", IMPORTANCE_DEFAULT)); in testSystemCategory()
178 when(mEntry.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testSystemCategory()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DImportancePreferenceTest.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
78 preference.setImportance(IMPORTANCE_DEFAULT); in onBindViewHolder_nonConfigurable()
110 preference.setImportance(IMPORTANCE_DEFAULT); in onBindViewHolder_selectButtonAndText()
133 preference.setImportance(IMPORTANCE_DEFAULT); in onClick_changesUICallsListener()
154 preference.setImportance(IMPORTANCE_DEFAULT); in setImportanceSummary()
176 preference.setImportance(IMPORTANCE_DEFAULT); in setImportanceSummary_default()
184 preference.setImportanceSummary((ViewGroup) holder.itemView, IMPORTANCE_DEFAULT, true); in setImportanceSummary_default() local
DLightsPreferenceControllerTest.java20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
108 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_notIfConfigNotAllowed()
117 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_notIfSettingNotAllowed()
134 new NotificationChannel(DEFAULT_CHANNEL_ID, "", IMPORTANCE_DEFAULT); in testIsAvailable_notIfDefaultChannel()
142 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable()
198 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_DEFAULT); in testOnPreferenceChange_on()
DNotificationPreferenceControllerTest.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
121 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in isAvailable_notIfChannelGroupBlocked()
133 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in isAvailable()
193 assertFalse(mController.checkCanBeVisible(IMPORTANCE_DEFAULT)); in testCanBeVisible_lesserImportance()
200 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testSaveImportance()
296 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testIsChannelBlockable_oemLocked()
308 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testIsChannelBlockable_criticalDeviceFunction()
DVibrationPreferenceControllerTest.java20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
99 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_notSystemDoesNotHave()
116 new NotificationChannel(DEFAULT_CHANNEL_ID, "", IMPORTANCE_DEFAULT); in testIsAvailable_notIfDefaultChannel()
124 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable()
195 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_DEFAULT); in testOnPreferenceChange_on()
DHighImportancePreferenceControllerTest.java20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
125 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testIsAvailable()
202 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testUpdateState_default()
224 assertEquals(IMPORTANCE_DEFAULT, channel.getImportance()); in onPreferenceChange()
DVisibilityPreferenceControllerTest.java21 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
122 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable_notSecure()
139 new NotificationChannel(DEFAULT_CHANNEL_ID, "", IMPORTANCE_DEFAULT); in testIsAvailable()
143 channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable()
DSoundPreferenceControllerTest.java20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
126 new NotificationChannel(DEFAULT_CHANNEL_ID, "", IMPORTANCE_DEFAULT); in testIsAvailable_notIfDefaultChannel()
134 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsAvailable()
DBlockPreferenceControllerTest.java20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
201 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_DEFAULT); in testIsEnabled_systemAppBlockable()
377 assertEquals(IMPORTANCE_DEFAULT, channel.getImportance()); in testOnSwitchChanged_channel_nonDefault()
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DNotificationChannelManager.java77 int importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel()
93 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel()
117 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel()
125 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DHighImportancePreferenceController.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
59 return mChannel.getImportance() >= IMPORTANCE_DEFAULT; in isAvailable()
77 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()
DAllowSoundPreferenceController.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
66 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_DEFAULT in updateState()
DBlockPreferenceController.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
102 : isDefaultChannel() ? IMPORTANCE_UNSPECIFIED : IMPORTANCE_DEFAULT; in onSwitchChanged()
DImportancePreference.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
146 callChangeListener(IMPORTANCE_DEFAULT); in onBindViewHolder()
/packages/apps/Settings/src/com/android/settings/notification/
DHighImportancePreferenceController.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
59 return mChannel.getImportance() >= IMPORTANCE_DEFAULT; in isAvailable()
77 mChannel.setImportance(checked ? IMPORTANCE_HIGH : 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()
175 if (importance >= IMPORTANCE_DEFAULT) { in setImportanceSummary()
DImportancePreferenceController.java20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
82 if (mChannel.getImportance() < IMPORTANCE_DEFAULT in onPreferenceChange()
84 && importance >= IMPORTANCE_DEFAULT) { in onPreferenceChange()
DAllowSoundPreferenceController.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
66 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_DEFAULT in updateState()
DBlockPreferenceController.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
109 : isDefaultChannel() ? IMPORTANCE_UNSPECIFIED : IMPORTANCE_DEFAULT; in onSwitchChanged()
/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.java55 .setPriority(NotificationManager.IMPORTANCE_DEFAULT) in onCreate()
59 getString(R.string.nfcUserLabel), NotificationManager.IMPORTANCE_DEFAULT); in onCreate()
/packages/modules/ExtServices/src/android/ext/services/notification/
DNotificationCategorizer.java18 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
95 if (entry.getImportance() >= IMPORTANCE_DEFAULT) { in getCategory()
DNotificationEntry.java20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
192 int requestedImportance = IMPORTANCE_DEFAULT; in calculateInitialImportance()
209 requestedImportance = IMPORTANCE_DEFAULT; in calculateInitialImportance()
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/
DAppNotificationSettingsTest.java19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
147 NotificationChannel channel = new NotificationChannel(id, id, IMPORTANCE_DEFAULT); in createChannel()

123