Home
last modified time | relevance | path

Searched refs:a2 (Results 1 – 12 of 12) sorted by relevance

/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
DPerNameExecutorTest.java45 MockTask a2 = addTask("a", 2); in testExecute() local
49 assertRanNever("step 0", a1, a2, a3, b1); in testExecute()
52 assertRanNever("step 1", a2, a3); in testExecute()
54 assertRanOnce("step 2", a1, b1, a2); in testExecute()
57 assertRanOnce("step 3", a1, b1, a2, a3); in testExecute()
59 assertRanOnce("step 4", a1, b1, a2, a3); in testExecute()
64 MockTask a2 = addTask("a", 2); in testCancelPendingTasks() local
69 assertRanNever("step 1", a2); in testCancelPendingTasks()
72 assertRanNever("step 1, after cancel", a2); in testCancelPendingTasks()
75 assertRanNever("step 2", a2); in testCancelPendingTasks()
[all …]
DSingleThreadNamedTaskExecutorTest.java42 MockTask a2 = addTask("a", 2); in testExecute() local
46 a2.waitForCompletion(); in testExecute()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DAccountWithDataSetTest.java38 AccountWithDataSet a2 = new AccountWithDataSet("name2", "typeB", null); in testStringifyAndUnstringify() local
43 AccountWithDataSet a2r = AccountWithDataSet.unstringify(a2.stringify()); in testStringifyAndUnstringify()
47 assertEquals(a2, a2r); in testStringifyAndUnstringify()
53 MoreAsserts.assertNotEqual(a2, a1r); in testStringifyAndUnstringify()
54 MoreAsserts.assertNotEqual(a2, a3r); in testStringifyAndUnstringify()
62 AccountWithDataSet a2 = new AccountWithDataSet("name2", "typeB", null); in testStringifyListAndUnstringify() local
74 final List<AccountWithDataSet> listB = stringifyListAndUnstringify(a2, a1); in testStringifyListAndUnstringify()
76 assertEquals(a2, listB.get(0)); in testStringifyListAndUnstringify()
80 final List<AccountWithDataSet> listC = stringifyListAndUnstringify(a3, a2, a1); in testStringifyListAndUnstringify()
83 assertEquals(a2, listC.get(1)); in testStringifyListAndUnstringify()
[all …]
/packages/apps/Email/tests/src/com/android/email/activity/
DMessageListTests.java47 final Account a2 = ProviderTestUtils.setupAccount("a2", true, c); in testGetAccountFromIntent() local
51 assertEquals(a2.mId, MessageList.getAccountFromIntent(c, in testGetAccountFromIntent()
52 MessageList.createFroyoIntent(c, a2))); in testGetAccountFromIntent()
56 final Intent i = MessageList.createFroyoIntent(c, a2); in testGetAccountFromIntent()
58 assertEquals(a2.mId, MessageList.getAccountFromIntent(c, i)); in testGetAccountFromIntent()
DMailboxFragmentAdapterTest.java51 Account a2 = ProviderTestUtils.setupAccount("a2", true, c); in testBuildCombinedMailboxes() local
55 Mailbox b2i = ProviderTestUtils.setupMailbox("box2i", a2.mId, true, c, Mailbox.TYPE_INBOX); in testBuildCombinedMailboxes()
58 Mailbox b2o = ProviderTestUtils.setupMailbox("box2i", a2.mId, true, c, Mailbox.TYPE_OUTBOX); in testBuildCombinedMailboxes()
60 Mailbox b2d = ProviderTestUtils.setupMailbox("box2d", a2.mId, true, c, Mailbox.TYPE_DRAFTS); in testBuildCombinedMailboxes()
62 Mailbox b2t = ProviderTestUtils.setupMailbox("box2t", a2.mId, true, c, Mailbox.TYPE_TRASH); in testBuildCombinedMailboxes()
DAccountSelectorAdapterTest.java67 final Account a2 = ProviderTestUtils.setupAccount("a2", true, mProviderContext); in testCombinedViewRow_twoPane() local
88 final Account a2 = ProviderTestUtils.setupAccount("a2", true, context); in testCursorWithExtras_setAccountMailboxInfo() local
91 final Mailbox m2 = ProviderTestUtils.setupMailbox("box2", a2.mId, true, context, in testCursorWithExtras_setAccountMailboxInfo()
122 c.setAccountMailboxInfo(context, a2.mId, m2.mId); in testCursorWithExtras_setAccountMailboxInfo()
125 assertEquals(a2.mId, c.getAccountId()); in testCursorWithExtras_setAccountMailboxInfo()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsDatabaseHelperTest.java38 final AccountWithDataSet a2 = new AccountWithDataSet("a", null, null); in testGetOrCreateAccountId() local
45 assertNull(mDbHelper.getAccountIdOrNull(a2)); in testGetOrCreateAccountId()
52 final long a2id = mDbHelper.getOrCreateAccountIdInTransaction(a2); in testGetOrCreateAccountId()
74 assertEquals(a2id, mDbHelper.getOrCreateAccountIdInTransaction(a2)); in testGetOrCreateAccountId()
81 assertEquals((Long) a2id, mDbHelper.getAccountIdOrNull(a2)); in testGetOrCreateAccountId()
95 assertNull(mDbHelper.getAccountIdOrNull(a2)); in testGetOrCreateAccountId()
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DMailboxTests.java347 Account a2 = ProviderTestUtils.setupAccount("holdflag-2", true, c); in testMessageCount() local
352 Mailbox b3 = ProviderTestUtils.setupMailbox("box3", a2.mId, true, c, Mailbox.TYPE_INBOX); in testMessageCount()
353 Mailbox b4 = ProviderTestUtils.setupMailbox("box4", a2.mId, true, c, Mailbox.TYPE_OUTBOX); in testMessageCount()
354 Mailbox bt = ProviderTestUtils.setupMailbox("boxT", a2.mId, true, c, Mailbox.TYPE_TRASH); in testMessageCount()
366 assertEquals(0, Message.getFavoriteMessageCount(c, a2.mId)); in testMessageCount()
380 a2.mId, Mailbox.TYPE_INBOX)); in testMessageCount()
382 a2.mId, Mailbox.TYPE_OUTBOX)); in testMessageCount()
384 a2.mId, Mailbox.TYPE_TRASH)); in testMessageCount()
418 assertEquals(1, Message.getFavoriteMessageCount(c, a2.mId)); // excludes starred in trash in testMessageCount()
432 a2.mId, Mailbox.TYPE_INBOX)); in testMessageCount()
[all …]
/packages/apps/Email/tests/src/com/android/email/provider/
DAttachmentProviderTests.java183 Account a2 = ProviderTestUtils.setupAccount("inboxquery-2", true, mMockContext); in testInboxQuery() local
191 "box3", a2.mId, true, mMockContext, Mailbox.TYPE_INBOX); in testInboxQuery()
193 "box4", a2.mId, true, mMockContext, Mailbox.TYPE_MAIL); in testInboxQuery()
195 "boxT", a2.mId, true, mMockContext, Mailbox.TYPE_TRASH); in testInboxQuery()
227 createAttachment(a2, m31.mId, null); in testInboxQuery()
230 createAttachment(a2, mt1.mId, null); in testInboxQuery()
231 createAttachment(a2, mt1.mId, null); in testInboxQuery()
/packages/apps/Exchange/tests/src/com/android/exchange/
DCalendarSyncEnablerTest.java89 String a2 = getTestAccountEmailAddress("2"); in testEnableEasCalendarSync() local
115 createAccountManagerAccount(a2); in testEnableEasCalendarSync()
123 checkNotificationEmailAddresses(emailAddresses, baseAccounts, a1, a2); in testEnableEasCalendarSync()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/
DCalendarSyncEnablerTest.java89 String a2 = getTestAccountEmailAddress("2"); in testEnableEasCalendarSync() local
115 createAccountManagerAccount(a2); in testEnableEasCalendarSync()
123 checkNotificationEmailAddresses(emailAddresses, baseAccounts, a1, a2); in testEnableEasCalendarSync()
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DAddressUnitTests.java590 private static boolean addressEquals(Address a1, Address a2) { in addressEquals() argument
591 if (!a1.equals(a2)) { in addressEquals()
595 final String displayName2 = a2.getPersonal(); in addressEquals()