/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | BlockPreferenceControllerTest.java | 113 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_channelNotBlockable() local 114 appRow.systemApp = true; in testIsAvailable_channelNotBlockable() 117 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_channelNotBlockable() 123 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_channelNonDefault() local 124 appRow.systemApp = true; in testIsAvailable_channelNonDefault() 127 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_channelNonDefault() 133 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ifChannelDefault() local 137 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_ifChannelDefault() 143 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_GroupNotBlockable() local 144 appRow.systemApp = true; in testIsAvailable_GroupNotBlockable() [all …]
|
D | BubblePreferenceControllerTest.java | 128 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfAppBlocked() local 129 appRow.banned = true; in isAvailable_notIfAppBlocked() 130 mController.onResume(appRow, mock(NotificationChannel.class), null, null, null, null, null); in isAvailable_notIfAppBlocked() 137 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfChannelBlocked() local 140 mController.onResume(appRow, channel, null, null, null, null, null); in isAvailable_notIfChannelBlocked() 147 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_channel_notIfAppOff() local 148 appRow.bubblePreference = BUBBLE_PREFERENCE_NONE; in isAvailable_channel_notIfAppOff() 151 mController.onResume(appRow, channel, null, null, null, null, null); in isAvailable_channel_notIfAppOff() 158 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isNotAvailable_ifOffGlobally_app() local 159 mController.onResume(appRow, null, null, null, null, null, null); in isNotAvailable_ifOffGlobally_app() [all …]
|
D | NotificationPreferenceControllerTest.java | 101 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfAppBlocked() local 102 appRow.banned = true; in isAvailable_notIfAppBlocked() 103 mController.onResume(appRow, mock(NotificationChannel.class), in isAvailable_notIfAppBlocked() 110 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfChannelBlocked() local 116 mController.onResume(appRow, channel, group, null, null, null, null); in isAvailable_notIfChannelBlocked() 122 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfChannelGroupBlocked() local 127 mController.onResume(appRow, channel, group, null, null, null, null); in isAvailable_notIfChannelGroupBlocked() 134 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfFailsFilterCheck() local 142 mController.onResume(appRow, channel, group, null, null, null, filter); in isAvailable_notIfFailsFilterCheck() 148 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable() local [all …]
|
D | BadgePreferenceControllerTest.java | 99 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfAppBlocked() local 100 appRow.banned = true; in testIsAvailable_notIfAppBlocked() 101 mController.onResume(appRow, mock(NotificationChannel.class), null, null, null, null, null); in testIsAvailable_notIfAppBlocked() 107 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfChannelBlocked() local 110 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfChannelBlocked() 116 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_channel_notIfAppOff() local 117 appRow.showBadge = false; in testIsAvailable_channel_notIfAppOff() 120 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_channel_notIfAppOff() 127 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfOffGlobally() local 130 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfOffGlobally() [all …]
|
D | InvalidConversationPreferenceControllerTest.java | 101 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfAppBlocked() local 102 appRow.pkg = "hi"; in testIsAvailable_notIfAppBlocked() 103 appRow.uid = 0; in testIsAvailable_notIfAppBlocked() 104 appRow.banned = true; in testIsAvailable_notIfAppBlocked() 105 mController.onResume(appRow, null, null, null, null, null, null); in testIsAvailable_notIfAppBlocked() 112 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfInValidMsgState() local 113 appRow.pkg = "hi"; in testIsAvailable_notIfInValidMsgState() 114 appRow.uid = 0; in testIsAvailable_notIfInValidMsgState() 115 mController.onResume(appRow, null, null, null, null, null, null); in testIsAvailable_notIfInValidMsgState() 122 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local [all …]
|
D | HeaderPreferenceControllerTest.java | 98 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local 99 appRow.banned = true; in testIsAvailable() 100 mController.onResume(appRow, null, null, null, null, null, null); in testIsAvailable() 106 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ignoredFilter() local 107 appRow.banned = true; in testIsAvailable_ignoredFilter() 108 mController.onResume(appRow, null, null, null, null, null, new ArrayList<>()); in testIsAvailable_ignoredFilter() 114 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testGetLabel() local 115 appRow.label = "bananas"; in testGetLabel() 116 mController.onResume(appRow, null, null, null, null, null, null); in testGetLabel() 117 assertEquals(appRow.label, mController.getLabel()); in testGetLabel() [all …]
|
D | InvalidConversationInfoPreferenceControllerTest.java | 94 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfAppBlocked() local 95 appRow.pkg = "hi"; in testIsAvailable_notIfAppBlocked() 96 appRow.uid = 0; in testIsAvailable_notIfAppBlocked() 97 appRow.banned = true; in testIsAvailable_notIfAppBlocked() 98 mController.onResume(appRow, null, null, null, null, null, null); in testIsAvailable_notIfAppBlocked() 105 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfInValidMsgState() local 106 appRow.pkg = "hi"; in testIsAvailable_notIfInValidMsgState() 107 appRow.uid = 0; in testIsAvailable_notIfInValidMsgState() 108 mController.onResume(appRow, null, null, null, null, null, null); in testIsAvailable_notIfInValidMsgState() 115 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local [all …]
|
D | MinImportancePreferenceControllerTest.java | 101 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ifAppBlocked() local 102 appRow.banned = true; in testIsAvailable_ifAppBlocked() 103 mController.onResume(appRow, mock(NotificationChannel.class), null, null, null, null, null); in testIsAvailable_ifAppBlocked() 109 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfChannelBlocked() local 112 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfChannelBlocked() 118 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notForDefaultChannel() local 122 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notForDefaultChannel() 128 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local 131 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable() 137 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredIn() local [all …]
|
D | HighImportancePreferenceControllerTest.java | 101 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ifAppBlocked() local 102 appRow.banned = true; in testIsAvailable_ifAppBlocked() 103 mController.onResume(appRow, mock(NotificationChannel.class), null, null, null, null, null); in testIsAvailable_ifAppBlocked() 109 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfChannelBlocked() local 112 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfChannelBlocked() 118 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notForDefaultChannel() local 122 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notForDefaultChannel() 128 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local 131 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable() 137 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredIn() local [all …]
|
D | ImportancePreferenceControllerTest.java | 107 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ifAppBlocked() local 108 appRow.banned = true; in testIsAvailable_ifAppBlocked() 109 mController.onResume(appRow, mock(NotificationChannel.class), null, null, null, null, null); in testIsAvailable_ifAppBlocked() 115 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_isGroupBlocked() local 120 mController.onResume(appRow, channel, group, null, null, null, null); in testIsAvailable_isGroupBlocked() 126 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ifChannelBlocked() local 129 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_ifChannelBlocked() 135 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notForDefaultChannel() local 139 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notForDefaultChannel() 145 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local [all …]
|
D | ConversationHeaderPreferenceControllerTest.java | 99 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local 100 appRow.banned = true; in testIsAvailable() 101 mController.onResume(appRow, null, null, null, null, null, null); in testIsAvailable() 107 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ignoresFilter() local 108 appRow.banned = true; in testIsAvailable_ignoresFilter() 109 mController.onResume(appRow, null, null, null, null, null, new ArrayList<>()); in testIsAvailable_ignoresFilter() 117 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testGetLabel() local 118 mController.onResume(appRow, null, null, null, si, null, null); in testGetLabel() 122 mController.onResume(appRow, channel, null, null, null, null, null); in testGetLabel() 128 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testGetSummary() local [all …]
|
D | AppBubbleListPreferenceControllerTest.java | 105 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_BUBBLE_PREFERENCE_NONE_false() local 106 appRow.bubblePreference = BUBBLE_PREFERENCE_NONE; in isAvailable_BUBBLE_PREFERENCE_NONE_false() 107 mController.onResume(appRow, null, null, null, null, null, null); in isAvailable_BUBBLE_PREFERENCE_NONE_false() 114 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_BUBBLE_PREFERENCE_SELECTED_true() local 115 appRow.bubblePreference = BUBBLE_PREFERENCE_SELECTED; in isAvailable_BUBBLE_PREFERENCE_SELECTED_true() 116 mController.onResume(appRow, null, null, null, null, null, null); in isAvailable_BUBBLE_PREFERENCE_SELECTED_true() 123 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_BUBBLE_PREFERENCE_ALL_true() local 124 appRow.bubblePreference = BUBBLE_PREFERENCE_ALL; in isAvailable_BUBBLE_PREFERENCE_ALL_true() 125 mController.onResume(appRow, null, null, null, null, null, null); in isAvailable_BUBBLE_PREFERENCE_ALL_true() 132 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in filterAndSortConversations_BUBBLE_PREFERENCE_SELECTED_filtersAllowedBubbles() local [all …]
|
D | NotificationsOffPreferenceControllerTest.java | 77 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_yesIfAppBlocked() local 78 appRow.banned = true; in testIsAvailable_yesIfAppBlocked() 79 mController.onResume(appRow, null, null, null, null, null, null); in testIsAvailable_yesIfAppBlocked() 85 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_yesIfChannelGroupBlocked() local 88 mController.onResume(appRow, null, group, null, null, null, null); in testIsAvailable_yesIfChannelGroupBlocked() 94 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_yesIfChannelBlocked() local 97 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_yesIfChannelBlocked() 103 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredIn() local 106 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn() 113 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredOut() local [all …]
|
D | DescriptionPreferenceControllerTest.java | 83 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfChannelGroupBlocked() local 85 mController.onResume(appRow, null, group, null, null, null, null); in testIsAvailable_notIfChannelGroupBlocked() 91 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfChannelBlocked() local 94 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfChannelBlocked() 100 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfNoChannelDesc() local 103 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfNoChannelDesc() 109 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfNoChannelGroupDesc() local 111 mController.onResume(appRow, null, group, null, null, null, null); in testIsAvailable_notIfNoChannelGroupDesc() 117 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_channel() local 121 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_channel() [all …]
|
D | SoundPreferenceControllerTest.java | 114 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfChannelNull() local 115 mController.onResume(appRow, null, null, null, null, null, null); in testIsAvailable_notIfChannelNull() 121 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfNotImportant() local 123 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfNotImportant() 129 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfDefaultChannel() local 132 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfDefaultChannel() 138 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local 140 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable() 146 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredIn() local 148 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn() [all …]
|
D | VisibilityPreferenceControllerTest.java | 124 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notSecure() local 126 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notSecure() 132 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfNotImportant() local 134 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfNotImportant() 140 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local 143 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable() 147 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable() 153 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredIn() local 155 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn() 162 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredOut() local [all …]
|
D | AppLinkPreferenceControllerTest.java | 84 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfAppBlocked() local 85 appRow.banned = true; in testIsAvailable_notIfAppBlocked() 86 mController.onResume(appRow, null, null, null, null, null, null); in testIsAvailable_notIfAppBlocked() 92 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfChannelBlocked() local 95 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfChannelBlocked() 101 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notNoIntent() local 105 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notNoIntent() 111 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local 112 appRow.settingsIntent = new Intent("test"); in testIsAvailable() 116 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable() [all …]
|
D | ConversationPromotePreferenceControllerTest.java | 87 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notConversation() local 89 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notConversation() 95 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_conversation_notDemoted() local 98 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_conversation_notDemoted() 104 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_conversation_demoted() local 108 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_conversation_demoted() 114 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredIn() local 118 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn() 125 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredOut() local 129 mController.onResume(appRow, channel, null, null, null, null, new ArrayList<>()); in testIsAvailable_filteredOut() [all …]
|
D | ConversationPriorityPreferenceControllerTest.java | 100 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notChannelNull() local 101 mController.onResume(appRow, null, null, null, null, null, null); in testIsAvailable_notChannelNull() 107 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local 109 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable() 115 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredIn() local 117 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn() 121 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn() 128 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredOut() local 130 mController.onResume(appRow, channel, null, null, null, null, new ArrayList<>()); in testIsAvailable_filteredOut() 149 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testUpdateState_notConfigurable() local [all …]
|
D | VibrationPreferenceControllerTest.java | 103 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notSystemDoesNotHave() local 105 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notSystemDoesNotHave() 111 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfNotImportant() local 113 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfNotImportant() 119 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfDefaultChannel() local 122 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfDefaultChannel() 128 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local 130 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable() 136 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredIn() local 138 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn() [all …]
|
D | ConversationDemotePreferenceControllerTest.java | 84 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notConversation() local 86 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notConversation() 92 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_conversation_demoted() local 96 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_conversation_demoted() 102 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_conversation_notDemoted() local 106 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_conversation_notDemoted() 112 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredIn() local 116 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn() 123 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredOut() local 127 mController.onResume(appRow, channel, null, null, null, null, new ArrayList<>()); in testIsAvailable_filteredOut() [all …]
|
D | LightsPreferenceControllerTest.java | 114 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfConfigNotAllowed() local 116 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfConfigNotAllowed() 123 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfSettingNotAllowed() local 125 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfSettingNotAllowed() 131 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfNotImportant() local 133 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfNotImportant() 139 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfDefaultChannel() local 142 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfDefaultChannel() 148 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local 150 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppNotificationPreferenceControllerTest.java | 122 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in getNotificationSummary_appBlocked() local 123 appRow.banned = true; in getNotificationSummary_appBlocked() 124 appRow.blockedChannelCount = 30; in getNotificationSummary_appBlocked() 126 AppNotificationPreferenceController.getNotificationSummary(appRow, mContext).toString()) in getNotificationSummary_appBlocked() 132 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in getNotificationSummary_appNotBlockedAllChannelsBlocked() local 133 appRow.banned = false; in getNotificationSummary_appNotBlockedAllChannelsBlocked() 134 appRow.blockedChannelCount = 30; in getNotificationSummary_appNotBlockedAllChannelsBlocked() 135 appRow.channelCount = 30; in getNotificationSummary_appNotBlockedAllChannelsBlocked() 137 AppNotificationPreferenceController.getNotificationSummary(appRow, mContext).toString()) in getNotificationSummary_appNotBlockedAllChannelsBlocked() 143 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in getNotificationSummary_appNotBlocked() local [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppNotificationPreferenceController.java | 78 NotificationBackend.AppRow appRow = in getNotificationSummary() local 80 return getNotificationSummary(appRow, context); in getNotificationSummary() 83 public static CharSequence getNotificationSummary(NotificationBackend.AppRow appRow, in getNotificationSummary() argument 85 if (appRow == null) { in getNotificationSummary() 88 if (appRow.banned) { in getNotificationSummary() 90 } else if (appRow.channelCount == 0) { in getNotificationSummary() 91 return NotificationBackend.getSentSummary(context, appRow.sentByApp, false); in getNotificationSummary() 92 } else if (appRow.channelCount == appRow.blockedChannelCount) { in getNotificationSummary() 95 if (appRow.blockedChannelCount == 0) { in getNotificationSummary() 96 return NotificationBackend.getSentSummary(context, appRow.sentByApp, false); in getNotificationSummary() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | NotificationBackendTest.java | 75 AppRow appRow = new AppRow(); in testMarkAppRow_unblockablePackage() local 77 appRow.pkg = packageName; in testMarkAppRow_unblockablePackage() 81 NotificationBackend.markAppRowWithBlockables(nonBlockablePkgs, appRow, packageName); in testMarkAppRow_unblockablePackage() 84 assertTrue(appRow.lockedImportance); in testMarkAppRow_unblockablePackage() 98 AppRow appRow = new NotificationBackend().loadAppRow(RuntimeEnvironment.application, in testMarkAppRow_defaultPackage() local 101 assertTrue(appRow.systemApp); in testMarkAppRow_defaultPackage() 115 AppRow appRow = new NotificationBackend().loadAppRow(RuntimeEnvironment.application, in testMarkAppRow_notDefaultPackage() local 118 assertFalse(appRow.systemApp); in testMarkAppRow_notDefaultPackage() 144 AppRow appRow = new AppRow(); in testGetAggregatedUsageEvents_multipleEventsAgg() local 145 appRow.pkg = "pkg"; in testGetAggregatedUsageEvents_multipleEventsAgg() [all …]
|