Home | History | Annotate | Download | only in setup

Lines Matching refs:account

51 import com.android.emailcommon.provider.Account;
57 * Fragment containing the main logic for account settings. This also calls out to other
61 * TODO: Can we defer calling addPreferencesFromResource() until after we load the account? This
107 private Account mAccount;
115 /** The e-mail of the account being edited. */
125 public void onSettingsChanged(Account account, String preference, Object value);
126 public void onEditQuickResponses(Account account);
127 public void onIncomingSettings(Account account);
128 public void onOutgoingSettings(Account account);
130 public void deleteAccount(Account account);
135 @Override public void onSettingsChanged(Account account, String preference, Object value) {}
136 @Override public void onEditQuickResponses(Account account) {}
137 @Override public void onIncomingSettings(Account account) {}
138 @Override public void onOutgoingSettings(Account account) {}
140 @Override public void deleteAccount(Account account) {}
179 // Start loading the account data, if provided in the arguments
226 // If the loaded account is ready now, load the UI
234 * TODO: Don't read account data on UI thread. This should be fixed by removing the need
254 Account refreshedAccount = Account.restoreAccountWithId(mContext, mAccount.mId);
319 * Start loading a single account in preparation for editing it
328 * Async task to load account in order to view/edit it
334 Account account = Account.restoreAccountWithId(mContext, accountId);
335 if (account != null) {
336 account.mHostAuthRecv =
337 HostAuth.restoreHostAuthWithId(mContext, account.mHostAuthKeyRecv);
338 account.mHostAuthSend =
339 HostAuth.restoreHostAuthWithId(mContext, account.mHostAuthKeySend);
340 if (account.mHostAuthRecv == null || account.mHostAuthSend == null) {
341 account = null;
344 long defaultAccountId = Account.getDefaultAccountId(mContext);
345 return new Object[] { account, Long.valueOf(defaultAccountId) };
351 Account account = (Account) results[0];
352 if (account == null) {
356 mAccount = account;
367 * Load account data into preference UI
432 // TODO Move protocol into Account to avoid retrieving the HostAuth (implicitly)
433 String protocol = Account.getProtocol(mContext, mAccount.mId);
496 0 != (mAccount.getFlags() & Account.FLAGS_BACKGROUND_ATTACHMENTS));
505 mAccountNotify.setChecked(0 != (mAccount.getFlags() & Account.FLAGS_NOTIFY_NEW_MAIL));
521 final boolean vibrate = 0 != (mAccount.getFlags() & Account.FLAGS_VIBRATE);
551 // Hide the outgoing account setup link if it's not activated
582 android.accounts.Account acct = new android.accounts.Account(mAccount.mEmailAddress,
599 // Temporary home for delete account
641 ~(Account.FLAGS_NOTIFY_NEW_MAIL |
642 Account.FLAGS_VIBRATE |
643 Account.FLAGS_BACKGROUND_ATTACHMENTS);
646 Account.FLAGS_BACKGROUND_ATTACHMENTS : 0;
653 newFlags |= mAccountNotify.isChecked() ? Account.FLAGS_NOTIFY_NEW_MAIL : 0;
659 newFlags |= Account.FLAGS_VIBRATE;
666 android.accounts.Account acct = new android.accounts.Account(mAccount.mEmailAddress,
689 * Dialog fragment to show "remove account?" dialog
700 public static DeleteAccountFragment newInstance(Account account, Fragment parentFragment) {
703 b.putString(BUNDLE_KEY_ACCOUNT_NAME, account.getDisplayName());
741 * Callback from delete account dialog - passes the delete command up to the activity
749 // Get the e-mail address of the account being editted, if this is for an existing account.