Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DBlockPreferenceControllerTest.java106 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_channelNotBlockable() local
107 appRow.systemApp = true; in testIsAvailable_channelNotBlockable()
110 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_channelNotBlockable()
116 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_channelNonDefault() local
117 appRow.systemApp = true; in testIsAvailable_channelNonDefault()
120 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_channelNonDefault()
126 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ifChannelDefault() local
130 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_ifChannelDefault()
136 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_GroupNotBlockable() local
137 appRow.systemApp = true; in testIsAvailable_GroupNotBlockable()
[all …]
DBubblePreferenceControllerTest.java123 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfAppBlocked() local
124 appRow.banned = true; in isAvailable_notIfAppBlocked()
125 mController.onResume(appRow, mock(NotificationChannel.class), null, null, null, null); in isAvailable_notIfAppBlocked()
132 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfChannelBlocked() local
135 mController.onResume(appRow, channel, null, null, null, null); in isAvailable_notIfChannelBlocked()
142 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_channel_yesIfAppOff() local
143 appRow.bubblePreference = BUBBLE_PREFERENCE_NONE; in isAvailable_channel_yesIfAppOff()
146 mController.onResume(appRow, channel, null, null, null, null); in isAvailable_channel_yesIfAppOff()
153 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isNotAvailable_ifOffGlobally_app() local
154 mController.onResume(appRow, null, null, null, null, null); in isNotAvailable_ifOffGlobally_app()
[all …]
DNotificationPreferenceControllerTest.java99 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfAppBlocked() local
100 appRow.banned = true; in isAvailable_notIfAppBlocked()
101 mController.onResume(appRow, mock(NotificationChannel.class), in isAvailable_notIfAppBlocked()
108 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfChannelBlocked() local
114 mController.onResume(appRow, channel, group, null, null, null); in isAvailable_notIfChannelBlocked()
120 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_notIfChannelGroupBlocked() local
125 mController.onResume(appRow, channel, group, null, null, null); in isAvailable_notIfChannelGroupBlocked()
132 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable() local
138 mController.onResume(appRow, channel, group, null, null, null); in isAvailable()
144 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testOnResume() local
[all …]
DBadgePreferenceControllerTest.java94 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfAppBlocked() local
95 appRow.banned = true; in testIsAvailable_notIfAppBlocked()
96 mController.onResume(appRow, mock(NotificationChannel.class), null, null, null, null); in testIsAvailable_notIfAppBlocked()
102 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfChannelBlocked() local
105 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_notIfChannelBlocked()
111 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_channel_notIfAppOff() local
112 appRow.showBadge = false; in testIsAvailable_channel_notIfAppOff()
115 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_channel_notIfAppOff()
122 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfOffGlobally() local
125 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_notIfOffGlobally()
[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); 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); in testIsAvailable_notIfInValidMsgState()
122 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local
[all …]
DInvalidConversationInfoPreferenceControllerTest.java89 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfAppBlocked() local
90 appRow.pkg = "hi"; in testIsAvailable_notIfAppBlocked()
91 appRow.uid = 0; in testIsAvailable_notIfAppBlocked()
92 appRow.banned = true; in testIsAvailable_notIfAppBlocked()
93 mController.onResume(appRow, null, null, null, null, null); in testIsAvailable_notIfAppBlocked()
100 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfInValidMsgState() local
101 appRow.pkg = "hi"; in testIsAvailable_notIfInValidMsgState()
102 appRow.uid = 0; in testIsAvailable_notIfInValidMsgState()
103 mController.onResume(appRow, null, null, null, null, null); in testIsAvailable_notIfInValidMsgState()
110 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local
[all …]
DHeaderPreferenceControllerTest.java96 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local
97 appRow.banned = true; in testIsAvailable()
98 mController.onResume(appRow, null, null, null, null, null); in testIsAvailable()
104 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testGetLabel() local
105 appRow.label = "bananas"; in testGetLabel()
106 mController.onResume(appRow, null, null, null, null, null); in testGetLabel()
107 assertEquals(appRow.label, mController.getLabel()); in testGetLabel()
110 mController.onResume(appRow, null, group, null, null, null); in testGetLabel()
114 mController.onResume(appRow, channel, group, null, null, null); in testGetLabel()
119 mController.onResume(appRow, defaultChannel, 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); 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); 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); in isAvailable_BUBBLE_PREFERENCE_ALL_true()
132 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in filterAndSortConversations_BUBBLE_PREFERENCE_SELECTED_filtersAllowedBubbles() local
[all …]
DHighImportancePreferenceControllerTest.java97 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ifAppBlocked() local
98 appRow.banned = true; in testIsAvailable_ifAppBlocked()
99 mController.onResume(appRow, mock(NotificationChannel.class), null, null, null, null); in testIsAvailable_ifAppBlocked()
105 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfChannelBlocked() local
108 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_notIfChannelBlocked()
114 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notForDefaultChannel() local
118 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_notForDefaultChannel()
124 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local
127 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable()
146 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testUpdateState_notConfigurable() local
[all …]
DMinImportancePreferenceControllerTest.java97 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ifAppBlocked() local
98 appRow.banned = true; in testIsAvailable_ifAppBlocked()
99 mController.onResume(appRow, mock(NotificationChannel.class), null, null, null, null); in testIsAvailable_ifAppBlocked()
105 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfChannelBlocked() local
108 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_notIfChannelBlocked()
114 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notForDefaultChannel() local
118 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_notForDefaultChannel()
124 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local
127 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable()
146 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testUpdateState_notConfigurable() local
[all …]
DImportancePreferenceControllerTest.java103 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ifAppBlocked() local
104 appRow.banned = true; in testIsAvailable_ifAppBlocked()
105 mController.onResume(appRow, mock(NotificationChannel.class), null, null, null, null); in testIsAvailable_ifAppBlocked()
111 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_isGroupBlocked() local
116 mController.onResume(appRow, channel, group, null, null, null); in testIsAvailable_isGroupBlocked()
122 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_ifChannelBlocked() local
125 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_ifChannelBlocked()
131 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notForDefaultChannel() local
135 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_notForDefaultChannel()
141 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local
[all …]
DConversationHeaderPreferenceControllerTest.java97 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local
98 appRow.banned = true; in testIsAvailable()
99 mController.onResume(appRow, null, null, null, null, null); in testIsAvailable()
107 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testGetLabel() local
108 mController.onResume(appRow, null, null, null, si, null); in testGetLabel()
112 mController.onResume(appRow, channel, null, null, null, null); in testGetLabel()
118 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testGetSummary() local
119 appRow.label = "bananas"; in testGetSummary()
120 mController.onResume(appRow, null, null, null, null, null); in testGetSummary()
124 mController.onResume(appRow, null, group, null, null, null); in testGetSummary()
[all …]
DDescriptionPreferenceControllerTest.java83 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfChannelGroupBlocked() local
85 mController.onResume(appRow, null, group, 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); in testIsAvailable_notIfChannelBlocked()
100 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfNoChannelDesc() local
103 mController.onResume(appRow, channel, 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); in testIsAvailable_notIfNoChannelGroupDesc()
117 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_channel() local
121 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_channel()
[all …]
DNotificationsOffPreferenceControllerTest.java73 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_yesIfAppBlocked() local
74 appRow.banned = true; in testIsAvailable_yesIfAppBlocked()
75 mController.onResume(appRow, null, null, null, null, null); in testIsAvailable_yesIfAppBlocked()
81 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_yesIfChannelGroupBlocked() local
84 mController.onResume(appRow, null, group, null, null, null); in testIsAvailable_yesIfChannelGroupBlocked()
90 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_yesIfChannelBlocked() local
93 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_yesIfChannelBlocked()
99 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testUpdateState_channel() local
102 mController.onResume(appRow, channel, null, null, null, null); in testUpdateState_channel()
113 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testUpdateState_channelGroup() 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); in testIsAvailable_notIfAppBlocked()
92 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfChannelBlocked() local
95 mController.onResume(appRow, channel, 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); 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); in testIsAvailable()
[all …]
DVisibilityPreferenceControllerTest.java122 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notSecure() local
124 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_notSecure()
130 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfNotImportant() local
132 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_notIfNotImportant()
138 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local
141 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable()
145 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable()
198 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testUpdateState_noLockScreenNotificationsGlobally() local
200 mController.onResume(appRow, channel, null, null, null, null); in testUpdateState_noLockScreenNotificationsGlobally()
223 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testUpdateState_noLockScreenNotificationsGloballyInProfile() local
[all …]
DSoundPreferenceControllerTest.java110 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfChannelNull() local
111 mController.onResume(appRow, null, null, null, null, null); in testIsAvailable_notIfChannelNull()
117 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfNotImportant() local
119 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_notIfNotImportant()
125 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notIfDefaultChannel() local
128 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_notIfDefaultChannel()
134 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local
136 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable()
166 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testUpdateState_notBlockable() local
169 mController.onResume(appRow, channel, null, null, null, null); in testUpdateState_notBlockable()
[all …]
DBubbleSummaryPreferenceControllerTest.java88 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in isAvailable_appBlocked_shouldReturnFalse() local
89 appRow.banned = true; in isAvailable_appBlocked_shouldReturnFalse()
90 mController.onResume(appRow, mock(NotificationChannel.class), null, null, null, null); in isAvailable_appBlocked_shouldReturnFalse()
157 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in getSummary_NOTIFICATION_BUBBLESIsOff_returnsNoneString() local
158 mController.onResume(appRow, null, null, null, null, null); in getSummary_NOTIFICATION_BUBBLESIsOff_returnsNoneString()
169 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in getSummary_BUBBLE_PREFERENCE_NONEisSelected_returnsNoneString() local
170 appRow.bubblePreference = BUBBLE_PREFERENCE_NONE; in getSummary_BUBBLE_PREFERENCE_NONEisSelected_returnsNoneString()
171 mController.onResume(appRow, null, null, null, null, null); in getSummary_BUBBLE_PREFERENCE_NONEisSelected_returnsNoneString()
182 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in getSummary_BUBBLE_PREFERENCE_ALLisSelected_returnsAllString() local
183 appRow.bubblePreference = BUBBLE_PREFERENCE_ALL; in getSummary_BUBBLE_PREFERENCE_ALLisSelected_returnsAllString()
[all …]
DConversationPriorityPreferenceControllerTest.java97 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notChannelNull() local
98 mController.onResume(appRow, null, null, null, null, null); in testIsAvailable_notChannelNull()
104 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable() local
106 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable()
125 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testUpdateState_notConfigurable() local
129 mController.onResume(appRow, channel, null, null, null, null); in testUpdateState_notConfigurable()
139 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testUpdateState_systemButConfigurable() local
140 appRow.systemApp = true; in testUpdateState_systemButConfigurable()
144 mController.onResume(appRow, channel, null, null, null, null); in testUpdateState_systemButConfigurable()
154 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testUpdateState_defaultApp() local
[all …]
DConversationPromotePreferenceControllerTest.java82 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_notConversation() local
84 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_notConversation()
90 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_conversation_notDemoted() local
93 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_conversation_notDemoted()
99 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testIsAvailable_conversation_demoted() local
103 mController.onResume(appRow, channel, null, null, null, null); in testIsAvailable_conversation_demoted()
109 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testHandlePreferenceClick() local
114 mController.onResume(appRow, channel, null, null, null, null); in testHandlePreferenceClick()
132 NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); in testHandlePreferenceClick_wrongKey() local
136 mController.onResume(appRow, channel, null, null, null, null); in testHandlePreferenceClick_wrongKey()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppNotificationPreferenceControllerTest.java122 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/tests/robotests/src/com/android/settings/notification/
DNotificationBackendTest.java49 AppRow appRow = new AppRow(); in testMarkAppRow_unblockablePackage() local
51 appRow.pkg = packageName; in testMarkAppRow_unblockablePackage()
55 NotificationBackend.markAppRowWithBlockables(nonBlockablePkgs, appRow, packageName); in testMarkAppRow_unblockablePackage()
58 assertTrue(appRow.lockedImportance); in testMarkAppRow_unblockablePackage()
72 AppRow appRow = new NotificationBackend().loadAppRow(RuntimeEnvironment.application, in testMarkAppRow_defaultPackage() local
75 assertTrue(appRow.systemApp); in testMarkAppRow_defaultPackage()
89 AppRow appRow = new NotificationBackend().loadAppRow(RuntimeEnvironment.application, in testMarkAppRow_notDefaultPackage() local
92 assertFalse(appRow.systemApp); in testMarkAppRow_notDefaultPackage()
118 AppRow appRow = new AppRow(); in testGetAggregatedUsageEvents_multipleEventsAgg() local
119 appRow.pkg = "pkg"; in testGetAggregatedUsageEvents_multipleEventsAgg()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppNotificationPreferenceController.java75 NotificationBackend.AppRow appRow = in getNotificationSummary() local
77 return getNotificationSummary(appRow, context); in getNotificationSummary()
80 public static CharSequence getNotificationSummary(NotificationBackend.AppRow appRow, in getNotificationSummary() argument
82 if (appRow == null) { in getNotificationSummary()
85 if (appRow.banned) { in getNotificationSummary()
87 } else if (appRow.channelCount == 0) { in getNotificationSummary()
88 return NotificationBackend.getSentSummary(context, appRow.sentByApp, false); in getNotificationSummary()
89 } else if (appRow.channelCount == appRow.blockedChannelCount) { in getNotificationSummary()
92 if (appRow.blockedChannelCount == 0) { in getNotificationSummary()
93 return NotificationBackend.getSentSummary(context, appRow.sentByApp, false); in getNotificationSummary()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppNotificationPreferenceController.java75 NotificationBackend.AppRow appRow = in getNotificationSummary() local
77 return getNotificationSummary(appRow, context); in getNotificationSummary()
80 public static CharSequence getNotificationSummary(NotificationBackend.AppRow appRow, in getNotificationSummary() argument
82 if (appRow == null) { in getNotificationSummary()
85 if (appRow.banned) { in getNotificationSummary()
87 } else if (appRow.channelCount == 0) { in getNotificationSummary()
88 return NotificationBackend.getSentSummary(context, appRow.sentByApp, false); in getNotificationSummary()
89 } else if (appRow.channelCount == appRow.blockedChannelCount) { in getNotificationSummary()
92 if (appRow.blockedChannelCount == 0) { in getNotificationSummary()
93 return NotificationBackend.getSentSummary(context, appRow.sentByApp, false); in getNotificationSummary()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DNotificationChannelSlice.java353 private List<NotificationChannel> getDisplayableChannels(NotificationBackend.AppRow appRow) { in getDisplayableChannels() argument
355 mNotificationBackend.getGroups(appRow.pkg, appRow.uid).getList(); in getDisplayableChannels()
358 channel -> isChannelEnabled(group, channel, appRow))) in getDisplayableChannels()
364 NotificationsSentState sentState = appRow.sentByChannel.get(channel.getId()); in getDisplayableChannels()
388 final NotificationBackend.AppRow appRow = mNotificationBackend.loadAppRow(mContext, in getMaxSentNotificationsPackage() local
391 if (appRow.banned || isAllChannelsBlocked(getDisplayableChannels(appRow))) { in getMaxSentNotificationsPackage()
396 final int sentCount = appRow.sentByApp.sentCount; in getMaxSentNotificationsPackage()
400 mAppRow = appRow; in getMaxSentNotificationsPackage()
441 NotificationBackend.AppRow appRow) { in isChannelEnabled() argument
447 && isChannelBlockable(channel, appRow) in isChannelEnabled()
[all …]

12