/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | ImportancePreferenceControllerTest.java | 117 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 …]
|
D | NotificationPreferenceControllerTest.java | 114 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 …]
|
D | BlockPreferenceControllerTest.java | 116 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 …]
|
D | MinImportancePreferenceControllerTest.java | 111 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()
|
D | HighImportancePreferenceControllerTest.java | 111 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()
|
D | ConversationPriorityPreferenceControllerTest.java | 137 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()
|
D | AllowSoundPreferenceControllerTest.java | 128 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()
|
D | BadgePreferenceControllerTest.java | 109 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()
|
D | NotificationsOffPreferenceControllerTest.java | 96 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()
|
D | DescriptionPreferenceControllerTest.java | 93 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()
|
D | AppLinkPreferenceControllerTest.java | 94 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()
|
D | BubblePreferenceControllerTest.java | 139 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()
|
D | BubbleSummaryPreferenceControllerTest.java | 128 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in isAvailable_nonNullChannelNOTIFICATION_BUBBLESisOff_shouldReturnFalse() 138 when(channel.getImportance()).thenReturn(IMPORTANCE_HIGH); in isAvailable_defaultChannelNOTIFICATION_BUBBLESisOn_shouldReturnTrue()
|
D | AddToHomeScreenPreferenceControllerTest.java | 63 when(mNc.getImportance()).thenReturn(4); in setUp()
|
/packages/apps/Settings/src/com/android/settings/notification/app/ |
D | NotificationPreferenceController.java | 95 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()
|
D | MinImportancePreferenceController.java | 60 return mChannel.getImportance() <= IMPORTANCE_LOW; in isAvailable() 74 pref.setChecked(mChannel.getImportance() == IMPORTANCE_MIN); in updateState()
|
D | HighImportancePreferenceController.java | 60 return mChannel.getImportance() >= IMPORTANCE_DEFAULT; in isAvailable() 74 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_HIGH); in updateState()
|
D | AllowSoundPreferenceController.java | 72 pref.setChecked(mChannel.getImportance() >= IMPORTANCE_DEFAULT in updateState() 73 || mChannel.getImportance() == IMPORTANCE_UNSPECIFIED); in updateState()
|
D | ImportancePreferenceController.java | 72 pref.setImportance(mChannel.getImportance()); in updateState() 88 if (mChannel.getImportance() < IMPORTANCE_DEFAULT in onPreferenceChange()
|
D | BlockPreferenceController.java | 98 && mChannel.getImportance() != NotificationManager.IMPORTANCE_NONE); in updateState() 111 final int originalImportance = mChannel.getImportance(); in onSwitchChanged()
|
D | ChannelListPreferenceController.java | 322 if (channel.getImportance() > IMPORTANCE_LOW) { in updateSingleChannelPrefs() 331 channelPref.setChecked(channel.getImportance() != IMPORTANCE_NONE); in updateSingleChannelPrefs() 354 if (channel.getImportance() > IMPORTANCE_LOW) { in updateSingleChannelPrefs()
|
D | ConversationPriorityPreferenceController.java | 68 pref.setImportance(mChannel.getImportance()); in updateState()
|
/packages/modules/ExtServices/java/src/android/ext/services/notification/ |
D | NotificationEntry.java | 183 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/ |
D | SimSelectNotificationTest.java | 173 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/ |
D | CarHeadsUpNotificationManagerTest.java | 135 when(mRankingMock.getImportance()).thenReturn(NotificationManager.IMPORTANCE_HIGH); in setup() 224 when(mRankingMock.getImportance()).thenReturn(NotificationManager.IMPORTANCE_DEFAULT); in maybeShowHeadsUp_isNotImportant_returnsNull()
|