Home
last modified time | relevance | path

Searched refs:actual (Results 1 – 25 of 51) sorted by relevance

123

/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTestUtils.java271 EmailContent actual) { in assertEmailContentEqual() argument
272 if (expect == actual) { in assertEmailContentEqual()
276 assertEquals(caller + " mId", expect.mId, actual.mId); in assertEmailContentEqual()
277 assertEquals(caller + " mBaseUri", expect.mBaseUri, actual.mBaseUri); in assertEmailContentEqual()
285 public static void assertAccountEqual(String caller, Account expect, Account actual) { in assertAccountEqual() argument
286 if (expect == actual) { in assertAccountEqual()
290 assertEmailContentEqual(caller, expect, actual); in assertAccountEqual()
291 assertEquals(caller + " mDisplayName", expect.mDisplayName, actual.mDisplayName); in assertAccountEqual()
292 assertEquals(caller + " mEmailAddress", expect.mEmailAddress, actual.mEmailAddress); in assertAccountEqual()
293 assertEquals(caller + " mSyncKey", expect.mSyncKey, actual.mSyncKey); in assertAccountEqual()
[all …]
DAccountBackupRestoreTests.java60 public static void assertRestoredAccountEqual(Account expect, Account actual) { in assertRestoredAccountEqual() argument
61 assertEquals(" mDisplayName", expect.mDisplayName, actual.mDisplayName); in assertRestoredAccountEqual()
62 assertEquals(" mEmailAddress", expect.mEmailAddress, actual.mEmailAddress); in assertRestoredAccountEqual()
64 assertEquals(" mSyncLookback", expect.mSyncLookback, actual.mSyncLookback); in assertRestoredAccountEqual()
65 assertEquals(" mSyncInterval", expect.mSyncInterval, actual.mSyncInterval); in assertRestoredAccountEqual()
66 assertEquals(" mFlags", expect.mFlags, actual.mFlags); in assertRestoredAccountEqual()
67 assertEquals(" mSenderName", expect.mSenderName, actual.mSenderName); in assertRestoredAccountEqual()
69 actual.mProtocolVersion); in assertRestoredAccountEqual()
70 assertEquals(" mSignature", expect.mSignature, actual.mSignature); in assertRestoredAccountEqual()
73 assertEquals(0, actual.mPolicyKey); in assertRestoredAccountEqual()
[all …]
DProviderTests.java490 Attachment actual = EmailContent.getContent(mMockContext, c, Attachment.class); in testMessageWithAttachment() local
491 ProviderTestUtils.assertAttachmentEqual("save-message3", atts.get(i), actual); in testMessageWithAttachment()
542 Attachment actual = EmailContent.getContent(mMockContext, c, Attachment.class); in testMessageSaveWithJustAttachments() local
543 ProviderTestUtils.assertAttachmentEqual("save-message4", atts.get(i), actual); in testMessageSaveWithJustAttachments()
2198 private void assertEquals(Mailbox expected, Mailbox actual) { in assertEquals() argument
2199 if (expected == null && actual == null) return; in assertEquals()
2200 assertTrue(expected != null && actual != null); in assertEquals()
2201 assertEqualsExceptServerId(expected, actual, expected.mServerId); in assertEquals()
2208 private void assertEqualsExceptServerId(Mailbox expected, Mailbox actual, String serverId) { in assertEqualsExceptServerId() argument
2209 if (expected == null && actual == null) return; in assertEqualsExceptServerId()
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
DImapUtilityTests.java44 String[] actual; in testGetImapSequenceValues() local
48 actual = ImapUtility.getImapSequenceValues("1"); in testGetImapSequenceValues()
49 MoreAsserts.assertEquals(expected, actual); in testGetImapSequenceValues()
52 actual = ImapUtility.getImapSequenceValues("1,3,2"); in testGetImapSequenceValues()
53 MoreAsserts.assertEquals(expected, actual); in testGetImapSequenceValues()
56 actual = ImapUtility.getImapSequenceValues("4:6"); in testGetImapSequenceValues()
57 MoreAsserts.assertEquals(expected, actual); in testGetImapSequenceValues()
60 actual = ImapUtility.getImapSequenceValues("9:7"); in testGetImapSequenceValues()
61 MoreAsserts.assertEquals(expected, actual); in testGetImapSequenceValues()
64 actual = ImapUtility.getImapSequenceValues("1,2:4,9:7"); in testGetImapSequenceValues()
[all …]
DImapTestUtils.java45 public static final void assertElement(ImapElement expected, ImapElement actual) { in assertElement() argument
46 assertElement("(no message)", expected, actual); in assertElement()
55 ImapElement actual) { in assertElement() argument
56 if (expected == null && actual == null) { in assertElement()
59 if (expected != null && expected.equalsForTest(actual)) { in assertElement()
62 Assert.fail(String.format("%s expected=%s\nactual=%s", message, expected, actual)); in assertElement()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
DSearchUtilTest.java30 final String actual = "this is a long test string.\nWith potentially many lines.\n" + in testFindMatchingLine() local
33 SearchUtil.MatchedLine matched = SearchUtil.findMatchingLine(actual, "poten"); in testFindMatchingLine()
38 matched = SearchUtil.findMatchingLine(actual, "hello"); in testFindMatchingLine()
43 matched = SearchUtil.findMatchingLine(actual, "this"); in testFindMatchingLine()
48 matched = SearchUtil.findMatchingLine(actual, "punc"); in testFindMatchingLine()
54 final String actual = "this is a long test string.\nWith potentially many lines.\n" + in testContains() local
56 assertEquals(0, SearchUtil.contains(actual, "this")); in testContains()
57 assertEquals(10, SearchUtil.contains(actual, "lon")); in testContains()
65 final String actual = "this is a long test string.\nWith potentially many lines.\n" + in testContainsNotFound() local
69 assertEquals(-1, SearchUtil.contains(actual, "ith")); in testContainsNotFound()
[all …]
/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTests.java288 private void checkAttachment(String tag, Part expected, EmailContent.Attachment actual, in checkAttachment() argument
292 assertEquals(tag, expected.getMimeType(), actual.mMimeType); in checkAttachment()
297 assertEquals(tag, expectedSize, actual.mSize); in checkAttachment()
298 assertEquals(tag, expected.getContentId(), actual.mContentId); in checkAttachment()
302 assertEquals(tag, expectedName, actual.mFileName); in checkAttachment()
305 assertNull(tag, actual.getContentUri()); in checkAttachment()
307 assertTrue(tag, 0 != actual.mMessageKey); in checkAttachment()
315 assertEquals(tag, expectedPartId, actual.mLocation); in checkAttachment()
316 assertEquals(tag, "B", actual.mEncoding); in checkAttachment()
317 assertEquals(tag, accountKey, actual.mAccountKey); in checkAttachment()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/
DUtilsTest.java34 final Spanned actual = Utils.insertStringWithStyle( in testInsertStringWithStyle() local
39 assertSpannedEquals(expected, actual); in testInsertStringWithStyle()
46 final Spanned actual = Utils.insertStringWithStyle( in testInsertStringWithStyle_substringNotInEntire() local
50 assertSpannedEquals(expected, actual); in testInsertStringWithStyle_substringNotInEntire()
53 public static void assertSpannedEquals(Spanned expected, Spanned actual) { in assertSpannedEquals() argument
54 assertEquals(expected.length(), actual.length()); in assertSpannedEquals()
55 assertEquals(expected.toString(), actual.toString()); in assertSpannedEquals()
60 actual.getSpans(0, actual.length(), TextAppearanceSpan.class); in assertSpannedEquals()
69 TextAppearanceSpan expected, TextAppearanceSpan actual) { in assertTextAppearanceSpanEquals() argument
70 assertEquals(expected.describeContents(), actual.describeContents()); in assertTextAppearanceSpanEquals()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DMoreKeySpecTests.java57 final Object[] actual) { in assertArrayEquals() argument
58 if (expected == actual) { in assertArrayEquals()
61 if (expected == null || actual == null) { in assertArrayEquals()
62 assertEquals(message, Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals()
65 if (expected.length != actual.length) { in assertArrayEquals()
66 assertEquals(message + " [length]", Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals()
71 Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals()
77 final String[] actual = MoreKeySpec.insertAdditionalMoreKeys(moreKeys, additionalMoreKeys); in assertInsertAdditionalMoreKeys() local
78 assertArrayEquals(message, expected, actual); in assertInsertAdditionalMoreKeys()
303 final String[] actual = Arrays.copyOf(moreKeys, moreKeys.length); in assertGetBooleanValue() local
[all …]
DMoreKeySpecSplitTests.java64 final T[] actual) { in assertArrayEquals() argument
65 if (expected == actual) { in assertArrayEquals()
68 if (expected == null || actual == null) { in assertArrayEquals()
69 assertEquals(message, Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals()
72 if (expected.length != actual.length) { in assertArrayEquals()
73 assertEquals(message + " [length]", Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals()
78 final T a = actual[i]; in assertArrayEquals()
89 final String[] actual = MoreKeySpec.splitKeySpecs(resolvedActual); in assertTextArray() local
91 assertArrayEquals(message, expected, actual); in assertTextArray()
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlertServiceTest.java298 NotificationWrapper actual = mActualNotifications[id]; in validateNotificationsAndReset() local
300 assertNull("Received unexpected notificationId " + id + debugStr, actual); in validateNotificationsAndReset()
305 + debugStr, actual); in validateNotificationsAndReset()
309 expected.mPriority, actual.mNotification.priority); in validateNotificationsAndReset()
313 a.mEventId, actual.mEventId); in validateNotificationsAndReset()
315 a.mBegin, actual.mBegin); in validateNotificationsAndReset()
317 a.mEnd, actual.mEnd); in validateNotificationsAndReset()
321 actual.mNw); in validateNotificationsAndReset()
323 + debugStr, expected.mAlertIdsInDigest.length, actual.mNw.size()); in validateNotificationsAndReset()
324 for (int i = 0; i < actual.mNw.size(); i++) { in validateNotificationsAndReset()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DNameLookupBuilderTest.java228 String actual = mBuilder.inserted(); in testMultiwordName() local
231 assertTrue(actual.contains("(0:Jo.Jeffrey.John.Jessy.Longname)")); in testMultiwordName()
234 assertTrue(actual.contains("(2:JoJeffreyJohnJessyLongname)")); in testMultiwordName()
237 assertTrue(actual.contains("(1:Longname.Jeffrey.Jessy.John)")); in testMultiwordName()
240 assertTrue(actual.contains("(2:Jo")); in testMultiwordName()
241 assertTrue(actual.contains("(2:Jeffrey")); in testMultiwordName()
242 assertTrue(actual.contains("(2:John")); in testMultiwordName()
243 assertTrue(actual.contains("(2:Jessy")); in testMultiwordName()
244 assertTrue(actual.contains("(2:Longname")); in testMultiwordName()
DEvenMoreAsserts.java81 public static void assertImageRawData(Context context, byte[] expected, byte[] actual) { in assertImageRawData() argument
83 if (expected.length != actual.length) { in assertImageRawData()
85 " expected=" + expected.length + " actual=" + actual.length; in assertImageRawData()
86 } else if (!Arrays.equals(expected, actual)) { in assertImageRawData()
93 String actualFile = TestUtils.dumpToCacheDir(context, "actual", ".jpg", actual); in assertImageRawData()
97 " actual dimentions=" + getImageDimensions(actual) + in assertImageRawData()
DBaseContactsProvider2Test.java760 protected void assertDataRow(ContentValues actual, String expectedMimetype, in assertDataRow() argument
762 assertEquals(actual.toString(), expectedMimetype, actual.getAsString(Data.MIMETYPE)); in assertDataRow()
770 assertNull(actual.toString(), actual.get(columnName)); in assertDataRow()
773 assertEquals("mismatch at " + columnName + " from " + actual.toString(), in assertDataRow()
774 expectedValue, actual.getAsLong(columnName)); in assertDataRow()
776 assertEquals("mismatch at " + columnName + " from " + actual.toString(), in assertDataRow()
777 expectedValue, actual.getAsInteger(columnName)); in assertDataRow()
779 assertEquals("mismatch at " + columnName + " from " + actual.toString(), in assertDataRow()
780 expectedValue, actual.getAsString(columnName)); in assertDataRow()
782 assertEquals("mismatch at " + columnName + " from " + actual.toString(), in assertDataRow()
[all …]
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DHelpersTest.java44 final String actual = Helpers.generateSaveFile(getContext(), in testGenerateSaveFile() local
47 assertEquals(expected.getAbsolutePath(), actual); in testGenerateSaveFile() local
65 final String actual = Helpers.generateSaveFile(getContext(), in testGenerateSaveFileNoExtension() local
68 assertEquals(expected.getAbsolutePath(), actual); in testGenerateSaveFileNoExtension() local
76 final String actual = Helpers.generateSaveFile(getContext(), "url", hint, in testGenerateSaveFileHint() local
78 assertEquals(expected.getAbsolutePath(), actual); in testGenerateSaveFileHint() local
83 final String actual = Helpers.generateSaveFile(getContext(), in testGenerateSaveFileDisposition() local
86 assertEquals(expected.getAbsolutePath(), actual); in testGenerateSaveFileDisposition() local
DAbstractPublicApiTest.java131 int actual = -1; in waitForStatus() local
136 actual = getStatus(); in waitForStatus()
137 if (actual == STATUS_SUCCESSFUL || actual == STATUS_FAILED) { in waitForStatus()
138 assertEquals(expected, actual); in waitForStatus()
140 } else if (actual == expected) { in waitForStatus()
159 throw new TimeoutException("Expected status " + expected + "; only reached " + actual); in waitForStatus()
DDownloadProviderFunctionalTest.java119 int actual = -1; in runUntilStatus() local
123 actual = getDownloadStatus(downloadUri); in runUntilStatus()
124 if (expected == actual) { in runUntilStatus()
131 throw new TimeoutException("Expected status " + expected + "; only reached " + actual); in runUntilStatus()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/database/
DMoreDatabaseUtilTest.java38 String actual = MoreDatabaseUtils.buildCreateIndexSql("testtable", "testfield") in testBuildIndex() local
40 assertEquals(expected, actual); in testBuildIndex()
43 actual = MoreDatabaseUtils.buildCreateIndexSql("test_table", "test_field").toLowerCase(); in testBuildIndex()
44 assertEquals(expected, actual); in testBuildIndex()
49 String actual = MoreDatabaseUtils.buildDropIndexSql("testtable", "testfield").toLowerCase(); in testDropIndex() local
50 assertEquals(expected, actual); in testDropIndex()
/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_hook.cpp132 int64_t actual = src->inStream->skip(skip); in Mgr_skip_input_data_fcn() local
133 if (actual < 0) { in Mgr_skip_input_data_fcn()
136 skip -= actual; in Mgr_skip_input_data_fcn()
138 actual = src->inStream->skip(skip); in Mgr_skip_input_data_fcn()
139 if (actual < 0) { in Mgr_skip_input_data_fcn()
142 skip -= actual; in Mgr_skip_input_data_fcn()
143 if (actual == 0) { in Mgr_skip_input_data_fcn()
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DRfc822OutputTests.java235 String actual; in testGetHtmlBody() local
236 actual = Rfc822Output.getHtmlBody(HTML_FULL_BODY); in testGetHtmlBody()
237 assertEquals(HTML_FULL_RESULT, actual); in testGetHtmlBody()
238 actual = Rfc822Output.getHtmlBody(HTML_BODY_BODY); in testGetHtmlBody()
239 assertEquals(HTML_BODY_RESULT, actual); in testGetHtmlBody()
240 actual = Rfc822Output.getHtmlBody(HTML_NO_BODY_BODY); in testGetHtmlBody()
241 assertEquals(HTML_NO_BODY_RESULT, actual); in testGetHtmlBody()
DMimeMessageTest.java424 byte[] actual = out.toByteArray(); in testWriteToHeader()
425 assertEquals("output length", expected.length, actual.length); in testWriteToHeader()
426 for (int i = 0; i < actual.length; ++i) { in testWriteToHeader()
427 assertEquals("output byte["+i+"]", expected[i], actual[i]); in testWriteToHeader()
543 Date actual = mm.getSentDate(); in testEbayDate() local
545 assertEquals(expected, actual); in testEbayDate()
/packages/apps/Dialer/tests/src/com/android/dialer/list/
DPhoneFavoritesTileAdapterTest.java100 ArrayList<ContactEntry> actual) { in assertContactEntryRowsEqual() argument
101 assertEquals(expected.size(), actual.size()); in assertContactEntryRowsEqual()
102 for (int i = 0; i < actual.size(); i++) { in assertContactEntryRowsEqual()
103 assertEquals(expected.get(i).id, actual.get(i).id); in assertContactEntryRowsEqual()
104 assertEquals(expected.get(i).isFavorite, actual.get(i).isFavorite); in assertContactEntryRowsEqual()
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
DSimpleIcsWriterTests.java48 final String actual = Utility.fromUtf8(ics.getBytes()); in testWriteTag() local
54 , actual); in testWriteTag()
102 final String actual = Utility.fromUtf8(bytes); in checkWriteLine() local
103 final String unfolded = actual.replace("\r\n\t", ""); in checkWriteLine()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java223 String actual = checkCaller("com.android.certinstaller");
224 if (actual == null) {
230 String actual = checkCaller("android.uid.system:1000");
231 if (actual != null) {
232 throw new IllegalStateException(actual);
/packages/apps/Calendar/tests/src/com/android/calendar/widget/
DCalendarAppWidgetServiceTest.java120 CalendarAppWidgetModel actual = CalendarFactory.buildAppWidgetModel( in testGetAppWidgetModel_1Event() local
123 assertEquals(expected.toString(), actual.toString()); in testGetAppWidgetModel_1Event()
170 … CalendarAppWidgetModel actual = CalendarAppWidgetService.CalendarFactory.buildAppWidgetModel( in testGetAppWidgetModel_AllDayEventLater() local
173 assertEquals(expected.toString(), actual.toString()); in testGetAppWidgetModel_AllDayEventLater()

123