Lines Matching refs:accounts
19 import android.accounts.AccountManager;
20 import android.accounts.AccountManagerFuture;
21 import android.accounts.AuthenticatorException;
22 import android.accounts.OperationCanceledException;
50 * Get all AccountManager accounts for all email types.
52 * @return A list of all {@link android.accounts.Account}s created by our app.
54 private static List<android.accounts.Account> getAllAmAccounts(final Context context) {
58 // Some Accounts types can be identical, the set de-duplicates.
64 final ImmutableList.Builder<android.accounts.Account> builder = ImmutableList.builder();
66 final android.accounts.Account[] accounts = am.getAccountsByType(type);
67 builder.add(accounts);
111 final List<android.accounts.Account> amAccounts = getAllAmAccounts(context);
117 * Check if the AccountManager accounts list contains a specific account.
118 * @param accounts The list of {@link android.accounts.Account} objects.
122 private static boolean hasAmAccount(final List<android.accounts.Account> accounts,
124 for (final android.accounts.Account account : accounts) {
133 * Check if the EmailProvider accounts list contains a specific account.
134 * @param accounts The list of {@link Account} objects.
138 private static boolean hasEpAccount(final List<Account> accounts, final String name) {
139 for (final Account account : accounts) {
155 final List<android.accounts.Account> accountManagerAccounts,
170 // First, look through our EmailProvider accounts to make sure there's a corresponding
213 // Now, look through AccountManager accounts to make sure we have a corresponding cached EAS
215 for (final android.accounts.Account accountManagerAccount : accountManagerAccounts) {
242 // POP accounts to get calendar and contacts syncing enabled.
262 // If there are no accounts remaining after reconciliation, disable the compose activity