Home
last modified time | relevance | path

Searched refs:DAYS_TO_CHECK (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/src/com/android/settings/applications/
DAppStateNotificationBridge.java54 private static final int DAYS_TO_CHECK = 7; field in AppStateNotificationBridge
132 stats.avgSentDaily = Math.round((float) stats.sentCount / DAYS_TO_CHECK); in calculateAvgSentCounts()
133 if (stats.sentCount < DAYS_TO_CHECK) { in calculateAvgSentCounts()
143 long startTime = now - (DateUtils.DAY_IN_MILLIS * DAYS_TO_CHECK); in getAggregatedUsageEvents()
180 long startTime = now - (DateUtils.DAY_IN_MILLIS * DAYS_TO_CHECK); in getAggregatedUsageEvents()
/packages/apps/Settings/src/com/android/settings/spa/notification/
DAppNotificationRepository.kt88 val startTime = now - TimeUnit.DAYS.toMillis(DAYS_TO_CHECK) in queryEventsForUser()
167 val startTime = now - TimeUnit.DAYS.toMillis(DAYS_TO_CHECK) in queryEventsForPackageForUser()
193 val dailyFrequency = (sentCount.toFloat() / DAYS_TO_CHECK).roundToInt() in calculateFrequencySummary()
222 private const val DAYS_TO_CHECK = 7L in onlyHasDefaultChannel() constant
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java75 private static final int DAYS_TO_CHECK = 7; field in NotificationBackend
471 long startTime = now - (DateUtils.DAY_IN_MILLIS * DAYS_TO_CHECK); in recordAggregatedUsageEvents()
536 stats.avgSentDaily = Math.round((float) stats.sentCount / DAYS_TO_CHECK); in calculateAvgSentCounts()
537 if (stats.sentCount < DAYS_TO_CHECK) { in calculateAvgSentCounts()