/libcore/benchmarks/src/benchmarks/regression/ |
D | StringBuilderBenchmark.java | 33 for (int j = 0; j < length; ++j) { in timeAppendBoolean() 42 for (int j = 0; j < length; ++j) { in timeAppendChar() 52 for (int j = 0; j < length; ++j) { in timeAppendCharArray() 62 for (int j = 0; j < length; ++j) { in timeAppendCharSequence() 72 for (int j = 0; j < length; ++j) { in timeAppendDouble() 82 for (int j = 0; j < length; ++j) { in timeAppendFloat() 92 for (int j = 0; j < length; ++j) { in timeAppendInt() 102 for (int j = 0; j < length; ++j) { in timeAppendLong() 117 for (int j = 0; j < length; ++j) { in timeAppendObject() 127 for (int j = 0; j < length; ++j) { in timeAppendString()
|
D | LoopingBackwardsBenchmark.java | 34 for (int j = 0; j < max; j++) { in timeForwards() 35 dummy += j; in timeForwards() 44 for (int j = max - 1; j >= 0; j--) { in timeBackwards() 45 dummy += j; in timeBackwards()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/provider/crypto/ |
D | SHA1PRNG_SecureRandomTest.java | 94 for (int j = 0; j < i; j++) { in testGenerateSeedint03() 95 if (myBytes1[j] == myBytes2[j]) { in testGenerateSeedint03() 130 for (int j = 1; j < i; j++) { in testNextBytesbyteArray02() 131 myBytes[j] = (byte) (j & 0xFF); in testNextBytesbyteArray02() 202 for (int j = 0; j < i; j++) { in testNextBytesbyteArray03() 203 flag &= myBytes1[j] == myBytes2[j]; in testNextBytesbyteArray03() 209 for (int j = 0; j < i; j++) { in testNextBytesbyteArray03() 210 flag &= myBytes1[j] == myBytes2[j]; in testNextBytesbyteArray03() 261 for (int j = 0; j < i; j++) { in testNextBytesbyteArray04() 262 flag &= myBytes1[j] == myBytes2[j]; in testNextBytesbyteArray04() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLEngineResultTest.java | 101 for (int j = 0; j < enHS.length; j++) { in test_bytesConsumed() 105 enHS[j], pos[n], pos[l]); in test_bytesConsumed() 124 for (int j = 0; j < enHS.length; j++) { in test_bytesProduced() 128 enHS[j], pos[n], pos[l]); in test_bytesProduced() 147 for (int j = 0; j < enHS.length; j++) { in test_getHandshakeStatus() 151 enHS[j], pos[n], pos[l]); in test_getHandshakeStatus() 152 assertEquals("Incorrect HandshakeStatus", enHS[j], in test_getHandshakeStatus() 170 for (int j = 0; j < enHS.length; j++) { in test_getStatus() 174 enHS[j], pos[n], pos[l]); in test_getStatus() 193 for (int j = 0; j < enHS.length; j++) { in test_toString() [all …]
|
D | SSLEngineResultStatusTest.java | 39 for (int j = 0; j < str.length; j++) { in test_SSLEngineResultStatus_values() 40 if (enS[i].toString() == str[j]) { in test_SSLEngineResultStatus_values()
|
/libcore/luni/src/main/java/java/math/ |
D | Primality.java | 87 int i, j; in nextProbablePrime() local 125 j = (modules[i] == 0) ? 0 : (primes[i] - modules[i]); in nextProbablePrime() 126 for (; j < gapSize; j += primes[i]) { in nextProbablePrime() 127 isDivisible[j] = true; in nextProbablePrime() 132 for (j = 0; j < gapSize; j++) { in nextProbablePrime() 133 if (!isDivisible[j]) { in nextProbablePrime() 135 probPrime.addPositiveInt(j); in nextProbablePrime()
|
D | Conversion.java | 115 for (int j = 0; (j < 8) && (currentChar > 0); j++) { in bigInteger2String() 116 resDigit = digits[i] >> (j << 2) & 0xf; in bigInteger2String() 226 int j = tempLen - 1; in toDecimalScaledString() local 227 for (; temp[j] == 0; j--) { in toDecimalScaledString() 228 if (j == 0) { // means temp[0] == 0 in toDecimalScaledString() 232 tempLen = j + 1; in toDecimalScaledString() 251 for (int j = resLengthInChars - 1; j >= insertPoint; j--) { in toDecimalScaledString() 252 result[j + 1] = result[j]; in toDecimalScaledString() 262 for (int j = 2; j < -exponent + 1; j++) { in toDecimalScaledString() 353 for (int j=resLengthInChars-1; j>=insertPoint; j--) { in toDecimalScaledString() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ThreadLocalRandomTest.java | 141 int j; 143 (j = ThreadLocalRandom.current().nextInt(bound)) == f) { 144 assertTrue(0 <= j && j < bound); 161 int j; 163 (j = ThreadLocalRandom.current().nextInt(least, bound)) == f) { 164 assertTrue(least <= j && j < bound); 201 long j; 203 (j = ThreadLocalRandom.current().nextLong(bound)) == f) { 204 assertTrue(0 <= j && j < bound); 221 long j; [all …]
|
D | ConcurrentLinkedDequeTest.java | 634 for (int j = 0; j < i; ++j) { in testRemoveAll() 742 for (int j = 1; j <= max; ++j) in testIteratorRemove() 743 q.add(new Integer(j)); in testIteratorRemove() 745 for (int j = 1; j <= split; ++j) in testIteratorRemove() 746 assertEquals(it.next(), new Integer(j)); in testIteratorRemove() 749 for (int j = 1; j <= split; ++j) in testIteratorRemove() 750 q.remove(new Integer(j)); in testIteratorRemove() 752 for (int j = split+1; j <= max; ++j) { in testIteratorRemove() 753 assertEquals(it.next(), new Integer(j)); in testIteratorRemove() 810 for (int j = max; j >= 1; --j) in testDescendingIteratorRemove() [all …]
|
D | ArrayDequeTest.java | 617 for (int j = 0; j < i; ++j) { in testRemoveAll() 772 for (int j = 1; j <= max; ++j) in testIteratorRemove() 773 q.add(new Integer(j)); in testIteratorRemove() 775 for (int j = 1; j <= split; ++j) in testIteratorRemove() 776 assertEquals(it.next(), new Integer(j)); in testIteratorRemove() 779 for (int j = 1; j <= split; ++j) in testIteratorRemove() 780 q.remove(new Integer(j)); in testIteratorRemove() 782 for (int j = split+1; j <= max; ++j) { in testIteratorRemove() 783 assertEquals(it.next(), new Integer(j)); in testIteratorRemove() 840 for (int j = max; j >= 1; --j) in testDescendingIteratorRemove() [all …]
|
D | CopyOnWriteArrayListTest.java | 255 for (int j = 0; j < SIZE; j++) { in testIterator() 257 assertEquals(elements[j], it.next()); in testIterator() 320 int j; in testListIterator1() local 321 for (j = 0; i.hasNext(); j++) in testListIterator1() 322 assertEquals(j, i.next()); in testListIterator1() 323 assertEquals(SIZE, j); in testListIterator1() 332 int j; in testListIterator2() local 333 for (j = 0; i.hasNext(); j++) in testListIterator2() 334 assertEquals(j+1, i.next()); in testListIterator2() 335 assertEquals(2, j); in testListIterator2() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | CipherInputStream1Test.java | 116 for (int j = 0; j < got - ind; j++) { in testRead2() 117 if (result[j] != data[ind + j]) { in testRead2() 157 for (int j = 0; j < got - ind; j++) { in testRead3() 159 + "returned incorrect data.", result[j], data[ind + j]); in testRead3() 192 for (int j = 0; j < got - ind; j++) { in testSkip() 193 if (result[j] != data[ind + j]) { in testSkip() 196 + data[ind + j] + ", got: " + result[j]); in testSkip()
|
D | KeyAgreementTest.java | 205 for (int j = 1; j < invalidValues.length; j++) { in testGetInstanceStringString02() 207 KeyAgreement.getInstance(validValues[i], invalidValues[j]); in testGetInstanceStringString02() 210 .concat(invalidValues[j]).concat(")")); in testGetInstanceStringString02() 503 for (int j = 0; j < bbRes1.length; j++) { in testInit03() 505 Integer.toString(i)).concat(")"), bbRes1[j], bbRes2[j]); in testInit03() 512 for (int j = 0; j < bbRes1.length; j++) { in testInit03() 514 Integer.toString(i)).concat(")"), bbRes1[j], bbRes3[j]); in testInit03() 552 for (int j = 0; j < bbRes1.length; j++) { in testInit04() 554 Integer.toString(i)).concat(")"), bbRes1[j], bbRes2[j]); in testInit04() 561 for (int j = 0; j < bbRes1.length; j++) { in testInit04() [all …]
|
/libcore/luni/src/test/java/dalvik/system/ |
D | JniTest.java | 108 for(int j = 0; j < literals.length; j++) { in testPassingObjectReferences() 110 a[i] = literals[(i + j) % literals.length]; in testPassingObjectReferences() 136 for(int j = 0; j < literals.length; j++) { in testPassingBooleans() 138 a[i] = literals[(i + j) % literals.length]; in testPassingBooleans() 167 for(int j = 0; j < literals.length; j++) { in testPassingChars() 169 a[i] = literals[(i + j) % literals.length]; in testPassingChars() 195 for(int j = 0; j < literals.length; j++) { in testPassingBytes() 197 a[i] = literals[(i + j) % literals.length]; in testPassingBytes() 223 for(int j = 0; j < literals.length; j++) { in testPassingShorts() 225 a[i] = literals[(i + j) % literals.length]; in testPassingShorts() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
D | ASN1BitString.java | 141 int j = 0; in getDecodedObject() local 144 for (int k = 0; k < 8; k++, j++) { in getDecodedObject() 145 value[j] = (SET_MASK[k] & octet) != 0; in getDecodedObject() 152 for (int k = 0; k < (8 - unusedBits); k++, j++) { in getDecodedObject() 153 value[j] = (SET_MASK[k] & octet) != 0; in getDecodedObject() 174 int j = 0; in setEncodingContent() local 177 for (int k = 0; k < 8; k++, j++) { in setEncodingContent() 178 if (toEncode[j]) { in setEncodingContent() 185 for (int k = 0; k < (8 - unusedBits); k++, j++) { in setEncodingContent() 186 if (toEncode[j]) { in setEncodingContent()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | OldAndroidZipStressTest.java | 87 int j = stream.read(buffer); in testZipStressManifest() local 88 while (j != -1) { in testZipStressManifest() 89 j = stream.read(buffer); in testZipStressManifest() 106 int j = stream.read(buffer); in testZipStressAllFiles() local 107 while (j != -1) { in testZipStressAllFiles() 108 j = stream.read(buffer); in testZipStressAllFiles() 131 for (int j = 1; j <= 2; j++) { in testZipDeflateInflateStress() 134 if (j == 1) { in testZipDeflateInflateStress() 153 System.out.println("ZipDeflateInflateStress test (" + j + "," + i + ")..."); in testZipDeflateInflateStress()
|
D | OldAndroidGZIPStreamTest.java | 66 int i, j, offset; in makeSampleFile() local 72 for (j = 0; j < 256; j++) { in makeSampleFile()
|
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
D | AnnotationTest.java | 71 for (int j = i+1; j < eqList.size(); j++) { in test_equals() 73 Method me2 = eqList.get(j); in test_equals() 85 for (int j = i+1; j < eqList.size(); j++) { in test_equals() 87 Method me2 = eqList.get(j); in test_equals() 234 @TestAnnotation3(j = 0) 236 @TestAnnotation3(j = 0) 241 @TestAnnotation3(j = Long.MAX_VALUE) 243 @TestAnnotation3(j = Long.MAX_VALUE) 246 @TestAnnotation3(j = Long.MAX_VALUE) 248 @TestAnnotation3(j = Long.MIN_VALUE) [all …]
|
/libcore/luni/src/main/java/javax/crypto/spec/ |
D | DESKeySpec.java | 199 for (int j=0; j<DES_KEY_LEN; j++) { in isWeak() 200 if (SEMIWEAKS[i][j] != key[offset+j]) { in isWeak()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | CurrencyTest.java | 234 int i, j, k; in test_getSymbolLjava_util_Locale() local 242 for (j = 0; j < euro.length; j++) { in test_getSymbolLjava_util_Locale() 243 if (currE.getSymbol(loc1[i]).equals(euro[j])) { in test_getSymbolLjava_util_Locale() 258 for (j = 0; j < yen.length; j++) { in test_getSymbolLjava_util_Locale() 259 if (currJ.getSymbol(loc1[i]).equals(yen[j])) { in test_getSymbolLjava_util_Locale() 274 for (j = 0; j < dollar.length; j++) { in test_getSymbolLjava_util_Locale() 275 if (currUS.getSymbol(loc1[i]).equals(dollar[j])) { in test_getSymbolLjava_util_Locale() 290 for (j = 0; j < cDollar.length; j++) { in test_getSymbolLjava_util_Locale() 291 if (currCA.getSymbol(loc1[i]).equals(cDollar[j])) { in test_getSymbolLjava_util_Locale()
|
/libcore/luni/src/main/java/libcore/util/ |
D | CollectionUtils.java | 87 int j = 1; 89 if (comparator.compare(list.get(j - 1), list.get(i)) != 0) { 91 list.set(j++, object); 94 if (j < list.size()) { 95 list.subList(j, list.size()).clear();
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
D | OldMatcherTest.java | 164 int i, j; in test_startI() local 166 for (j = 0; j < 3; j++) { in test_startI() 167 while (mat.find(start + j - 2)) { in test_startI() 186 int i, j; in test_endI() local 188 for (j = 0; j < 3; j++) { in test_endI() 189 while (mat.find(start + j - 2)) { in test_endI() 223 int j; in test_findI() local 225 for (j = 0; j < 3; j++) { in test_findI() 226 while (mat.find(start + j - 2)) { in test_findI() 244 for (j = 0; j < length; j++) { in test_findI() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | MatcherTest.java | 195 for (int j = 0; j < groupResults[i].length; j++) { in testGroupint() 196 assertEquals("i: " + i + " j: " + j, groupResults[i][j], mat in testGroupint() 197 .group(j + 1)); in testGroupint() 258 for (int j = 0; j < posSeq[i].length; j++) { in testMatchesMisc() 259 Matcher mat = pat.matcher(posSeq[i][j]); in testMatchesMisc() 261 + posSeq[i][j], mat.matches()); in testMatchesMisc() 281 for (int j = 0; j < stringSingles.length / 2; j++) { in testMatchesQuantifiers() 283 + " : " + stringSingles[i][j], pat.matcher( in testMatchesQuantifiers() 284 stringSingles[i][j * 2]).matches()); in testMatchesQuantifiers() 286 + pat.pattern() + " : " + stringSingles[i][j * 2 + 1], in testMatchesQuantifiers() [all …]
|
/libcore/luni/src/main/java/java/util/ |
D | DualPivotQuicksort.java | 108 int j; in doSort() local 109 for (j = i - 1; j >= left && ai < a[j]; j--) { in doSort() 110 a[j + 1] = a[j]; in doSort() 112 a[j + 1] = ai; in doSort() 386 int j; in doSort() local 387 for (j = i - 1; j >= left && ai < a[j]; j--) { in doSort() 388 a[j + 1] = a[j]; in doSort() 390 a[j + 1] = ai; in doSort() 667 int j; in doSort() local 668 for (j = i - 1; j >= left && ai < a[j]; j--) { in doSort() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ObjectTest.java | 315 for (int j = 0; j < count; j++) { in test_waitJ() 318 sb.append(toLong[j][0]); in test_waitJ() 320 sb.append(toLong[j][1]); in test_waitJ() 322 sb.append(toLong[j][2]); in test_waitJ() 324 sb.append(toLong[j][2] - toLong[j][1]); in test_waitJ()
|