Home
last modified time | relevance | path

Searched refs:actual (Results 1 – 25 of 61) 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/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()
73 uint8_t actual[arrayLength(expected)]; in testMemcpy() local
78 ::memset(actual, kUnsetValue, sizeof(actual)); in testMemcpy()
81 nanoapp_testing::memcpy(actual, kMemcpySrc, kLenToCopy); in testMemcpy()
83 EXPECT_EQ(0, memcmp(expected, actual, sizeof(expected))); in testMemcpy()
116 char actual[arrayLength(expected)]; in testStrncpy() local
119 ::memset(actual, kUnsetValue, sizeof(actual)); in testStrncpy()
[all …]
/system/core/libpixelflinger/tests/gglmul/
Dgglmul_test.cpp123 GGLfixed actual, expected; in gglMulx_test() local
131 actual = gglMulx(test->x, test->y, test->shift); in gglMulx_test()
134 if(actual == expected) in gglMulx_test()
138 actual, expected); in gglMulx_test()
166 GGLfixed actual, expected; in gglMulAddx_test() local
174 actual = gglMulAddx(test->x, test->y,test->a, test->shift); in gglMulAddx_test()
177 if(actual == expected) in gglMulAddx_test()
181 actual, expected); in gglMulAddx_test()
209 GGLfixed actual, expected; in gglMulSubx_test() local
217 actual = gglMulSubx(test->x, test->y, test->a, test->shift); in gglMulSubx_test()
[all …]
/system/netd/server/
DTetherControllerTest.cpp400 const TetherController::TetherStats& actual) { in expectTetherStatsEqual() argument
401 EXPECT_EQ(expected.intIface, actual.intIface); in expectTetherStatsEqual()
402 EXPECT_EQ(expected.extIface, actual.extIface); in expectTetherStatsEqual()
403 EXPECT_EQ(expected.rxBytes, actual.rxBytes); in expectTetherStatsEqual()
404 EXPECT_EQ(expected.txBytes, actual.txBytes); in expectTetherStatsEqual()
405 EXPECT_EQ(expected.rxPackets, actual.rxPackets); in expectTetherStatsEqual()
406 EXPECT_EQ(expected.txPackets, actual.txPackets); in expectTetherStatsEqual()
427 TetherStatsList actual = result.value(); in TEST_F() local
428 ASSERT_EQ(0U, actual.size()); in TEST_F()
442 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/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/core/fs_mgr/libfiemap/
Dfiemap_writer_test.cpp254 std::string actual(data.size(), '\0'); in TEST_F() local
256 ASSERT_TRUE(android::base::ReadFully(bdev, actual.data(), actual.size())); in TEST_F()
257 EXPECT_EQ(memcmp(actual.data(), data.data(), data.size()), 0); in TEST_F()
328 auto actual = ReadSplitFiles(testfile, 3); in TEST_F() local
329 ASSERT_EQ(expected.size(), actual.size()); in TEST_F()
330 EXPECT_EQ(memcmp(expected.data(), actual.data(), actual.size()), 0); in TEST_F()
355 auto actual = ReadSplitFiles(testfile, 3); in TEST_F() local
356 ASSERT_EQ(expected.size(), actual.size()); in TEST_F()
357 EXPECT_EQ(memcmp(expected.data(), actual.data(), actual.size()), 0); in TEST_F()
382 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/apex/apexd/
Dapex_shim.cpp172 auto actual = CalculateSha512(new_apex_path); in ValidateUpdate() local
173 if (!actual.ok()) { in ValidateUpdate()
174 return actual.error(); in ValidateUpdate()
176 auto it = std::find(allowed->begin(), allowed->end(), *actual); in ValidateUpdate()
179 << *actual; in ValidateUpdate()
/system/tools/aidl/
Dast_java_unittest.cpp56 std::string actual = ce.ToString(); in TEST() local
57 EXPECT_EQ(literal, actual); in TEST()
Dast_cpp_unittest.cpp264 std::string actual = decl.ToString(); in TEST_F() local
265 EXPECT_EQ(literal, actual); in TEST_F()
/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/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/core/adb/fastdeploy/deploypatchgenerator/
Dpatch_utils_test.cpp92 APKMetaData actual = PatchUtils::GetHostAPKMetaData(apkFile.c_str()); in TEST() local
101 expected.set_absolute_path(actual.absolute_path()); in TEST()
104 actual.SerializeToString(&actualMetadata); in TEST()
/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/libziparchive/
Dzip_writer_test.cc415 std::string actual; in AssertFileEntryContentsEq() local
416 actual.resize(expected.size()); in AssertFileEntryContentsEq()
418 uint8_t* buffer = reinterpret_cast<uint8_t*>(&*actual.begin()); in AssertFileEntryContentsEq()
419 if (ExtractToMemory(handle, zip_entry, buffer, static_cast<uint32_t>(actual.size())) != 0) { in AssertFileEntryContentsEq()
423 if (expected != actual) { in AssertFileEntryContentsEq()
424 return ::testing::AssertionFailure() << "actual zip_entry data '" << actual in AssertFileEntryContentsEq()
/system/core/libunwindstack/tests/
DRegsIterateTest.cpp249 std::vector<Register> actual; in TYPED_TEST() local
250 regs.IterateRegisters([&actual](const char* name, uint64_t value) { in TYPED_TEST()
251 actual.push_back({name, value}); in TYPED_TEST()
254 ASSERT_EQ(expected, actual); in TYPED_TEST()
/system/update_engine/payload_generator/
Dextent_ranges_unittest.cc240 vector<Extent> actual = in TEST() local
242 EXPECT_EQ(expected.size(), actual.size()); in TEST()
244 EXPECT_EQ(expected[j].start_block(), actual[j].start_block()) in TEST()
246 EXPECT_EQ(expected[j].num_blocks(), actual[j].num_blocks()) in TEST()
/system/core/debuggerd/libdebuggerd/
Dtombstone.cpp467 ssize_t actual = android_logger_list_read(logger_list, &log_entry); in dump_log_file() local
469 if (actual < 0) { in dump_log_file()
470 if (actual == -EINTR) { in dump_log_file()
473 } else if (actual == -EAGAIN) { in dump_log_file()
477 ALOGE("Error while reading log: %s\n", strerror(-actual)); in dump_log_file()
480 } else if (actual == 0) { in dump_log_file()
/system/core/adb/pairing_connection/
Dpairing_connection.cpp111 bool CheckHeaderType(adb::proto::PairingPacket::Type expected, uint8_t actual);
262 uint8_t actual) { in CheckHeaderType() argument
264 if (actual != expected) { in CheckHeaderType()
266 << " actual=" << static_cast<uint32_t>(actual) << ")"; in CheckHeaderType()
/system/sepolicy/public/
Dtzdatacheck.te10 # clear that only these domains should modify the actual time zone rules data.
/system/sepolicy/prebuilts/api/29.0/public/
Dtzdatacheck.te10 # clear that only these domains should modify the actual time zone rules data.

123