/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | NotificationPreferenceControllerTest.java | 111 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 …]
|
D | BlockPreferenceControllerTest.java | 108 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 …]
|
D | ImportancePreferenceControllerTest.java | 112 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()
|
D | HighImportancePreferenceControllerTest.java | 106 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()
|
D | MinImportancePreferenceControllerTest.java | 106 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()
|
D | AllowSoundPreferenceControllerTest.java | 122 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()
|
D | BadgePreferenceControllerTest.java | 103 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()
|
D | DescriptionPreferenceControllerTest.java | 91 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()
|
D | BubblePreferenceControllerTest.java | 118 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()
|
D | AppLinkPreferenceControllerTest.java | 92 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/ |
D | CarHeadsUpNotificationManagerTest.java | 206 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/ |
D | NotificationPreferenceController.java | 82 return mChannel.getImportance() != IMPORTANCE_NONE; in isAvailable() 102 int importance = mChannel.getImportance(); in checkCanBeVisible() 123 return channel.getImportance() == IMPORTANCE_NONE; in isChannelBlockable() 127 || channel.getImportance() == IMPORTANCE_NONE; in isChannelBlockable()
|
D | MinImportancePreferenceController.java | 59 return mChannel.getImportance() <= IMPORTANCE_LOW; in isAvailable() 68 pref.setChecked(mChannel.getImportance() == IMPORTANCE_MIN); in updateState()
|
D | HighImportancePreferenceController.java | 59 return mChannel.getImportance() >= IMPORTANCE_DEFAULT; in isAvailable() 68 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_HIGH); in updateState()
|
D | AllowSoundPreferenceController.java | 66 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_DEFAULT in updateState() 67 || mChannel.getImportance() == IMPORTANCE_UNSPECIFIED); in updateState()
|
D | ImportancePreferenceController.java | 66 pref.setImportance(mChannel.getImportance()); in updateState() 82 if (mChannel.getImportance() < IMPORTANCE_DEFAULT in onPreferenceChange()
|
D | ChannelListPreferenceController.java | 183 if (channel.getImportance() > IMPORTANCE_LOW) { in populateSingleChannelPrefs() 191 channelPref.setChecked(channel.getImportance() != IMPORTANCE_NONE); in populateSingleChannelPrefs() 213 if (channel.getImportance() > IMPORTANCE_LOW) { in populateSingleChannelPrefs()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | NotificationPreferenceController.java | 80 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()
|
D | HighImportancePreferenceController.java | 59 return mChannel.getImportance() >= IMPORTANCE_DEFAULT; in isAvailable() 68 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_HIGH); in updateState()
|
D | MinImportancePreferenceController.java | 59 return mChannel.getImportance() <= IMPORTANCE_LOW; in isAvailable() 68 pref.setChecked(mChannel.getImportance() == IMPORTANCE_MIN); in updateState()
|
D | AllowSoundPreferenceController.java | 66 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_DEFAULT in updateState() 67 || mChannel.getImportance() == IMPORTANCE_UNSPECIFIED); in updateState()
|
D | ImportancePreferenceController.java | 75 pref.setImportance(mChannel.getImportance()); in updateState() 88 if (mChannel.getImportance() < IMPORTANCE_DEFAULT in onPreferenceChange()
|
D | BlockPreferenceController.java | 83 && mChannel.getImportance() != NotificationManager.IMPORTANCE_NONE); in updateState() 96 final int originalImportance = mChannel.getImportance(); in onSwitchChanged()
|
/packages/modules/ExtServices/src/android/ext/services/notification/ |
D | NotificationCategorizer.java | 73 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()
|
D | Assistant.java | 266 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) {
|