Home
last modified time | relevance | path

Searched refs:avgSentDaily (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/src/com/android/settings/applications/
DAppStateNotificationBridge.java116 if (state.avgSentDaily > 0) { in getSummary()
118 R.plurals.notifications_sent_daily, state.avgSentDaily, state.avgSentDaily); in getSummary()
137 stats.avgSentDaily = Math.round((float) stats.sentCount / DAYS_TO_CHECK); in calculateAvgSentCounts()
341 public int avgSentDaily = 0; field in NotificationsSentState
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateNotificationBridgeTest.java219 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentDaily).isEqualTo(0); in testLoadAllExtraInfo_noEvents()
245 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentDaily).isEqualTo(1); in testLoadAllExtraInfo_multipleEventsAgg()
281 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentDaily).isEqualTo(1); in testLoadAllExtraInfo_multiplePkgs()
286 assertThat(((NotificationsSentState) apps.get(1).extraInfo).avgSentDaily).isEqualTo(0); in testLoadAllExtraInfo_multiplePkgs()
337 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentDaily).isEqualTo(1); in testLoadAllExtraInfo_multipleUsers()
342 assertThat(((NotificationsSentState) apps.get(1).extraInfo).avgSentDaily).isEqualTo(1); in testLoadAllExtraInfo_multipleUsers()
376 assertThat(((NotificationsSentState) entry.extraInfo).avgSentDaily).isEqualTo(2); in testUpdateExtraInfo_multipleEventsAgg()
401 sentOften.avgSentDaily = 8; in testSummary_frequency()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java537 if (state.avgSentDaily > 0) { in getSentSummary()
539 state.avgSentDaily, state.avgSentDaily); in getSentSummary()
548 stats.avgSentDaily = Math.round((float) stats.sentCount / DAYS_TO_CHECK); in calculateAvgSentCounts()
679 public int avgSentDaily = 0; field in NotificationBackend.NotificationsSentState
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppNotificationPreferenceControllerTest.java165 appRow.sentByApp.avgSentDaily = 4; in getNotificationSummary_channelsNotBlocked()
179 appRow.sentByApp.avgSentDaily = 7; in getNotificationSummary_noChannels()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/notification/app/
DChannelListPreferenceControllerTest.java335 sentA.avgSentDaily = 2; in testUpdateFullList_channelUpdates()
338 sentB.avgSentDaily = 0; in testUpdateFullList_channelUpdates()