Home
last modified time | relevance | path

Searched refs:array1 (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DKeyGeneratorThread.java41 byte[] array1 = k.getEncoded(); in test()
45 for (int i = 0; i < array1.length; i++) { in test()
46 if (array1[i] == array2[i]) { in test()
50 if (matches > array1.length / 2) { in test()
57 array1 = k.getEncoded(); in test()
62 for (int i = 0; i < array1.length; i++) { in test()
63 if (array1[i] == array2[i]) { in test()
/libcore/luni/src/main/java/java/util/
DArrays.java1354 public static boolean equals(byte[] array1, byte[] array2) { in equals() argument
1355 if (array1 == array2) { in equals()
1358 if (array1 == null || array2 == null || array1.length != array2.length) { in equals()
1361 for (int i = 0; i < array1.length; i++) { in equals()
1362 if (array1[i] != array2[i]) { in equals()
1380 public static boolean equals(short[] array1, short[] array2) { in equals() argument
1381 if (array1 == array2) { in equals()
1384 if (array1 == null || array2 == null || array1.length != array2.length) { in equals()
1387 for (int i = 0; i < array1.length; i++) { in equals()
1388 if (array1[i] != array2[i]) { in equals()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_MapTest.java184 private static <T> void assertArrayEquals(T[] array1, T[] array2) { in assertArrayEquals() argument
185 assertTrue(Arrays.equals(array1, array2)); in assertArrayEquals()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DEnumMapTest.java423 Object[] array1 = new Object[10]; in test_entrySet() local
424 array1 = set.toArray(); in test_entrySet()
425 assertEquals("Wrong length", 2, array1.length); in test_entrySet()
430 array1 = new Object[10]; in test_entrySet()
431 array1 = set.toArray(array1); in test_entrySet()
432 assertEquals("Wrong length", 10, array1.length); in test_entrySet()
435 assertNull("Should be null", array1[2]); in test_entrySet()
DCollectionsTest.java2376 private static <T> void assertArrayEquals(T[] array1, T[] array2) { in assertArrayEquals() argument
2377 assertTrue(Arrays.equals(array1, array2)); in assertArrayEquals()