Home
last modified time | relevance | path

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

12345678

/frameworks/base/test-runner/src/android/test/
DMoreAsserts.java44 public static void assertAssignableFrom(Class<?> expected, Object actual) { in assertAssignableFrom() argument
45 assertAssignableFrom(expected, actual.getClass()); in assertAssignableFrom()
53 public static void assertAssignableFrom(Class<?> expected, Class<?> actual) { in assertAssignableFrom() argument
56 " to be assignable from actual class " + actual.getCanonicalName(), in assertAssignableFrom()
57 expected.isAssignableFrom(actual)); in assertAssignableFrom()
65 String message, Object unexpected, Object actual) { in assertNotEqual() argument
66 if (equal(unexpected, actual)) { in assertNotEqual()
75 public static void assertNotEqual(Object unexpected, Object actual) { in assertNotEqual() argument
76 assertNotEqual(null, unexpected, actual); in assertNotEqual()
85 String message, byte[] expected, byte[] actual) { in assertEquals() argument
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DBase64Test.java58 private void assertEquals(byte[] expected, int len, byte[] actual) { in assertEquals() argument
59 assertEquals(len, actual.length); in assertEquals()
61 assertEquals(expected[i], actual[i]); in assertEquals()
66 private void assertEquals(byte[] expected, int len, byte[] actual, int alen) { in assertEquals() argument
69 assertEquals(expected[i], actual[i]); in assertEquals()
74 private void assertEquals(byte[] expected, byte[] actual) { in assertEquals() argument
75 assertEquals(expected.length, actual.length); in assertEquals()
77 assertEquals(expected[i], actual[i]); in assertEquals()
326 byte[] actual = new byte[plain.length * 2]; in testInputStream()
336 while ((b = b64is.read(actual, ap, actual.length-ap)) != -1) { in testInputStream()
[all …]
/frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/
DOverlayBaseTest.java41 boolean actual = mResources.getBoolean(resId); in assertResource()
42 assertEquals(expected, actual); in assertResource()
47 String actual = mResources.getString(resId); in assertResource() local
48 assertEquals(expected, actual); in assertResource()
53 int[] actual = mResources.getIntArray(resId); in assertResource() local
54 assertEquals("length:", expected.length, actual.length); in assertResource()
55 for (int i = 0; i < actual.length; ++i) { in assertResource()
56 assertEquals("index " + i + ":", actual[i], expected[i]); in assertResource()
114 int actual = calculateRawResourceChecksum(resId); in testAsset() local
116 assertEquals(expected, actual); in testAsset()
/frameworks/av/services/audioflinger/
DLibsndfileSource.cpp54 sf_count_t actual = sf_readf_short(mSndfile, (short *) buffer, (sf_count_t) count); in read() local
56 if (actual == 0) { in read()
69 mFramesRead += actual; in read()
70 if (actual >= mEstimatedFramesUntilEOF) { in read()
73 mEstimatedFramesUntilEOF -= actual; in read()
77 return actual; in read()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DLimitedLengthInputStreamTest.java84 byte[] actual = new byte[length]; in checkReadBytesWithOffsetAndLength_WithString1()
91 System.arraycopy(temp, 0, actual, 0, length); in checkReadBytesWithOffsetAndLength_WithString1()
92 assertTrue(Arrays.equals(expected, actual)); in checkReadBytesWithOffsetAndLength_WithString1()
126 byte[] actual = new byte[TEST_STRING1.length]; in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
127 System.arraycopy(temp, 0, actual, 0, actual.length); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
128 assertTrue(Arrays.equals(TEST_STRING1, actual)); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success()
134 byte[] actual = new byte[length]; in checkReadBytes_WithString1()
141 System.arraycopy(temp, 0, actual, 0, length); in checkReadBytes_WithString1()
142 assertTrue(Arrays.equals(expected, actual)); in checkReadBytes_WithString1()
/frameworks/compile/libbcc/runtime/test/Unit/
Dextebdsfdf2vfp_test.c24 double actual = __extendsfdf2vfp(a); in test__extendsfdf2vfp() local
26 if (actual != expected) in test__extendsfdf2vfp()
28 a, actual, expected); in test__extendsfdf2vfp()
29 return actual != expected; in test__extendsfdf2vfp()
Dnegsf2vfp_test.c24 float actual = __negsf2vfp(a); in test__negsf2vfp() local
26 if (actual != expected) in test__negsf2vfp()
28 a, actual, expected); in test__negsf2vfp()
29 return actual != expected; in test__negsf2vfp()
Dfloatsidfvfp_test.c24 double actual = __floatsidfvfp(a); in test__floatsidfvfp() local
26 if (actual != expected) in test__floatsidfvfp()
28 a, actual, expected); in test__floatsidfvfp()
29 return actual != expected; in test__floatsidfvfp()
Dtruncdfsf2vfp_test.c24 float actual = __truncdfsf2vfp(a); in test__truncdfsf2vfp() local
26 if (actual != expected) in test__truncdfsf2vfp()
28 a, actual, expected); in test__truncdfsf2vfp()
29 return actual != expected; in test__truncdfsf2vfp()
Dfloatunssisfvfp_test.c24 float actual = __floatunssisfvfp(a); in test__floatunssisfvfp() local
26 if (actual != expected) in test__floatunssisfvfp()
28 a, actual, expected); in test__floatunssisfvfp()
29 return actual != expected; in test__floatunssisfvfp()
Dbswapdi2_test.c25 uint64_t actual = __bswapdi2(a); in test__bswapdi2() local
26 if (actual != expected) in test__bswapdi2()
28 a, actual, expected); in test__bswapdi2()
29 return actual != expected; in test__bswapdi2()
Dfloatsisfvfp_test.c24 float actual = __floatsisfvfp(a); in test__floatsisfvfp() local
26 if (actual != expected) in test__floatsisfvfp()
28 a, actual, expected); in test__floatsisfvfp()
29 return actual != expected; in test__floatsisfvfp()
Dbswapsi2_test.c25 uint32_t actual = __bswapsi2(a); in test__bswapsi2() local
26 if (actual != expected) in test__bswapsi2()
28 a, actual, expected); in test__bswapsi2()
29 return actual != expected; in test__bswapsi2()
Dfixdfsivfp_test.c24 int actual = __fixdfsivfp(a); in test__fixdfsivfp() local
26 if (actual != expected) in test__fixdfsivfp()
28 a, actual, expected); in test__fixdfsivfp()
29 return actual != expected; in test__fixdfsivfp()
Dfixunsdfsivfp_test.c24 unsigned int actual = __fixunsdfsivfp(a); in test__fixunsdfsivfp() local
26 if (actual != expected) in test__fixunsdfsivfp()
28 a, actual, expected); in test__fixunsdfsivfp()
29 return actual != expected; in test__fixunsdfsivfp()
Dfixunssfsivfp_test.c24 unsigned int actual = __fixunssfsivfp(a); in test__fixunssfsivfp() local
26 if (actual != expected) in test__fixunssfsivfp()
28 a, actual, expected); in test__fixunssfsivfp()
29 return actual != expected; in test__fixunssfsivfp()
Dfloatunssidfvfp_test.c24 double actual = __floatunssidfvfp(a); in test__floatunssidfvfp() local
26 if (actual != expected) in test__floatunssidfvfp()
28 a, actual, expected); in test__floatunssidfvfp()
29 return actual != expected; in test__floatunssidfvfp()
Dnegdf2vfp_test.c24 double actual = __negdf2vfp(a); in test__negdf2vfp() local
26 if (actual != expected) in test__negdf2vfp()
28 a, actual, expected); in test__negdf2vfp()
29 return actual != expected; in test__negdf2vfp()
Dfixsfsivfp_test.c24 int actual = __fixsfsivfp(a); in test__fixsfsivfp() local
26 if (actual != expected) in test__fixsfsivfp()
28 a, actual, expected); in test__fixsfsivfp()
29 return actual != expected; in test__fixsfsivfp()
Dsubsf3vfp_test.c24 float actual = __subsf3vfp(a, b); in test__subsf3vfp() local
26 if (actual != expected) in test__subsf3vfp()
28 a, b, actual, expected); in test__subsf3vfp()
29 return actual != expected; in test__subsf3vfp()
Dsubdf3vfp_test.c24 double actual = __subdf3vfp(a, b); in test__subdf3vfp() local
26 if (actual != expected) in test__subdf3vfp()
28 a, b, actual, expected); in test__subdf3vfp()
29 return actual != expected; in test__subdf3vfp()
Ddivdf3vfp_test.c24 double actual = __divdf3vfp(a, b); in test__divdf3vfp() local
26 if (actual != expected) in test__divdf3vfp()
28 a, b, actual, expected); in test__divdf3vfp()
29 return actual != expected; in test__divdf3vfp()
Ddivsf3vfp_test.c24 float actual = __divsf3vfp(a, b); in test__divsf3vfp() local
26 if (actual != expected) in test__divsf3vfp()
28 a, b, actual, expected); in test__divsf3vfp()
29 return actual != expected; in test__divsf3vfp()
Deqsf2vfp_test.c25 int actual = __eqsf2vfp(a, b); in test__eqsf2vfp() local
27 if (actual != expected) in test__eqsf2vfp()
29 a, b, actual, expected); in test__eqsf2vfp()
30 return actual != expected; in test__eqsf2vfp()
Daddsf3vfp_test.c24 float actual = __addsf3vfp(a, b); in test__addsf3vfp() local
26 if (actual != expected) in test__addsf3vfp()
28 a, b, actual, expected); in test__addsf3vfp()
29 return actual != expected; in test__addsf3vfp()

12345678