Searched defs:expected (Results 1 - 25 of 79) sorted by relevance

1234

/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
H A DScanRecordTest.java66 private static void assertArrayEquals(byte[] expected, byte[] actual) { argument
67 if (!Arrays.equals(expected, actual)) {
68 fail("expected:<" + Arrays.toString(expected) +
/frameworks/base/core/tests/coretests/src/android/net/
H A DNetworkPolicyManagerTest.java54 private void uidRulesToStringTest(int uidRules, String expected) { argument
56 assertEquals("Wrong string for uidRules " + uidRules, expected, actual);
/frameworks/base/test-runner/src/android/test/
H A DComparisonFailure.java27 public ComparisonFailure(String message, String expected, String actual) { argument
28 mComparison = new junit.framework.ComparisonFailure(message, expected, actual);
/frameworks/base/tools/aapt/tests/
H A DPseudolocales_test.cpp29 static void simple_helper(const char* input, const char* expected, PseudolocalizationMethod method) { argument
33 ASSERT_EQ(String8(expected), String8(result));
37 const char* expected, PseudolocalizationMethod method) {
44 ASSERT_EQ(String8(expected), String8(result));
36 compound_helper(const char* in1, const char* in2, const char *in3, const char* expected, PseudolocalizationMethod method) argument
H A DCrunchCache_test.cpp18 void expectEqual(int got, int expected, const char* desc) { argument
20 cout << "Got " << got << ", expected " << expected << "..."; local
21 cout << ( (got == expected) ? "PASSED" : "FAILED") << endl;
22 errno += ((got == expected) ? 0 : 1);
/frameworks/support/percent/tests/java/android/support/percent/
H A DBaseInstrumentationTestCase.java41 protected static void assertFuzzyEquals(String description, float expected, float actual) { argument
47 assertEquals(description, expected, actual, 1.1f);
/frameworks/support/v7/palette/src/androidTest/java/android/support/v7/graphics/
H A DTestUtils.java35 static void assertCloseColors(int expected, int actual) { argument
36 assertEquals(Color.red(expected), Color.red(actual), 2);
37 assertEquals(Color.green(expected), Color.green(actual), 2);
38 assertEquals(Color.blue(expected), Color.blue(actual), 2);
/frameworks/base/core/tests/coretests/src/android/util/
H A DDayOfMonthCursorTest.java150 private void assertArraysEqual(int[] expected, int[] actual) { argument
151 assertEquals("array length", expected.length, actual.length);
152 for (int i = 0; i < expected.length; i++) {
154 expected[i], actual[i]);
H A DTimeUtilsTest.java452 private void assertFormatDuration(String expected, long duration) { argument
455 assertEquals("formatDuration(" + duration + ")", expected, sb.toString());
H A DMonthDisplayHelperTest.java201 private void assertArraysEqual(int[] expected, int[] actual) { argument
202 assertEquals("array length", expected.length, actual.length);
203 for (int i = 0; i < expected.length; i++) {
205 expected[i], actual[i]);
/frameworks/base/core/tests/coretests/src/android/widget/
H A DAutoCompleteTextViewPopup.java34 // number of times to poll when checking expected UI state
43 /** Test that we can move the selection and it responds as expected */
90 // check for selection position as expected
117 // check for selection position as expected
150 // check for selection position as expected
225 boolean expected) throws InterruptedException {
227 if (textView.isPopupShowing() == expected) {
232 assertEquals(message, expected, textView.isPopupShowing());
235 private void waitAssertListSelection(AutoCompleteTextView textView, int expected) argument
237 waitAssertListSelection("getListSelection()", textView, expected);
224 waitAssertPopupShowState(String message, AutoCompleteTextView textView, boolean expected) argument
240 waitAssertListSelection(String message, AutoCompleteTextView textView, int expected) argument
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DProgressReporterTest.java30 private void assertProgress(int expected) { argument
31 assertEquals(expected, r.getProgress());
/frameworks/base/tests/CoreTests/android/core/
H A DNsdServiceInfoTest.java156 public void assertEquality(Object expected, Object result) { argument
157 assertTrue(expected == result || expected.equals(result));
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
H A DTtsEnginesTests.java71 private void assertArraysEqual(String[] expected, String[] actual) { argument
72 assertEquals("array length", expected.length, actual.length);
73 for (int i = 0; i < expected.length; i++) {
74 assertEquals("index " + i, expected[i], actual[i]);
/frameworks/base/tools/aapt2/compile/
H A DPseudolocalizer_test.cpp28 static ::testing::AssertionResult simpleHelper(const char* input, const char* expected, argument
33 if (StringPiece(expected) != result) {
34 return ::testing::AssertionFailure() << expected << " != " << result;
40 const char* expected,
48 if (StringPiece(expected) != result) {
49 return ::testing::AssertionFailure() << expected << " != " << result;
39 compoundHelper(const char* in1, const char* in2, const char *in3, const char* expected, Pseudolocalizer::Method method) argument
/frameworks/base/tools/split-select/
H A DSplitSelector_test.cpp52 SplitDescription expected; local
53 ASSERT_TRUE(SplitDescription::parse(String8("hdpi"), &expected));
54 EXPECT_GE(bestSplits.indexOf(expected), 0);
57 ssize_t idx = rules.indexOfKey(expected);
H A DTestRules.cpp76 const sp<Rule>& actual, const Rule& expected) {
77 const String8 expectedStr(expected.toJson());
74 RulePredFormat( const char*, const char*, const sp<Rule>& actual, const Rule& expected) argument
H A DGrouper_test.cpp104 Vector<const char*> expected; local
105 expected.add(a);
106 expectHasGroupWithSplits(expected);
110 Vector<const char*> expected; local
111 expected.add(a);
112 expected.add(b);
113 expectHasGroupWithSplits(expected);
117 Vector<const char*> expected; local
118 expected.add(a);
119 expected
125 Vector<const char*> expected; local
[all...]
/frameworks/support/documents-archive/src/android/support/provider/
H A DPreconditions.java42 static void checkArgumentEquals(String expected, @Nullable String actual, String message) { argument
43 if (!TextUtils.equals(expected, actual)) {
44 throw new IllegalArgumentException(String.format(message, String.valueOf(expected),
/frameworks/base/core/tests/coretests/src/android/graphics/
H A DPathOffsetTest.java75 private static void assertPaths(Path actual, Path expected) { argument
77 Bitmap expectedBitmap = drawAndGetBitmap(expected);
/frameworks/base/services/tests/servicestests/src/android/net/
H A DIpUtilsTest.java45 private void assertChecksumEquals(int expected, short actual) { argument
46 assertEquals(Integer.toHexString(expected), Integer.toHexString(actual & 0xffff));
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/
H A DValidateNotificationPeopleTest.java38 String[] expected = { "foobar" };
40 bundle.putString(Notification.EXTRA_PEOPLE, expected[0]);
42 assertStringArrayEquals("string should be in result[0]", expected, result);
47 String[] expected = { "foobar" };
49 bundle.putCharArray(Notification.EXTRA_PEOPLE, expected[0].toCharArray());
51 assertStringArrayEquals("char[] should be in result[0]", expected, result);
56 String[] expected = { "foobar" };
58 bundle.putCharSequence(Notification.EXTRA_PEOPLE, new SpannableString(expected[0]));
60 assertStringArrayEquals("charSequence should be in result[0]", expected, result);
66 String[] expected
147 assertStringArrayEquals(String message, String[] expected, String[] result) argument
[all...]
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DImportTestProvider.java119 + " is not expected at all (" + actualContentValues + ")");
124 Log.d("@@@", "expected: "
155 * Checks all expected ContentValues are consumed during import.
168 "There is(are) remaining expected ContentValues instance(s): \n"
211 final ContentValues expected, final ContentValues actual) {
212 if (expected == actual) {
214 } else if (expected == null || actual == null || expected.size() != actual.size()) {
218 for (Entry<String, Object> entry : expected.valueSet()) {
210 equalsForContentValues( final ContentValues expected, final ContentValues actual) argument
/frameworks/base/core/java/android/content/pm/
H A DParceledListSlice.java121 private static void verifySameType(final Class<?> expected, final Class<?> actual) { argument
122 if (!actual.equals(expected)) {
125 + expected.getName());
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DAppsQueryHelperTests.java165 private static void assertEqualsIgnoreOrder(List<String> expected, List<String> actual) { argument
166 assertTrue("Lists not equal. Expected " + expected + " but was " + actual,
167 (expected.size() == actual.size())
168 && (new HashSet<>(expected).equals(new HashSet<>(actual))));

Completed in 3855 milliseconds

1234