Home
last modified time | relevance | path

Searched refs:mTestStartTime (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRateEstimatorTest.java34 private long mTestStartTime; field in RateEstimatorTest
39 mTestStartTime = 1225731600000L; in setUp()
45 assertUpdateTime(mTestStartTime); in testRunningTimeBackwardDoesntExplodeUpdate()
46 assertUpdateTime(mTestStartTime - 1000L); in testRunningTimeBackwardDoesntExplodeUpdate()
51 assertUpdateTime(mTestStartTime); in testRunningTimeBackwardDoesntExplodeGet()
52 final float rate = mEstimator.getRate(mTestStartTime - 1000L); in testRunningTimeBackwardDoesntExplodeGet()
59 assertUpdateTime(mTestStartTime); in testInstantaneousEventsDontExplodeUpdate()
60 assertUpdateTime(mTestStartTime); in testInstantaneousEventsDontExplodeUpdate()
65 assertUpdateTime(mTestStartTime); in testInstantaneousEventsDontExplodeGet()
66 assertUpdateTime(mTestStartTime); in testInstantaneousEventsDontExplodeGet()
[all …]
DAlertRateLimiterTest.java37 private long mTestStartTime; field in AlertRateLimiterTest
43 mTestStartTime = 1225731600000L; in setUp()
49 assertFalse(mLimiter.shouldRateLimitAlert(mTestStartTime)); in testFirstAlertAllowed()
54 assertFalse(mLimiter.shouldRateLimitAlert(mTestStartTime)); in testAllowedAfterSecond()
55 assertFalse(mLimiter.shouldRateLimitAlert(mTestStartTime + ALLOWED_ALERT_INTERVAL)); in testAllowedAfterSecond()
60 assertFalse(mLimiter.shouldRateLimitAlert(mTestStartTime)); in testAllowedAfterSecondEvenWithBlockedEntries()
61 assertTrue(mLimiter.shouldRateLimitAlert(mTestStartTime + ALLOWED_ALERT_INTERVAL - 1)); in testAllowedAfterSecondEvenWithBlockedEntries()
62 assertFalse(mLimiter.shouldRateLimitAlert(mTestStartTime + ALLOWED_ALERT_INTERVAL)); in testAllowedAfterSecondEvenWithBlockedEntries()
67 assertFalse(mLimiter.shouldRateLimitAlert(mTestStartTime)); in testAllowedDisallowedBeforeSecond()
68 assertTrue(mLimiter.shouldRateLimitAlert(mTestStartTime + ALLOWED_ALERT_INTERVAL - 1)); in testAllowedDisallowedBeforeSecond()
[all …]