Home | History | Annotate | Download | only in editor

Lines Matching refs:ACCOUNT

42 import android.accounts.Account;
367 final Account account = mIntentExtras == null ? null :
368 (Account) mIntentExtras.getParcelable(Intents.Insert.ACCOUNT);
372 if (account != null) {
373 // Account specified in Intent
374 createContact(new AccountWithDataSet(account.name, account.type, dataSet));
376 // No Account specified. Let the user choose
473 public void onExternalEditorRequest(AccountWithDataSet account, Uri uri) {
474 mListener.onCustomEditContactActivityRequested(account, uri, null, false);
542 // If there is no default account or the accounts have changed such that we need to
543 // prompt the user again, then launch the account prompt.
549 // Otherwise, there should be a default account. Then either create a local contact
550 // (if default account is null) or create a contact with the specified account.
561 * Create a contact by automatically selecting the first account. If there's no available
562 * account, a device-local contact should be created.
573 // We have an account switcher in "create-account" screen, so don't need to ask a user to
574 // select an account here.
579 * Shows account creation screen associated with a given account.
581 * @param account may be null to signal a device-local contact should be created.
583 private void createContact(AccountWithDataSet account) {
586 accountTypes.getAccountType(account != null ? account.type : null,
587 account != null ? account.dataSet : null);
591 mListener.onCustomCreateContactActivityRequested(account, mIntentExtras);
594 bindEditorsForNewContact(account, accountType);
599 * Removes a current editor ({@link #mState}) and rebinds new editor for a new account.
600 * Some of old data are reused with new restriction enforced by the new account.
603 * @param oldAccount Old account associated with oldState.
604 * @param newAccount New account to be used.
625 private void bindEditorsForNewContact(AccountWithDataSet account,
627 bindEditorsForNewContact(account, accountType, null, null);
654 // Ensure we have some default fields (if the account type does not support a field,
852 // Find the associated account for this contact (retrieve it here because there are
854 // account).
861 AccountWithDataSet account = (name == null || type == null) ? null :
863 mEditorUtils.saveDefaultAndAllAccounts(account);
873 final View accountView = editor.findViewById(R.id.account);
904 // Remove the pressed state from the account header because the user cannot switch accounts
906 final View accountView = editor.findViewById(R.id.account);
1040 // Store account as default account, only if this is a new contact
1259 * Contact is being created for an external account that provides its own
1262 void onCustomCreateContactActivityRequested(AccountWithDataSet account,
1266 * The edited raw contact belongs to an external account that provides
1272 void onCustomEditContactActivityRequested(AccountWithDataSet account, Uri rawContactUri,
1302 // Check account type
1335 // Check account name
1347 // Both are in the same account, fall back to contact ID
1598 // Bail if the account selector was not successful.
1603 // If there's an account specified, use it.
1605 AccountWithDataSet account = data.getParcelableExtra(Intents.Insert.ACCOUNT);
1606 if (account != null) {
1607 account);
1611 // If there isn't an account specified, then this is likely a phone-local
1613 // the most appropriate account.