Lines Matching defs:accounts
16 package android.accounts;
49 * A Parcelable ArrayList of Account objects that limits the choosable accounts to those
55 * A Parcelable ArrayList of String objects that limits the accounts to choose to those
179 // If there are no relevant accounts and only one relevant account type go directly to
404 * @return a value between 0 (inclusive) and accounts.size() (inclusive) or SELECTED_ITEM_NONE.
405 * An index value of accounts.size() indicates 'Add account' option.
407 private int getItemIndexToSelect(ArrayList<Account> accounts, String selectedAccountName,
412 return accounts.size();
415 for (int i = 0; i < accounts.size(); i++) {
416 if (accounts.get(i).name.equals(selectedAccountName)) {
424 private String[] getListOfDisplayableOptions(ArrayList<Account> accounts) {
425 // List of options includes all accounts found together with "Add new account" as the
427 String[] listItems = new String[accounts.size() + 1];
428 for (int i = 0; i < accounts.size(); i++) {
429 listItems[i] = accounts.get(i).name;
431 listItems[accounts.size()] = getResources().getString(
438 * accounts that don't match the allowable types, if provided, or that don't match the
439 * allowable accounts, if provided.
442 final Account[] accounts = accountManager.getAccounts();
443 ArrayList<Account> accountsToPopulate = new ArrayList<Account>(accounts.length);
444 for (Account account : accounts) {
481 * Returns a set of whitelisted accounts given by the intent or null if none specified by the