Searched refs:DAYS_TO_CHECK (Results 1 – 3 of 3) sorted by relevance
54 private static final int DAYS_TO_CHECK = 7; field in AppStateNotificationBridge132 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()
88 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
75 private static final int DAYS_TO_CHECK = 7; field in NotificationBackend471 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()