/frameworks/av/media/libnbaio/ |
PipeReader.cpp | 65 ssize_t actual = mFifoReader.read(buffer, count, NULL /*timeout*/, &lost); local 66 ALOG_ASSERT(actual <= count); 67 if (actual == -EOVERFLOW || lost > 0) { 70 actual = OVERRUN; 72 if (actual <= 0) { 73 return actual; 75 mFramesRead += (size_t) actual; 76 return actual;
|
/frameworks/base/test-runner/src/android/test/ |
ComparisonFailure.java | 28 public ComparisonFailure(String message, String expected, String actual) { 29 mComparison = new junit.framework.ComparisonFailure(message, expected, actual);
|
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/mips/ |
empty.s | 3 # No actual contents necessary!
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
Assert.java | 106 public static void equals(final int expected, final int actual) { 107 if (expected != actual) { 108 fail("Expected " + expected + " but got " + actual, false); 112 public static void equals(final long expected, final long actual) { 113 if (expected != actual) { 114 fail("Expected " + expected + " but got " + actual, false); 118 public static void equals(final Object expected, final Object actual) { 119 if (expected != actual 120 && (expected == null || actual == null || !expected.equals(actual))) { [all...] |
/external/icu/icu4c/source/common/ |
locbased.h | 54 * object. Either the valid or the actual locale may be 64 * object. Either the valid or the actual locale may be 76 * @param actual the ID of the actual locale 78 void setLocaleIDs(const char* valid, const char* actual); 84 * @param actual the ID of the actual locale 86 void setLocaleIDs(const Locale& valid, const Locale& actual); 92 char* actual; member in class:LocaleBased 96 valid(validAlias), actual(actualAlias) [all...] |
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
VCardBuilderTest.java | 44 final String actual = builder.toString(); local 52 assertTrue("Actual value:\n" + actual + " expected to contain\n" + expectedName + 53 "\nbut does not.", actual.contains(expectedName)); 54 assertTrue("Actual value:\n" + actual + " expected to contain\n" + expectedFullName + 55 "\nbut does not.", actual.contains(expectedFullName));
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
literal_test_util.h | 61 const Shape& actual); 62 static void AssertEqualShapes(const Shape& expected, const Shape& actual); 67 const Shape& actual); 79 // Asserts that the expected and actual literals are (bitwise) equal for all 83 const Literal& expected, const Literal& actual) TF_MUST_USE_RESULT; 85 // Expects that expected and actual are Equal. 86 static void ExpectEqual(const Literal& expected, const Literal& actual, 89 // Expects that expected and actual are Not Equal. 90 static void ExpectNotEqual(const Literal& expected, const Literal& actual); 94 static void ExpectR0Equal(NativeT expected, const Literal& actual); 245 ExpectEqual(*Literal::CreateR0<NativeT>(expected), actual); local 251 ExpectEqual(*Literal::CreateR1<NativeT>(expected), actual); local 258 ExpectEqual(*Literal::CreateR2<NativeT>(expected), actual); local 266 ExpectEqual(*Literal::CreateR3<NativeT>(expected), actual); local 272 ExpectEqual(*Literal::CreateR2FromArray2D(expected), actual); local 278 ExpectEqual(*Literal::CreateR3FromArray3D(expected), actual); local 284 ExpectEqual(*Literal::CreateR4FromArray4D(expected), actual); local 291 ExpectNear(*Literal::CreateR0<NativeT>(expected), actual, error); local 298 ExpectNear(*Literal::CreateR1<NativeT>(expected), actual, error); local 305 ExpectNear(*Literal::CreateR2<NativeT>(expected), actual, error); local 313 ExpectNear(*Literal::CreateR3<NativeT>(expected), actual, error); local 322 ExpectNear(*Literal::CreateR4<NativeT>(expected), actual, error); local 329 ExpectNear(*Literal::CreateR2FromArray2D(expected), actual, error); local 336 ExpectNear(*Literal::CreateR3FromArray3D(expected), actual, error); local 343 ExpectNear(*Literal::CreateR4FromArray4D(expected), actual, error); local [all...] |
/system/core/libcutils/tests/ |
trace-dev_test.cpp | 57 std::string actual; local 58 ASSERT_TRUE(android::base::ReadFdToString(atrace_marker_fd, &actual)); 60 ASSERT_STREQ(expected.c_str(), actual.c_str()); 71 std::string actual; local 72 ASSERT_TRUE(android::base::ReadFdToString(atrace_marker_fd, &actual)); 74 ASSERT_STREQ(expected.c_str(), actual.c_str()); 82 ASSERT_TRUE(android::base::ReadFdToString(atrace_marker_fd, &actual)); 83 ASSERT_STREQ(expected.c_str(), actual.c_str()); 94 std::string actual; local 95 ASSERT_TRUE(android::base::ReadFdToString(atrace_marker_fd, &actual)); 106 std::string actual; local 120 std::string actual; local 143 std::string actual; local 155 std::string actual; local 169 std::string actual; local 192 std::string actual; local 204 std::string actual; local 218 std::string actual; local 241 std::string actual; local 253 std::string actual; local 267 std::string actual; local 290 std::string actual; local [all...] |
/hardware/libhardware/modules/camera/3_4/metadata/ |
menu_control_options_test.cpp | 66 int actual = expected - 1; local 67 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); 68 EXPECT_EQ(actual, expected); 80 int actual = default_val; local 81 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); 83 EXPECT_TRUE(dut_->IsSupported(actual)); 88 int actual = -1; local 89 ASSERT_FALSE(dut_->IsSupported(actual)); 96 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); 97 EXPECT_TRUE(dut_->IsSupported(actual)); [all...] |
slider_control_options_test.cpp | 69 int actual = expected - 1; local 70 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); 71 EXPECT_EQ(actual, expected); 85 int actual = default_val; local 86 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); 87 EXPECT_EQ(actual, expected); 101 int actual = default_val; local 102 EXPECT_EQ(dut_->DefaultValueForTemplate(template_index, &actual), 0); 103 EXPECT_EQ(actual, expected); 108 int actual = min_ - 1 local [all...] |
/frameworks/minikin/tests/unittest/ |
GreedyLineBreakerTest.cpp | 94 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 95 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl 97 << toString(textBuf, actual); 105 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 106 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl 108 << toString(textBuf, actual); 119 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 120 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl 122 << toString(textBuf, actual); 135 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH) local 151 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 168 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 185 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 204 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 225 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 248 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 280 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 304 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 315 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 329 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 343 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 358 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 374 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 390 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 407 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 426 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 446 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 468 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 491 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 517 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 554 const auto actual = doLineBreak(textBuf, NO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 578 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, "pl", LINE_WIDTH); local 589 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, "pl", LINE_WIDTH); local 603 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, "pl", LINE_WIDTH); local 621 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 631 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 642 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 661 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 672 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 701 const auto actual = local 720 const auto actual = local 741 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 753 const auto actual = doLineBreak(textBuf, DO_HYPHEN, CHAR_WIDTH, LINE_WIDTH); local 783 const auto actual = local 804 const auto actual = local 833 const auto actual = local [all...] |
/external/icu/icu4c/source/test/intltest/ |
compactdecimalformattest.cpp | 292 UnicodeString actual; local 293 cdf->format(123456.0, actual); 296 if (actual != expected) { 297 errln(UnicodeString("Fail: Expected: ") + expected + UnicodeString(" Got: ") + actual); 308 UnicodeString actual; local 314 actual.remove(); 317 cdf->format((double)123456.0, actual, pos); 318 if (actual != expected || pos.getEndIndex() != 3) { 320 "Got: \"" + actual + "\", pos " + pos.getEndIndex()); 323 actual.remove() 413 UnicodeString actual; local [all...] |
/cts/tests/tests/text/src/android/text/cts/ |
AutoTextTest.java | 62 String actual; local 68 actual = AutoText.get(src, 0, src.length(), view); 69 assertNull(actual); 74 actual = AutoText.get(src, 0, src.length(), view); 75 assertNotNull(actual); 76 assertEquals("can", actual); 83 actual = AutoText.get(src, 0, src.length() + 1, view); 84 assertNull(actual); 91 actual = AutoText.get(src, 0, src.length() - 1, view); 92 assertNull(actual); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/ |
util.py | 21 def sorted_list_difference(expected, actual):
25 elements in the "expected" list but not in the "actual" list, and the
26 second contains those elements in the "actual" list but not in the
35 a = actual[j]
44 while actual[j] == a:
53 while actual[j] == a:
57 unexpected.extend(actual[j:])
62 def unorderable_list_difference(expected, actual, ignore_duplicate=False):
74 actual.remove(item)
78 for lst in expected, actual: [all...] |
/external/python/cpython2/Lib/unittest/ |
util.py | 21 def sorted_list_difference(expected, actual): 25 elements in the "expected" list but not in the "actual" list, and the 26 second contains those elements in the "actual" list but not in the 35 a = actual[j] 44 while actual[j] == a: 53 while actual[j] == a: 57 unexpected.extend(actual[j:]) 62 def unorderable_list_difference(expected, actual, ignore_duplicate=False): 74 actual.remove(item) 78 for lst in expected, actual [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/unittest/ |
util.py | 21 def sorted_list_difference(expected, actual): 25 elements in the "expected" list but not in the "actual" list, and the 26 second contains those elements in the "actual" list but not in the 35 a = actual[j] 44 while actual[j] == a: 53 while actual[j] == a: 57 unexpected.extend(actual[j:]) 62 def unorderable_list_difference(expected, actual, ignore_duplicate=False): 74 actual.remove(item) 78 for lst in expected, actual [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/unittest/ |
util.py | 21 def sorted_list_difference(expected, actual): 25 elements in the "expected" list but not in the "actual" list, and the 26 second contains those elements in the "actual" list but not in the 35 a = actual[j] 44 while actual[j] == a: 53 while actual[j] == a: 57 unexpected.extend(actual[j:]) 62 def unorderable_list_difference(expected, actual, ignore_duplicate=False): 74 actual.remove(item) 78 for lst in expected, actual [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/unittest/ |
util.py | 21 def sorted_list_difference(expected, actual): 25 elements in the "expected" list but not in the "actual" list, and the 26 second contains those elements in the "actual" list but not in the 35 a = actual[j] 44 while actual[j] == a: 53 while actual[j] == a: 57 unexpected.extend(actual[j:]) 62 def unorderable_list_difference(expected, actual, ignore_duplicate=False): 74 actual.remove(item) 78 for lst in expected, actual [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/unittest/ |
util.py | 21 def sorted_list_difference(expected, actual): 25 elements in the "expected" list but not in the "actual" list, and the 26 second contains those elements in the "actual" list but not in the 35 a = actual[j] 44 while actual[j] == a: 53 while actual[j] == a: 57 unexpected.extend(actual[j:]) 62 def unorderable_list_difference(expected, actual, ignore_duplicate=False): 74 actual.remove(item) 78 for lst in expected, actual [all...] |
/external/easymock/src/org/easymock/ |
AbstractMatcher.java | 38 * Checks whether an expected argument matches an actual argument; the method
45 * @param actual
46 * the actual argument.
49 protected boolean argumentMatches(Object expected, Object actual) {
50 return expected.equals(actual);
68 * Checks whether an expected argument array matches an actual argument array.
78 * @param actual
79 * the actual arguments.
82 public boolean matches(Object[] expected, Object[] actual) {
83 if (expected == actual) {
[all...] |
/external/testng/src/test/java/test/pholser/ |
Demo.java | 36 final List<String> actual = Captor.instance().captives(); local 37 verify(expected, actual); 43 final List<String> actual = Captor.instance().captives(); local 44 verify(expected, actual); 47 private void verify(List<String> expected, List<String> actual) { 48 if (! expected.equals(actual)) { 49 throw new AssertionError("\nExpected:" + dumpList(expected) + "\n Got:" + dumpList(actual));
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
WifiConfigurationTestUtil.java | 455 WifiConfiguration expected, WifiConfiguration actual) { 457 assertNotNull(actual); 458 assertEquals(expected.SSID, actual.SSID); 459 assertEquals(expected.BSSID, actual.BSSID); 460 assertEquals(expected.preSharedKey, actual.preSharedKey); 461 assertEquals(expected.wepKeys, actual.wepKeys); 462 assertEquals(expected.wepTxKeyIndex, actual.wepTxKeyIndex); 463 assertEquals(expected.hiddenSSID, actual.hiddenSSID); 464 assertEquals(expected.requirePMF, actual.requirePMF); 465 assertEquals(expected.allowedKeyManagement, actual.allowedKeyManagement) [all...] |
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/ |
RecordingTestUtils.java | 63 ScheduledRecording expected, ScheduledRecording actual) { 64 Assert.assertEquals("id", expected.getId(), actual.getId()); 65 Assert.assertEquals("channel", expected.getChannelId(), actual.getChannelId()); 66 Assert.assertEquals("programId", expected.getProgramId(), actual.getProgramId()); 67 Assert.assertEquals("priority", expected.getPriority(), actual.getPriority()); 68 Assert.assertEquals("start time", expected.getStartTimeMs(), actual.getStartTimeMs()); 69 Assert.assertEquals("end time", expected.getEndTimeMs(), actual.getEndTimeMs()); 70 Assert.assertEquals("state", expected.getState(), actual.getState()); 74 actual.getSeriesRecordingId());
|
/external/kotlinc/lib/ |
kotlin-test.jar | |
/art/test/550-checker-regression-wide-store/src/ |
Main.java | 31 private static void assertEquals(int expected, int actual) { 32 if (expected != actual) { 33 throw new Error("Wrong result: " + expected + " != " + actual);
|