/libcore/benchmarks/src/benchmarks/regression/ |
D | StringBuilderBenchmark.java | 31 for (int j = 0; j < length; ++j) { in timeAppendBoolean() 40 for (int j = 0; j < length; ++j) { in timeAppendChar() 50 for (int j = 0; j < length; ++j) { in timeAppendCharArray() 60 for (int j = 0; j < length; ++j) { in timeAppendCharSequence() 70 for (int j = 0; j < length; ++j) { in timeAppendSubCharSequence() 80 for (int j = 0; j < length; ++j) { in timeAppendDouble() 90 for (int j = 0; j < length; ++j) { in timeAppendFloat() 100 for (int j = 0; j < length; ++j) { in timeAppendInt() 110 for (int j = 0; j < length; ++j) { in timeAppendLong() 125 for (int j = 0; j < length; ++j) { in timeAppendObject() [all …]
|
D | LoopingBackwardsBenchmark.java | 32 for (int j = 0; j < max; j++) { in timeForwards() 33 dummy += j; in timeForwards() 42 for (int j = max - 1; j >= 0; j--) { in timeBackwards() 43 dummy += j; in timeBackwards()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/ |
D | OldSHA1PRNGSecureRandomTest.java | 90 for (int j = 0; j < i; j++) { in testGenerateSeedint03() 91 if (myBytes1[j] == myBytes2[j]) { in testGenerateSeedint03() 126 for (int j = 1; j < i; j++) { in testNextBytesbyteArray02() 127 myBytes[j] = (byte) (j & 0xFF); in testNextBytesbyteArray02() 198 for (int j = 0; j < i; j++) { in testNextBytesbyteArray03() 199 flag &= myBytes1[j] == myBytes2[j]; in testNextBytesbyteArray03() 205 for (int j = 0; j < i; j++) { in testNextBytesbyteArray03() 206 flag &= myBytes1[j] == myBytes2[j]; in testNextBytesbyteArray03() 257 for (int j = 0; j < i; j++) { in testNextBytesbyteArray04() 258 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 …]
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | GeneralSubtrees.java | 199 for (int j = i + 1; j < size(); j++) { in minimize() 200 GeneralNameInterface subsequent = getGeneralNameInterface(j); in minimize() 212 remove(j); in minimize() 213 j--; /* continue check with new subsequent */ in minimize() 360 for (int j = 0; j < other.size(); j++) { in intersect() 361 GeneralSubtree otherEntryGS = other.get(j); in intersect() 396 for (int j = 0; j < size(); j++) { in intersect() 397 GeneralNameInterface thisAltEntry = getGeneralNameInterface(j); in intersect() 443 for (int j = 0; j < size(); j++) { in intersect() 444 GeneralNameInterface thisEntry = getGeneralNameInterface(j); in intersect() [all …]
|
/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/ojluni/src/main/java/sun/misc/ |
D | CharacterEncoder.java | 143 int j; in encode() local 155 for (j = 0; j < numBytes; j += bytesPerAtom()) { in encode() 157 if ((j + bytesPerAtom()) <= numBytes) { in encode() 158 encodeAtom(outStream, tmpbuffer, j, bytesPerAtom()); in encode() 160 encodeAtom(outStream, tmpbuffer, j, (numBytes)- j); in encode() 278 int j; in encodeBuffer() local 290 for (j = 0; j < numBytes; j += bytesPerAtom()) { in encodeBuffer() 291 if ((j + bytesPerAtom()) <= numBytes) { in encodeBuffer() 292 encodeAtom(outStream, tmpbuffer, j, bytesPerAtom()); in encodeBuffer() 294 encodeAtom(outStream, tmpbuffer, j, (numBytes)- j); in encodeBuffer()
|
D | LRUCache.java | 48 for (int j = i; j > 0; j--) in moveToFront() 49 oa[j] = oa[j - 1]; in moveToFront()
|
/libcore/ojluni/src/main/java/sun/net/util/ |
D | IPAddressUtil.java | 158 int i = 0, j = 0; in textToNumericFormatV6() local 182 colonp = j; in textToNumericFormatV6() 187 if (j + INT16SZ > INADDR16SZ) in textToNumericFormatV6() 189 dst[j++] = (byte) ((val >> 8) & 0xff); in textToNumericFormatV6() 190 dst[j++] = (byte) (val & 0xff); in textToNumericFormatV6() 195 if (ch == '.' && ((j + INADDR4SZ) <= INADDR16SZ)) { in textToNumericFormatV6() 211 dst[j++] = v4addr[k]; in textToNumericFormatV6() 219 if (j + INT16SZ > INADDR16SZ) in textToNumericFormatV6() 221 dst[j++] = (byte) ((val >> 8) & 0xff); in textToNumericFormatV6() 222 dst[j++] = (byte) (val & 0xff); in textToNumericFormatV6() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | IOUtil.java | 152 for (int j=0; j<iov_len; j++) { in write() 154 ByteBuffer buf = vec.getBuffer(j); in write() 155 int pos = vec.getPosition(j); in write() 156 int rem = vec.getRemaining(j); in write() 162 ByteBuffer shadow = vec.getShadow(j); in write() 165 vec.clearRefs(j); in write() 175 for (int j=0; j<iov_len; j++) { in write() 176 ByteBuffer shadow = vec.getShadow(j); in write() 179 vec.clearRefs(j); in write() 282 for (int j=0; j<iov_len; j++) { in read() [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()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ThreadLocalRandomTest.java | 166 int j; 168 (j = ThreadLocalRandom.current().nextInt(bound)) == f) { 169 assertTrue(0 <= j && j < bound); 186 int j; 188 (j = ThreadLocalRandom.current().nextInt(least, bound)) == f) { 189 assertTrue(least <= j && j < bound); 237 long j; 239 (j = ThreadLocalRandom.current().nextLong(bound)) == f) { 240 assertTrue(0 <= j && j < bound); 257 long j; [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/ojluni/src/main/java/sun/net/www/ |
D | MessageHeader.java | 157 int j = 0; in filterNTLMResponses() local 164 if (i != j) { in filterNTLMResponses() 165 keys[j] = keys[i]; in filterNTLMResponses() 166 values[j] = values[i]; in filterNTLMResponses() 168 j++; in filterNTLMResponses() 170 if (j != nkeys) { in filterNTLMResponses() 171 nkeys = j; in filterNTLMResponses() 246 for (int j = 0; j < excludeList.length; j++) { in filterAndAddHeaders() 247 if ((excludeList[j] != null) && in filterAndAddHeaders() 248 (excludeList[j].equalsIgnoreCase(keys[i]))) { in filterAndAddHeaders() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Timer.java | 681 int j = k >> 1; 682 if (queue[j].nextExecutionTime <= queue[k].nextExecutionTime) 684 TimerTask tmp = queue[j]; queue[j] = queue[k]; queue[k] = tmp; 685 k = j; 700 int j; 701 while ((j = k << 1) <= size && j > 0) { 702 if (j < size && 703 queue[j].nextExecutionTime > queue[j+1].nextExecutionTime) 704 j++; // j indexes smallest kid 705 if (queue[k].nextExecutionTime <= queue[j].nextExecutionTime) [all …]
|
D | Spliterators.java | 1318 int j = 0; in trySplit() local 1319 do { a[j] = holder.value; } while (++j < n && tryAdvance(holder)); in trySplit() 1320 batch = j; in trySplit() 1322 est -= j; in trySplit() 1323 return new ArraySpliterator<>(a, 0, j, characteristics()); in trySplit() 1428 int j = 0; in trySplit() local 1429 do { a[j] = holder.value; } while (++j < n && tryAdvance(holder)); in trySplit() 1430 batch = j; in trySplit() 1432 est -= j; in trySplit() 1433 return new IntArraySpliterator(a, 0, j, characteristics()); in trySplit() [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | NetworkInterface.java | 121 for (int j=0; j<addrs.length; j++) { in getInetAddresses() 124 sec.checkConnect(addrs[j].getHostAddress(), -1); in getInetAddresses() 126 local_addrs[count++] = addrs[j]; in getInetAddresses() 164 for (int j=0; j<bindings.length; j++) { in getInterfaceAddresses() 167 sec.checkConnect(bindings[j].getAddress().getHostAddress(), -1); in getInterfaceAddresses() 169 lst.add(bindings[j]); in getInterfaceAddresses() 523 for (int j=0; j<count; j++) { in equals() 524 if (addrs[i].equals(thatAddrs[j])) { in equals()
|
/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()
|
/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/ojluni/src/main/java/javax/crypto/spec/ |
D | DESKeySpec.java | 229 for (int j = 0; j < DES_KEY_LEN && found == true; j++) { in isWeak() 230 if (WEAK_KEYS[i][j] != key[j+offset]) { in isWeak()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | Helpers.java | 55 int j = 1; in toString() local 58 chars[j++] = ','; in toString() 59 chars[j++] = ' '; in toString() 63 s.getChars(0, len, chars, j); in toString() 64 j += len; in toString() 66 chars[j] = ']'; in toString()
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | Constructor.java | 272 for (int j = 0; j < params.length; j++) { in toString() 273 sb.append(Field.getTypeName(params[j])); in toString() 274 if (j < (params.length - 1)) in toString() 350 for (int j = 0; j < params.length; j++) { in toGenericString() 351 String param = (params[j] instanceof Class<?>)? in toGenericString() 352 Field.getTypeName((Class<?>)params[j]): in toGenericString() 353 (params[j].toString()); in toGenericString() 354 if (isVarArgs() && (j == params.length - 1)) // replace T[] with T... in toGenericString() 357 if (j < (params.length - 1)) in toGenericString()
|
/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/ojluni/src/main/java/sun/security/provider/certpath/ |
D | PKIXMasterCertPathValidator.java | 107 for (int j = 0; j < certPathCheckers.size(); j++) { in validate() 109 PKIXCertPathChecker currChecker = certPathCheckers.get(j); in validate() 111 debug.println("-Using checker" + (j + 1) + " ... [" + in validate() 122 debug.println("-checker" + (j + 1) + in validate()
|