Home
last modified time | relevance | path

Searched refs:ViewMode (Results 1 – 16 of 16) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DActionBarController.java47 public class ActionBarController implements ViewMode.ModeChangeListener {
57 private ViewMode mViewModeController;
113 return getMode() != ViewMode.UNKNOWN; in onCreateOptionsMenu()
118 case ViewMode.UNKNOWN: in getOptionsMenuId()
120 case ViewMode.CONVERSATION: in getOptionsMenuId()
122 case ViewMode.CONVERSATION_LIST: in getOptionsMenuId()
124 case ViewMode.SEARCH_RESULTS_LIST: in getOptionsMenuId()
126 case ViewMode.SEARCH_RESULTS_CONVERSATION: in getOptionsMenuId()
128 case ViewMode.WAITING_FOR_ACCOUNT_INITIALIZATION: in getOptionsMenuId()
191 case ViewMode.UNKNOWN: in onViewModeChanged()
[all …]
DOnePaneController.java99 public OnePaneController(MailActivity activity, ViewMode viewMode) { in OnePaneController()
209 if (ViewMode.isListMode(newMode)) { in onViewModeChanged()
213 if (ViewMode.isAdMode(newMode)) { in onViewModeChanged()
219 if (!ViewMode.isConversationMode(newMode)) { in onViewModeChanged()
385 if (mode == ViewMode.SEARCH_RESULTS_LIST) { in handleBackPress()
425 if (mode == ViewMode.SEARCH_RESULTS_LIST) { in handleUpPress()
428 } else if (mode == ViewMode.CONVERSATION_LIST in handleUpPress()
429 || mode == ViewMode.WAITING_FOR_ACCOUNT_INITIALIZATION) { in handleUpPress()
438 } else if (mode == ViewMode.CONVERSATION || mode == ViewMode.SEARCH_RESULTS_CONVERSATION in handleUpPress()
439 || mode == ViewMode.AD) { in handleUpPress()
[all …]
DTwoPaneController.java116 public TwoPaneController(MailActivity activity, ViewMode viewMode) { in TwoPaneController()
318 if (mViewMode.getMode() != ViewMode.CONVERSATION_LIST) { in switchToDefaultInboxOrChangeAccount()
336 } else if (mViewMode.getMode() != ViewMode.CONVERSATION_LIST) { in onFolderSelected()
444 if (newMode != ViewMode.WAITING_FOR_ACCOUNT_INITIALIZATION) { in onViewModeChanged()
453 if (newMode == ViewMode.CONVERSATION || newMode == ViewMode.CONVERSATION_LIST in onViewModeChanged()
454 || ViewMode.isAdMode(newMode)) { in onViewModeChanged()
591 if (mode == ViewMode.SEARCH_RESULTS_LIST || mode == ViewMode.SEARCH_RESULTS_CONVERSATION) { in showConversation()
778 if (mode == ViewMode.SEARCH_RESULTS_LIST) { in popView()
780 } else if (ViewMode.isConversationMode(mode) || mViewMode.isAdMode()) { in popView()
784 } else if (mode == ViewMode.SEARCH_RESULTS_CONVERSATION) { in popView()
[all …]
DTwoPaneLayout.java41 import com.android.mail.ui.ViewMode.ModeChangeListener;
95 private int mCurrentMode = ViewMode.UNKNOWN;
100 private int mTranslatedMode = ViewMode.UNKNOWN;
249 mCurrentMode = ViewMode.UNKNOWN; in onFinishInflate()
466 case ViewMode.CONVERSATION: in dispatchVisibilityChanged()
467 case ViewMode.SEARCH_RESULTS_CONVERSATION: in dispatchVisibilityChanged()
472 case ViewMode.CONVERSATION_LIST: in dispatchVisibilityChanged()
473 case ViewMode.SEARCH_RESULTS_LIST: in dispatchVisibilityChanged()
474 case ViewMode.WAITING_FOR_ACCOUNT_INITIALIZATION: in dispatchVisibilityChanged()
479 case ViewMode.AD: in dispatchVisibilityChanged()
[all …]
DMaterialSearchViewController.java42 public class MaterialSearchViewController implements ViewMode.ModeChangeListener,
124 } else if (oldMode == ViewMode.UNKNOWN) { in onViewModeChanged()
137 if (ViewMode.isSearchMode(mViewMode)) { in onConversationListLayout()
208 if (!ViewMode.isSearchMode(mViewMode)) { in showSearchActionBar()
253 ViewMode.isSearchMode(mViewMode); in shouldAlignWithTl()
270 if (ViewMode.isSearchMode(mViewMode)) { in onSearchCanceled()
DAbstractActivityController.java217 protected final ViewMode mViewMode;
522 public AbstractActivityController(MailActivity activity, ViewMode viewMode) { in AbstractActivityController()
939 || (mViewMode.getMode() != ViewMode.CONVERSATION_LIST)) { in changeFolder()
996 if (mode == ViewMode.UNKNOWN || mode == ViewMode.WAITING_FOR_ACCOUNT_INITIALIZATION) { in loadAccountInbox()
1132 if (ViewMode.isSearchMode(mViewMode.getMode())) { in onActivityResult()
1180 !ViewMode.isSearchMode(mViewMode.getMode()) && visible ? View.VISIBLE : View.GONE); in onConversationListVisibilityChanged()
1432 if (mViewMode.getMode() != ViewMode.UNKNOWN) { in onStart()
1974 return (viewMode == ViewMode.CONVERSATION
1975 || viewMode == ViewMode.SEARCH_RESULTS_CONVERSATION)
2296 if (!ViewMode.isConversationMode(newMode)) {
[all …]
DMailActivity.java75 private ViewMode mViewMode;
145 public ViewMode getViewMode() { in getViewMode()
172 mViewMode = new ViewMode(); in onCreate()
488 int helpContext = ViewMode.isConversationMode(viewMode) in showHelp()
DCustomViewToolbar.java38 public class CustomViewToolbar extends Toolbar implements ViewMode.ModeChangeListener,
44 private ViewMode mViewMode;
65 ViewMode viewMode) { in setController()
DViewMode.java33 public class ViewMode { class
98 public ViewMode() { in ViewMode() method in ViewMode
DControllerFactory.java31 public static ActivityController forActivity(MailActivity activity, ViewMode viewMode, in forActivity()
DControllableActivity.java39 ViewMode getViewMode(); in getViewMode()
DConversationListFragment.java66 import com.android.mail.ui.ViewMode.ModeChangeListener;
791 if (ViewMode.isListMode(newMode)) { in onViewModeChanged()
DActivityController.java34 import com.android.mail.ui.ViewMode.ModeChangeListener;
DFolderSelectionActivity.java313 public ViewMode getViewMode() { in getViewMode()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/
DViewModeTests.java25 import com.android.mail.ui.ViewMode.ModeChangeListener;
35 ViewMode first = new ViewMode(); in testBundleSaveRestorePreserveState()
39 ViewMode second = new ViewMode(); in testBundleSaveRestorePreserveState()
41 assertEquals(ViewMode.CONVERSATION_LIST, second.getMode()); in testBundleSaveRestorePreserveState()
59 ViewMode mode = new ViewMode(); in testListenerCalledAfterRegistering()
74 ViewMode first = new ViewMode(); in testMultipleTransitionsFail()
77 assertEquals(ViewMode.CONVERSATION_LIST, first.getMode()); in testMultipleTransitionsFail()
80 assertEquals(ViewMode.CONVERSATION_LIST, first.getMode()); in testMultipleTransitionsFail()
/packages/apps/UnifiedEmail/src/com/android/mail/drawer/
DHelpItem.java24 import com.android.mail.ui.ViewMode;
38 mActivity.showHelp(mAccount, ViewMode.CONVERSATION_LIST); in onFooterClicked()