Home
last modified time | relevance | path

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

12

/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
H A DBlockPreferenceControllerTest.java114 appRow.systemApp = true; in testIsAvailable_channelNotBlockable()
124 appRow.systemApp = true; in testIsAvailable_channelNonDefault()
144 appRow.systemApp = true; in testIsAvailable_GroupNotBlockable()
153 appRow.systemApp = true; in testIsAvailable_AppNotBlockable()
293 appRow.banned = true; in testUpdateState_app()
299 appRow.banned = false; in testUpdateState_app()
316 appRow.banned = true; in testUpdateState_group()
323 appRow.banned = false; in testUpdateState_group()
340 appRow.banned = true; in testUpdateState_channelBlocked()
347 appRow.banned = false; in testUpdateState_channelBlocked()
[all …]
H A DBubblePreferenceControllerTest.java290 appRow.pkg = "a"; in updateState_app_disabledByAdmin()
304 appRow.pkg = "a"; in updateState_channel_channelNotBlockable()
319 appRow.pkg = "a"; in updateState_channel()
340 appRow.pkg = "a"; in updateState_app()
367 appRow.pkg = "a"; in updateState_app_offGlobally()
381 appRow.pkg = "a"; in onPreferenceChange_on_channel()
401 appRow.pkg = "a"; in onPreferenceChange_off_channel()
422 appRow.pkg = "a"; in onPreferenceChange_app_all()
442 appRow.pkg = "a"; in testOnPreferenceChange_app_all_offGlobally()
462 appRow.pkg = "a"; in onPreferenceChange_app_selected()
[all …]
H A DInvalidConversationPreferenceControllerTest.java102 appRow.pkg = "hi"; in testIsAvailable_notIfAppBlocked()
103 appRow.uid = 0; in testIsAvailable_notIfAppBlocked()
113 appRow.pkg = "hi"; in testIsAvailable_notIfInValidMsgState()
114 appRow.uid = 0; in testIsAvailable_notIfInValidMsgState()
123 appRow.pkg = "hi"; in testIsAvailable()
124 appRow.uid = 0; in testIsAvailable()
133 appRow.pkg = "hi"; in testIsAvailable_filteredIn()
134 appRow.uid = 0; in testIsAvailable_filteredIn()
144 appRow.pkg = "hi"; in testIsAvailable_filteredOut()
145 appRow.uid = 0; in testIsAvailable_filteredOut()
[all …]
H A DBadgePreferenceControllerTest.java100 appRow.banned = true; in testIsAvailable_notIfAppBlocked()
117 appRow.showBadge = false; in testIsAvailable_channel_notIfAppOff()
148 appRow.showBadge = true; in testIsAvailable_defaultChannel()
161 appRow.showBadge = true; in testIsAvailable_channel()
173 appRow.showBadge = false; in testIsAvailable_channelAppOff()
185 appRow.showBadge = true; in testIsAvailable_filteredOut()
197 appRow.showBadge = true; in testIsAvailable_filteredIn()
256 appRow.showBadge = true; in testUpdateState_app()
273 appRow.showBadge = true; in testOnPreferenceChange_on_channel()
292 appRow.showBadge = true; in testOnPreferenceChange_off_channel()
[all …]
H A DNotificationPreferenceControllerTest.java102 appRow.banned = true; in isAvailable_notIfAppBlocked()
167 assertEquals(appRow, mController.mAppRow); in testOnResume()
253 appRow.systemApp = false; in testIsChannelBlockable_nonSystemAppsBlockable()
264 appRow.systemApp = true; in testIsChannelBlockable_mostSystemAppsNotBlockable()
276 appRow.systemApp = true; in testIsChannelBlockable_someSystemAppsAreBlockable()
287 appRow.systemApp = true; in testIsChannelBlockable_canUndoSystemBlock()
299 appRow.systemApp = false; in testIsChannelGroupBlockable_nonSystemBlockable()
310 appRow.systemApp = false; in testIsChannelBlockable_oemLocked()
322 appRow.systemApp = false; in testIsChannelBlockable_criticalDeviceFunction()
334 appRow.systemApp = true; in testIsChannelGroupBlockable_SystemNotBlockable()
[all …]
H A DInvalidConversationInfoPreferenceControllerTest.java95 appRow.pkg = "hi"; in testIsAvailable_notIfAppBlocked()
96 appRow.uid = 0; in testIsAvailable_notIfAppBlocked()
106 appRow.pkg = "hi"; in testIsAvailable_notIfInValidMsgState()
107 appRow.uid = 0; in testIsAvailable_notIfInValidMsgState()
116 appRow.pkg = "hi"; in testIsAvailable()
117 appRow.uid = 0; in testIsAvailable()
126 appRow.pkg = "hi"; in testIsAvailable_filteredIn()
127 appRow.uid = 0; in testIsAvailable_filteredIn()
137 appRow.pkg = "hi"; in testIsAvailable_filteredOut()
138 appRow.uid = 0; in testIsAvailable_filteredOut()
[all …]
H A DHeaderPreferenceControllerTest.java99 appRow.banned = true; in testIsAvailable()
100 mController.onResume(appRow, null, null, null, null, null, null); in testIsAvailable()
107 appRow.banned = true; in testIsAvailable_ignoredFilter()
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()
121 assertEquals(appRow.label, mController.getLabel()); in testGetLabel()
130 assertEquals(appRow.label, mController.getLabel()); in testGetLabel()
136 appRow.label = "bananas"; in testGetSummary()
142 assertEquals(appRow.label, mController.getSummary()); in testGetSummary()
[all …]
H A DConversationHeaderPreferenceControllerTest.java99 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()
108 appRow.banned = true; in testIsAvailable_ignoresFilter()
118 mController.onResume(appRow, null, null, null, si, null, null); in testGetLabel()
122 mController.onResume(appRow, channel, null, null, null, null, null); in testGetLabel()
129 appRow.label = "bananas"; in testGetSummary()
130 mController.onResume(appRow, null, null, null, null, null, null); in testGetSummary()
134 mController.onResume(appRow, null, group, null, null, null, null); in testGetSummary()
135 assertEquals(appRow.label, mController.getSummary()); in testGetSummary()
[all …]
H A DHighImportancePreferenceControllerTest.java101 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ifAppBlocked() local
102 appRow.banned = true; 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()
131 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable()
140 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn()
173 mController.onResume(appRow, channel, null, null, null, null, null); in testUpdateState_notConfigurable()
184 appRow.systemApp = true; in testUpdateState_systemButConfigurable()
[all …]
H A DMinImportancePreferenceControllerTest.java101 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ifAppBlocked() local
102 appRow.banned = true; 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()
131 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable()
140 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn()
173 mController.onResume(appRow, channel, null, null, null, null, null); in testUpdateState_notConfigurable()
184 appRow.systemApp = true; in testUpdateState_systemButConfigurable()
[all …]
H A DAppBubbleListPreferenceControllerTest.java106 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()
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()
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()
133 appRow.bubblePreference = BUBBLE_PREFERENCE_SELECTED; in filterAndSortConversations_BUBBLE_PREFERENCE_SELECTED_filtersAllowedBubbles()
134 mController.onResume(appRow, null, null, null, null, null, null); in filterAndSortConversations_BUBBLE_PREFERENCE_SELECTED_filtersAllowedBubbles()
146 appRow.bubblePreference = BUBBLE_PREFERENCE_ALL; in filterAndSortConversations_BUBBLE_PREFERENCE_ALL_filtersExcludedBubbles()
159 appRow.bubblePreference = BUBBLE_PREFERENCE_ALL; in clickConversationPref_updatesChannel()
[all …]
H A DNotificationsOffPreferenceControllerTest.java77 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()
106 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn()
139 mController.onResume(appRow, null, group, null, null, null, null); in testUpdateState_channelGroup()
151 appRow.banned = true; in testUpdateState_app()
[all …]
H A DImportancePreferenceControllerTest.java107 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ifAppBlocked() local
108 appRow.banned = true; 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()
139 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_notForDefaultChannel()
148 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable()
157 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn()
201 appRow.systemApp = true; in testUpdateState_systemButConfigurable()
[all …]
H A DDescriptionPreferenceControllerTest.java83 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()
111 mController.onResume(appRow, null, group, null, null, null, null); in testIsAvailable_notIfNoChannelGroupDesc()
121 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable_channel()
131 mController.onResume(appRow, null, group, null, null, null, null); in testIsAvailable_channelGroup()
146 mController.onResume(appRow, channel, null, null, null, null, null); in testUpdateState_channel()
[all …]
H A 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()
112 appRow.settingsIntent = new Intent("test"); in testIsAvailable()
116 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable()
129 appRow.settingsIntent = intent; in testUpdateState()
[all …]
H A DConversationPromotePreferenceControllerTest.java87 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
140 mController.onResume(appRow, channel, null, null, null, null, null); in testHandlePreferenceClick()
[all …]
H A 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()
148 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn()
190 mController.onResume(appRow, channel, null, null, null, null, null); in testUpdateState_notBlockable()
[all …]
H A DConversationDemotePreferenceControllerTest.java84 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
133 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testHandlePreferenceClick() local
[all …]
H A 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 …]
H A 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()
138 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn()
169 mController.onResume(appRow, channel, null, null, null, null, null); in testUpdateState_notBlockable()
[all …]
H A DConversationPriorityPreferenceControllerTest.java100 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()
153 mController.onResume(appRow, channel, null, null, null, null, null); in testUpdateState_notConfigurable()
164 appRow.systemApp = true; in testUpdateState_systemButConfigurable()
168 mController.onResume(appRow, channel, null, null, null, null, null); in testUpdateState_systemButConfigurable()
[all …]
H A 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()
150 mController.onResume(appRow, channel, null, null, null, null, null); in testIsAvailable()
158 mController.onResume(appRow, channel, null, null, null, null, in testIsAvailable_filteredIn()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
H A DAppNotificationPreferenceControllerTest.java123 appRow.banned = true; in getNotificationSummary_appBlocked()
133 appRow.banned = false; in getNotificationSummary_appNotBlockedAllChannelsBlocked()
135 appRow.channelCount = 30; in getNotificationSummary_appNotBlockedAllChannelsBlocked()
144 appRow.banned = false; in getNotificationSummary_appNotBlocked()
146 appRow.channelCount = 60; in getNotificationSummary_appNotBlocked()
161 appRow.banned = false; in getNotificationSummary_channelsNotBlocked()
162 appRow.blockedChannelCount = 0; in getNotificationSummary_channelsNotBlocked()
163 appRow.channelCount = 10; in getNotificationSummary_channelsNotBlocked()
175 appRow.banned = false; in getNotificationSummary_noChannels()
176 appRow.blockedChannelCount = 0; in getNotificationSummary_noChannels()
[all …]
/aosp12/packages/apps/Settings/src/com/android/settings/applications/appinfo/
H A DAppNotificationPreferenceController.java78 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()
99 NotificationBackend.getSentSummary(context, appRow.sentByApp, false), in getNotificationSummary()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
H A DNotificationBackendTest.java75 AppRow appRow = new AppRow(); in testMarkAppRow_unblockablePackage() local
77 appRow.pkg = packageName; in testMarkAppRow_unblockablePackage()
84 assertTrue(appRow.lockedImportance); in testMarkAppRow_unblockablePackage()
101 assertTrue(appRow.systemApp); in testMarkAppRow_defaultPackage()
118 assertFalse(appRow.systemApp); in testMarkAppRow_notDefaultPackage()
144 AppRow appRow = new AppRow(); in testGetAggregatedUsageEvents_multipleEventsAgg() local
145 appRow.pkg = "pkg"; in testGetAggregatedUsageEvents_multipleEventsAgg()
146 backend.recordAggregatedUsageEvents(getUsageEvents(events), appRow); in testGetAggregatedUsageEvents_multipleEventsAgg() local
154 assertThat(appRow.sentByApp.sentCount).isEqualTo(3); in testGetAggregatedUsageEvents_multipleEventsAgg()
155 assertThat(appRow.sentByApp.lastSent).isEqualTo(6); in testGetAggregatedUsageEvents_multipleEventsAgg()
[all …]

12