Home
last modified time | relevance | path

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

12

/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
DImapUtilityTests.java45 String[] actual; in testGetImapSequenceValues() local
49 actual = ImapUtility.getImapSequenceValues("1"); in testGetImapSequenceValues()
50 MoreAsserts.assertEquals(expected, actual); in testGetImapSequenceValues()
53 actual = ImapUtility.getImapSequenceValues("1,3,2"); in testGetImapSequenceValues()
54 MoreAsserts.assertEquals(expected, actual); in testGetImapSequenceValues()
57 actual = ImapUtility.getImapSequenceValues("4:6"); in testGetImapSequenceValues()
58 MoreAsserts.assertEquals(expected, actual); in testGetImapSequenceValues()
61 actual = ImapUtility.getImapSequenceValues("9:7"); in testGetImapSequenceValues()
62 MoreAsserts.assertEquals(expected, actual); in testGetImapSequenceValues()
65 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/Email/tests/src/com/android/email/provider/
DProviderTestUtils.java282 EmailContent actual) { in assertEmailContentEqual() argument
283 if (expect == actual) { in assertEmailContentEqual()
287 assertEquals(caller + " mId", expect.mId, actual.mId); in assertEmailContentEqual()
288 assertEquals(caller + " mBaseUri", expect.mBaseUri, actual.mBaseUri); in assertEmailContentEqual()
296 public static void assertAccountEqual(String caller, Account expect, Account actual) { in assertAccountEqual() argument
297 if (expect == actual) { in assertAccountEqual()
301 assertEmailContentEqual(caller, expect, actual); in assertAccountEqual()
302 assertEquals(caller + " mDisplayName", expect.mDisplayName, actual.mDisplayName); in assertAccountEqual()
303 assertEquals(caller + " mEmailAddress", expect.mEmailAddress, actual.mEmailAddress); in assertAccountEqual()
304 assertEquals(caller + " mSyncKey", expect.mSyncKey, actual.mSyncKey); in assertAccountEqual()
[all …]
DAccountBackupRestoreTests.java58 public static void assertRestoredAccountEqual(Account expect, Account actual) { in assertRestoredAccountEqual() argument
59 assertEquals(" mDisplayName", expect.mDisplayName, actual.mDisplayName); in assertRestoredAccountEqual()
60 assertEquals(" mEmailAddress", expect.mEmailAddress, actual.mEmailAddress); in assertRestoredAccountEqual()
62 assertEquals(" mSyncLookback", expect.mSyncLookback, actual.mSyncLookback); in assertRestoredAccountEqual()
63 assertEquals(" mSyncInterval", expect.mSyncInterval, actual.mSyncInterval); in assertRestoredAccountEqual()
64 assertEquals(" mFlags", expect.mFlags, actual.mFlags); in assertRestoredAccountEqual()
65 assertEquals(" mIsDefault", expect.mIsDefault, actual.mIsDefault); in assertRestoredAccountEqual()
66 assertEquals(" mSenderName", expect.mSenderName, actual.mSenderName); in assertRestoredAccountEqual()
67 assertEquals(" mRingtoneUri", expect.mRingtoneUri, actual.mRingtoneUri); in assertRestoredAccountEqual()
69 actual.mProtocolVersion); in assertRestoredAccountEqual()
[all …]
/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTests.java417 private void checkAttachment(String tag, Part expected, EmailContent.Attachment actual, in checkAttachment() argument
421 assertEquals(tag, expected.getMimeType(), actual.mMimeType); in checkAttachment()
426 assertEquals(tag, expectedSize, actual.mSize); in checkAttachment()
427 assertEquals(tag, expected.getContentId(), actual.mContentId); in checkAttachment()
431 assertEquals(tag, expectedName, actual.mFileName); in checkAttachment()
434 assertNull(tag, actual.mContentUri); in checkAttachment()
436 assertTrue(tag, 0 != actual.mMessageKey); in checkAttachment()
444 assertEquals(tag, expectedPartId, actual.mLocation); in checkAttachment()
445 assertEquals(tag, "B", actual.mEncoding); in checkAttachment()
446 assertEquals(tag, accountKey, actual.mAccountKey); in checkAttachment()
[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()
DFastScrollingIndexCacheTest.java60 private void assertBundle(String[] expectedTitles, int[] expectedCounts, Bundle actual) { in assertBundle() argument
61 assertNotNull(actual); in assertBundle()
63 actual.getStringArray(ContactCounts.EXTRA_ADDRESS_BOOK_INDEX_TITLES)); in assertBundle()
65 actual.getIntArray(ContactCounts.EXTRA_ADDRESS_BOOK_INDEX_COUNTS)); in assertBundle()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DKeySpecParserCsvTests.java52 private static void assertArrayEquals(String message, Object[] expected, Object[] actual) { in assertArrayEquals() argument
53 if (expected == actual) { in assertArrayEquals()
56 if (expected == null || actual == null) { in assertArrayEquals()
57 assertEquals(message, Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals()
60 if (expected.length != actual.length) { in assertArrayEquals()
61 assertEquals(message + " [length]", Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals()
66 Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals()
71 final String[] actual = KeySpecParser.parseCsvString(value, mTextsSet); in assertTextArray() local
73 assertArrayEquals(message, expected, actual); in assertTextArray()
DKeySpecParserTests.java330 private static void assertArrayEquals(String message, Object[] expected, Object[] actual) { in assertArrayEquals() argument
331 if (expected == actual) { in assertArrayEquals()
334 if (expected == null || actual == null) { in assertArrayEquals()
335 assertEquals(message, Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals()
338 if (expected.length != actual.length) { in assertArrayEquals()
339 assertEquals(message + " [length]", Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals()
344 Arrays.toString(expected), Arrays.toString(actual)); in assertArrayEquals()
350 final String[] actual = in assertInsertAdditionalMoreKeys() local
352 assertArrayEquals(message, expected, actual); in assertInsertAdditionalMoreKeys()
577 final String[] actual = Arrays.copyOf(moreKeys, moreKeys.length); in assertGetBooleanValue() local
[all …]
DKeyboardStateTestsBase.java45 private static void assertLayout(String message, int expected, int actual) { in assertLayout() argument
47 + " actual=" + MockKeyboardSwitcher.getLayoutName(actual), in assertLayout()
48 expected == actual); in assertLayout()
/packages/apps/Calendar/tests/src/com/android/calendar/widget/
DCalendarAppWidgetServiceTest.java109 CalendarAppWidgetModel actual = CalendarFactory.buildAppWidgetModel( in testGetAppWidgetModel_1Event() local
112 assertEquals(expected.toString(), actual.toString()); in testGetAppWidgetModel_1Event()
155 CalendarAppWidgetModel actual = CalendarFactory.buildAppWidgetModel( in testGetAppWidgetModel_2StaggeredEvents() local
158 assertEquals(expected.toString(), actual.toString()); in testGetAppWidgetModel_2StaggeredEvents()
196 CalendarAppWidgetModel actual = CalendarFactory.buildAppWidgetModel( in testGetAppWidgetModel_AllDayEventToday() local
199 assertEquals(expected.toString(), actual.toString()); in testGetAppWidgetModel_AllDayEventToday()
237 CalendarAppWidgetModel actual = CalendarFactory.buildAppWidgetModel( in testGetAppWidgetModel_AllDayEventTomorrow() local
240 assertEquals(expected.toString(), actual.toString()); in testGetAppWidgetModel_AllDayEventTomorrow()
278 … CalendarAppWidgetModel actual = CalendarAppWidgetService.CalendarFactory.buildAppWidgetModel( in testGetAppWidgetModel_AllDayEventLater() local
281 assertEquals(expected.toString(), actual.toString()); in testGetAppWidgetModel_AllDayEventLater()
/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/Exchange/exchange2/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/util/
DNameDistanceTest.java74 float actual = mNameDistance.getDistance(s1, s2); in assertFloat() local
75 assertTrue("Expected Jaro-Winkler distance: " + expected + ", actual: " + actual, in assertFloat()
76 Math.abs(actual - expected) < 0.001); in assertFloat()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/anim/
DAnimationTest.java74 public static void assertFloatEq(float expected, float actual) { in assertFloatEq() argument
75 if (Math.abs(actual - expected) > 1e-6) { in assertFloatEq()
76 Log.v(TAG, "expected: " + expected + ", actual: " + actual); in assertFloatEq()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
DGLCanvasTest.java376 private static void assertMatrixEq(float[] expected, float[] actual) { in assertMatrixEq() argument
379 assertFloatEq(expected[i], actual[i]); in assertMatrixEq()
383 ", actual = " + Arrays.toString(actual)); in assertMatrixEq()
388 public static void assertFloatEq(float expected, float actual) { in assertFloatEq() argument
389 if (Math.abs(actual - expected) > 1e-6) { in assertFloatEq()
390 Log.v(TAG, "expected: " + expected + ", actual: " + actual); in assertFloatEq()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java191 String actual = checkCaller("com.android.certinstaller");
192 if (actual == null) {
198 String actual = checkCaller("android.uid.system:1000");
199 if (actual != null) {
200 throw new IllegalStateException(actual);
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DRfc822OutputTests.java334 String actual; in testGetHtmlBody() local
335 actual = Rfc822Output.getHtmlBody(HTML_FULL_BODY); in testGetHtmlBody()
336 assertEquals(HTML_FULL_RESULT, actual); in testGetHtmlBody()
337 actual = Rfc822Output.getHtmlBody(HTML_BODY_BODY); in testGetHtmlBody()
338 assertEquals(HTML_BODY_RESULT, actual); in testGetHtmlBody()
339 actual = Rfc822Output.getHtmlBody(HTML_NO_BODY_BODY); in testGetHtmlBody()
340 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/Gallery2/tests/src/com/android/gallery3d/common/
DUtilsTest.java196 public static void assertFloatEq(float expected, float actual) { in assertFloatEq() argument
197 if (Math.abs(actual - expected) > 1e-6) { in assertFloatEq()
198 Log.v(TAG, "expected: " + expected + ", actual: " + actual); in assertFloatEq()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DExternalAccountTypeTest.java210 String actual = actualKinds.size() > i ? actualKinds.get(i).toString() : "(n/a)"; in assertsDataKindEquals() local
215 if (!Objects.equal(actual, expected)) { in assertsDataKindEquals()
216 final int commonPrefixEnd = findCommonPrefixEnd(actual, expected); in assertsDataKindEquals()
218 + "\n[Actual]\n" + insertMarkerAt(actual, commonPrefixEnd) in assertsDataKindEquals()
/packages/apps/Camera/tests/src/com/android/camera/unittest/
DCameraUnitTest.java102 private void assertEquals(int expected[], float[] actual) { in assertEquals() argument
104 assertEquals("Array index " + i + " mismatch", expected[i], Math.round(actual[i])); in assertEquals()
/packages/apps/Contacts/tests/src/com/android/contacts/detail/
DContactDetailDisplayUtilsTest.java95 Spanned actual = (Spanned) actualCharSequence; in assertSpannableEquals() local
96 assertEquals(Html.toHtml(expected), Html.toHtml(actual)); in assertSpannableEquals()
/packages/apps/LegacyCamera/tests/src/com/android/camera/unittest/
DCameraTest.java106 private void assertEquals(int expected[], float[] actual) { in assertEquals() argument
108 assertEquals("Array index " + i + " mismatch", expected[i], Math.round(actual[i])); in assertEquals()

12