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.java32 private long mTestStartTime; field in RateEstimatorTest
37 mTestStartTime = 1225731600000L; in setUp()
43 assertUpdateTime(mTestStartTime); in testRunningTimeBackwardDoesntExplodeUpdate()
44 assertUpdateTime(mTestStartTime - 1000L); in testRunningTimeBackwardDoesntExplodeUpdate()
49 assertUpdateTime(mTestStartTime); in testRunningTimeBackwardDoesntExplodeGet()
50 final float rate = mEstimator.getRate(mTestStartTime - 1000L); in testRunningTimeBackwardDoesntExplodeGet()
57 assertUpdateTime(mTestStartTime); in testInstantaneousEventsDontExplodeUpdate()
58 assertUpdateTime(mTestStartTime); in testInstantaneousEventsDontExplodeUpdate()
63 assertUpdateTime(mTestStartTime); in testInstantaneousEventsDontExplodeGet()
64 assertUpdateTime(mTestStartTime); in testInstantaneousEventsDontExplodeGet()
[all …]
DAlertRateLimiterTest.java36 private long mTestStartTime; field in AlertRateLimiterTest
42 mTestStartTime = 1225731600000L; in setUp()
48 assertFalse(mLimiter.shouldRateLimitAlert(mTestStartTime)); in testFirstAlertAllowed()
53 assertFalse(mLimiter.shouldRateLimitAlert(mTestStartTime)); in testAllowedAfterSecond()
54 assertFalse(mLimiter.shouldRateLimitAlert(mTestStartTime + ALLOWED_ALERT_INTERVAL)); in testAllowedAfterSecond()
59 assertFalse(mLimiter.shouldRateLimitAlert(mTestStartTime)); in testAllowedAfterSecondEvenWithBlockedEntries()
60 assertTrue(mLimiter.shouldRateLimitAlert(mTestStartTime + ALLOWED_ALERT_INTERVAL - 1)); in testAllowedAfterSecondEvenWithBlockedEntries()
61 assertFalse(mLimiter.shouldRateLimitAlert(mTestStartTime + ALLOWED_ALERT_INTERVAL)); in testAllowedAfterSecondEvenWithBlockedEntries()
66 assertFalse(mLimiter.shouldRateLimitAlert(mTestStartTime)); in testAllowedDisallowedBeforeSecond()
67 assertTrue(mLimiter.shouldRateLimitAlert(mTestStartTime + ALLOWED_ALERT_INTERVAL - 1)); in testAllowedDisallowedBeforeSecond()
[all …]