Lines Matching refs:accounts

16 package android.accounts;
54 * A Parcelable ArrayList of Account objects that limits the choosable accounts to those
60 * A Parcelable ArrayList of String objects that limits the accounts to choose to those
211 // If there are no relevant accounts and only one relevant account type go directly to
442 * @return a value between 0 (inclusive) and accounts.size() (inclusive) or SELECTED_ITEM_NONE.
443 * An index value of accounts.size() indicates 'Add account' option.
445 private int getItemIndexToSelect(ArrayList<Account> accounts, String selectedAccountName,
450 return accounts.size();
453 for (int i = 0; i < accounts.size(); i++) {
454 if (accounts.get(i).name.equals(selectedAccountName)) {
462 private String[] getListOfDisplayableOptions(ArrayList<Account> accounts) {
463 // List of options includes all accounts found together with "Add new account" as the
465 String[] listItems = new String[accounts.size() + (mDisallowAddAccounts ? 0 : 1)];
466 for (int i = 0; i < accounts.size(); i++) {
467 listItems[i] = accounts.get(i).name;
470 listItems[accounts.size()] = getResources().getString(
478 * accounts that don't match the allowable types, if provided, or that don't match the
479 * allowable accounts, if provided.
482 final Account[] accounts = accountManager.getAccountsForPackage(mCallingPackage,
484 ArrayList<Account> accountsToPopulate = new ArrayList<Account>(accounts.length);
485 for (Account account : accounts) {
523 * Returns a set of whitelisted accounts given by the intent or null if none specified by the