Home
last modified time | relevance | path

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

123

/system/media/audio_utils/tests/
Dfifo_threads.cpp44 ssize_t actual = context->mInputReader->read(buffer, sizeof(buffer), &timeout); in input_routine() local
46 if (actual > 0) { in input_routine()
47 if ((size_t) actual > sizeof(buffer)) { in input_routine()
48 printf("input.read actual = %d\n", (int) actual); in input_routine()
51 ssize_t actual2 = context->mTransferWriter->write(buffer, actual, &timeout); in input_routine()
52 if (actual2 != actual) { in input_routine()
53 printf("transfer.write(%d) = %d\n", (int) actual, (int) actual2); in input_routine()
56 } else if (actual == -ETIMEDOUT) { in input_routine()
59 printf("input.read actual = %d\n", (int) actual); in input_routine()
79 ssize_t actual = context->mTransferReader->read(buffer, sizeof(buffer), &timeout); in output_routine() local
[all …]
Dfifo_multiprocess.cpp95 const ssize_t actual = writer.write(&value, 1); in main() local
96 if (actual != 1) { in main()
97 printf("wrote unexpected actual = %zd\n", actual); in main()
170 const ssize_t actual = reader.read(&value, 1, &timeout); in main() local
171 switch (actual) { in main()
184 printf("read unexpected actual = %zd\n", actual); in main()
Dstring_tests.cpp35 void check(char (&s)[size], int start, size_t actual) { in check() argument
36 size_t lim = std::min(actual, size); in check()
/system/core/libcutils/
Dtrace-dev_test.cpp56 std::string actual; in TEST_F() local
57 ASSERT_TRUE(android::base::ReadFdToString(atrace_marker_fd, &actual)); in TEST_F()
59 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F()
70 std::string actual; in TEST_F() local
71 ASSERT_TRUE(android::base::ReadFdToString(atrace_marker_fd, &actual)); in TEST_F()
73 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F()
81 ASSERT_TRUE(android::base::ReadFdToString(atrace_marker_fd, &actual)); in TEST_F()
82 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F()
93 std::string actual; in TEST_F() local
94 ASSERT_TRUE(android::base::ReadFdToString(atrace_marker_fd, &actual)); in TEST_F()
[all …]
/system/chre/apps/test/chqts/src/shared/
Dnano_string_test.cc40 uint8_t actual[arrayLength(expected)]; in testMemset() local
45 ::memset(actual, kUnsetValue, sizeof(actual)); in testMemset()
48 nanoapp_testing::memset(actual, kNewValue, kLenToSet); in testMemset()
50 EXPECT_EQ(0, memcmp(expected, actual, sizeof(expected))); in testMemset()
72 uint8_t actual[arrayLength(expected)]; in testMemcpy() local
77 ::memset(actual, kUnsetValue, sizeof(actual)); in testMemcpy()
80 nanoapp_testing::memcpy(actual, kMemcpySrc, kLenToCopy); in testMemcpy()
82 EXPECT_EQ(0, memcmp(expected, actual, sizeof(expected))); in testMemcpy()
114 char actual[arrayLength(expected)]; in testStrncpy() local
117 ::memset(actual, kUnsetValue, sizeof(actual)); in testStrncpy()
[all …]
/system/core/fastboot/
Dsuper_flash_helper_test.cpp74 std::string actual(get_file_size(fb_super.fd), '\0'); in TEST() local
75 ASSERT_FALSE(actual.empty()); in TEST()
77 ASSERT_TRUE(android::base::ReadFully(fb_super.fd, actual.data(), actual.size())); in TEST()
81 ASSERT_LE(actual.size(), expected.size()); in TEST()
82 for (size_t i = 0; i < actual.size(); i++) { in TEST()
83 ASSERT_EQ(actual[i], expected[i]) << "byte mismatch at position " << i; in TEST()
85 for (size_t i = actual.size(); i < expected.size(); i++) { in TEST()
/system/nvram/core/tests/
Dgtest_stubs.h40 #define ASSERT_EQ(expected, actual) ASSERT_MSG(expected == actual) argument
48 #define EXPECT_EQ(expected, actual) EXPECT_MSG((expected) == (actual)) argument
49 #define EXPECT_NE(expected, actual) EXPECT_MSG((expected) != (actual)) argument
/system/netd/server/
DTetherControllerTest.cpp353 const TetherController::TetherStats& actual) { in expectTetherStatsEqual() argument
354 EXPECT_EQ(expected.intIface, actual.intIface); in expectTetherStatsEqual()
355 EXPECT_EQ(expected.extIface, actual.extIface); in expectTetherStatsEqual()
356 EXPECT_EQ(expected.rxBytes, actual.rxBytes); in expectTetherStatsEqual()
357 EXPECT_EQ(expected.txBytes, actual.txBytes); in expectTetherStatsEqual()
358 EXPECT_EQ(expected.rxPackets, actual.rxPackets); in expectTetherStatsEqual()
359 EXPECT_EQ(expected.txPackets, actual.txPackets); in expectTetherStatsEqual()
380 TetherStatsList actual = result.value(); in TEST_F() local
381 ASSERT_EQ(0U, actual.size()); in TEST_F()
395 actual = result.value(); in TEST_F()
[all …]
DControllersTest.cpp65 std::set<std::string> actual = findExistingChildChains(V6, "raw", "PREROUTING"); in TEST_F() local
66 EXPECT_THAT(expectedChains, ContainerEq(actual)); in TEST_F()
/system/core/fs_mgr/libsnapshot/snapuserd/
Dsnapuserd_buffer.cpp51 void* BufferSink::GetBuffer(size_t requested, size_t* actual) { in GetBuffer() argument
54 *actual = 0; in GetBuffer()
57 *actual = requested; in GetBuffer()
/system/apex/apexd/
Dapex_shim.cpp174 auto actual = CalculateSha512(new_apex_path); in ValidateUpdate() local
175 if (!actual.ok()) { in ValidateUpdate()
176 return actual.error(); in ValidateUpdate()
178 auto it = std::find(allowed->begin(), allowed->end(), *actual); in ValidateUpdate()
181 << *actual; in ValidateUpdate()
/system/sepolicy/build/soong/
Dselinux_test.go82 actual := flagsToM4Macros(collectorData.BuildFlags)
88 if !reflect.DeepEqual(actual, expected) {
92 actual,
/system/core/fs_mgr/libfiemap/
Dfiemap_writer_test.cpp261 std::string actual(data.size(), '\0'); in TEST_F() local
263 ASSERT_TRUE(android::base::ReadFully(bdev, actual.data(), actual.size())); in TEST_F()
264 EXPECT_EQ(memcmp(actual.data(), data.data(), data.size()), 0); in TEST_F()
363 auto actual = ReadSplitFiles(testfile, 3); in TEST_F() local
364 ASSERT_EQ(expected.size(), actual.size()); in TEST_F()
365 EXPECT_EQ(memcmp(expected.data(), actual.data(), actual.size()), 0); in TEST_F()
390 auto actual = ReadSplitFiles(testfile, 3); in TEST_F() local
391 ASSERT_EQ(expected.size(), actual.size()); in TEST_F()
392 EXPECT_EQ(memcmp(expected.data(), actual.data(), actual.size()), 0); in TEST_F()
417 auto actual = ReadSplitFiles(testfile, 3); in TEST_F() local
[all …]
/system/libbase/
Dchrono_utils_test.cpp49 void ExpectAboutEqual(T expected, T actual) { in ExpectAboutEqual() argument
52 EXPECT_GT(expected_upper_bound, actual); in ExpectAboutEqual()
53 EXPECT_LT(expected_lower_bound, actual); in ExpectAboutEqual()
/system/media/audio_utils/
Dtinysndfile.c83 size_t actual; in sf_open_read() local
84 actual = fread(wav, sizeof(char), sizeof(wav), stream); in sf_open_read()
85 if (actual < 12) { in sf_open_read()
87 fprintf(stderr, "actual %zu < 44\n", actual); in sf_open_read()
116 actual = fread(chunk, sizeof(char), sizeof(chunk), stream); in sf_open_read()
117 if (actual != sizeof(chunk)) { in sf_open_read()
119 fprintf(stderr, "actual %zu != %zu\n", actual, sizeof(chunk)); in sf_open_read()
145 actual = fread(fmt, sizeof(char), 2, stream); in sf_open_read()
146 if (actual != 2) { in sf_open_read()
148 fprintf(stderr, "actual %zu != 2\n", actual); in sf_open_read()
[all …]
/system/tools/aidl/
Dast_java_unittest.cpp56 std::string actual = ce.ToString(); in TEST() local
57 EXPECT_EQ(literal, actual); in TEST()
/system/update_engine/common/
Dtest_utils.cc219 bool ExpectVectorsEq(const brillo::Blob& expected, const brillo::Blob& actual) { in ExpectVectorsEq() argument
220 EXPECT_EQ(expected.size(), actual.size()); in ExpectVectorsEq()
221 if (expected.size() != actual.size()) in ExpectVectorsEq()
225 EXPECT_EQ(expected[i], actual[i]) << "offset: " << i; in ExpectVectorsEq()
226 is_all_eq = is_all_eq && (expected[i] == actual[i]); in ExpectVectorsEq()
/system/logging/logd/
DLogBufferTest.cpp393 std::vector<LogMessage> actual = blocking_reader.WaitForMessages(expected_log_messages.size()); in TEST_P() local
394 CompareLogMessages(expected_log_messages, actual); in TEST_P()
403 actual = blocking_reader.WaitForMessages(expected_log_messages.size()); in TEST_P()
404 CompareLogMessages(expected_log_messages, actual); in TEST_P()
431 std::vector<LogMessage> actual = blocking_reader.WaitForMessages(expected_log_messages.size()); in TEST_P() local
432 CompareLogMessages(expected_log_messages, actual); in TEST_P()
441 actual = blocking_reader.WaitForMessages(expected_log_messages.size()); in TEST_P()
442 CompareLogMessages(expected_log_messages, actual); in TEST_P()
/system/unwinding/libunwindstack/tests/
DRegsIterateTest.cpp207 std::vector<Register> actual; in TYPED_TEST() local
208 regs.IterateRegisters([&actual](const char* name, uint64_t value) { in TYPED_TEST()
209 actual.push_back({name, value}); in TYPED_TEST()
212 ASSERT_EQ(expected, actual); in TYPED_TEST()
/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
DContextHubGeneralTestExecutor.java346 protected <T> void assertEquals(String errorMessage, T expected, T actual) { in assertEquals() argument
348 Assert.assertEquals(errorMessage, expected, actual); in assertEquals()
349 } else if ((expected == null && actual != null) || (expected != null && !expected.equals( in assertEquals()
350 actual))) { in assertEquals()
351 mErrorString.set(errorMessage + ": " + expected + " != " + actual); in assertEquals()
/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/
DZoneTabFileTest.java112 Map<String, List<String>> actual = ZoneTabFile.createCountryToOlsonIdsMap(zoneTab); in createCountryToOlsonIdsMap() local
113 assertEquals(expected, actual); in createCountryToOlsonIdsMap()
/system/core/fs_mgr/libsnapshot/snapuserd/include/snapuserd/
Dsnapuserd_buffer.h34 void* GetBuffer(size_t requested, size_t* actual);
/system/libziparchive/
Dzip_writer_test.cc499 std::string actual; in AssertFileEntryContentsEq() local
500 actual.resize(expected.size()); in AssertFileEntryContentsEq()
502 uint8_t* buffer = reinterpret_cast<uint8_t*>(&*actual.begin()); in AssertFileEntryContentsEq()
503 if (ExtractToMemory(handle, zip_entry, buffer, static_cast<uint32_t>(actual.size())) != 0) { in AssertFileEntryContentsEq()
507 if (expected != actual) { in AssertFileEntryContentsEq()
508 return ::testing::AssertionFailure() << "actual zip_entry data '" << actual in AssertFileEntryContentsEq()
/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspendUnitTest.cpp268 std::chrono::milliseconds actual = systemSuspend->getSleepTime(); in checkSleepTime() local
269 ASSERT_EQ(actual.count(), expected.count()) << "incorrect sleep time"; in checkSleepTime()
1391 SuspendInfo actual; in checkSuspendInfo() local
1392 systemSuspend->getSuspendInfo(&actual); in checkSuspendInfo()
1394 ASSERT_EQ(actual.suspendAttemptCount, expected.suspendAttemptCount); in checkSuspendInfo()
1395 ASSERT_EQ(actual.failedSuspendCount, expected.failedSuspendCount); in checkSuspendInfo()
1396 ASSERT_EQ(actual.shortSuspendCount, expected.shortSuspendCount); in checkSuspendInfo()
1397 ASSERT_EQ(actual.suspendTimeMillis, expected.suspendTimeMillis); in checkSuspendInfo()
1398 ASSERT_EQ(actual.shortSuspendTimeMillis, expected.shortSuspendTimeMillis); in checkSuspendInfo()
1399 ASSERT_EQ(actual.suspendOverheadTimeMillis, expected.suspendOverheadTimeMillis); in checkSuspendInfo()
[all …]
/system/update_engine/payload_generator/
Dextent_ranges_unittest.cc241 vector<Extent> actual = in TEST() local
243 ASSERT_EQ(expected.size(), actual.size()); in TEST()
245 ASSERT_EQ(expected[j].start_block(), actual[j].start_block()) in TEST()
247 ASSERT_EQ(expected[j].num_blocks(), actual[j].num_blocks()) in TEST()

123