Home | History | Annotate | Download | only in activity

Lines Matching refs:account

20 import com.android.emailcommon.provider.Account;
57 /** Builds a mailbox filter for the given account. See MailboxShortcutPickerFragment. */
58 public Integer buildFilter(Account account);
59 /** Invoked when an account and mailbox have been selected. */
60 public void onSelected(Account account, long mailboxId);
61 /** Required data is missing; either the account and/or mailbox */
67 @Override public Integer buildFilter(Account account) { return null; }
68 @Override public void onSelected(Account account, long mailboxId){ getActivity().finish(); }
77 /** Cursor adapter that provides either the account or mailbox list */
131 // Only add "All accounts" if there is more than 1 account defined
144 Account account = new Account();
145 account.mId = Account.ACCOUNT_ID_COMBINED_VIEW;
149 account.mDisplayName = res.getString(R.string.picker_combined_view_fmt, countString);
150 ContentValues values = account.toContentValues();
155 row.add(Account.ACCOUNT_ID_COMBINED_VIEW);
166 /** Account picker */
192 context, Account.CONTENT_URI, Account.CONTENT_PROJECTION, null, null, null);
197 // if there is only one account, auto-select it
217 /** Selects the account specified by the given cursor */
219 Account account = new Account();
220 account.restore(cursor);
222 getActivity(), account, mCallback.buildFilter(account));
261 if (mAccountId == Account.ACCOUNT_ID_COMBINED_VIEW) {
278 // Loading for a regular account; perform a normal load
287 /** Only allow an account's INBOX */
293 static final String ARG_ACCOUNT = "MailboxShortcutPickerFragment.account";
315 /** Selection for all visible mailboxes for an account */
318 /** Selection for just the INBOX of an account */
322 /** The currently selected account */
323 private Account mAccount;
328 * Builds a mailbox shortcut picker for the given account.
331 Context context, Account account, Integer filter) {
335 args.putParcelable(ARG_ACCOUNT, account);
351 // Need to setup the account first thing