Home | History | Annotate | Download | only in utils

Lines Matching refs:accounts

32      * Merge two lists of accounts into one list of accounts without duplicates.
34 * @param inList List of accounts.
35 * @param accounts Accounts to merge in.
39 * @return Merged list of accounts.
41 public static List<Account> mergeAccountLists(List<Account> inList, Account[] accounts,
51 // Make sure the accounts are actually synchronized
52 // (we won't be able to save/send for accounts that
54 for (int i = 0; i < accounts.length; i++) {
55 final String accountName = accounts[i].getEmailAddress();
59 newAccountList.add(accounts[i]);
66 * Synchronous method which returns registered accounts that are syncing.
73 final List<Account> accounts = Lists.newArrayList();
82 accounts.add(account);
91 return accounts.toArray(new Account[accounts.size()]);
95 * Synchronous method which returns registered accounts.
102 final List<Account> accounts = Lists.newArrayList();
108 accounts.add(Account.builder().buildFrom(accountsCursor));
116 return accounts.toArray(new Account[accounts.size()]);