/system/media/audio_utils/tests/ |
D | fifo_threads.cpp | 44 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 …]
|
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/ |
D | trace-dev_test.cpp | 56 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/ |
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() 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/fs_mgr/libsnapshot/ |
D | snapshot_reader.cpp | 139 void* GetBuffer(size_t requested, size_t* actual) override { in GetBuffer() argument 140 *actual = std::min(remaining(), requested); in GetBuffer() 141 if (!*actual) { in GetBuffer() 146 pos_ += *actual; in GetBuffer() 207 void* GetBuffer(size_t requested, size_t* actual) override { in GetBuffer() argument 210 *actual = std::min({requested, ignore_start_, sizeof(discard_)}); in GetBuffer() 211 ignore_start_ -= *actual; in GetBuffer() 216 *actual = std::min(requested, sizeof(discard_)); in GetBuffer() 219 return MemoryByteSink::GetBuffer(requested, actual); in GetBuffer() 243 size_t actual; in ReadBlock() local [all …]
|
D | inspect_cow.cpp | 48 void* GetBuffer(size_t requested, size_t* actual) override { in GetBuffer() argument 51 *actual = requested; in GetBuffer()
|
/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 | 353 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 …]
|
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/fs_mgr/libfiemap/ |
D | fiemap_writer_test.cpp | 254 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/ |
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/apex/apexd/ |
D | apex_shim.cpp | 174 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/tools/aidl/ |
D | ast_java_unittest.cpp | 56 std::string actual = ce.ToString(); in TEST() local 57 EXPECT_EQ(literal, actual); in TEST()
|
/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 | 219 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/chre/java/test/chqts/src/com/google/android/chre/test/chqts/ |
D | ContextHubGeneralTestExecutor.java | 293 protected <T> void assertEquals(String errorMessage, T expected, T actual) { in assertEquals() argument 295 Assert.assertEquals(errorMessage, expected, actual); in assertEquals() 296 } else if ((expected == null && actual != null) || (expected != null && !expected.equals( in assertEquals() 297 actual))) { in assertEquals() 298 mErrorString.set(errorMessage + ": " + expected + " != " + actual); in assertEquals()
|
/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/ |
D | ZoneTabFileTest.java | 112 Map<String, List<String>> actual = ZoneTabFile.createCountryToOlsonIdsMap(zoneTab); in createCountryToOlsonIdsMap() local 113 assertEquals(expected, actual); in createCountryToOlsonIdsMap()
|
/system/libziparchive/ |
D | zip_writer_test.cc | 415 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/update_engine/payload_generator/ |
D | extent_ranges_unittest.cc | 240 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/unwinding/libunwindstack/tests/ |
D | RegsIterateTest.cpp | 249 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/hardware/interfaces/suspend/1.0/default/ |
D | SystemSuspendUnitTest.cpp | 245 std::chrono::milliseconds actual = s->getSleepTime(); in checkSleepTime() local 246 ASSERT_EQ(actual.count(), expected.count()) << "incorrect sleep time"; in checkSleepTime() 1261 SuspendInfo actual; in checkSuspendInfo() local 1262 s->getSuspendInfo(&actual); in checkSuspendInfo() 1264 ASSERT_EQ(actual.suspendAttemptCount, expected.suspendAttemptCount); in checkSuspendInfo() 1265 ASSERT_EQ(actual.failedSuspendCount, expected.failedSuspendCount); in checkSuspendInfo() 1266 ASSERT_EQ(actual.shortSuspendCount, expected.shortSuspendCount); in checkSuspendInfo() 1267 ASSERT_EQ(actual.suspendTimeMillis, expected.suspendTimeMillis); in checkSuspendInfo() 1268 ASSERT_EQ(actual.shortSuspendTimeMillis, expected.shortSuspendTimeMillis); in checkSuspendInfo() 1269 ASSERT_EQ(actual.suspendOverheadTimeMillis, expected.suspendOverheadTimeMillis); in checkSuspendInfo() [all …]
|
/system/core/debuggerd/libdebuggerd/ |
D | tombstone.cpp | 477 ssize_t actual = android_logger_list_read(logger_list, &log_entry); in dump_log_file() local 479 if (actual < 0) { in dump_log_file() 480 if (actual == -EINTR) { in dump_log_file() 483 } else if (actual == -EAGAIN) { in dump_log_file() 487 ALOGE("Error while reading log: %s\n", strerror(-actual)); in dump_log_file() 490 } else if (actual == 0) { in dump_log_file()
|
/system/tools/aidl/build/ |
D | aidl_test.go | 213 func assertContains(t *testing.T, actual, expected string) { argument 215 if !strings.Contains(actual, expected) { 216 t.Errorf("%q is not found in %q.", expected, actual) 220 func assertListContains(t *testing.T, actual []string, expected string) { 222 for _, a := range actual { 227 t.Errorf("%q is not found in %v.", expected, actual)
|
/system/sepolicy/prebuilts/api/30.0/public/ |
D | tzdatacheck.te | 10 # clear that only these domains should modify the actual time zone rules data.
|