Home
last modified time | relevance | path

Searched refs:mRefreshManager (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Email/tests/src/com/android/email/activity/
DUIControllerTwoPaneRefreshTaskTest.java41 private MockRefreshManager mRefreshManager; field in UIControllerTwoPaneRefreshTaskTest
46 mRefreshManager = new MockRefreshManager(getContext(), Controller.getInstance(getContext()), in setUp()
53 mRefreshManager.cleanUpForTest(); in tearDown()
61 getContext(), ACCOUNT_ID, MAILBOX_ID, mClock, mRefreshManager); in testShouldRefreshMailboxList()
63 mRefreshManager.mExpectedAccountId = ACCOUNT_ID; in testShouldRefreshMailboxList()
68 mRefreshManager.mIsMailboxListRefreshing = false; in testShouldRefreshMailboxList()
69 mRefreshManager.mLastMailboxListRefresTime = 0; in testShouldRefreshMailboxList()
73 mRefreshManager.mIsMailboxListRefreshing = true; in testShouldRefreshMailboxList()
74 mRefreshManager.mLastMailboxListRefresTime = 0; in testShouldRefreshMailboxList()
78 mRefreshManager.mIsMailboxListRefreshing = false; in testShouldRefreshMailboxList()
[all …]
/packages/apps/Email/src/com/android/email/activity/
DUIControllerTwoPane.java318 && mRefreshManager.isMessageListRefreshing(messageListMailboxId); in isRefreshInProgress()
569 private final RefreshManager mRefreshManager; field in UIControllerTwoPane.RefreshTask
585 mRefreshManager = refreshManager; in RefreshTask()
608 mRefreshManager.refreshMessageList(mAccountId, mMailboxId, true); in onSuccess()
613 mRefreshManager.refreshMailboxList(mAccountId); in onSuccess()
618 mRefreshManager.refreshMessageList(mAccountId, mInboxId, true); in onSuccess()
628 if (mRefreshManager.isMailboxListRefreshing(mAccountId)) { in shouldRefreshMailboxList()
631 final long nextRefreshTime = mRefreshManager.getLastMailboxListRefreshTime(mAccountId) in shouldRefreshMailboxList()
648 if (mRefreshManager.isMessageListRefreshing(mInboxId)) { in shouldAutoRefreshInbox()
651 final long nextRefreshTime = mRefreshManager.getLastMessageListRefreshTime(mInboxId) in shouldAutoRefreshInbox()
DUIControllerOnePane.java621 mRefreshManager.refreshMessageList(getActualAccountId(), getMailboxId(), true); in onRefresh()
623 mRefreshManager.refreshMailboxList(getActualAccountId()); in onRefresh()
633 return mRefreshManager.isMessageListRefreshing(getMailboxId()); in isRefreshInProgress()
635 return mRefreshManager.isMailboxListRefreshing(getActualAccountId()); in isRefreshInProgress()
DMessageListFragment.java96 private RefreshManager mRefreshManager; field in MessageListFragment
355 mRefreshManager = RefreshManager.getInstance(mActivity); in onCreate()
447 mRefreshManager.registerListener(mRefreshListener); in onResume()
468 mRefreshManager.unregisterListener(mRefreshListener); in onStop()
870 mRefreshManager.refreshMessageList(getAccountId(), getMailboxId(), userRequest); in onRefresh()
886 mRefreshManager.loadMoreMessages(getAccountId(), getMailboxId()); in onLoadMoreMessages()
1060 if (!mRefreshManager.isMailboxStale(getMailboxId())) { in autoRefreshStaleMailbox()
1163 boolean active = mRefreshManager.isMessageListRefreshing(getMailboxId()); in updateListFooter()
1394 return cursor.getCount() == 0 && mRefreshManager.isMessageListRefreshing(mMailbox.mId);
DUIControllerBase.java72 final RefreshManager mRefreshManager; field in UIControllerBase
148 mRefreshManager = RefreshManager.getInstance(mActivity); in UIControllerBase()
182 mRefreshManager.registerListener(mRefreshListener); in onActivityCreated()
242 mRefreshManager.unregisterListener(mRefreshListener); in onActivityDestroy()
DMailboxListFragment.java182 private RefreshManager mRefreshManager; field in MailboxListFragment
379 mRefreshManager = RefreshManager.getInstance(mActivity); in onCreate()
483 if (mRefreshManager.isMailboxListStale(accountId)) { in onResume()
484 mRefreshManager.refreshMailboxList(accountId); in onResume()