Searched defs:expected (Results 1 - 12 of 12) sorted by relevance

/system/core/adb/
H A Dtransport_test.cpp27 atransport expected = t; local
28 expected.fd = 42;
29 expected.kicked = 1;
33 ASSERT_EQ(0, memcmp(&expected, &t, sizeof(atransport)));
42 atransport expected = t; local
44 ASSERT_EQ(0, memcmp(&expected, &t, sizeof(atransport)));
H A Dadb_io_test.cpp57 const char expected[] = "Foobar"; local
61 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno);
65 char buf[sizeof(expected)] = {};
67 EXPECT_STREQ(expected, buf);
71 const char expected[] = "Foobar"; local
75 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno);
79 char buf[sizeof(expected) + 1] = {};
96 std::string expected(input);
97 expected.pop_back();
98 EXPECT_STREQ(expected
102 const char expected[] = "Foobar"; local
[all...]
/system/core/libcutils/tests/
H A Dtest_str_parms.cpp20 static void test_str_parms_str(const char* str, const char* expected) { argument
28 ASSERT_STREQ(expected, out_str) << str;
/system/keymaster/
H A Dhkdf_test.cpp73 const string expected = hex2str(test.output_hex); local
75 // We set the key_length to the length of the expected output and then take
80 expected.size(), &error);
85 ASSERT_EQ(expected.size(), secret_key.available_read());
86 EXPECT_EQ(0, memcmp(expected.data(), secret_key.peek_read(), expected.size()));
H A Dandroid_keymaster_test_utils.h153 * various bits of alternative behavior, in cases where different devices are expected to behave
277 bool ResponseContains(const std::vector<T>& expected, const T* values, size_t len) { argument
278 return expected.size() == len &&
279 std::is_permutation(values, values + len, expected.begin());
282 template <typename T> bool ResponseContains(T expected, const T* values, size_t len) { argument
283 return (len == 1 && *values == expected);
/system/core/libcutils/
H A Dstrdup8to16.c72 int expected = 0; local
80 * expected, then start counting them because strcpy8to16
83 expected--;
84 if (expected < 0) {
89 expected = UTF8_SEQ_LENGTH(ic) - 1;
92 if (expected == 3) {
/system/core/libpixelflinger/tests/gglmul/
H A Dgglmul_test.cpp123 GGLfixed actual, expected; local
132 expected =
134 if(actual == expected)
138 actual, expected);
166 GGLfixed actual, expected; local
175 expected = (((int64_t)test->x * test->y) >> test->shift) + test->a;
177 if(actual == expected)
181 actual, expected);
209 GGLfixed actual, expected; local
218 expected
251 int64_t actual, expected; local
[all...]
/system/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp267 int expected = val1 + val2; // Expect to get the sum back local
294 cerr << "expected: " << expected << endl;
323 cerr << "server onTransact on CPU " << cpu << " expected CPU "
/system/extras/verity/
H A Dverify_boot_signature.c174 BIGNUM expected; local
182 BN_init(&expected);
186 if (!BN_set_word(&expected, FORMAT_VERSION)) {
193 if (BN_cmp(&expected, &value) != 0) {
198 BN_clear(&expected);
204 BN_bin2bn((const unsigned char *) &length, sizeof(length), &expected);
208 if (BN_cmp(&expected, &value) != 0) {
216 BN_free(&expected);
/system/extras/perfprofd/tests/
H A Dperfprofd_test.cc119 // Squeeze out repeated whitespace from expected/actual logs.
270 // match the expected result. By default we use a partial
271 // match, e.g. if we see the expected excerpt anywhere in the
275 const std::string &expected,
279 std::string sqexp = squeezeWhite(expected, "expected");
287 std::cerr << testpoint << ": expected result not found\n";
320 const std::string expected = RAW_RESULT( local
328 expected, "MissingGMS"); local
360 const std::string expected local
274 compareLogMessages(const std::string &actual, const std::string &expected, const char *testpoint, bool exactMatch=false) argument
365 expected, "MissingOptInSemaphoreFile"); local
398 const std::string expected = RAW_RESULT( local
403 expected, "MissingPerfExecutable"); local
435 const std::string expected = RAW_RESULT( local
441 expected, "BadPerfRun"); local
470 const std::string expected = RAW_RESULT( local
480 expected, "ConfigFileParsing"); local
588 const std::string expected = RAW_RESULT( local
600 expected, "BasicRunWithLivePerf", true); local
644 const std::string expected = RAW_RESULT( local
664 expected, "BasicRunWithLivePerf", true); local
[all...]
/system/bt/stack/smp/
H A Dsmp_utils.c1009 ** Returns TRUE if the command size is as expected, FALSE otherwise.
1011 ** Note The command is expected to have fixed length.
1430 ** - expected (i.e. calculated locally),
1439 BT_OCTET16 expected; local
1443 smp_calculate_peer_commitment(p_cb, expected);
1444 print128(expected, (const UINT8 *)"calculated peer commitment");
1447 if (memcmp(p_cb->remote_commitment, expected, BT_OCTET16_LEN))
/system/core/libbacktrace/
H A Dbacktrace_test.cpp865 // Basic test that verifies that the map is in the expected order.
956 uint8_t* expected = new uint8_t[pagesize]; local
957 InitMemory(expected, pagesize);
963 ASSERT_TRUE(memcmp(data, expected, pagesize) == 0);
969 ASSERT_TRUE(memcmp(data, &expected[i], 2 * sizeof(word_t)) == 0)
980 ASSERT_TRUE(memcmp(data, &expected[i], j) == 0)
987 delete expected;

Completed in 872 milliseconds