/system/media/audio_utils/tests/ |
D | fifo_threads.cpp | 43 ssize_t actual = context->mInputReader->read(buffer, sizeof(buffer), &timeout); in input_routine() local 45 if (actual > 0) { in input_routine() 46 if ((size_t) actual > sizeof(buffer)) { in input_routine() 47 printf("input.read actual = %d\n", (int) actual); in input_routine() 50 ssize_t actual2 = context->mTransferWriter->write(buffer, actual, &timeout); in input_routine() 51 if (actual2 != actual) { in input_routine() 52 printf("transfer.write(%d) = %d\n", (int) actual, (int) actual2); in input_routine() 55 } else if (actual == -ETIMEDOUT) { in input_routine() 58 printf("input.read actual = %d\n", (int) actual); in input_routine() 78 ssize_t actual = context->mTransferReader->read(buffer, sizeof(buffer), &timeout); in output_routine() local [all …]
|
D | fifo_multiprocess.cpp | 95 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()
|
D | string_tests.cpp | 35 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/tests/ |
D | trace-dev_test.cpp | 57 std::string actual; in TEST_F() local 58 ASSERT_TRUE(android::base::ReadFdToString(atrace_marker_fd, &actual)); in TEST_F() 60 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F() 71 std::string actual; in TEST_F() local 72 ASSERT_TRUE(android::base::ReadFdToString(atrace_marker_fd, &actual)); in TEST_F() 74 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F() 82 ASSERT_TRUE(android::base::ReadFdToString(atrace_marker_fd, &actual)); in TEST_F() 83 ASSERT_STREQ(expected.c_str(), actual.c_str()); in TEST_F() 94 std::string actual; in TEST_F() local 95 ASSERT_TRUE(android::base::ReadFdToString(atrace_marker_fd, &actual)); in TEST_F() [all …]
|
/system/chre/apps/chqts/src/shared/ |
D | nano_string_test.cc | 40 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/ |
D | gglmul_test.cpp | 123 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/nvram/core/tests/ |
D | gtest_stubs.h | 40 #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/ |
D | TetherControllerTest.cpp | 317 const TetherController::TetherStats& actual) { in expectTetherStatsEqual() argument 318 EXPECT_EQ(expected.intIface, actual.intIface); in expectTetherStatsEqual() 319 EXPECT_EQ(expected.extIface, actual.extIface); in expectTetherStatsEqual() 320 EXPECT_EQ(expected.rxBytes, actual.rxBytes); in expectTetherStatsEqual() 321 EXPECT_EQ(expected.txBytes, actual.txBytes); in expectTetherStatsEqual() 322 EXPECT_EQ(expected.rxPackets, actual.rxPackets); in expectTetherStatsEqual() 323 EXPECT_EQ(expected.txPackets, actual.txPackets); in expectTetherStatsEqual() 344 TetherStatsList actual = result.value(); in TEST_F() local 345 ASSERT_EQ(0U, actual.size()); in TEST_F() 359 actual = result.value(); in TEST_F() [all …]
|
D | ControllersTest.cpp | 65 std::set<std::string> actual = findExistingChildChains(V6, "raw", "PREROUTING"); in TEST_F() local 66 EXPECT_THAT(expectedChains, ContainerEq(actual)); in TEST_F()
|
/system/core/base/ |
D | chrono_utils_test.cpp | 49 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/ |
D | tinysndfile.c | 83 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/ |
D | test_utils.cc | 234 const brillo::Blob& actual) { in ExpectVectorsEq() argument 235 EXPECT_EQ(expected.size(), actual.size()); in ExpectVectorsEq() 236 if (expected.size() != actual.size()) in ExpectVectorsEq() 240 EXPECT_EQ(expected[i], actual[i]) << "offset: " << i; in ExpectVectorsEq() 241 is_all_eq = is_all_eq && (expected[i] == actual[i]); in ExpectVectorsEq()
|
/system/timezone/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/ |
D | ZoneTabFileTest.java | 113 Map<String, List<String>> actual = ZoneTabFile.createCountryToOlsonIdsMap(zoneTab); in createCountryToOlsonIdsMap() local 114 assertEquals(expected, actual); in createCountryToOlsonIdsMap()
|
/system/core/libziparchive/ |
D | zip_writer_test.cc | 390 std::string actual; in AssertFileEntryContentsEq() local 391 actual.resize(expected.size()); in AssertFileEntryContentsEq() 393 uint8_t* buffer = reinterpret_cast<uint8_t*>(&*actual.begin()); in AssertFileEntryContentsEq() 394 if (ExtractToMemory(handle, zip_entry, buffer, actual.size()) != 0) { in AssertFileEntryContentsEq() 398 if (expected != actual) { in AssertFileEntryContentsEq() 399 return ::testing::AssertionFailure() << "actual zip_entry data '" << actual in AssertFileEntryContentsEq()
|
/system/core/libunwindstack/tests/ |
D | RegsIterateTest.cpp | 248 std::vector<Register> actual; in TYPED_TEST() local 249 regs.IterateRegisters([&actual](const char* name, uint64_t value) { in TYPED_TEST() 250 actual.push_back({name, value}); in TYPED_TEST() 253 ASSERT_EQ(expected, actual); in TYPED_TEST()
|
/system/update_engine/payload_generator/ |
D | extent_ranges_unittest.cc | 259 vector<Extent> actual = in TEST() local 261 EXPECT_EQ(expected.size(), actual.size()); in TEST() 263 EXPECT_EQ(expected[j].start_block(), actual[j].start_block()) in TEST() 265 EXPECT_EQ(expected[j].num_blocks(), actual[j].num_blocks()) in TEST()
|
/system/core/debuggerd/libdebuggerd/ |
D | tombstone.cpp | 478 ssize_t actual = android_logger_list_read(logger_list, &log_entry); in dump_log_file() local 481 if (actual < 0) { in dump_log_file() 482 if (actual == -EINTR) { in dump_log_file() 485 } else if (actual == -EAGAIN) { in dump_log_file() 489 ALOGE("Error while reading log: %s\n", strerror(-actual)); in dump_log_file() 492 } else if (actual == 0) { in dump_log_file()
|
/system/sepolicy/public/ |
D | tzdatacheck.te | 10 # clear that only these domains should modify the actual time zone rules data.
|
/system/sepolicy/prebuilts/api/27.0/public/ |
D | tzdatacheck.te | 10 # clear that only these domains should modify the actual time zone rules data.
|
/system/sepolicy/prebuilts/api/28.0/public/ |
D | tzdatacheck.te | 10 # clear that only these domains should modify the actual time zone rules data.
|
/system/sepolicy/private/ |
D | dexoptanalyzer.te | 26 # suppressing denial on actual access.
|
/system/sepolicy/prebuilts/api/27.0/private/ |
D | dexoptanalyzer.te | 26 # suppressing denial on actual access.
|
/system/sepolicy/prebuilts/api/28.0/private/ |
D | dexoptanalyzer.te | 26 # suppressing denial on actual access.
|
/system/connectivity/wifilogd/tests/ |
D | os_unittest.cpp | 79 virtual bool MatchAndExplain(const timespec& actual, in MatchAndExplain() argument 81 return actual.tv_sec == expected_.tv_sec && in MatchAndExplain() 82 actual.tv_nsec == expected_.tv_nsec; in MatchAndExplain()
|
/system/core/adb/ |
D | SYNC.TXT | 52 comma (","). The first part is the actual path, while the second is a decimal 60 After this the actual file is sent in chunks. Each chunk has the following
|