/packages/apps/Email/src/org/apache/james/mime4j/field/datetime/parser/ |
D | ParseException.java | 116 StringBuffer expected = new StringBuffer(); in getMessage() local 123 expected.append(tokenImage[expectedTokenSequences[i][j]]).append(" "); in getMessage() 126 expected.append("..."); in getMessage() 128 expected.append(eol).append(" "); in getMessage() 148 retval += expected.toString(); in getMessage()
|
/packages/apps/Email/src/org/apache/james/mime4j/field/contenttype/parser/ |
D | ParseException.java | 116 StringBuffer expected = new StringBuffer(); in getMessage() local 123 expected.append(tokenImage[expectedTokenSequences[i][j]]).append(" "); in getMessage() 126 expected.append("..."); in getMessage() 128 expected.append(eol).append(" "); in getMessage() 148 retval += expected.toString(); in getMessage()
|
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/ |
D | ParseException.java | 116 StringBuffer expected = new StringBuffer(); in getMessage() local 123 expected.append(tokenImage[expectedTokenSequences[i][j]]).append(" "); in getMessage() 126 expected.append("..."); in getMessage() 128 expected.append(eol).append(" "); in getMessage() 148 retval += expected.toString(); in getMessage()
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | RecurrenceProcessorTest.java | 131 private static void printLists(String[] expected, String[] out) { in printLists() argument 134 for (i = 0; i < expected.length && i < out.length; i++) { in printLists() 135 Log.i(TAG, " [" + i + "] " + expected[i] in printLists() 138 for (; i < expected.length; i++) { in printLists() 139 Log.i(TAG, " [" + i + "] " + expected[i]); in printLists() 147 String exdate, String rangeStartStr, String rangeEndStr, String[] expected) in verifyRecurrence() argument 150 rangeEndStr, expected, expected[expected.length - 1]); in verifyRecurrence() 154 String exdate, String rangeStartStr, String rangeEndStr, String[] expected, in verifyRecurrence() argument 202 if (count != expected.length) { in verifyRecurrence() 205 printLists(expected, actual); in verifyRecurrence() [all …]
|
D | CalendarProviderTest.java | 108 int expected; field in CalendarProviderTest.Delete 110 public Delete(String eventName, int expected) { in Delete() argument 112 this.expected = expected; in Delete() 118 assertEquals(expected, rows); in execute() 164 int expected; field in CalendarProviderTest.QueryNumEvents 166 public QueryNumEvents(int expected) { in QueryNumEvents() argument 167 this.expected = expected; in QueryNumEvents() 172 assertEquals(expected, cursor.getCount()); in execute() 220 int expected; field in CalendarProviderTest.QueryNumInstances 224 public QueryNumInstances(String startDate, String endDate, int expected) { in QueryNumInstances() argument [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | NameDistanceTest.java | 66 private void assertFloat(float expected, String name1, String name2) { in assertFloat() argument 71 assertTrue("Expected Jaro-Winkler distance: " + expected + ", actual: " + actual, in assertFloat() 72 Math.abs(actual - expected) < 0.001); in assertFloat()
|
D | GroupsTest.java | 237 public void assertRawContactVisible(long rawContactId, boolean expected) { in assertRawContactVisible() argument 239 assertContactVisible(contactId, expected); in assertRawContactVisible() 242 public void assertContactVisible(long contactId, boolean expected) { in assertContactVisible() argument 249 assertEquals("Unexpected visibility", expected, actual); in assertContactVisible()
|
D | LegacyContactImporterTest.java | 204 String expected = readAssetAsString(fileName).trim(); in assertQueryResults() local 206 assertEquals("Checking golden file " + fileName, expected, actual); in assertQueryResults()
|
D | ContactsProvider2Test.java | 1619 private void assertLiveFolderContents(Uri uri, Object... expected) { in assertLiveFolderContents() argument 1622 assertEquals(expected.length/2, c.getCount()); in assertLiveFolderContents() 1623 for (int i = 0; i < expected.length/2; i++) { in assertLiveFolderContents() 1625 assertEquals(((Long)expected[i * 2]).longValue(), c.getLong(0)); in assertLiveFolderContents() 1626 assertEquals(expected[i * 2 + 1], c.getString(1)); in assertLiveFolderContents()
|
D | BaseContactsProvider2Test.java | 823 protected void assertNetworkNotified(boolean expected) { in assertNetworkNotified() argument 824 assertEquals(expected, ((SynchronousContactsProvider2)mActor.provider).isNetworkNotified()); in assertNetworkNotified()
|
/packages/apps/IM/libwbxml/test/ |
D | imps_encoder_test.cpp | 27 #define ASSERT_EQUAL_INT(expected, actual) \ argument 30 TEST_ASSERT_EQUAL_INT(expected, tmp); \ 33 #define ASSERT_EQUAL_BINARY_CPPSTRING(expected, cpp_string) \ argument 35 ASSERT_EQUAL_INT(sizeof(expected), cpp_string.size()); \ 36 ASSERT_EQUAL_INT(0, memcmp(expected, cpp_string.c_str(), sizeof(expected))); \ 39 #define ASSERT_EQUAL_CSTRING_CPPSTRING(expected, cpp_string) \ argument 41 ASSERT_EQUAL_INT(sizeof(expected) - 1, cpp_string.size()); \ 42 ASSERT_EQUAL_INT(0, memcmp(expected, cpp_string.c_str(), sizeof(expected) - 1)); \
|
D | syncml_parser_test.cpp | 26 #define ASSERT_EQUAL_INT(expected, actual) \ argument 29 TEST_ASSERT_EQUAL_INT(expected, tmp); \
|
D | imps_parser_test.cpp | 26 #define ASSERT_EQUAL_INT(expected, actual) \ argument 29 TEST_ASSERT_EQUAL_INT(expected, tmp); \
|
/packages/apps/GlobalSearch/tests/src/com/android/globalsearch/ |
D | SessionManagerTest.java | 140 static void assertContentsInOrder(Iterable<?> actual, Object... expected) { in assertContentsInOrder() argument 141 assertContentsInOrder(null, actual, expected); in assertContentsInOrder() 149 String message, Iterable<?> actual, Object... expected) { in assertContentsInOrder() argument 154 Assert.assertEquals(message, Arrays.asList(expected), actualList); in assertContentsInOrder()
|
D | ShortcutRepositoryTest.java | 177 SuggestionData expected = clicked.buildUpon() in testSpinnerWhileRefreshing() local 181 assertContentsInOrder(mRepo.getShortcutsForQuery("q", NOW), expected); in testSpinnerWhileRefreshing() 729 static void assertContentsInOrder(Iterable<?> actual, Object... expected) { in assertContentsInOrder() argument 730 assertContentsInOrder(null, actual, expected); in assertContentsInOrder() 738 String message, Iterable<?> actual, Object... expected) { in assertContentsInOrder() argument 743 Assert.assertEquals(message, Arrays.asList(expected), actualList); in assertContentsInOrder()
|
D | SourceSuggestionBackerTest.java | 1050 static void assertContentsInOrder(Iterable<?> actual, Object... expected) { in assertContentsInOrder() argument 1051 assertContentsInOrder(null, actual, expected); in assertContentsInOrder() 1060 String message, Iterable<?> actual, Object... expected) { in assertContentsInOrder() argument 1067 final List<Object> expectedList = Arrays.asList(expected); in assertContentsInOrder()
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
D | MessageComposeInstrumentationTests.java | 426 String expected = Address.parseAndPack(FROM); in testReplyAddresses() 427 assertEquals(expected, result); in testReplyAddresses() 459 String expected = Address.parseAndPack(FROM + ',' + TO2); in testReplyAllAddresses1() 460 assertEquals(expected, result); in testReplyAllAddresses1() 462 expected = Address.parseAndPack(CC1 + ',' + CC2 + ',' + CC3); in testReplyAllAddresses1() 463 assertEquals(expected, result); in testReplyAllAddresses1() 495 String expected = Address.parseAndPack(FROM + ',' + TO1 + ',' + TO2); in testReplyAllAddresses2() 496 assertEquals(expected, result); in testReplyAllAddresses2() 498 expected = Address.parseAndPack(CC1 + ',' + CC3); in testReplyAllAddresses2() 499 assertEquals(expected, result); in testReplyAllAddresses2() [all …]
|
/packages/apps/Email/tests/src/com/android/email/ |
D | LegacyConversionsTests.java | 328 private void checkAttachment(String tag, Part expected, EmailContent.Attachment actual) in checkAttachment() argument 330 String contentType = MimeUtility.unfoldAndDecode(expected.getContentType()); in checkAttachment() 333 assertEquals(tag, expected.getMimeType(), actual.mMimeType); in checkAttachment() 334 String disposition = expected.getDisposition(); in checkAttachment() 338 assertEquals(tag, expected.getContentId(), actual.mContentId); in checkAttachment() 342 expected.getHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA)[0]; in checkAttachment()
|
/packages/providers/GoogleContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsSyncAdapterTest.java | 411 private void assertByteArrayEquals(byte[] expected, byte[] actual, int lengthOfActual) { in assertByteArrayEquals() argument 412 assertEquals(expected.length, lengthOfActual); in assertByteArrayEquals() 413 for (int i = 0; i < expected.length; i++) assertEquals(expected[i], actual[i]); in assertByteArrayEquals() 503 final String expected = expectedEntry.toString(); in checkNextCursorToEntry() local 505 assertEquals("\nexpected:\n" + expected + "\nactual:\n" + actual, expected, actual); in checkNextCursorToEntry() 616 final String expected = entry.toString(); in checkCursorToEntry() local 618 assertEquals("\nexpected:\n" + expected + "\nactual:\n" + actual, expected, actual); in checkCursorToEntry()
|
/packages/apps/Email/tests/src/com/android/email/mail/internet/ |
D | MimeMessageTest.java | 415 byte[] expected = expectedString.getBytes(); in testWriteToHeader() 417 assertEquals("output length", expected.length, actual.length); in testWriteToHeader() 419 assertEquals("output byte["+i+"]", expected[i], actual[i]); in testWriteToHeader()
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | EntitySetTests.java | 194 final ContentProviderOperation expected = pattern[i]; in assertDiffPattern() local 197 assertEquals("Unexpected uri", expected.getUri(), found.getUri()); in assertDiffPattern() 199 final String expectedType = getStringForType(expected.getType()); in assertDiffPattern() 203 if (expected.getType() == TYPE_DELETE) continue; in assertDiffPattern() 206 final ContentValues expectedValues = getValues(expected); in assertDiffPattern()
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
D | LocalStoreUnitTests.java | 680 private void checkGottenMessages(String failMessage, Message[] expected, Message[] actual) { in checkGottenMessages() argument 682 for (Message message : expected) { in checkGottenMessages()
|