Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DImportancePreferenceControllerTest.java117 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testIsAvailable_isGroupBlocked()
128 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_ifChannelBlocked()
137 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notForDefaultChannel()
147 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
156 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_filteredIn()
166 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_filteredOut()
174 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_disabledByAdmin()
189 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_notConfigurable()
204 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_systemButConfigurable()
219 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_defaultApp()
[all …]
DNotificationPreferenceControllerTest.java114 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in isAvailable_notIfChannelBlocked()
124 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in isAvailable_notIfChannelGroupBlocked()
136 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in isAvailable_notIfFailsFilterCheck()
150 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in isAvailable()
177 when(channel.getImportance()).thenReturn(IMPORTANCE_UNSPECIFIED); in testCanBeVisible_unspecified()
187 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testCanBeVisible_sameImportance()
197 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testCanBeVisible_greaterImportance()
207 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testCanBeVisible_lesserImportance()
217 when(channel.getImportance()).thenReturn(IMPORTANCE_DEFAULT); in testSaveImportance()
229 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsBlockable_oemAllowlist()
[all …]
DBlockPreferenceControllerTest.java116 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channelNotBlockable()
126 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channelNonDefault()
135 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_ifChannelDefault()
163 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_systemApp()
173 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_nonSystemApp_noFilter()
183 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_filteredOut()
195 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_filteredIn()
247 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsEnabled_lockedChannel()
260 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsEnabled_defaultAppChannel()
272 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsEnabled_channel()
[all …]
DMinImportancePreferenceControllerTest.java111 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
120 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notForDefaultChannel()
130 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
139 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_filteredIn()
149 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_filteredOut()
157 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_disabledByAdmin()
172 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_notConfigurable()
187 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_systemButConfigurable()
202 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_defaultApp()
249 assertEquals(IMPORTANCE_MIN, channel.getImportance()); in onPreferenceChange()
DHighImportancePreferenceControllerTest.java111 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
120 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_notForDefaultChannel()
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()
157 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_disabledByAdmin()
172 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_notConfigurable()
187 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_systemButConfigurable()
202 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_defaultApp()
249 assertEquals(IMPORTANCE_DEFAULT, channel.getImportance()); in onPreferenceChange()
DConversationPriorityPreferenceControllerTest.java137 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_disabledByAdmin()
152 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_notConfigurable()
167 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_systemButConfigurable()
182 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_defaultApp()
222 assertEquals(IMPORTANCE_HIGH, channel.getImportance()); in testImportanceLowToImportant()
241 assertEquals(IMPORTANCE_HIGH, channel.getImportance()); in testImportanceLowToDefault()
261 assertEquals(IMPORTANCE_LOW, channel.getImportance()); in testImportanceDefaultToLow()
281 assertEquals(IMPORTANCE_DEFAULT, channel.getImportance()); in testImportanceLowToDefault_bubblesMaintained()
302 assertEquals(IMPORTANCE_HIGH, channel.getImportance()); in testImportancePriorityToDefault()
DAllowSoundPreferenceControllerTest.java128 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
138 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_filteredIn()
149 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_filteredOut()
198 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testUpdateState_checkedForHighImportanceChannel()
210 when(channel.getImportance()).thenReturn(IMPORTANCE_UNSPECIFIED); in testUpdateState_checkedForUnspecifiedImportanceChannel()
222 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_notCheckedForLowImportanceChannel()
245 assertEquals(IMPORTANCE_UNSPECIFIED, mController.mChannel.getImportance()); in testOnPreferenceChange_on()
265 assertEquals(IMPORTANCE_LOW, mController.mChannel.getImportance()); in testOnPreferenceChange_off()
DBadgePreferenceControllerTest.java109 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
119 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channel_notIfAppOff()
129 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_notIfOffGlobally()
150 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_defaultChannel()
163 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channel()
175 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_channelAppOff()
187 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_filteredOut()
199 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in testIsAvailable_filteredIn()
DNotificationsOffPreferenceControllerTest.java96 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_yesIfChannelBlocked()
105 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_filteredIn()
115 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_filteredOut()
124 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testUpdateState_channel()
DDescriptionPreferenceControllerTest.java93 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
102 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notIfNoChannelDesc()
119 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_channel()
144 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testUpdateState_channel()
DAppLinkPreferenceControllerTest.java94 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in testIsAvailable_notIfChannelBlocked()
103 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable_notNoIntent()
114 when(channel.getImportance()).thenReturn(IMPORTANCE_LOW); in testIsAvailable()
DBubblePreferenceControllerTest.java139 when(channel.getImportance()).thenReturn(IMPORTANCE_NONE); in isAvailable_notIfChannelBlocked()
150 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in isAvailable_channel_notIfAppOff()
182 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in isAvailable_notIfOffGlobally_channel()
226 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in isAvailable_defaultChannel()
239 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in isAvailable_channel()
252 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in isAvailable_filteredIn()
265 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in isAvailable_filteredOut()
DBubbleSummaryPreferenceControllerTest.java128 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in isAvailable_nonNullChannelNOTIFICATION_BUBBLESisOff_shouldReturnFalse()
138 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in isAvailable_defaultChannelNOTIFICATION_BUBBLESisOn_shouldReturnTrue()
DAddToHomeScreenPreferenceControllerTest.java63 when(mNc.getImportance()).thenReturn(4); in setUp()
/packages/apps/Settings/src/com/android/settings/notification/app/
DNotificationPreferenceController.java95 return mChannel.getImportance() != IMPORTANCE_NONE; in isAvailable()
123 int importance = mChannel.getImportance(); in checkCanBeVisible()
144 return channel.getImportance() == IMPORTANCE_NONE; in isChannelBlockable()
148 || channel.getImportance() == IMPORTANCE_NONE; in isChannelBlockable()
DMinImportancePreferenceController.java60 return mChannel.getImportance() <= IMPORTANCE_LOW; in isAvailable()
74 pref.setChecked(mChannel.getImportance() == IMPORTANCE_MIN); in updateState()
DHighImportancePreferenceController.java60 return mChannel.getImportance() >= IMPORTANCE_DEFAULT; in isAvailable()
74 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_HIGH); in updateState()
DAllowSoundPreferenceController.java72 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_DEFAULT in updateState()
73 || mChannel.getImportance() == IMPORTANCE_UNSPECIFIED); in updateState()
DImportancePreferenceController.java72 pref.setImportance(mChannel.getImportance()); in updateState()
88 if (mChannel.getImportance() < IMPORTANCE_DEFAULT in onPreferenceChange()
DBlockPreferenceController.java98 && mChannel.getImportance() != NotificationManager.IMPORTANCE_NONE); in updateState()
111 final int originalImportance = mChannel.getImportance(); in onSwitchChanged()
DChannelListPreferenceController.java322 if (channel.getImportance() > IMPORTANCE_LOW) { in updateSingleChannelPrefs()
331 channelPref.setChecked(channel.getImportance() != IMPORTANCE_NONE); in updateSingleChannelPrefs()
354 if (channel.getImportance() > IMPORTANCE_LOW) { in updateSingleChannelPrefs()
DConversationPriorityPreferenceController.java68 pref.setImportance(mChannel.getImportance()); in updateState()
/packages/modules/ExtServices/java/src/android/ext/services/notification/
DNotificationEntry.java183 int importance = getChannel().getImportance(); in calculateInitialImportance()
333 public int getImportance() { in getImportance() method in NotificationEntry
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/
DSimSelectNotificationTest.java173 assertThat(nc.getValue().getImportance()).isEqualTo(IMPORTANCE_HIGH); in onReceiveEnableMms_notificationShouldSend()
277 assertThat(nc.getValue().getImportance()).isEqualTo(IMPORTANCE_HIGH); in onReceivePrimarySubListChange_DualCdmaWarning_notificationShouldSend()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DCarHeadsUpNotificationManagerTest.java135 when(mRankingMock.getImportance()).thenReturn(NotificationManager.IMPORTANCE_HIGH); in setup()
224 when(mRankingMock.getImportance()).thenReturn(NotificationManager.IMPORTANCE_DEFAULT); in maybeShowHeadsUp_isNotImportant_returnsNull()

12