Home
last modified time | relevance | path

Searched defs:expected (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/notification/
DValidateNotificationPeopleTest.java38 String[] expected = { "foobar" }; in testSingleString() local
47 String[] expected = { "foobar" }; in testSingleCharArray() local
56 String[] expected = { "foobar" }; in testSingleCharSequence() local
66 String[] expected = { "foobar" }; in testStringArraySingle() local
75 String[] expected = { "foo", "bar", "baz" }; in testStringArrayMultiple() local
84 String[] expected = { "foo", null, "baz" }; in testStringArrayNulls() local
93 String[] expected = { "foo", "bar", "baz" }; in testCharSequenceArrayMultiple() local
106 String[] expected = { "foo", "bar", "baz" }; in testMixedCharSequenceArrayList() local
123 String[] expected = { "foo", null, "baz" }; in testStringArrayList() local
136 String[] expected = { "foo", "bar", "baz" }; in testCharSequenceArrayList() local
[all …]
/frameworks/base/test-runner/src/android/test/
DMoreAsserts.java43 public static void assertAssignableFrom(Class<?> expected, Object actual) { in assertAssignableFrom()
52 public static void assertAssignableFrom(Class<?> expected, Class<?> actual) { in assertAssignableFrom()
84 String message, byte[] expected, byte[] actual) { in assertEquals()
100 public static void assertEquals(byte[] expected, byte[] actual) { in assertEquals()
110 String message, int[] expected, int[] actual) { in assertEquals()
126 public static void assertEquals(int[] expected, int[] actual) { in assertEquals()
136 String message, long[] expected, long[] actual) { in assertEquals()
152 public static void assertEquals(long[] expected, long[] actual) { in assertEquals()
163 String message, double[] expected, double[] actual) { in assertEquals()
179 public static void assertEquals(double[] expected, double[] actual) { in assertEquals()
[all …]
DComparisonFailure.java27 public ComparisonFailure(String message, String expected, String actual) { in ComparisonFailure()
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutDirectionsTest.java74 private static Directions[] expected = { field in StaticLayoutDirectionsTest
117 checkDirections(b.build(), i, b.text, expected, f); in testDirections() local
135 Directions expected = dirs(0, LVL1_1, 1, LVL2_1, 2, 3 | (1 << Layout.RUN_LEVEL_SHIFT)); in testTrailingWhitespace() local
149 int[] expected = { 0, 1, 4, 3, 2, 5 }; in testNextToRightOf() local
165 int[] expected = { 0, 1, 4, 3, 2, 5 }; in testNextToLeftOf() local
228 Directions expected = expectedDirs[i]; in checkDirections() local
237 private void expectDirections(String msg, Directions expected, Directions result) { in expectDirections()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DRationalTest.java391 private static void assertValueEquals(Rational object, float expected) { in assertValueEquals()
396 private static void assertValueEquals(Rational object, double expected) { in assertValueEquals()
401 private static void assertValueEquals(Rational object, long expected) { in assertValueEquals()
406 private static void assertValueEquals(Rational object, int expected) { in assertValueEquals()
411 private static void assertValueEquals(Rational object, short expected) { in assertValueEquals()
416 private static void assertFinite(Rational object, boolean expected) { in assertFinite()
420 private static void assertInfinite(Rational object, boolean expected) { in assertInfinite()
424 private static void assertNaN(Rational object, boolean expected) { in assertNaN()
428 private static void assertZero(Rational object, boolean expected) { in assertZero()
432 private static <T> void assertAction(String action, T object, boolean expected, in assertAction()
DRangeTest.java148 private static <T extends Comparable<? super T>> void assertUpper(Range<T> object, T expected) { in assertUpper()
152 private static <T extends Comparable<? super T>> void assertLower(Range<T> object, T expected) { in assertLower()
156 private static <T, T2> void assertAction(String action, T object, T2 expected, in assertAction()
162 private static <T, T2> void assertAction(String action, T object, T2 needle, boolean expected, in assertAction()
DCameraMetadataTest.java287 private static <T> void assertArrayEquals(T expected, T actual) { in assertArrayEquals()
334 private <T> void checkKeyGetAndSet(String keyStr, TypeReference<T> typeToken, T expected, in checkKeyGetAndSet()
356 private <T> void checkKeyGetAndSet(String keyStr, TypeReference<T> typeToken, T expected) { in checkKeyGetAndSet()
360 private <T> void checkKeyGetAndSet(String keyStr, Class<T> type, T expected) { in checkKeyGetAndSet()
374 T expected, byte[] expectedNative) { in checkKeyMarshal()
417 private <T> Key<T> checkKeyMarshal(String keyName, T expected, byte[] expectedNative) { in checkKeyMarshal()
1237 private <T> void assertKeyValueEquals(T expected, CameraCharacteristics.Key<T> key) { in assertKeyValueEquals()
1241 private <T> void assertKeyValueEquals(T expected, Key<T> key) { in assertKeyValueEquals()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneNumberWatcherTest.java219 String expected = "+1-650-123-4567"; // Different formatting than ours in testAutoCompleteWithFormattedNumber() local
228 String expected = "Test User <650-123-4567>"; in testAutoCompleteWithFormattedNameAndNumber() local
237 String expected = "2nd Test User <650-123-4567>"; in testAutoCompleteWithNumericNameAndNumber() local
246 String expected = "6501234567"; in testAutoCompleteWithUnformattedNumber() local
258 String expected = "(650) 123-4567"; in testAutoCompleteUnformattedWithUnformattedNumber() local
272 private void testReplacement(String init, String replacement, String expected) { in testReplacement()
DApnSettingTest.java145 String expected = "[ApnSettingV2] Name, 99, 12345, apn, proxy, " + in testToString() local
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLoggingPrintStreamTest.java134 String expected = builder.toString(); in testMultiByteCharactersSpanningBuffers() local
142 String expected = " \u20AC \u20AC \u20AC \u20AC "; in testWriteOneByteAtATimeMultibyteCharacters() local
151 String expected = " \u20AC \u20AC \u20AC \u20AC "; in testWriteByteArrayAtATimeMultibyteCharacters() local
158 String expected = " \u20AC \u20AC \u20AC \u20AC "; in testWriteWithOffsetsMultibyteCharacters() local
/frameworks/base/core/tests/coretests/src/android/widget/
DAutoCompleteTextViewPopup.java225 boolean expected) throws InterruptedException { in waitAssertPopupShowState()
235 private void waitAssertListSelection(AutoCompleteTextView textView, int expected) in waitAssertListSelection()
241 int expected) throws Exception { in waitAssertListSelection()
/frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/
DOverlayBaseTest.java109 int expected = getExpected(no, so, mo); in assertResource() local
115 String expected = getExpected(no, so, mo); in assertResource() local
121 int[] expected = getExpected(no, so, mo); in assertResource() local
168 final int[] expected = {2, 3, 5, 7, 11, 13, 17, 19}; in testIntegerArray() local
176 int expected = 0; in testDrawable() local
202 int expected = getExpected(0, 1, 2); in testAppXml() local
/frameworks/base/core/tests/coretests/src/android/util/
DBase64Test.java58 private void assertEquals(byte[] expected, int len, byte[] actual) { in assertEquals()
66 private void assertEquals(byte[] expected, int len, byte[] actual, int alen) { in assertEquals()
74 private void assertEquals(byte[] expected, byte[] actual) { in assertEquals()
DDayOfMonthCursorTest.java150 private void assertArraysEqual(int[] expected, int[] actual) { in assertArraysEqual()
/frameworks/support/tests/java/android/support/v4/content/
DFileProviderTest.java137 final String expected = "content://authority/t%2Fg/lol%22wat%3Ffoo%26bar/wat.txt"; in testStrategyEscaping() local
161 final String expected = "content://authority/tag/foo/bar"; in testStrategyExtraSeparators() local
317 private void assertContentsEquals(byte[] expected, Uri actual) throws Exception { in assertContentsEquals()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
DScanRecordTest.java66 private static void assertArrayEquals(byte[] expected, byte[] actual) { in assertArrayEquals()
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DTtsEnginesTests.java71 private void assertArraysEqual(String[] expected, String[] actual) { in assertArraysEqual()
/frameworks/base/tools/aidl/
Dsearch_path.cpp21 string expected = given; local
Doptions_test.cpp21 match_arrays(const char* const*expected, const vector<string> &got) in match_arrays()
39 print_array(const char* prefix, const char* const*expected) in print_array()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DManifestDigestTest.java52 ManifestDigest expected = in testManifestDigest_Equals() local
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityTestsBase.java147 public int waitForResultOrThrow(int timeoutMs, String expected) { in waitForResultOrThrow()
163 public int waitForResult(int timeoutMs, String expected) { in waitForResult()
/frameworks/testing/espresso/espresso-lib-tests/src/androidTest/java/com/google/android/apps/common/testing/ui/espresso/action/
DGeneralLocationTest.java105 private void assertPositionEquals(int expected, GeneralLocation location, int axis) { in assertPositionEquals()
/frameworks/base/core/tests/coretests/src/android/os/
DFileBridgeTest.java73 private void assertContents(byte[] expected) throws Exception { in assertContents()
/frameworks/base/tools/aapt/tests/
DCrunchCache_test.cpp18 void expectEqual(int got, int expected, const char* desc) { in expectEqual()
/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupDataTest.java178 String[] expected = truth.readLine().split(":"); in testReadMockData() local
208 String[] expected = truth.readLine().split(":"); in testReadRealData() local

123