Home
last modified time | relevance | path

Searched refs:getImportance (Results 1 – 25 of 41) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationPreferenceControllerTest.java111 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in isAvailable_notIfChannelBlocked()
121 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in isAvailable_notIfChannelGroupBlocked()
133 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in isAvailable()
160 when(channel.getImportance()).thenReturn(IMPORTANCE_UNSPECIFIED); in testCanBeVisible_unspecified()
170 when(channel.getImportance()).thenReturn(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()
200 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testSaveImportance()
212 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsBlockable_oemWhitelist()
226 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsBlockable_defaultApp()
[all …]
DBlockPreferenceControllerTest.java108 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channelNotBlockable()
118 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channelNonDefault()
127 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_ifChannelDefault()
154 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_systemApp()
164 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_nonSystemApp()
213 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsEnabled_lockedChannel()
226 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsEnabled_defaultAppChannel()
238 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsEnabled_channel()
339 assertEquals(IMPORTANCE_LOW, channel.getImportance()); in testUpdateState_doesNotResetImportance()
353 assertEquals(IMPORTANCE_NONE, channel.getImportance()); in testOnSwitchChanged_channel_default()
[all …]
DImportancePreferenceControllerTest.java112 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testIsAvailable_isGroupBlocked()
123 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_ifChannelBlocked()
132 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notForDefaultChannel()
142 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
150 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_disabledByAdmin()
165 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_notConfigurable()
180 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_systemButConfigurable()
195 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_defaultApp()
232 assertEquals(IMPORTANCE_HIGH, channel.getImportance()); in testImportanceLowToHigh()
250 assertEquals(IMPORTANCE_LOW, channel.getImportance()); in testImportanceHighToLow()
DMinImportancePreferenceControllerTest.java106 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
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()
224 assertEquals(IMPORTANCE_MIN, channel.getImportance()); in onPreferenceChange()
DHighImportancePreferenceControllerTest.java106 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
115 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_notForDefaultChannel()
125 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testIsAvailable()
133 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_disabledByAdmin()
148 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_notConfigurable()
163 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_systemButConfigurable()
178 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_defaultApp()
224 assertEquals(IMPORTANCE_DEFAULT, channel.getImportance()); in onPreferenceChange()
DAllowSoundPreferenceControllerTest.java122 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
171 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_checkedForHighImportanceChannel()
182 when(channel.getImportance()).thenReturn(IMPORTANCE_UNSPECIFIED); in testUpdateState_checkedForUnspecifiedImportanceChannel()
193 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_notCheckedForLowImportanceChannel()
214 assertEquals(IMPORTANCE_UNSPECIFIED, mController.mChannel.getImportance()); in testOnPreferenceChange_on()
233 assertEquals(IMPORTANCE_LOW, mController.mChannel.getImportance()); in testOnPreferenceChange_off()
DBadgePreferenceControllerTest.java103 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
113 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channel_notIfAppOff()
123 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_notIfOffGlobally()
144 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_defaultChannel()
157 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channel()
169 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channelAppOff()
DDescriptionPreferenceControllerTest.java91 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
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()
DBubblePreferenceControllerTest.java118 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
129 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channel_notIfAppOff()
149 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_notIfOffGlobally_channel()
181 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_defaultChannel()
194 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channel()
206 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channelAppOff()
DAppLinkPreferenceControllerTest.java92 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
101 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notNoIntent()
112 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarHeadsUpNotificationManagerTest.java206 when(mRankingMock.getImportance()).thenReturn(NotificationManager.IMPORTANCE_DEFAULT); in maybeShowHeadsUp_isNotImportant_returnsNull()
229 when(mRankingMock.getImportance()).thenReturn(NotificationManager.IMPORTANCE_HIGH); in maybeShowHeadsUp_isImportanceHigh_returnsNotNull()
242 when(mRankingMock.getImportance()).thenReturn(NotificationManager.IMPORTANCE_HIGH); in getActiveHeadsUpNotifications_shouldReturnOne()
253 when(mRankingMock.getImportance()).thenReturn(NotificationManager.IMPORTANCE_HIGH); in getActiveHeadsUpNotifications_diffNotifications_shouldReturnTwo()
266 when(mRankingMock.getImportance()).thenReturn(NotificationManager.IMPORTANCE_HIGH); in getActiveHeadsUpNotifications_sameNotifications_shouldReturnOne()
278 when(mRankingMock.getImportance()).thenReturn(NotificationManager.IMPORTANCE_HIGH); in maybeShowHeadsUp_categoryCarInformation_returnsNull()
294 when(mRankingMock.getImportance()).thenReturn(NotificationManager.IMPORTANCE_HIGH); in maybeShowHeadsUp_categoryMessage_returnsNotNull()
313 when(mRankingMock.getImportance()).thenReturn(NotificationManager.IMPORTANCE_HIGH); in maybeShowHeadsUp_categoryCall_returnsNotNull()
330 when(mRankingMock.getImportance()).thenReturn(NotificationManager.IMPORTANCE_HIGH); in maybeShowHeadsUp_categoryNavigation_returnsNotNull()
346 when(mRankingMock.getImportance()).thenReturn(NotificationManager.IMPORTANCE_HIGH); in maybeShowHeadsUp_InboxHeadsUp_returnsNotNull()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationPreferenceController.java82 return mChannel.getImportance() != IMPORTANCE_NONE; in isAvailable()
102 int importance = mChannel.getImportance(); in checkCanBeVisible()
119 return mChannel.getImportance() == IMPORTANCE_NONE; in isChannelBlockable()
123 || mChannel.getImportance() == IMPORTANCE_NONE; in isChannelBlockable()
DNotificationSettingsBase.java297 if (channel.getImportance() > IMPORTANCE_LOW) { in populateSingleChannelPrefs()
305 channelPref.setChecked(channel.getImportance() != IMPORTANCE_NONE); in populateSingleChannelPrefs()
327 if (channel.getImportance() > IMPORTANCE_LOW) { in populateSingleChannelPrefs()
382 || channel.getImportance() == NotificationManager.IMPORTANCE_NONE; in isChannelBlockable()
475 hideDynamicFields = mChannel.getImportance() == IMPORTANCE_NONE; in onImportanceChanged()
DHighImportancePreferenceController.java59 return mChannel.getImportance() >= IMPORTANCE_DEFAULT; in isAvailable()
68 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_HIGH); in updateState()
DMinImportancePreferenceController.java59 return mChannel.getImportance() <= IMPORTANCE_LOW; in isAvailable()
68 pref.setChecked(mChannel.getImportance() == IMPORTANCE_MIN); in updateState()
DAllowSoundPreferenceController.java66 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_DEFAULT in updateState()
67 || mChannel.getImportance() == IMPORTANCE_UNSPECIFIED); in updateState()
DImportancePreferenceController.java66 pref.setImportance(mChannel.getImportance()); in updateState()
82 if (mChannel.getImportance() < IMPORTANCE_DEFAULT in onPreferenceChange()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationPreferenceController.java80 return mChannel.getImportance() != IMPORTANCE_NONE; in isAvailable()
100 int importance = mChannel.getImportance(); in checkCanBeVisible()
126 return mChannel.getImportance() == IMPORTANCE_NONE; in isChannelBlockable()
135 || mChannel.getImportance() == IMPORTANCE_NONE; in isChannelBlockable()
DMinImportancePreferenceController.java59 return mChannel.getImportance() <= IMPORTANCE_LOW; in isAvailable()
68 pref.setChecked(mChannel.getImportance() == IMPORTANCE_MIN); in updateState()
DHighImportancePreferenceController.java59 return mChannel.getImportance() >= IMPORTANCE_DEFAULT; in isAvailable()
68 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_HIGH); in updateState()
DAllowSoundPreferenceController.java66 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_DEFAULT in updateState()
67 || mChannel.getImportance() == IMPORTANCE_UNSPECIFIED); in updateState()
DImportancePreferenceController.java75 pref.setImportance(mChannel.getImportance()); in updateState()
88 if (mChannel.getImportance() < IMPORTANCE_DEFAULT in onPreferenceChange()
DBlockPreferenceController.java83 && mChannel.getImportance() != NotificationManager.IMPORTANCE_NONE); in updateState()
96 final int originalImportance = mChannel.getImportance(); in onSwitchChanged()
/packages/modules/ExtServices/src/android/ext/services/notification/
DNotificationCategorizer.java73 if (entry.getChannel().getImportance() == IMPORTANCE_MIN) { in getCategory()
95 if (entry.getImportance() >= IMPORTANCE_DEFAULT) { in getCategory()
101 if (entry.getChannel().getImportance() == IMPORTANCE_HIGH) { in getCategory()
DAssistant.java266 final int importance = entry.getImportance() < IMPORTANCE_LOW in createEnqueuedNotificationAdjustment()
267 ? entry.getImportance() : IMPORTANCE_LOW; in createEnqueuedNotificationAdjustment()
271 signals.putInt(KEY_IMPORTANCE, entry.getImportance()); in createEnqueuedNotificationAdjustment()
303 if (ranking.getImportance() > IMPORTANCE_MIN && shouldTriggerBlock) {

12