Lines Matching refs:account
31 import com.android.contacts.model.account.AccountWithDataSet;
62 public void addTestAccount(AccountWithDataSet account) {
63 Account newAccount = new Account(account.name, account.type);
75 final AccountWithDataSet account = new AccountWithDataSet(name, TEST_ACCOUNT_TYPE, null);
76 addTestAccount(account);
77 return account;
89 public void removeTestAccount(AccountWithDataSet account) {
90 final Account remove = account.getAccountOrNull();
106 public void removeContactsForAccount(AccountWithDataSet account) {
109 new String[] { account.name, account.type });
114 // Note that we don't need to cleanup up the contact data associated with the account.
115 // CP2 will eventually do that automatically so as long as we're using unique account
116 // names we should be safe. Note that cleanup is not done synchronously when the account
117 // is removed so if multiple tests are using the same account name then the data should
120 for (Account account : mAddedAccounts) {
121 mAccountManager.removeAccountExplicitly(account);
131 for (Account account : accounts) {
132 if (account.name.startsWith(prefix)) {
133 accountManager.removeAccountExplicitly(account);