Home | History | Annotate | Download | only in service

Lines Matching refs:Account

33 import com.android.emailcommon.provider.Account;
78 * prexisting (non-test) accounts in the account manager.
81 Account firstAccount = null;
94 // delete the provider account
96 // delete the account manager account
97 android.accounts.Account[] accountManagerAccounts = AccountManager.get(context)
99 for (android.accounts.Account accountManagerAccount: accountManagerAccounts) {
113 * system (it cannot use the mock context with the Account Manager).
120 // Capture the baseline (account manager accounts) so we can measure the changes
122 android.accounts.Account[] baselineAccounts =
126 Account firstAccount = setupProviderAndAccountManagerAccount(getTestAccountName("1"));
131 assertEquals(3, EmailContent.count(mMockContext, Account.CONTENT_URI, null, null));
132 android.accounts.Account[] accountManagerAccounts =
136 // Delete account "2" from AccountManager
137 android.accounts.Account removedAccount =
151 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI, null, null));
153 // Ok, now we've got two of each; let's delete a provider account
154 resolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, firstAccount.mId),
157 assertEquals(1, EmailContent.count(mMockContext, Account.CONTENT_URI, null, null));
163 // There should now be only one AccountManager account
166 // ... and it should be account "3"
172 List<Account> providerAccounts;
173 android.accounts.Account[] accountManagerAccounts;
175 android.accounts.Account[] baselineAccounts =
179 providerAccounts = new ArrayList<Account>();
180 accountManagerAccounts = new android.accounts.Account[0];
188 // A single account, but empty list on the other side is detected as needing reconciliation
190 context, new ArrayList<Account>(), accountManagerAccounts));
192 context, providerAccounts, new android.accounts.Account[0]));
198 // Single account matches - no reconciliation should be detected.
240 Account easAccount = ProviderTestUtils.setupAccount("account1", false, mMockContext);
245 Account imapAccount = ProviderTestUtils.setupAccount("account2", false, mMockContext);
250 Account pop3Account = ProviderTestUtils.setupAccount("account3", false, mMockContext);
269 assertEquals(Account.CHECK_INTERVAL_NEVER, syncReport.syncInterval);
276 // Change the EAS account to push
278 cv.put(Account.SYNC_INTERVAL, Account.CHECK_INTERVAL_PUSH);
285 assertEquals(Account.CHECK_INTERVAL_NEVER, syncReport.syncInterval);
299 Account account1 = ProviderTestUtils.setupAccount("account1", false, mMockContext);
306 Account account2 = ProviderTestUtils.setupAccount("account2", false, mMockContext);
312 Account account3 = ProviderTestUtils.setupAccount("account3", false, mMockContext);