Searched defs:actual (Results 1 - 17 of 17) sorted by relevance

/system/core/libcutils/tests/
H A Dtrace-dev_test.cpp57 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...]
/system/core/base/
H A Dchrono_utils_test.cpp49 void ExpectAboutEqual(T expected, T actual) { argument
52 EXPECT_GT(expected_upper_bound, actual);
53 EXPECT_LT(expected_lower_bound, actual);
/system/media/audio_utils/tests/
H A Dfifo_multiprocess.cpp92 const ssize_t actual = writer.write(&value, 1); local
93 if (actual != 1) {
94 printf("wrote unexpected actual = %zd\n", actual);
167 const ssize_t actual = reader.read(&value, 1, &timeout); local
168 switch (actual) {
181 printf("read unexpected actual = %zd\n", actual);
H A Dfifo_threads.cpp43 ssize_t actual = context->mInputReader->read(buffer, sizeof(buffer), &timeout); local
45 if (actual > 0) {
46 if ((size_t) actual > sizeof(buffer)) {
47 printf("input.read actual = %d\n", (int) actual);
50 ssize_t actual2 = context->mTransferWriter->write(buffer, actual, &timeout);
51 if (actual2 != actual) {
52 printf("transfer.write(%d) = %d\n", (int) actual, (int) actual2);
55 } else if (actual == -ETIMEDOUT) {
58 printf("input.read actual
78 ssize_t actual = context->mTransferReader->read(buffer, sizeof(buffer), &timeout); local
142 ssize_t actual = outputReader.read(buffer, sizeof(buffer), NULL /*timeout*/); local
[all...]
/system/netd/server/
H A DControllersTest.cpp65 std::set<std::string> actual = findExistingChildChains(V6, "raw", "PREROUTING"); local
66 EXPECT_THAT(expectedChains, ContainerEq(actual));
206 // in the test code, and EXPECT_* to check for errors in the actual code.
/system/chre/apps/chqts/src/shared/
H A Dnano_string_test.cc40 uint8_t actual[arrayLength(expected)]; local
45 ::memset(actual, kUnsetValue, sizeof(actual));
48 nanoapp_testing::memset(actual, kNewValue, kLenToSet);
50 EXPECT_EQ(0, memcmp(expected, actual, sizeof(expected)));
73 uint8_t actual[arrayLength(expected)]; local
78 ::memset(actual, kUnsetValue, sizeof(actual));
81 nanoapp_testing::memcpy(actual, kMemcpySrc, kLenToCopy);
83 EXPECT_EQ(0, memcmp(expected, actual, sizeo
116 char actual[arrayLength(expected)]; local
[all...]
/system/core/libziparchive/
H A Dzip_writer_test.cc390 std::string actual; local
391 actual.resize(expected.size());
393 uint8_t* buffer = reinterpret_cast<uint8_t*>(&*actual.begin());
394 if (ExtractToMemory(handle, zip_entry, buffer, actual.size()) != 0) {
398 if (expected != actual) {
399 return ::testing::AssertionFailure() << "actual zip_entry data '" << actual
/system/update_engine/payload_generator/
H A Dextent_ranges_unittest.cc259 vector<Extent> actual = local
261 EXPECT_EQ(expected.size(), actual.size());
263 EXPECT_EQ(expected[j].start_block(), actual[j].start_block())
265 EXPECT_EQ(expected[j].num_blocks(), actual[j].num_blocks())
/system/connectivity/wifilogd/tests/
H A Dos_unittest.cpp79 virtual bool MatchAndExplain(const timespec& actual, argument
81 return actual.tv_sec == expected_.tv_sec &&
82 actual.tv_nsec == expected_.tv_nsec;
/system/core/libpixelflinger/tests/gglmul/
H A Dgglmul_test.cpp123 GGLfixed actual, expected; local
131 actual = gglMulx(test->x, test->y, test->shift);
134 if(actual == expected)
138 actual, expected);
166 GGLfixed actual, expected; local
174 actual = gglMulAddx(test->x, test->y,test->a, test->shift);
177 if(actual == expected)
181 actual, expected);
209 GGLfixed actual, expected; local
217 actual
251 int64_t actual, expected; local
[all...]
/system/media/audio_utils/
H A Dtinysndfile.c83 size_t actual; local
84 actual = fread(wav, sizeof(char), sizeof(wav), stream);
85 if (actual < 12) {
87 fprintf(stderr, "actual %zu < 44\n", actual);
116 actual = fread(chunk, sizeof(char), sizeof(chunk), stream);
117 if (actual != sizeof(chunk)) {
119 fprintf(stderr, "actual %zu != %zu\n", actual, sizeof(chunk));
145 actual
[all...]
/system/update_engine/common/
H A Dtest_utils.cc226 const brillo::Blob& actual) {
227 EXPECT_EQ(expected.size(), actual.size());
228 if (expected.size() != actual.size())
232 EXPECT_EQ(expected[i], actual[i]) << "offset: " << i;
233 is_all_eq = is_all_eq && (expected[i] == actual[i]);
225 ExpectVectorsEq(const brillo::Blob& expected, const brillo::Blob& actual) argument
/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/
H A DTimeZoneDistroInstallerTest.java671 private void assertContentsMatches(File expected, File actual) throws IOException { argument
672 byte[] actualBytes = IoUtils.readFileAsByteArray(actual.getPath());
/system/core/debuggerd/libdebuggerd/
H A Dtombstone.cpp557 ssize_t actual = android_logger_list_read(logger_list, &log_entry); local
560 if (actual < 0) {
561 if (actual == -EINTR) {
564 } else if (actual == -EAGAIN) {
568 ALOGE("Error while reading log: %s\n", strerror(-actual));
571 } else if (actual == 0) {
/system/extras/perfprofd/tests/
H A Dperfprofd_test.cc121 // Squeeze out repeated whitespace from expected/actual logs.
308 static void compareLogMessages(const std::string &actual, argument
314 std::string sqact = squeezeWhite(actual, "actual");
573 std::string sqact0 = squeezeWhite(act_lm0, "actual for lm 0");
582 std::string sqact9 = squeezeWhite(act_lm9, "actual for lm 9");
594 std::string sqact1 = squeezeWhite(act_lm1, "actual for lm1");
604 std::string sqact2 = squeezeWhite(act_lm2, "actual for lm2");
647 std::string sqact0 = squeezeWhite(act_lm0, "actual for lm 0");
657 std::string sqact1 = squeezeWhite(act_lm1, "actual fo
[all...]
/system/vold/
H A DKeyStorage.cpp83 static bool checkSize(const std::string& kind, size_t actual, size_t expected) { argument
84 if (actual != expected) {
86 << actual; local
/system/core/sdcard/
H A Dfuse.cpp143 * Populates 'buf' with the path and returns the actual name (within 'buf') on success,
152 char* actual; local
160 actual = buf + pathlen + 1;
161 memcpy(actual, name, namelen + 1);
168 return actual;
173 memcpy(actual, entry->d_name, namelen);
179 return actual;

Completed in 435 milliseconds