Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateNotificationBridgeTest.java60 import com.android.settings.applications.AppStateNotificationBridge.NotificationsSentState;
153 Map<String, NotificationsSentState> map = mBridge.getAggregatedUsageEvents(); in testGetAggregatedUsageEvents_onlyNotificationEvents()
175 Map<String, NotificationsSentState> map = mBridge.getAggregatedUsageEvents(); in testGetAggregatedUsageEvents_multipleEventsAgg()
198 Map<String, NotificationsSentState> map in testGetAggregatedUsageEvents_multiplePkgs()
219 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentDaily).isEqualTo(0); in testLoadAllExtraInfo_noEvents()
220 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(0); in testLoadAllExtraInfo_noEvents()
243 assertThat(((NotificationsSentState) apps.get(0).extraInfo).sentCount).isEqualTo(7); in testLoadAllExtraInfo_multipleEventsAgg()
244 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(6); in testLoadAllExtraInfo_multipleEventsAgg()
245 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentDaily).isEqualTo(1); in testLoadAllExtraInfo_multipleEventsAgg()
246 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentWeekly).isEqualTo(0); in testLoadAllExtraInfo_multipleEventsAgg()
[all …]
DSpecialAppAccessPreferenceControllerTest.java114 entry.extraInfo = new AppStateNotificationBridge.NotificationsSentState(); in updateState_wrongExtraInfo_shouldNotIncludeInSummary()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateNotificationBridge.java85 final Map<String, NotificationsSentState> map = getAggregatedUsageEvents(); in loadAllExtraInfo()
87 NotificationsSentState stats = in loadAllExtraInfo()
90 stats = new NotificationsSentState(); in loadAllExtraInfo()
100 NotificationsSentState stats = getAggregatedUsageEvents( in updateExtraInfo()
107 public static CharSequence getSummary(Context context, NotificationsSentState state, in getSummary()
127 private void addBlockStatus(AppEntry entry, NotificationsSentState stats) { in addBlockStatus()
135 private void calculateAvgSentCounts(NotificationsSentState stats) { in calculateAvgSentCounts()
144 protected Map<String, NotificationsSentState> getAggregatedUsageEvents() { in getAggregatedUsageEvents()
145 ArrayMap<String, NotificationsSentState> aggregatedStats = new ArrayMap<>(); in getAggregatedUsageEvents()
161 NotificationsSentState stats = in getAggregatedUsageEvents()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java496 appRow.sentByApp = new NotificationsSentState(); in recordAggregatedUsageEvents()
505 NotificationsSentState stats = appRow.sentByChannel.get(channelId); in recordAggregatedUsageEvents()
507 stats = new NotificationsSentState(); in recordAggregatedUsageEvents()
525 public static CharSequence getSentSummary(Context context, NotificationsSentState state, in getSentSummary()
546 private void calculateAvgSentCounts(NotificationsSentState stats) { in calculateAvgSentCounts()
678 public static class NotificationsSentState { class in NotificationBackend
704 public Map<String, NotificationsSentState> sentByChannel;
705 public NotificationsSentState sentByApp;
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/notification/app/
DChannelListPreferenceControllerTest.java45 import com.android.settings.notification.NotificationBackend.NotificationsSentState;
334 NotificationsSentState sentA = new NotificationsSentState(); in testUpdateFullList_channelUpdates()
337 NotificationsSentState sentB = new NotificationsSentState(); in testUpdateFullList_channelUpdates()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppNotificationPreferenceControllerTest.java147 appRow.sentByApp = new NotificationBackend.NotificationsSentState(); in getNotificationSummary_appNotBlocked()
164 appRow.sentByApp = new NotificationBackend.NotificationsSentState(); in getNotificationSummary_channelsNotBlocked()
178 appRow.sentByApp = new NotificationBackend.NotificationsSentState(); in getNotificationSummary_noChannels()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DManageApplications.java101 import com.android.settings.applications.AppStateNotificationBridge.NotificationsSentState;
1457 && entry.extraInfo instanceof NotificationsSentState) { in updateSummary()
1459 (NotificationsSentState) entry.extraInfo, mLastSortMode)); in updateSummary()
1512 && entry.extraInfo instanceof NotificationsSentState) { in updateSwitch()
1514 (NotificationsSentState) entry.extraInfo, mLastSortMode)); in updateSwitch()