Searched refs:ALLOWED_ALERT_INTERVAL (Results 1 – 3 of 3) sorted by relevance
18 import static com.android.server.notification.AlertRateLimiter.ALLOWED_ALERT_INTERVAL;55 assertFalse(mLimiter.shouldRateLimitAlert(mTestStartTime + ALLOWED_ALERT_INTERVAL)); in testAllowedAfterSecond()61 assertTrue(mLimiter.shouldRateLimitAlert(mTestStartTime + ALLOWED_ALERT_INTERVAL - 1)); in testAllowedAfterSecondEvenWithBlockedEntries()62 assertFalse(mLimiter.shouldRateLimitAlert(mTestStartTime + ALLOWED_ALERT_INTERVAL)); in testAllowedAfterSecondEvenWithBlockedEntries()68 assertTrue(mLimiter.shouldRateLimitAlert(mTestStartTime + ALLOWED_ALERT_INTERVAL - 1)); in testAllowedDisallowedBeforeSecond()74 assertTrue(mLimiter.shouldRateLimitAlert(mTestStartTime - ALLOWED_ALERT_INTERVAL)); in testDisallowedTimePast()
24 static final long ALLOWED_ALERT_INTERVAL = 1000; field in AlertRateLimiter29 if (millisSinceLast < 0 || millisSinceLast < ALLOWED_ALERT_INTERVAL) { in shouldRateLimitAlert()
50 private static final long ALLOWED_ALERT_INTERVAL = 1000; field in Beeper122 return System.currentTimeMillis() - lastPostedTime > ALLOWED_ALERT_INTERVAL; in canAlert()