Home
last modified time | relevance | path

Searched refs:appRow (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DBadgePreferenceControllerTest.java99 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfAppBlocked() local
100 appRow.channelCount = 1; in testIsAvailable_notIfAppBlocked()
101 appRow.banned = true; in testIsAvailable_notIfAppBlocked()
102 mController.onResume(appRow, mock(NotificationChannel.class), null, null, null, null, null); in testIsAvailable_notIfAppBlocked()
108 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfChannelBlocked() local
109 appRow.channelCount = 1; in testIsAvailable_notIfChannelBlocked()
112 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notIfChannelBlocked()
118 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_channel_notIfAppOff() local
119 appRow.channelCount = 1; in testIsAvailable_channel_notIfAppOff()
120 appRow.showBadge = false; in testIsAvailable_channel_notIfAppOff()
[all …]
DNotificationPreferenceControllerTest.java103 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfAppBlocked() local
104 appRow.banned = true; in isAvailable_notIfAppBlocked()
105 mController.onResume(appRow, mock(NotificationChannel.class), in isAvailable_notIfAppBlocked()
112 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfChannelBlocked() local
118 mController.onResume(appRow, channel, group, null, null, null, null); in isAvailable_notIfChannelBlocked()
124 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfChannelGroupBlocked() local
129 mController.onResume(appRow, channel, group, null, null, null, null); in isAvailable_notIfChannelGroupBlocked()
136 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfFailsFilterCheck() local
144 mController.onResume(appRow, channel, group, null, null, null, filter); in isAvailable_notIfFailsFilterCheck()
150 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable() local
[all …]
DBubblePreferenceControllerTest.java135 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfAppBlocked() local
136 appRow.banned = true; in isAvailable_notIfAppBlocked()
137 mController.onResume(appRow, mock(NotificationChannel.class), null, null, null, null, null); in isAvailable_notIfAppBlocked()
144 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfChannelBlocked() local
147 mController.onResume(appRow, channel, null, null, null, null, null); in isAvailable_notIfChannelBlocked()
154 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_channel_notIfAppOff() local
155 appRow.bubblePreference = BUBBLE_PREFERENCE_NONE; in isAvailable_channel_notIfAppOff()
158 mController.onResume(appRow, channel, null, null, null, null, null); in isAvailable_channel_notIfAppOff()
165 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isNotAvailable_ifOffGlobally_app() local
166 mController.onResume(appRow, null, null, null, null, null, null); in isNotAvailable_ifOffGlobally_app()
[all …]
DBlockPreferenceControllerTest.java115 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_channelNotBlockable() local
116 appRow.systemApp = true; in testIsAvailable_channelNotBlockable()
119 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_channelNotBlockable()
125 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_channelNonDefault() local
126 appRow.systemApp = true; in testIsAvailable_channelNonDefault()
129 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_channelNonDefault()
135 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ifChannelDefault() local
139 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_ifChannelDefault()
145 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_GroupNotBlockable() local
146 appRow.systemApp = true; in testIsAvailable_GroupNotBlockable()
[all …]
DInvalidConversationPreferenceControllerTest.java101 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 …]
DInvalidConversationInfoPreferenceControllerTest.java94 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 …]
DHeaderPreferenceControllerTest.java102 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local
103 appRow.banned = true; in testIsAvailable()
104 mController.onResume(appRow, null, null, null, null, null, null); in testIsAvailable()
110 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ignoredFilter() local
111 appRow.banned = true; in testIsAvailable_ignoredFilter()
112 mController.onResume(appRow, null, null, null, null, null, new ArrayList<>()); in testIsAvailable_ignoredFilter()
118 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testGetLabel() local
119 appRow.label = "bananas"; in testGetLabel()
120 mController.onResume(appRow, null, null, null, null, null, null); in testGetLabel()
121 assertEquals(appRow.label, mController.getLabel()); in testGetLabel()
[all …]
DNotificationsOffPreferenceControllerTest.java79 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_yesIfAppBlocked() local
80 appRow.banned = true; in testIsAvailable_yesIfAppBlocked()
81 mController.onResume(appRow, null, null, null, null, null, null); in testIsAvailable_yesIfAppBlocked()
87 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_yesIfChannelGroupBlocked() local
90 mController.onResume(appRow, null, group, null, null, null, null); in testIsAvailable_yesIfChannelGroupBlocked()
96 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_yesIfChannelBlocked() local
99 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_yesIfChannelBlocked()
105 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredIn() local
108 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn()
115 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredOut() local
[all …]
DConversationHeaderPreferenceControllerTest.java104 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local
105 appRow.banned = true; in testIsAvailable()
106 mController.onResume(appRow, null, null, null, null, null, null); in testIsAvailable()
112 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ignoresFilter() local
113 appRow.banned = true; in testIsAvailable_ignoresFilter()
114 mController.onResume(appRow, null, null, null, null, null, new ArrayList<>()); in testIsAvailable_ignoresFilter()
122 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testGetLabel() local
123 mController.onResume(appRow, null, null, null, si, null, null); in testGetLabel()
127 mController.onResume(appRow, channel, null, null, null, null, null); in testGetLabel()
130 mController.onResume(appRow, null, null, null, null, null, null); in testGetLabel()
[all …]
DAppBubbleListPreferenceControllerTest.java105 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 …]
DMinImportancePreferenceControllerTest.java101 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 …]
DHighImportancePreferenceControllerTest.java101 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 …]
DAppLinkPreferenceControllerTest.java84 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 …]
DImportancePreferenceControllerTest.java107 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 …]
DVisibilityPreferenceControllerTest.java124 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 …]
DConversationPromotePreferenceControllerTest.java90 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notConversation() local
92 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notConversation()
98 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_conversation_notDemoted() local
101 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_conversation_notDemoted()
107 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_conversation_demoted() local
111 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_conversation_demoted()
117 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredIn() local
121 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn()
128 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredOut() local
132 mController.onResume(appRow, channel, null, null, null, null, new ArrayList<>()); in testIsAvailable_filteredOut()
[all …]
DSoundPreferenceControllerTest.java114 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 …]
DVibrationPreferenceControllerTest.java103 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 …]
DConversationDemotePreferenceControllerTest.java88 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notConversation() local
90 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notConversation()
96 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_conversation_demoted() local
100 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_conversation_demoted()
106 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_conversation_notDemoted() local
110 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_conversation_notDemoted()
116 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredIn() local
120 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn()
127 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredOut() local
131 mController.onResume(appRow, channel, null, null, null, null, new ArrayList<>()); in testIsAvailable_filteredOut()
[all …]
DLightsPreferenceControllerTest.java114 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 …]
DBubbleSummaryPreferenceControllerTest.java99 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_appBlocked_shouldReturnFalse() local
100 appRow.banned = true; in isAvailable_appBlocked_shouldReturnFalse()
101 mController.onResume(appRow, mock(NotificationChannel.class), null, null, null, null, null); in isAvailable_appBlocked_shouldReturnFalse()
186 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in getSummary_NOTIFICATION_BUBBLESIsOff_returnsNoneString() local
187 mController.onResume(appRow, null, null, null, null, null, null); in getSummary_NOTIFICATION_BUBBLESIsOff_returnsNoneString()
198 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in getSummary_BUBBLE_PREFERENCE_NONEisSelected_returnsNoneString() local
199 appRow.bubblePreference = BUBBLE_PREFERENCE_NONE; in getSummary_BUBBLE_PREFERENCE_NONEisSelected_returnsNoneString()
200 mController.onResume(appRow, null, null, null, null, null, null); in getSummary_BUBBLE_PREFERENCE_NONEisSelected_returnsNoneString()
211 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in getSummary_BUBBLE_PREFERENCE_ALLisSelected_returnsAllString() local
212 appRow.bubblePreference = BUBBLE_PREFERENCE_ALL; in getSummary_BUBBLE_PREFERENCE_ALLisSelected_returnsAllString()
[all …]
DDndPreferenceControllerTest.java89 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_app() local
90 mController.onResume(appRow, null, null, null, null, null, null); in testIsAvailable_app()
97 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_channel() local
100 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_channel()
107 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredIn() local
110 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn()
118 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_filteredOut() local
121 mController.onResume(appRow, channel, null, null, null, null, new ArrayList<>()); in testIsAvailable_filteredOut()
140 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testUpdateState_notBlockable() local
141 appRow.lockedImportance = true; in testUpdateState_notBlockable()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppNotificationPreferenceControllerTest.java126 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in getNotificationSummary_appBlocked() local
127 appRow.banned = true; in getNotificationSummary_appBlocked()
128 appRow.blockedChannelCount = 30; in getNotificationSummary_appBlocked()
130 AppNotificationPreferenceController.getNotificationSummary(appRow, mContext).toString()) in getNotificationSummary_appBlocked()
136 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in getNotificationSummary_appNotBlockedAllChannelsBlocked() local
137 appRow.banned = false; in getNotificationSummary_appNotBlockedAllChannelsBlocked()
138 appRow.blockedChannelCount = 30; in getNotificationSummary_appNotBlockedAllChannelsBlocked()
139 appRow.channelCount = 30; in getNotificationSummary_appNotBlockedAllChannelsBlocked()
141 AppNotificationPreferenceController.getNotificationSummary(appRow, mContext).toString()) in getNotificationSummary_appNotBlockedAllChannelsBlocked()
147 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in getNotificationSummary_appNotBlocked() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationBackendTest.java93 AppRow appRow = new NotificationBackend().loadAppRow(RuntimeEnvironment.application, in testMarkAppRow_fixedImportance() local
96 assertTrue(appRow.systemApp); in testMarkAppRow_fixedImportance()
97 assertTrue(appRow.lockedImportance); in testMarkAppRow_fixedImportance()
110 AppRow appRow = new NotificationBackend().loadAppRow(RuntimeEnvironment.application, in testMarkAppRow_notFixedPermission() local
113 assertFalse(appRow.systemApp); in testMarkAppRow_notFixedPermission()
114 assertFalse(appRow.lockedImportance); in testMarkAppRow_notFixedPermission()
129 AppRow appRow = new NotificationBackend().loadAppRow(RuntimeEnvironment.application, in testMarkAppRow_targetsT_noPermissionRequest() local
132 assertFalse(appRow.systemApp); in testMarkAppRow_targetsT_noPermissionRequest()
133 assertTrue(appRow.lockedImportance); in testMarkAppRow_targetsT_noPermissionRequest()
149 AppRow appRow = new NotificationBackend().loadAppRow(RuntimeEnvironment.application, in testMarkAppRow_targetsT_permissionRequest() local
[all …]
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppNotificationPreferenceController.java91 NotificationBackend.AppRow appRow = in getNotificationSummary() local
93 return getNotificationSummary(appRow, context); in getNotificationSummary()
96 public static CharSequence getNotificationSummary(NotificationBackend.AppRow appRow, in getNotificationSummary() argument
98 if (appRow == null) { in getNotificationSummary()
101 if (appRow.banned) { in getNotificationSummary()
103 } else if (appRow.channelCount == 0) { in getNotificationSummary()
104 return NotificationBackend.getSentSummary(context, appRow.sentByApp, false); in getNotificationSummary()
105 } else if (appRow.channelCount == appRow.blockedChannelCount) { in getNotificationSummary()
108 if (appRow.blockedChannelCount == 0) { in getNotificationSummary()
109 return NotificationBackend.getSentSummary(context, appRow.sentByApp, false); in getNotificationSummary()
[all …]

12