/external/android-clat/ |
H A D | clatd_test.cpp | 374 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 D | AndroidFrameworkMockGeneratorTest.java | 54 private <T> void assertUnorderedContentsSame(Iterable<T> expected, Iterable<T> actual) { argument 57 for (T item : expected) { 64 for (T item : expected) {
|
H A D | AndroidMockGeneratorTest.java | 54 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 D | ClassTypeTests.java | 58 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 D | antlr-3.4-complete.jar | META-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 D | TestDFAMatching.java | 95 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 D | DimensionMismatchException.java | 39 * @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 D | FirstOrderIntegratorWithJacobians.java | 346 * @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 D | ChiSquareTest.java | 32 * 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 D | ChiSquareTestImpl.java | 57 * <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 D | TestUtils.java | 326 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 D | CompositeFormat.java | 164 * 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 D | JDWPManualDebuggeeWrapper.java | 59 * 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 D | JDWPTestCase.java | 416 * 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 D | CharSinkTester.java | 51 * 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 D | SinkTester.java | 52 * 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 D | XPathParser.java | 483 * 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 D | cmac_test.cc | 24 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 D | refcount_c11.c | 39 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 D | file_test.cc | 251 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 D | ssl_test.cc | 36 // 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 D | ContentVerifier.java | 27 * @param expected expected value of the signature on the data. 30 boolean verify(byte[] expected); argument
|
H A D | RawContentVerifier.java | 10 * 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 D | JcaContentVerifierProviderBuilder.java | 218 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 D | array_utils_test.cc | 79 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...] |