Searched defs:expected (Results 1 - 25 of 775) 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]);
487 const uint8_t *expected, size_t expected_len, const char *msg) {
492 check_data_matches(expected, translated, translated_len, msg);
496 const uint8_t *expected[], const size_t expected_lengths[],
499 // Check that each of the fragments translates as expected.
503 expected[i], expected_lengths[i], frag_msg);
569 void expect_ipv6_addr_equal(struct in6_addr *expected, struct in6_addr *actual) { argument
570 if (!IN6_ARE_ADDR_EQUAL(expected, actua
486 check_translated_packet(const uint8_t *original, size_t original_len, const uint8_t *expected, size_t expected_len, const char *msg) argument
495 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
621 struct in6_addr myaddr, expected; local
[all...]
/external/android-mock/tests/com/google/android/testing/mocking/
H A DAndroidFrameworkMockGeneratorTest.java54 private <T> void assertUnorderedContentsSame(Iterable<T> expected, Iterable<T> actual) { argument
57 for (T item : expected) {
64 for (T item : expected) {
H A DAndroidMockGeneratorTest.java54 private <T> void assertUnorderedContentsSame(Iterable<T> expected, Iterable<T> actual) { argument
57 for (T item : expected) {
64 for (T item : expected) {
244 // expected
254 // expected
402 // expected
412 // expected
H A DClassTypeTests.java58 private <T> void assertUnorderedContentsSame(Iterable<T> expected, Iterable<T> actual) { argument
61 for (T item : expected) {
68 for (T item : expected) {
/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-commons-math/src/main/java/org/apache/commons/math/exception/
H A DDimensionMismatchException.java39 * @param expected Expected dimension.
42 int expected) {
43 super(LocalizedFormats.DIMENSIONS_MISMATCH_SIMPLE, wrong, expected);
44 dimension = expected;
48 * @return the expected dimension.
41 DimensionMismatchException(int wrong, int expected) argument
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/jacobians/
H A DFirstOrderIntegratorWithJacobians.java346 * @param expected expected dimension
347 * @param array (may be null if expected is 0)
348 * @throws IllegalArgumentException if the array dimension does not match the expected one
350 private void checkDimension(final int expected, final Object array) argument
353 if (arrayDimension != expected) {
355 LocalizedFormats.DIMENSIONS_MISMATCH_SIMPLE, arrayDimension, expected);
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/inference/
H A DChiSquareTest.java32 * Chi-Square statistic</a> comparing <code>observed</code> and <code>expected</code>
36 * the observed counts follow the expected distribution.</p>
43 * <li>The observed and expected arrays must have the same length and
50 * @param expected array of expected frequency counts
54 double chiSquare(double[] expected, long[] observed) argument
63 * frequency counts to those in the <code>expected</code> array.
67 * described by the expected counts.</p>
74 * <li>The observed and expected arrays must have the same length and
81 * @param expected arra
86 chiSquareTest(double[] expected, long[] observed) argument
121 chiSquareTest(double[] expected, long[] observed, double alpha) argument
[all...]
H A DChiSquareTestImpl.java57 * <code>expected</code> array if necessary to ensure that the sum of the
58 * expected and observed counts are equal.</p>
61 * @param expected array of expected frequency counts
66 public double chiSquare(double[] expected, long[] observed) argument
68 if (expected.length < 2) {
70 LocalizedFormats.INSUFFICIENT_DIMENSION, expected.length, 2);
72 if (expected.length != observed.length) {
74 LocalizedFormats.DIMENSIONS_MISMATCH_SIMPLE, expected.length, observed.length);
76 checkPositive(expected);
115 chiSquareTest(double[] expected, long[] observed) argument
136 chiSquareTest(double[] expected, long[] observed, double alpha) argument
[all...]
H A DTestUtils.java326 public static double chiSquare(double[] expected, long[] observed) argument
328 return chiSquareTest.chiSquare(expected, observed);
342 public static boolean chiSquareTest(double[] expected, long[] observed, argument
345 return chiSquareTest.chiSquareTest(expected, observed, alpha);
351 public static double chiSquareTest(double[] expected, long[] observed) argument
353 return chiSquareTest.chiSquareTest(expected, observed);
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
H A DCompositeFormat.java164 * Parse <code>source</code> for an expected fixed string.
166 * @param expected expected string
168 * @return true if the expected string was there
170 protected boolean parseFixedstring(final String source, final String expected, argument
174 final int endIndex = startIndex + expected.length();
177 (source.substring(startIndex, endIndex).compareTo(expected) != 0)) {
/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
555 * the expected thread status
557 * the expected suspend status
582 * error code does not equal to expected error code.
589 * array of expected error codes
611 * error code does not equal to expected error code.
617 * @param expected -
618 * array of expected error codes
621 int[] expected) {
620 checkReplyPacket(ReplyPacket reply, String message, int[] expected) argument
659 checkReplyPacket(ReplyPacket reply, String message, int[] expected, boolean failSign) argument
713 assertEquals(String message, long expected, long actual, String strExpected, String strActual) argument
749 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/boringssl/src/crypto/cmac/
H A Dcmac_test.cc24 static void dump(const uint8_t *got, const uint8_t *expected, size_t len) { argument
30 BIO_hexdump(bio.get(), expected, len, 2 /* indent */);
35 const uint8_t *msg, size_t msg_len, const uint8_t *expected) {
43 if (CRYPTO_memcmp(out, expected, sizeof(out)) != 0) {
45 dump(out, expected, sizeof(out));
84 if (CRYPTO_memcmp(out, expected, sizeof(out)) != 0) {
86 dump(out, expected, sizeof(out));
34 test(const char *name, const uint8_t *key, size_t key_len, const uint8_t *msg, size_t msg_len, const uint8_t *expected) argument
/external/boringssl/src/crypto/
H A Drefcount_c11.c39 uint32_t expected = atomic_load(count); local
41 while (expected != CRYPTO_REFCOUNT_MAX) {
42 uint32_t new_value = expected + 1;
43 if (atomic_compare_exchange_weak(count, &expected, new_value)) {
51 uint32_t expected = atomic_load(count); local
54 if (expected == 0) {
56 } else if (expected == CRYPTO_REFCOUNT_MAX) {
59 const uint32_t new_value = expected - 1;
60 if (atomic_compare_exchange_weak(count, &expected, new_value)) {
/external/boringssl/src/crypto/test/
H A Dfile_test.cc251 bool FileTest::ExpectBytesEqual(const uint8_t *expected, size_t expected_len, argument
254 memcmp(expected, actual, expected_len) == 0) {
258 std::string expected_hex = EncodeHex(expected, expected_len);
/external/boringssl/src/ssl/
H A Dssl_test.cc36 // The list of expected ciphers, in order, terminated with -1.
37 const ExpectedCipher *expected; member in struct:CipherTest
251 if (t->expected[i].id != SSL_CIPHER_get_id(cipher) ||
252 t->expected[i].in_group_flag != ctx->cipher_list->in_group_flags[i]) {
259 if (t->expected[i].id != 0) {
/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.java218 public boolean verify(byte[] expected) argument
222 return stream.verify(expected);
243 public boolean verify(byte[] expected) argument
247 return super.verify(expected);
255 rawSignature.verify(expected);
264 public boolean verify(byte[] digest, byte[] expected) argument
270 return rawSignature.verify(expected);
282 stream.verify(expected);
341 boolean verify(byte[] expected) argument
344 return sig.verify(expected);
[all...]
/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...]

Completed in 1135 milliseconds

1234567891011>>