/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | MinImportancePreferenceControllerTest.java | 20 import static android.app.NotificationManager.IMPORTANCE_LOW; 115 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notForDefaultChannel() 125 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable() 133 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_disabledByAdmin() 148 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_notConfigurable() 163 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_systemButConfigurable() 178 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_defaultApp() 202 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_LOW); in testUpdateState_low() 214 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in onPreferenceChange()
|
D | ImportancePreferenceControllerTest.java | 22 import static android.app.NotificationManager.IMPORTANCE_LOW; 132 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notForDefaultChannel() 142 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable() 221 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in testImportanceLowToHigh() 248 mController.onPreferenceChange(pref, IMPORTANCE_LOW); in testImportanceHighToLow() 250 assertEquals(IMPORTANCE_LOW, channel.getImportance()); in testImportanceHighToLow()
|
D | NotificationPreferenceControllerTest.java | 21 import static android.app.NotificationManager.IMPORTANCE_LOW; 170 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testCanBeVisible_sameImportance() 173 assertTrue(mController.checkCanBeVisible(IMPORTANCE_LOW)); in testCanBeVisible_sameImportance() 180 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testCanBeVisible_greaterImportance() 190 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testCanBeVisible_lesserImportance() 212 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsBlockable_oemWhitelist() 226 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsBlockable_defaultApp()
|
D | AllowSoundPreferenceControllerTest.java | 21 import static android.app.NotificationManager.IMPORTANCE_LOW; 122 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable() 193 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_notCheckedForLowImportanceChannel() 204 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in testOnPreferenceChange_on() 233 assertEquals(IMPORTANCE_LOW, mController.mChannel.getImportance()); in testOnPreferenceChange_off()
|
D | DescriptionPreferenceControllerTest.java | 19 import static android.app.NotificationManager.IMPORTANCE_LOW; 100 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notIfNoChannelDesc() 117 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_channel() 137 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_channel()
|
D | ImportancePreferenceTest.java | 20 import static android.app.NotificationManager.IMPORTANCE_LOW; 89 preference.setImportance(IMPORTANCE_LOW); in onBindViewHolder_nonConfigurable() 143 verify(preference, times(1)).callChangeListener(IMPORTANCE_LOW); in onClick_changesUICallsListener() 162 preference.setImportanceSummary((ViewGroup) holder.itemView, IMPORTANCE_LOW, true); in setImportanceSummary() local
|
D | AppLinkPreferenceControllerTest.java | 20 import static android.app.NotificationManager.IMPORTANCE_LOW; 101 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notNoIntent() 112 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
|
D | BlockPreferenceControllerTest.java | 22 import static android.app.NotificationManager.IMPORTANCE_LOW; 326 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testUpdateState_noCrashIfCalledTwice() 335 NotificationChannel channel = new NotificationChannel("a", "a", IMPORTANCE_LOW); in testUpdateState_doesNotResetImportance() 339 assertEquals(IMPORTANCE_LOW, channel.getImportance()); in testUpdateState_doesNotResetImportance()
|
D | DndPreferenceControllerTest.java | 21 import static android.app.NotificationManager.IMPORTANCE_LOW; 165 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in testOnPreferenceChange_on()
|
D | VibrationPreferenceControllerTest.java | 22 import static android.app.NotificationManager.IMPORTANCE_LOW; 107 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_LOW); in testIsAvailable_notIfNotImportant()
|
D | LightsPreferenceControllerTest.java | 22 import static android.app.NotificationManager.IMPORTANCE_LOW; 125 NotificationChannel channel = new NotificationChannel("", "", IMPORTANCE_LOW); in testIsAvailable_notIfNotImportant()
|
D | BadgePreferenceControllerTest.java | 21 import static android.app.NotificationManager.IMPORTANCE_LOW; 244 new NotificationChannel(DEFAULT_CHANNEL_ID, "a", IMPORTANCE_LOW); in testOnPreferenceChange_on_channel()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | NotificationUtils.java | 21 import static androidx.core.app.NotificationManagerCompat.IMPORTANCE_LOW; 84 IMPORTANCE_LOW in CHANNEL_PROPS.put() argument 88 IMPORTANCE_LOW in CHANNEL_PROPS.put() argument 97 IMPORTANCE_LOW in CHANNEL_PROPS.put() argument 101 IMPORTANCE_LOW in CHANNEL_PROPS.put() argument
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | ImportancePreference.java | 21 import static android.app.NotificationManager.IMPORTANCE_LOW; 99 mImportance = IMPORTANCE_LOW; in onBindViewHolder() 100 callChangeListener(IMPORTANCE_LOW); in onBindViewHolder() 120 case IMPORTANCE_LOW: in onBindViewHolder() 142 callChangeListener(IMPORTANCE_LOW); in onBindViewHolder()
|
D | MinImportancePreferenceController.java | 19 import static android.app.NotificationManager.IMPORTANCE_LOW; 59 return mChannel.getImportance() <= IMPORTANCE_LOW; in isAvailable() 77 mChannel.setImportance(checked ? IMPORTANCE_MIN : IMPORTANCE_LOW); in onPreferenceChange()
|
D | AllowSoundPreferenceController.java | 20 import static android.app.NotificationManager.IMPORTANCE_LOW; 75 ((Boolean) newValue ? IMPORTANCE_UNSPECIFIED : IMPORTANCE_LOW); in onPreferenceChange()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | MinImportancePreferenceController.java | 19 import static android.app.NotificationManager.IMPORTANCE_LOW; 59 return mChannel.getImportance() <= IMPORTANCE_LOW; in isAvailable() 77 mChannel.setImportance(checked ? IMPORTANCE_MIN : IMPORTANCE_LOW); in onPreferenceChange()
|
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 | ChannelListPreferenceController.java | 19 import static android.app.NotificationManager.IMPORTANCE_LOW; 183 if (channel.getImportance() > IMPORTANCE_LOW) { in populateSingleChannelPrefs() 207 int importance = value ? IMPORTANCE_LOW : IMPORTANCE_NONE; in populateSingleChannelPrefs() 213 if (channel.getImportance() > IMPORTANCE_LOW) { in populateSingleChannelPrefs()
|
D | AllowSoundPreferenceController.java | 20 import static android.app.NotificationManager.IMPORTANCE_LOW; 75 ((Boolean) newValue ? IMPORTANCE_UNSPECIFIED : IMPORTANCE_LOW); in onPreferenceChange()
|
/packages/modules/ExtServices/tests/src/android/ext/services/notification/ |
D | NotificationCategorizerTest.java | 21 import static android.app.NotificationManager.IMPORTANCE_LOW; 192 when(mEntry.getChannel()).thenReturn(new NotificationChannel("", "", IMPORTANCE_LOW)); in testSystemLowCategory() 193 when(mEntry.getImportance()).thenReturn(IMPORTANCE_LOW); in testSystemLowCategory()
|
D | AssistantTest.java | 20 import static android.app.NotificationManager.IMPORTANCE_LOW; 75 new NotificationChannel("one", "", IMPORTANCE_LOW); 84 new NotificationChannel("one", "", IMPORTANCE_LOW);
|
/packages/services/Telecomm/src/com/android/server/telecom/ui/ |
D | NotificationChannelManager.java | 101 importance = NotificationManager.IMPORTANCE_LOW; in createChannel() 109 importance = NotificationManager.IMPORTANCE_LOW; in createChannel()
|
/packages/modules/ExtServices/src/android/ext/services/notification/ |
D | Assistant.java | 19 import static android.app.NotificationManager.IMPORTANCE_LOW; 266 final int importance = entry.getImportance() < IMPORTANCE_LOW in createEnqueuedNotificationAdjustment() 267 ? entry.getImportance() : IMPORTANCE_LOW; in createEnqueuedNotificationAdjustment()
|
D | NotificationEntry.java | 22 import static android.app.NotificationManager.IMPORTANCE_LOW; 206 requestedImportance = IMPORTANCE_LOW; in calculateInitialImportance()
|