Lines Matching refs:account

101         Account account = SetupData.getAccount();
102 String protocol = account.mHostAuthRecv.mProtocol;
131 // Note: It is OK to use mAccount.mIsDefault here *only* because the account
133 if (account.mIsDefault || SetupData.isDefault()) {
137 (account.getFlags() & Account.FLAGS_NOTIFY_NEW_MAIL) != 0);
138 SpinnerOption.setSpinnerOptionValue(mCheckFrequencyView, account.getSyncInterval());
168 // If the account manager initiated the creation, and success was not reported,
202 * It collects the data from the UI, updates the setup account record, and commits
203 * the account to the database (making it real for the first time.)
207 final Account account = SetupData.getAccount();
208 if (account.isSaved()) {
209 // Disrupting the normal flow could get us here, but if the account is already
213 account.setDisplayName(account.getEmailAddress());
214 int newFlags = account.getFlags() &
222 account.setFlags(newFlags);
223 account.setSyncInterval((Integer)((SpinnerOption)mCheckFrequencyView
227 account.setSyncLookback(window);
229 account.setDefaultAccount(mDefaultView.isChecked());
231 if (account.mHostAuthRecv == null) {
235 // Finish setting up the account, and commit it to the database
237 account.mFlags |= Account.FLAGS_INCOMPLETE;
241 if (account.mHostAuthRecv.mProtocol.equals("eas")) {
243 account.mFlags |= Account.FLAGS_SECURITY_HOLD;
244 account.mPolicy = SetupData.getPolicy();
251 // Finally, write the completed account (for the first time) and then
253 // The account manager will report back via the callback, which will take us to
262 AccountSettingsUtils.commitSettings(context, account);
263 MailService.setupAccountManagerAccount(context, account,
319 * This is called after the account manager creates the new account.
322 // If the account manager initiated the creation, report success at this point
330 // Now that AccountManager account creation is complete, clear the INCOMPLETE flag
331 Account account = SetupData.getAccount();
332 account.mFlags &= ~Account.FLAGS_INCOMPLETE;
333 AccountSettingsUtils.commitSettings(AccountSetupOptions.this, account);
335 // If we've got policies for this account, ask the user to accept.
336 if ((account.mFlags & Account.FLAGS_SECURITY_HOLD) != 0) {
337 Intent intent = AccountSecurity.actionUpdateSecurityIntent(this, account.mId, false);
353 * These are the final cleanup steps when creating an account:
355 * Update account in DB
366 Account account = SetupData.getAccount();
367 account.mFlags &= ~Account.FLAGS_SECURITY_HOLD;
368 AccountSettingsUtils.commitSettings(context, account);
369 // Start up services based on new account(s)