Home | History | Annotate | Download | only in email

Lines Matching refs:accounts

19 import android.accounts.AccountManager;
20 import android.accounts.AccountManagerFuture;
21 import android.accounts.AuthenticatorException;
22 import android.accounts.OperationCanceledException;
37 * Base class for unit tests that use {@link android.accounts.Account}.
50 protected android.accounts.Account[] getExchangeAccounts() {
54 protected android.accounts.Account makeAccountManagerAccount(String username) {
55 return new android.accounts.Account(username, TEST_ACCOUNT_TYPE);
59 final android.accounts.Account account = makeAccountManagerAccount(username);
86 protected void deleteAccountManagerAccount(android.accounts.Account account) {
98 for (android.accounts.Account accountManagerAccount: getExchangeAccounts()) {
115 * Helper to retrieve account manager accounts *and* remove any preexisting accounts
118 protected android.accounts.Account[] getAccountManagerAccounts(
119 android.accounts.Account[] baseline) {
120 android.accounts.Account[] rawList = getExchangeAccounts();
124 HashSet<android.accounts.Account> set = new HashSet<android.accounts.Account>();
125 for (android.accounts.Account addAccount : rawList) {
128 for (android.accounts.Account removeAccount : baseline) {
131 return set.toArray(new android.accounts.Account[0]);