Searched refs:expected (Results 1 - 25 of 29) sorted by relevance

12

/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DSuggestionCursorUtil.java36 SuggestionCursor expected, SuggestionCursor observed) {
37 assertSameSuggestion(message, expected, position, observed, position);
41 SuggestionCursor expected, int positionExpected,
43 message += " at positions " + positionExpected + "(expected) "
45 expected.moveTo(positionExpected);
47 assertSuggestionEquals(message, expected, observed);
50 public static void assertSameSuggestions(SuggestionCursor expected, SuggestionCursor observed) { argument
51 assertSameSuggestions("", expected, observed, false);
54 public static void assertSameSuggestions(SuggestionCursor expected, SuggestionCursor observed, argument
56 assertSameSuggestions("", expected, observe
35 assertSameSuggestion(String message, int position, SuggestionCursor expected, SuggestionCursor observed) argument
40 assertSameSuggestion(String message, SuggestionCursor expected, int positionExpected, SuggestionCursor observed, int positionObserved) argument
59 assertSameSuggestions( String message, SuggestionCursor expected, SuggestionCursor observed) argument
64 assertSameSuggestions( String message, SuggestionCursor expected, SuggestionCursor observed, boolean allowExtras) argument
89 assertSuggestionEquals(Suggestion expected, Suggestion observed) argument
93 assertSuggestionEquals(String message, Suggestion expected, Suggestion observed) argument
125 assertFieldEquals(String message, String field, Object expected, Object observed) argument
[all...]
H A DShortcutLimitingPromoterTest.java56 SuggestionCursor expected = cursor();
57 assertSameSuggestions(expected, promoted);
62 SuggestionCursor expected = cursor(mS11, mS21);
63 assertSameSuggestions(expected, promoted);
68 SuggestionCursor expected = cursor(mS11, mS12, mS21, mS22);
69 assertSameSuggestions(expected, promoted);
74 SuggestionCursor expected = cursor(mS11, mS12, mS21, mS22);
75 assertSameSuggestions(expected, promoted);
80 SuggestionCursor expected = cursor();
81 assertSameSuggestions(expected, promote
[all...]
H A DShortcutRepositoryTest.java207 SuggestionData expected = new SuggestionData(CONTACTS_SOURCE)
216 assertShortcuts("q", expected);
269 assertShortcuts("expected app1 to beat app2 since it has more hits",
292 assertShortcuts("expected app3 to beat app1 and app2 because it's clicked last",
310 assertShortcuts("expected app2 to beat app1 since it's clicked last", "",
340 assertShortcuts("expected app1 to beat app2 since it has more hits",
458 assertShortcuts("expected updated properties in match",
482 assertShortcuts("expected updated properties in match",
567 assertCorpusRanking("expected no ranking");
646 ListSuggestionCursor expected
779 assertShortcuts(String query, SuggestionData... expected) argument
783 assertShortcutAtPosition(String message, String query, int position, SuggestionData expected) argument
803 assertShortcuts(String message, String query, Collection<Corpus> allowedCorpora, SuggestionCursor expected) argument
813 assertShortcuts(String message, String query, Collection<Corpus> allowedCorpora, SuggestionData... expected) argument
818 assertShortcuts(String message, String query, SuggestionData... expected) argument
822 assertCorpusRanking(String message, Corpus... expected) argument
856 assertContentsInOrder(Iterable<?> actual, Object... expected) argument
864 assertContentsInOrder( String message, Iterable<?> actual, Object... expected) argument
[all...]
H A DMultiSourceCorpusTest.java56 ListSuggestionCursor expected = concatSuggestionCursors("foo",
60 SuggestionCursorUtil.assertSameSuggestions(expected, observed);
H A DSourceShortcutRefresherTest.java100 SuggestionCursor expected =
102 SuggestionCursorUtil.assertSameSuggestions(expected, mRefreshedCursor);
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
H A DMockNamedTaskExecutor.java47 public void assertPendingTaskCount(int expected) { argument
49 expected, mExecutor.countPendingTasks());
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DNameDistanceTest.java66 private void assertFloat(float expected, String name1, String name2) { argument
71 assertTrue("Expected Jaro-Winkler distance: " + expected + ", actual: " + actual,
72 Math.abs(actual - expected) < 0.001);
H A DNameSplitterTest.java324 private void assertJoinedName(String expected, String prefix, String givenNames, argument
326 assertJoinedName(expected, FullNameStyle.WESTERN, prefix, givenNames, middleName,
330 private void assertJoinedName(String expected, int nameStyle, String prefix, String givenNames, argument
340 assertEquals(expected, actual);
H A DGroupsTest.java234 public void assertRawContactVisible(long rawContactId, boolean expected) { argument
236 assertContactVisible(contactId, expected);
239 public void assertContactVisible(long contactId, boolean expected) { argument
246 assertEquals("Unexpected visibility", expected, actual);
H A DLegacyContactImporterTest.java243 String expected = readAssetAsString(fileName).trim();
245 assertEquals("Checking golden file " + fileName, expected, actual);
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/
H A DParseException.java91 * values) that is expected at this point of the parse.
116 StringBuffer expected = new StringBuffer();
123 expected.append(tokenImage[expectedTokenSequences[i][j]]).append(" ");
126 expected.append("...");
128 expected.append(eol).append(" ");
148 retval += expected.toString();
/packages/apps/Email/src/org/apache/james/mime4j/field/contenttype/parser/
H A DParseException.java91 * values) that is expected at this point of the parse.
116 StringBuffer expected = new StringBuffer();
123 expected.append(tokenImage[expectedTokenSequences[i][j]]).append(" ");
126 expected.append("...");
128 expected.append(eol).append(" ");
148 retval += expected.toString();
/packages/apps/Email/src/org/apache/james/mime4j/field/datetime/parser/
H A DParseException.java91 * values) that is expected at this point of the parse.
116 StringBuffer expected = new StringBuffer();
123 expected.append(tokenImage[expectedTokenSequences[i][j]]).append(" ");
126 expected.append("...");
128 expected.append(eol).append(" ");
148 retval += expected.toString();
/packages/apps/Email/tests/src/com/android/email/mail/transport/
H A DDiscourseLoggerTest.java124 private void checkDiscourseStore(int storeSize, Object[] discource, String[] expected) { argument
137 MoreAsserts.assertEquals(expected, store.getLines());
/packages/apps/Email/tests/src/com/android/exchange/
H A DCalendarSyncEnablerTest.java126 // Build and sort expected string array.
127 ArrayList<String> expected = new ArrayList<String>();
129 expected.add(account.name);
132 expected.add(address);
134 final String[] expectedArray = new String[expected.size()];
135 expected.toArray(expectedArray);
/packages/apps/Email/tests/src/com/android/email/activity/setup/
H A DAccountSetupAccountTypeUnitTests.java106 int expected = View.GONE; // Default is hidden
108 expected = View.VISIBLE; // Will be visible if supported.
111 assertEquals(expected, exchangeButton.getVisibility());
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
H A DRecurrenceProcessorTest.java48 private static void printLists(String[] expected, String[] out) { argument
49 Log.i(TAG, " expected out");
51 for (i = 0; i < expected.length && i < out.length; i++) {
52 Log.i(TAG, " [" + i + "] " + expected[i]
55 for (; i < expected.length; i++) {
56 Log.i(TAG, " [" + i + "] " + expected[i]);
64 String exdate, String rangeStartStr, String rangeEndStr, String[] expected)
67 rangeEndStr, expected, expected[expected
63 verifyRecurrence(String dtstartStr, String rrule, String rdate, String exrule, String exdate, String rangeStartStr, String rangeEndStr, String[] expected) argument
70 verifyRecurrence(String dtstartStr, String rrule, String rdate, String exrule, String exdate, String rangeStartStr, String rangeEndStr, String[] expected, String last) argument
[all...]
H A DCalendarProvider2Test.java96 * check that the state of the database is as expected.
126 int expected; field in class:CalendarProvider2Test.Delete
128 public Delete(String eventName, int expected) { argument
130 this.expected = expected;
136 assertEquals(expected, rows);
179 * expected value.
182 int expected; field in class:CalendarProvider2Test.QueryNumEvents
184 public QueryNumEvents(int expected) { argument
185 this.expected
238 int expected; field in class:CalendarProvider2Test.QueryNumInstances
242 QueryNumInstances(String startDate, String endDate, int expected) argument
522 InstanceInfo(String eventName, String startDate, String endDate, int expected) argument
[all...]
/packages/apps/Email/tests/src/com/android/email/activity/
H A DMessageComposeInstrumentationTests.java429 String expected = Address.parseAndPack(FROM);
430 assertEquals(expected, result);
462 String expected = Address.parseAndPack(FROM + ',' + TO2);
463 assertEquals(expected, result);
465 expected = Address.parseAndPack(CC1 + ',' + CC2 + ',' + CC3);
466 assertEquals(expected, result);
498 String expected = Address.parseAndPack(FROM + ',' + TO1 + ',' + TO2);
499 assertEquals(expected, result);
501 expected = Address.parseAndPack(CC1 + ',' + CC3);
502 assertEquals(expected, resul
[all...]
/packages/apps/IM/libwbxml/test/
H A Dimps_encoder_test.cpp27 #define ASSERT_EQUAL_INT(expected, actual) \
30 TEST_ASSERT_EQUAL_INT(expected, tmp); \
33 #define ASSERT_EQUAL_BINARY_CPPSTRING(expected, cpp_string) \
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) \
41 ASSERT_EQUAL_INT(sizeof(expected) - 1, cpp_string.size()); \
42 ASSERT_EQUAL_INT(0, memcmp(expected, cpp_string.c_str(), sizeof(expected)
[all...]
H A Dsyncml_parser_test.cpp26 #define ASSERT_EQUAL_INT(expected, actual) \
29 TEST_ASSERT_EQUAL_INT(expected, tmp); \
/packages/apps/Contacts/tests/src/com/android/contacts/
H A DContactsUtilsTests.java177 private void checkShouldCollapse(String message, boolean expected, CharSequence mimetype1, argument
179 assertEquals(message, expected,
H A DEntitySetTests.java194 final ContentProviderOperation expected = pattern[i];
197 assertEquals("Unexpected uri", expected.getUri(), found.getUri());
199 final String expectedType = getStringForType(expected.getType());
203 if (expected.getType() == TYPE_DELETE) continue;
206 final ContentValues expectedValues = getValues(expected);
/packages/apps/Email/tests/src/com/android/email/
H A DLegacyConversionsTests.java419 * Compare attachment that was converted from Part (expected) to Provider Attachment (actual)
424 private void checkAttachment(String tag, Part expected, EmailContent.Attachment actual) argument
426 String contentType = MimeUtility.unfoldAndDecode(expected.getContentType());
428 assertEquals(tag, expected.getMimeType(), actual.mMimeType);
429 String disposition = expected.getDisposition();
434 assertEquals(tag, expected.getContentId(), actual.mContentId);
442 Body body = expected.getBody();
456 String[] storeData = expected.getHeader(MimeHeader.HEADER_ANDROID_ATTACHMENT_STORE_DATA);
/packages/apps/Email/tests/src/com/android/email/mail/internet/
H A DMimeMessageTest.java417 byte[] expected = expectedString.getBytes();
419 assertEquals("output length", expected.length, actual.length);
421 assertEquals("output byte["+i+"]", expected[i], actual[i]);

Completed in 256 milliseconds

12