/libcore/ojluni/src/main/java/java/util/ |
D | ComparableTimSort.java | 444 int len1 = runLen[i]; in mergeAt() local 447 assert len1 > 0 && len2 > 0; in mergeAt() 448 assert base1 + len1 == base2; in mergeAt() 455 runLen[i] = len1 + len2; in mergeAt() 466 int k = gallopRight((Comparable<Object>) a[base2], a, base1, len1, 0); in mergeAt() 469 len1 -= k; in mergeAt() 470 if (len1 == 0) in mergeAt() 477 len2 = gallopLeft((Comparable<Object>) a[base1 + len1 - 1], a, in mergeAt() 484 if (len1 <= len2) in mergeAt() 485 mergeLo(base1, len1, base2, len2); in mergeAt() [all …]
|
D | TimSort.java | 478 int len1 = runLen[i]; in mergeAt() local 481 assert len1 > 0 && len2 > 0; in mergeAt() 482 assert base1 + len1 == base2; in mergeAt() 489 runLen[i] = len1 + len2; in mergeAt() 500 int k = gallopRight(a[base2], a, base1, len1, 0, c); in mergeAt() 503 len1 -= k; in mergeAt() 504 if (len1 == 0) in mergeAt() 511 len2 = gallopLeft(a[base1 + len1 - 1], a, base2, len2, len2 - 1, c); in mergeAt() 517 if (len1 <= len2) in mergeAt() 518 mergeLo(base1, len1, base2, len2); in mergeAt() [all …]
|
/libcore/ojluni/src/test/java/io/ByteArrayOutputStream/ |
D | Write.java | 104 int len1 = Math.min(rnd.nextInt(size / 4) + 1, size - off1); in writeTest() local 109 size, off1, len1, off2, len2); in writeTest() 111 baos.write(b, off1, len1); in writeTest() 113 assertEquals(b1.length, len1, "Array length test 1 failed."); in writeTest() 114 assertEquals(b1, Arrays.copyOfRange(b, off1, off1 + len1), in writeTest() 119 assertEquals(b2.length, len1 + len2, "Array length test 2 failed."); in writeTest() 120 assertEquals(Arrays.copyOfRange(b2, 0, len1), in writeTest() 121 Arrays.copyOfRange(b, off1, off1 + len1), in writeTest() 123 assertEquals(Arrays.copyOfRange(b2, len1, len1 + len2), in writeTest() 129 int len3 = len1 + len2 + b.length; in writeTest() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StringLatin1.java | 107 int len1 = value.length; in compareTo() local 109 return compareTo(value, other, len1, len2); in compareTo() 112 public static int compareTo(byte[] value, byte[] other, int len1, int len2) { in compareTo() argument 113 int lim = Math.min(len1, len2); in compareTo() 119 return len1 - len2; in compareTo() 124 int len1 = length(value); in compareToUTF16() local 126 return compareToUTF16Values(value, other, len1, len2); in compareToUTF16() 132 public static int compareToUTF16(byte[] value, byte[] other, int len1, int len2) { in compareToUTF16() argument 133 checkOffset(len1, length(value)); in compareToUTF16() 136 return compareToUTF16Values(value, other, len1, len2); in compareToUTF16() [all …]
|
D | StringUTF16.java | 308 int len1 = length(value); 310 return compareValues(value, other, len1, len2); 316 public static int compareTo(byte[] value, byte[] other, int len1, int len2) { 317 checkOffset(len1, value); 320 return compareValues(value, other, len1, len2); 323 private static int compareValues(byte[] value, byte[] other, int len1, int len2) { 324 int lim = Math.min(len1, len2); 332 return len1 - len2; 340 public static int compareToLatin1(byte[] value, byte[] other, int len1, int len2) { 341 return -StringLatin1.compareToUTF16(other, value, len2, len1); [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | SecurityTest.java | 360 int len1 = prv.length; in test_getProviders() local 361 if (len1 == 0) { in test_getProviders() 367 if ((len2 == len1 + 1) && (prv[len2-1].toString().equals("MyProvider version 1.0"))) { in test_getProviders()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixPath.java | 717 int len1 = path.length; in compareTo() local 720 int n = Math.min(len1, len2); in compareTo() 733 return len1 - len2; in compareTo()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | CipherTest.java | 1024 int len1 = c.doFinal(bI2).length; in test_doFinal$B() local 1025 assertEquals(16, len1); in test_doFinal$B() 1061 int len1 = c.doFinal(b, 0, 16).length; in test_doFinal$BII() local 1062 assertEquals(16, len1); in test_doFinal$BII()
|
/libcore/ojluni/src/main/native/ |
D | zip_util.c | 1252 jboolean equals(char* name1, int len1, char* name2, int len2) { in equals() argument 1253 if (len1 != len2) { in equals() 1256 while (len1-- > 0) { in equals()
|
/libcore/ojluni/src/main/java/java/math/ |
D | BigInteger.java | 3974 int len1 = m1.length; 3977 if (len1 < len2) 3979 if (len1 > len2) 3981 for (int i = 0; i < len1; i++) {
|