Home | History | Annotate | Download | only in utility

Lines Matching refs:account

19 import com.android.emailcommon.provider.Account;
46 resolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, accountId), null,
52 * Add an account to our list of test accounts; we'll delete it automatically in tearDown()
53 * @param account the account to be added to our list of test accounts
55 protected void addTestAccount(Account account) {
56 if (account.mId > 0) {
57 mCreatedAccountIds.add(account.mId);
62 * Create a test account that will be automatically deleted when the test is finished
63 * @param name the name of the account
64 * @param saveIt whether or not to save the account in EmailProvider
65 * @return the account created
67 protected Account setupTestAccount(String name, boolean saveIt) {
68 Account account = EmailContentSetupUtils.setupAccount(name, saveIt, mProviderContext);
69 addTestAccount(account);
70 return account;