Searched defs:expected (Results 1 - 25 of 1173) sorted by path

1234567891011>>

/external/android-clat/
H A Dclatd_test.cpp374 void check_data_matches(const void *expected, const void *actual, size_t len, const char *msg) { argument
375 if (memcmp(expected, actual, len)) {
386 sprintf(expected_hexdump + pos, " %02x", ((uint8_t *) expected)[i]);
490 const uint8_t *expected, size_t expected_len, const char *msg) {
495 check_data_matches(expected, translated, translated_len, msg);
499 const uint8_t *expected[], const size_t expected_lengths[],
502 // Check that each of the fragments translates as expected.
506 expected[i], expected_lengths[i], frag_msg);
572 void expect_ipv6_addr_equal(struct in6_addr *expected, struct in6_addr *actual) { argument
573 if (!IN6_ARE_ADDR_EQUAL(expected, actua
489 check_translated_packet(const uint8_t *original, size_t original_len, const uint8_t *expected, size_t expected_len, const char *msg) argument
498 check_fragment_translation(const uint8_t *original[], const size_t original_lengths[], const uint8_t *expected[], const size_t expected_lengths[], int numfragments, const char *msg) argument
624 struct in6_addr myaddr, expected; local
[all...]
/external/antlr/antlr-3.4/lib/
H A Dantlr-3.4-complete.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/antlr/ org/antlr/analysis/ org/antlr/codegen/ org/ ...
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
H A DTestDFAMatching.java95 protected void checkPrediction(DFA dfa, String input, int expected) argument
99 assertEquals(dfa.predict(stream), expected);
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/share/
H A DJDWPManualDebuggeeWrapper.java59 * Get response from user and check if it is as expected.
61 private void checkUserResponse(String expected) throws IOException { argument
63 if (!expected.equals(response)) {
65 + response + " (expected: " + expected + ")");
H A DJDWPTestCase.java416 * list of expected field signatures
418 * list of expected field modifiers
551 * error code does not equal to expected error code.
558 * array of expected error codes
580 * error code does not equal to expected error code.
586 * @param expected -
587 * array of expected error codes
590 int[] expected) {
591 checkReplyPacket(reply, message, expected, true /* failSign */);
622 * @param expected
589 checkReplyPacket(ReplyPacket reply, String message, int[] expected) argument
628 checkReplyPacket(ReplyPacket reply, String message, int[] expected, boolean failSign) argument
682 assertEquals(String message, long expected, long actual, String strExpected, String strActual) argument
718 assertString(String message, String expected, String actual) argument
[all...]
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/
H A DCharSinkTester.java51 * Configures whether the writer is expected to throw exceptions when an
83 private static void assertArrayEquals(char[] expected, char[] actual) { argument
84 Assert.assertEquals(Arrays.toString(expected), Arrays.toString(actual));
94 char[] expected = new char[] { };
98 assertArrayEquals(expected, getChars());
102 char[] expected = new char[] { };
111 assertArrayEquals(expected, getChars());
115 char[] expected = "EFGCDECBA".toCharArray();
118 for (char c : expected) {
123 assertArrayEquals(expected, getChar
[all...]
H A DSinkTester.java52 * Configures whether the stream is expected to throw exceptions when an
84 private static void assertArrayEquals(byte[] expected, byte[] actual) { argument
85 Assert.assertEquals(Arrays.toString(expected), Arrays.toString(actual));
95 byte[] expected = new byte[] { };
99 assertArrayEquals(expected, getBytes());
103 byte[] expected = new byte[] { };
112 assertArrayEquals(expected, getBytes());
116 byte[] expected = new byte[] { 5, 6, 7, 3, 4, 5, 3, 2, 1 };
119 for (byte b : expected) {
124 assertArrayEquals(expected, getByte
[all...]
/external/apache-xml/src/main/java/org/apache/xpath/compiler/
H A DXPathParser.java483 * Consume an expected token, throwing an exception if it
486 * @param expected The string to be expected.
490 private final void consumeExpected(String expected) argument
494 if (tokenIs(expected))
500 error(XPATHErrorResources.ER_EXPECTED_BUT_FOUND, new Object[]{ expected,
501 m_token }); //"Expected "+expected+", but found: "+m_token);
511 * Consume an expected token, throwing an exception if it
514 * @param expected the character to be expected
518 consumeExpected(char expected) argument
[all...]
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/
H A DContentVerifier.java27 * @param expected expected value of the signature on the data.
30 boolean verify(byte[] expected); argument
H A DRawContentVerifier.java10 * Verify that the expected signature value was derived from the passed in digest.
13 * @param expected expected value of the signature
14 * @return true if the expected signature is derived from the digest, false otherwise.
16 boolean verify(byte[] digest, byte[] expected); argument
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/
H A DJcaContentVerifierProviderBuilder.java217 public boolean verify(byte[] expected) argument
221 return stream.verify(expected);
242 public boolean verify(byte[] digest, byte[] expected) argument
248 return rawSignature.verify(expected);
306 boolean verify(byte[] expected) argument
309 return sig.verify(expected);
/external/ceres-solver/internal/ceres/
H A Darray_utils_test.cc79 vector<int> expected = array; local
81 EXPECT_EQ(array, expected);
86 expected = array;
88 EXPECT_EQ(array, expected);
95 vector<int> expected; local
96 expected.push_back(0);
97 expected.push_back(1);
99 EXPECT_EQ(array, expected);
110 vector<int> expected; local
111 expected
[all...]
H A Dcompressed_col_sparse_matrix_utils_test.cc235 const double expected[] = { -1.4706, -1.0962, 6.6667, 2.2477}; local
244 EXPECT_NEAR(rhs_and_solution[i], expected[i], 1e-4) << i;
250 double expected[] = {1.970288, 1.242498, 6.081864, -0.057255}; local
259 EXPECT_NEAR(rhs_and_solution[i], expected[i], 1e-4) << i;
265 double expected[] = { 6.8420e+00, 1.0057e+00, -1.4907e-16, -1.9335e+00, local
278 EXPECT_NEAR(solution[j], expected[4 * i + j], 1e-3) << i;
H A Dcompressed_row_sparse_matrix_test.cc317 double expected[] = {1.970288, 1.242498, 6.081864, -0.057255}; local
320 EXPECT_NEAR(rhs_and_solution[i], expected[i], 1e-4) << i;
326 const double expected[] = { -1.4706, -1.0962, 6.6667, 2.2477}; local
330 EXPECT_NEAR(rhs_and_solution[i], expected[i], 1e-4) << i;
560 << "expected: \n"
H A Dcovariance_test.cc343 ConstMatrixRef expected(expected_covariance, 6, 6);
344 double diff_norm = (expected.block(row_begin,
354 << "\n\n expected: \n " << expected.block(row_begin,
359 << "\n\n full expected: \n" << expected; local
746 Matrix expected(parameter_block_size_, parameter_block_size_);
751 expected.setIdentity();
752 expected /= (i + 1.0) * (i + 1.0);
756 EXPECT_NEAR((expected
[all...]
H A Devaluator_test.cc189 void CheckAllEvaluationCombinations(const ExpectedEvaluation &expected) { argument
192 expected.num_rows,
193 expected.num_cols,
194 expected.cost,
195 (i & 1) ? expected.residuals : NULL,
196 (i & 2) ? expected.gradient : NULL,
197 (i & 4) ? expected.jacobian : NULL);
219 ExpectedEvaluation expected = { local
238 CheckAllEvaluationCombinations(expected);
257 ExpectedEvaluation expected local
300 ExpectedEvaluation expected = { local
347 ExpectedEvaluation expected = { local
410 ExpectedEvaluation expected = { local
486 ExpectedEvaluation expected = { local
[all...]
H A Dincomplete_lq_factorization_test.cc42 void ExpectMatricesAreEqual(const CompressedRowSparseMatrix& expected, argument
45 EXPECT_EQ(expected.num_rows(), actual.num_rows());
46 EXPECT_EQ(expected.num_cols(), actual.num_cols());
47 for (int i = 0; i < expected.num_rows(); ++i) {
48 EXPECT_EQ(expected.rows()[i], actual.rows()[i]);
52 EXPECT_EQ(expected.cols()[i], actual.cols()[i]);
53 EXPECT_NEAR(expected.values()[i], actual.values()[i], tolerance);
116 << "expected: \n" << expected_l_matrix
H A Dproblem_test.cc220 // Parameter block additions are tested as listed above; expected successful
1137 const ExpectedEvaluation& expected) {
1140 expected.num_rows,
1141 expected.num_cols,
1142 expected.cost,
1143 (i & 1) ? expected.residuals : NULL,
1144 (i & 2) ? expected.gradient : NULL,
1145 (i & 4) ? expected.jacobian : NULL);
1157 ExpectedEvaluation expected = { local
1183 CheckAllEvaluationCombinations(Problem::EvaluateOptions(), expected); local
1136 CheckAllEvaluationCombinations(const Problem::EvaluateOptions& options, const ExpectedEvaluation& expected) argument
1187 ExpectedEvaluation expected = { local
1220 ExpectedEvaluation expected = { local
1258 ExpectedEvaluation expected = { local
1299 ExpectedEvaluation expected = { local
1328 CheckAllEvaluationCombinations(Problem::EvaluateOptions(), expected); local
1332 ExpectedEvaluation expected = { local
1363 ExpectedEvaluation expected = { local
1399 ExpectedEvaluation expected = { local
1434 ExpectedEvaluation expected = { local
1466 CheckAllEvaluationCombinations(Problem::EvaluateOptions(), expected); local
[all...]
H A Drotation_test.cc84 MATCHER_P(IsNearQuaternion, expected, "") {
94 if (fabs(arg[i] - expected[i]) > kTolerance) {
106 if (fabs(arg[i] + expected[i]) > kTolerance) {
116 *result_listener << "expected : "
117 << expected[0] << " "
118 << expected[1] << " "
119 << expected[2] << " "
120 << expected[3] << " "
133 MATCHER_P(IsNearAngleAxis, expected, "") {
140 if (fabs(arg[i] - expected[
141 *result_listener << "component " << i << " should be " << expected[i]; local
164 double expected = (c1 == c2) ? 1 : 0; local
189 *result_listener << "component " << i << " should be " << expected[i]; local
201 double expected[4] = { 1, 0, 0, 0 }; local
213 double expected[4] = { cos(theta/2), sin(theta/2.0), 0, 0 }; local
225 double expected[4] = { cos(theta/2), sin(theta/2.0), 0, 0 }; local
235 double expected[4] = { kHalfSqrt2, kHalfSqrt2, 0, 0 }; local
245 double expected[3] = { 0, 0, 0 }; local
254 double expected[3] = { 0, kPi, 0 }; local
264 double expected[3] = { 0, 0, kPi / 3 }; local
275 double expected[3] = { theta, 0, 0 }; local
286 double expected[3] = { theta, 0, 0 }; local
374 double expected[9] = { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; local
383 double expected[9] = { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; local
394 double expected[9] = { 1, 0, 0, 0, 0, 1, 0, -1, 0 }; local
408 double expected[9] = { -1, 0, 0, 0, 1, 0, 0, 0, -1 }; local
507 double expected[9] = { 0.5, sqrt(3) / 2, 0, // Column 1 local
733 J3 expected[4] = { local
756 J3 expected[4] = { local
771 J3 expected[4] = { local
791 J4 expected[3] = { local
814 J4 expected[3] = { local
828 J4 expected[3] = { local
1038 const int expected[8] = { 1, 2, 3, 4, 5, 6, 7, 8 }; local
1049 const int expected[8] = { 1, 5, 2, 6, 3, 7, 4, 8 }; local
[all...]
/external/chromium_org/ash/shelf/
H A Dshelf_widget_unittest.cc43 const std::string& expected) {
46 EXPECT_EQ(expected,
41 TestLauncherAlignment(aura::Window* root, ShelfAlignment alignment, const std::string& expected) argument
/external/chromium_org/ash/system/chromeos/
H A Dtray_display_unittest.cc137 base::string16 expected = tray_display_->GetDefaultViewMessage(); local
138 EXPECT_EQ(expected, state.name);
183 base::string16 expected = l10n_util::GetStringUTF16( local
186 EXPECT_EQ(expected, GetTrayDisplayText());
187 EXPECT_EQ(GetTooltipText(expected, GetFirstDisplayName(), "400x400",
197 expected = l10n_util::GetStringUTF16(
199 EXPECT_EQ(expected, GetTrayDisplayText());
200 EXPECT_EQ(GetMirroredTooltipText(expected, GetFirstDisplayName(), "400x400"),
215 base::string16 expected = l10n_util::GetStringFUTF16( local
219 EXPECT_EQ(expected, GetTrayDisplayTex
260 base::string16 expected = l10n_util::GetStringFUTF16( local
311 base::string16 expected = l10n_util::GetStringFUTF16( local
395 base::string16 expected = l10n_util::GetStringUTF16( local
[all...]
/external/chromium_org/ash/wm/
H A Dwindow_state_unittest.cc72 gfx::Rect expected = gfx::Rect( local
77 EXPECT_EQ(expected.ToString(), window->GetBoundsInScreen().ToString());
81 expected.set_x(kPrimaryDisplayWorkAreaBounds.right() - expected.width());
82 EXPECT_EQ(expected.ToString(), window->GetBoundsInScreen().ToString());
89 expected = gfx::Rect(
95 EXPECT_EQ(expected.ToString(), window->GetBoundsInScreen().ToString());
98 expected.set_x(kSecondaryDisplayWorkAreaBounds.x());
99 EXPECT_EQ(expected.ToString(), window->GetBoundsInScreen().ToString());
122 gfx::Rect expected local
215 gfx::Rect expected = gfx::Rect(kWorkAreaBounds.x(), local
[all...]
/external/chromium_org/base/android/javatests/src/org/chromium/base/
H A DCommandLineTest.java76 void checkTokenizer(String[] expected, String toParse) { argument
78 assertEquals(expected.length, actual.length);
79 for (int i = 0; i < expected.length; ++i) {
80 assertEquals("comparing element " + i, expected[i], actual[i]);
104 String[] expected = { "a\\bc de\"f g\\h",
107 checkTokenizer(expected, toParse);
110 expected = new String[0];
111 checkTokenizer(expected, toParse);
114 checkTokenizer(expected, toParse);
118 expected
[all...]
/external/chromium_org/base/
H A Dbig_endian_unittest.cc37 base::StringPiece expected(reader.ptr(), 2);
40 EXPECT_EQ(expected.data(), piece.data());
72 char expected[] = { 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, local
74 char data[sizeof(expected)];
85 EXPECT_EQ(0, memcmp(expected, data, sizeof(expected)));
/external/chromium_org/base/containers/
H A Dlinked_list_unittest.cc81 const int expected[] = {1}; local
82 ExpectListContents(list, arraysize(expected), expected);
91 const int expected[] = {1, 2}; local
92 ExpectListContents(list, arraysize(expected), expected);
101 const int expected[] = {1, 2, 3}; local
102 ExpectListContents(list, arraysize(expected), expected);
124 const int expected[] local
134 const int expected[] = {1, 2, 4, 5}; local
144 const int expected[] = {1, 2, 4}; local
154 const int expected[] = {2, 4}; local
176 const int expected[] = {1, 2, 3, 4, 5}; local
195 const int expected[] = {1, 2}; local
204 const int expected[] = {1, 3, 2}; local
213 const int expected[] = {4, 1, 3, 2}; local
232 const int expected[] = {1, 2}; local
241 const int expected[] = {1, 2, 3}; local
250 const int expected[] = {1, 4, 2, 3}; local
[all...]

Completed in 1682 milliseconds

1234567891011>>