Home
last modified time | relevance | path

Searched refs:NotificationsSentState (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateNotificationBridgeTest.java55 import com.android.settings.applications.AppStateNotificationBridge.NotificationsSentState;
149 Map<String, NotificationsSentState> map = mBridge.getAggregatedUsageEvents(); in testGetAggregatedUsageEvents_onlyNotificationEvents()
171 Map<String, NotificationsSentState> map = mBridge.getAggregatedUsageEvents(); in testGetAggregatedUsageEvents_multipleEventsAgg()
194 Map<String, NotificationsSentState> map in testGetAggregatedUsageEvents_multiplePkgs()
215 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentDaily).isEqualTo(0); in testLoadAllExtraInfo_noEvents()
216 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(0); in testLoadAllExtraInfo_noEvents()
239 assertThat(((NotificationsSentState) apps.get(0).extraInfo).sentCount).isEqualTo(7); in testLoadAllExtraInfo_multipleEventsAgg()
240 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(6); in testLoadAllExtraInfo_multipleEventsAgg()
241 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentDaily).isEqualTo(1); in testLoadAllExtraInfo_multipleEventsAgg()
242 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentWeekly).isEqualTo(0); in testLoadAllExtraInfo_multipleEventsAgg()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateNotificationBridge.java81 final Map<String, NotificationsSentState> map = getAggregatedUsageEvents(); in loadAllExtraInfo()
83 NotificationsSentState stats = in loadAllExtraInfo()
86 stats = new NotificationsSentState(); in loadAllExtraInfo()
96 NotificationsSentState stats = getAggregatedUsageEvents( in updateExtraInfo()
103 public static CharSequence getSummary(Context context, NotificationsSentState state, in getSummary()
123 private void addBlockStatus(AppEntry entry, NotificationsSentState stats) { in addBlockStatus()
130 private void calculateAvgSentCounts(NotificationsSentState stats) { in calculateAvgSentCounts()
139 protected Map<String, NotificationsSentState> getAggregatedUsageEvents() { in getAggregatedUsageEvents()
140 ArrayMap<String, NotificationsSentState> aggregatedStats = new ArrayMap<>(); in getAggregatedUsageEvents()
156 NotificationsSentState stats = in getAggregatedUsageEvents()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java484 appRow.sentByApp = new NotificationsSentState(); in recordAggregatedUsageEvents()
493 NotificationsSentState stats = appRow.sentByChannel.get(channelId); in recordAggregatedUsageEvents()
495 stats = new NotificationsSentState(); in recordAggregatedUsageEvents()
513 public static CharSequence getSentSummary(Context context, NotificationsSentState state, in getSentSummary()
534 private void calculateAvgSentCounts(NotificationsSentState stats) { in calculateAvgSentCounts()
671 public static class NotificationsSentState { class in NotificationBackend
700 public Map<String, NotificationsSentState> sentByChannel;
701 public NotificationsSentState sentByApp;
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppNotificationPreferenceControllerTest.java151 appRow.sentByApp = new NotificationBackend.NotificationsSentState(); in getNotificationSummary_appNotBlocked()
168 appRow.sentByApp = new NotificationBackend.NotificationsSentState(); in getNotificationSummary_channelsNotBlocked()
182 appRow.sentByApp = new NotificationBackend.NotificationsSentState(); in getNotificationSummary_noChannels()
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/app/
DChannelListPreferenceControllerTest.java45 import com.android.settings.notification.NotificationBackend.NotificationsSentState;
342 NotificationsSentState sentA = new NotificationsSentState(); in testUpdateFullList_channelUpdates()
345 NotificationsSentState sentB = new NotificationsSentState(); in testUpdateFullList_channelUpdates()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DManageApplications.java127 import com.android.settings.applications.AppStateNotificationBridge.NotificationsSentState;
1804 && entry.extraInfo instanceof NotificationsSentState) { in updateSummary()
1806 (NotificationsSentState) entry.extraInfo, mLastSortMode)); in updateSummary()
1878 && entry.extraInfo instanceof NotificationsSentState) { in updateSwitch()
1880 (NotificationsSentState) entry.extraInfo, mLastSortMode)); in updateSwitch()