Home | History | Annotate | Download | only in setup

Lines Matching defs:account

45 import com.android.emailcommon.provider.Account;
54 * TODO: Cleanup the manipulation of Account.FLAGS_INCOMPLETE and make sure it's never left set.
102 Account account = SetupData.getAccount();
103 HostAuth host = account.getOrCreateHostAuthRecv(this);
133 // Note: It is OK to use mAccount.mIsDefault here *only* because the account
134 // has not been written to the DB yet. Ordinarily, call Account.getDefaultAccountId().
135 if (account.mIsDefault || SetupData.isDefault()) {
139 (account.getFlags() & Account.FLAGS_NOTIFY_NEW_MAIL) != 0);
140 SpinnerOption.setSpinnerOptionValue(mCheckFrequencyView, account.getSyncInterval());
170 // If the account manager initiated the creation, and success was not reported,
204 * It collects the data from the UI, updates the setup account record, and commits
205 * the account to the database (making it real for the first time.)
209 final Account account = SetupData.getAccount();
210 if (account.isSaved()) {
211 // Disrupting the normal flow could get us here, but if the account is already
215 account.setDisplayName(account.getEmailAddress());
216 int newFlags = account.getFlags() &
217 ~(Account.FLAGS_NOTIFY_NEW_MAIL | Account.FLAGS_BACKGROUND_ATTACHMENTS);
219 newFlags |= Account.FLAGS_NOTIFY_NEW_MAIL;
222 newFlags |= Account.FLAGS_BACKGROUND_ATTACHMENTS;
224 account.setFlags(newFlags);
225 account.setSyncInterval((Integer)((SpinnerOption)mCheckFrequencyView
229 account.setSyncLookback(window);
231 account.setDefaultAccount(mDefaultView.isChecked());
233 if (account.mHostAuthRecv == null) {
237 // Finish setting up the account, and commit it to the database
239 account.mFlags |= Account.FLAGS_INCOMPLETE;
243 if ("eas".equals(account.getOrCreateHostAuthRecv(this).mProtocol)) {
245 account.mFlags |= Account.FLAGS_SECURITY_HOLD;
246 account.mPolicy = SetupData.getPolicy();
253 // Finally, write the completed account (for the first time) and then
254 // install it into the Account manager as well. These are done off-thread.
255 // The account manager will report back via the callback, which will take us to
264 AccountSettingsUtils.commitSettings(context, account);
265 MailService.setupAccountManagerAccount(context, account,
321 * This is called after the account manager creates the new account.
324 // If the account manager initiated the creation, report success at this point
332 // Now that AccountManager account creation is complete, clear the INCOMPLETE flag
333 Account account = SetupData.getAccount();
334 account.mFlags &= ~Account.FLAGS_INCOMPLETE;
335 AccountSettingsUtils.commitSettings(AccountSetupOptions.this, account);
337 // If we've got policies for this account, ask the user to accept.
338 if ((account.mFlags & Account.FLAGS_SECURITY_HOLD) != 0) {
339 Intent intent = AccountSecurity.actionUpdateSecurityIntent(this, account.mId, false);
355 * These are the final cleanup steps when creating an account:
357 * Update account in DB
368 Account account = SetupData.getAccount();
369 account.mFlags &= ~Account.FLAGS_SECURITY_HOLD;
370 AccountSettingsUtils.commitSettings(context, account);
371 // Start up services based on new account(s)