/packages/modules/ExtServices/tests/src/android/ext/services/notification/ |
D | NotificationCategorizerTest.java | 19 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/ |
D | ImportancePreferenceTest.java | 19 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
|
D | LightsPreferenceControllerTest.java | 20 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()
|
D | NotificationPreferenceControllerTest.java | 19 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()
|
D | VibrationPreferenceControllerTest.java | 20 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()
|
D | HighImportancePreferenceControllerTest.java | 20 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()
|
D | VisibilityPreferenceControllerTest.java | 21 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()
|
D | SoundPreferenceControllerTest.java | 20 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()
|
D | BlockPreferenceControllerTest.java | 20 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/apps/Settings/src/com/android/settings/notification/ |
D | HighImportancePreferenceController.java | 19 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()
|
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() 175 if (importance >= IMPORTANCE_DEFAULT) { in setImportanceSummary()
|
D | ImportancePreferenceController.java | 20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 82 if (mChannel.getImportance() < IMPORTANCE_DEFAULT in onPreferenceChange() 84 && importance >= IMPORTANCE_DEFAULT) { in onPreferenceChange()
|
D | AllowSoundPreferenceController.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 66 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_DEFAULT in updateState()
|
D | BlockPreferenceController.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 109 : isDefaultChannel() ? IMPORTANCE_UNSPECIFIED : IMPORTANCE_DEFAULT; in onSwitchChanged()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | HighImportancePreferenceController.java | 19 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()
|
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 | AllowSoundPreferenceController.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 66 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_DEFAULT in updateState()
|
D | BlockPreferenceController.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 102 : isDefaultChannel() ? IMPORTANCE_UNSPECIFIED : IMPORTANCE_DEFAULT; in onSwitchChanged()
|
D | ImportancePreference.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 146 callChangeListener(IMPORTANCE_DEFAULT); in onBindViewHolder()
|
/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/modules/ExtServices/src/android/ext/services/notification/ |
D | NotificationEntry.java | 20 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 192 int requestedImportance = IMPORTANCE_DEFAULT; in calculateInitialImportance() 209 requestedImportance = IMPORTANCE_DEFAULT; in calculateInitialImportance()
|
D | NotificationCategorizer.java | 18 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 95 if (entry.getImportance() >= IMPORTANCE_DEFAULT) { in getCategory()
|
/packages/services/Telecomm/src/com/android/server/telecom/ui/ |
D | NotificationChannelManager.java | 71 int importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel() 87 importance = NotificationManager.IMPORTANCE_DEFAULT; in createChannel()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/ |
D | AppNotificationSettingsTest.java | 19 import static android.app.NotificationManager.IMPORTANCE_DEFAULT; 147 NotificationChannel channel = new NotificationChannel(id, id, IMPORTANCE_DEFAULT); in createChannel()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/ |
D | FinalizationController.java | 199 mContext, NotificationManager.IMPORTANCE_DEFAULT); in provisioningFinalized() 220 mContext, NotificationManager.IMPORTANCE_DEFAULT); in provisioningFinalized()
|