Home
last modified time | relevance | path

Searched refs:mClock (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Email/tests/src/com/android/email/activity/
DUIControllerTwoPaneRefreshTaskTest.java40 private MockClock mClock = new MockClock(); field in UIControllerTwoPaneRefreshTaskTest
47 mClock, null); in setUp()
61 getContext(), ACCOUNT_ID, MAILBOX_ID, mClock, mRefreshManager); in testShouldRefreshMailboxList()
65 mClock.mTime = 123456789; in testShouldRefreshMailboxList()
80 mClock.mTime = mRefreshManager.mLastMailboxListRefresTime; in testShouldRefreshMailboxList()
85 mClock.mTime = mRefreshManager.mLastMailboxListRefresTime + 1; in testShouldRefreshMailboxList()
90 mClock.mTime = mRefreshManager.mLastMailboxListRefresTime in testShouldRefreshMailboxList()
95 mClock.advance(); in testShouldRefreshMailboxList()
104 getContext(), ACCOUNT_ID, MAILBOX_ID, mClock, mRefreshManager); in testShouldAutoRefreshInbox()
108 mClock.mTime = 123456789; in testShouldAutoRefreshInbox()
[all …]
/packages/apps/Email/tests/src/com/android/email/
DThrottleTest.java33 private final MockClock mClock = new MockClock(); field in ThrottleTest
34 private final MockTimer mTimer = new MockTimer(mClock);
36 MIN_TIMEOUT, MAX_TIMEOUT, mClock, mTimer);
42 mClock.advance(milliseconds); in advanceClock()
122 mClock.advance(10);
127 mClock.advance(Throttle.TIMEOUT_EXTEND_INTERVAL);
132 mClock.advance(Throttle.TIMEOUT_EXTEND_INTERVAL);
137 mClock.advance(Throttle.TIMEOUT_EXTEND_INTERVAL + 1);
167 private final Clock mClock;
177 mClock = clock;
[all …]
DRefreshManagerTest.java34 private MockClock mClock; field in RefreshManagerTest
56 mClock = new MockClock(); in setUp()
61 mTarget = new RefreshManager(mProviderContext, mController, mClock, null); in setUp()
92 s.onCallback(null, 0, mClock); in testRefreshStatus()
98 s.onCallback(null, 50, mClock); in testRefreshStatus()
104 s.onCallback(null, 100, mClock); in testRefreshStatus()
107 assertEquals(mClock.mTime, s.getLastRefreshTime()); in testRefreshStatus()
110 s.onCallback(null, 0, mClock); in testRefreshStatus()
113 assertEquals(mClock.mTime, s.getLastRefreshTime()); in testRefreshStatus()
115 mClock.advance(); in testRefreshStatus()
[all …]
/packages/apps/Email/src/com/android/email/view/
DRigidWebView.java51 private final Clock mClock = Clock.INSTANCE; field in RigidWebView
70 long now = mClock.getTime(); in onSizeChanged()
96 mLastSizeChangeTime = mClock.getTime(); in performSizeChange()
/packages/apps/Email/src/com/android/email/
DRefreshManager.java58 private final Clock mClock; field in RefreshManager
179 mClock = clock; in RefreshManager()
226 return mClock.getTime() >= (mMessageListStatus.get(mailboxId).getLastRefreshTime() in isMailboxStale()
231 return mClock.getTime() >= (mMailboxListStatus.get(accountId).getLastRefreshTime() in isMailboxListStale()
376 mMailboxListStatus.get(accountId).onCallback(exception, progress, mClock); in updateMailboxListCallback()
420 mMessageListStatus.get(mailboxId).onCallback(exception, progress, mClock); in updateMailboxCallbackInternal()
DThrottle.java45 private final Clock mClock; field in Throttle
90 mClock = clock; in Throttle()
115 final long now = mClock.getTime(); in updateTimeout()
DNotificationController.java91 private final Clock mClock; field in NotificationController
134 mClock = clock; in NotificationController()
192 .setWhen(mClock.getTime()) in createBaseAccountNotificationBuilder()
470 long now = mClock.getTime(); in createNewMessageNotification()
/packages/apps/Email/src/com/android/email/activity/
DUIControllerTwoPane.java565 private final Clock mClock; field in UIControllerTwoPane.RefreshTask
583 mClock = clock; in RefreshTask()
633 if (nextRefreshTime > mClock.getTime()) { in shouldRefreshMailboxList()
653 if (nextRefreshTime > mClock.getTime()) { in shouldAutoRefreshInbox()