Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 234) sorted by relevance

12345678910

/libcore/benchmarks/src/benchmarks/regression/
DStringBuilderBenchmark.java31 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 …]
DLoopingBackwardsBenchmark.java32 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/
DOldSHA1PRNGSecureRandomTest.java90 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/benchmarks/src/benchmarks/
DImtConflictBenchmarkGen.py70 for j in xrange(i+1):
71 print(" callF{}(c{});".format(imt_size * j, i))
81 for j in xrange(max_conflict_depth):
82 print(" callF{}(c{});".format(imt_size * (j % (i + 1)), i))
92 interfaces = ", ".join(["I{}".format(j) for j in xrange(i+1)])
98 for j in xrange(imt_size):
99 print(" default void f{}() {{}}".format(i*imt_size + j))
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLEngineResultTest.java101 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/test/java/time/tck/java/time/
DTCKZoneOffset.java215 for (int j = -59; j <= 59; j++) { in test_factory_string_hours_minutes_noColon()
216 if ((i < 0 && j <= 0) || (i > 0 && j >= 0) || i == 0) { in test_factory_string_hours_minutes_noColon()
217 String str = (i < 0 || j < 0 ? "-" : "+") + in test_factory_string_hours_minutes_noColon()
219 Integer.toString(Math.abs(j) + 100).substring(1); in test_factory_string_hours_minutes_noColon()
221 doTestOffset(test, i, j, 0); in test_factory_string_hours_minutes_noColon()
234 for (int j = -59; j <= 59; j++) { in test_factory_string_hours_minutes_colon()
235 if ((i < 0 && j <= 0) || (i > 0 && j >= 0) || i == 0) { in test_factory_string_hours_minutes_colon()
236 String str = (i < 0 || j < 0 ? "-" : "+") + in test_factory_string_hours_minutes_colon()
238 Integer.toString(Math.abs(j) + 100).substring(1); in test_factory_string_hours_minutes_colon()
240 doTestOffset(test, i, j, 0); in test_factory_string_hours_minutes_colon()
[all …]
/libcore/ojluni/src/main/java/sun/security/x509/
DGeneralSubtrees.java199 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/
DPrimality.java87 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()
DConversion.java115 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/
DCharacterEncoder.java143 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()
DLRUCache.java48 for (int j = i; j > 0; j--) in moveToFront()
49 oa[j] = oa[j - 1]; in moveToFront()
/libcore/ojluni/src/main/java/sun/nio/ch/
DIOUtil.java152 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/ojluni/src/main/java/sun/net/util/
DIPAddressUtil.java156 int i = 0, j = 0; in textToNumericFormatV6() local
180 colonp = j; in textToNumericFormatV6()
185 if (j + INT16SZ > INADDR16SZ) in textToNumericFormatV6()
187 dst[j++] = (byte) ((val >> 8) & 0xff); in textToNumericFormatV6()
188 dst[j++] = (byte) (val & 0xff); in textToNumericFormatV6()
193 if (ch == '.' && ((j + INADDR4SZ) <= INADDR16SZ)) { in textToNumericFormatV6()
209 dst[j++] = v4addr[k]; in textToNumericFormatV6()
217 if (j + INT16SZ > INADDR16SZ) in textToNumericFormatV6()
219 dst[j++] = (byte) ((val >> 8) & 0xff); in textToNumericFormatV6()
220 dst[j++] = (byte) (val & 0xff); in textToNumericFormatV6()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherInputStream1Test.java116 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/
DThreadLocalRandomTest.java166 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/ojluni/src/test/java/time/test/java/time/temporal/
DTestIsoWeekFields.java171 for (int j = 1; j <= 7; j++) { in test_adjustInto_dow()
172 LocalDate adjusted = DAY_OF_WEEK.adjustInto(date, j); in test_adjustInto_dow()
173 assertEquals(adjusted.get(DAY_OF_WEEK), j); in test_adjustInto_dow() local
200 for (int j = 1; j <= weeksInYear; j++) { in test_adjustInto_week()
201 LocalDate adjusted = weekField.adjustInto(date, j); in test_adjustInto_week()
202 assertEquals(adjusted.get(weekField), j); in test_adjustInto_week() local
228 for (int j = 2004; j <= 2015; j++) { in test_adjustInto_wby()
229 LocalDate adjusted = yearField.adjustInto(date, j); in test_adjustInto_wby()
230 assertEquals(adjusted.get(yearField), j); in test_adjustInto_wby() local
232 …assertEquals(adjusted.get(weekField), (week == 53 && wbyLen(j) == 52 ? 52 : week), "" + date + " "… in test_adjustInto_wby()
[all …]
/libcore/luni/src/main/java/libcore/icu/
DTimeZoneNames.java88 for (int j = 1; j < NAME_COUNT; ++j) { in addOffsetStrings()
89 if (result[i][j] != null) { in addOffsetStrings()
96 if (j == LONG_NAME_DST || j == SHORT_NAME_DST) { in addOffsetStrings()
99 result[i][j] = TimeZone.createGmtOffsetString( in addOffsetStrings()
109 for (int j = 1; j < NAME_COUNT; ++j) { in internStrings()
110 String original = result[i][j]; in internStrings()
115 result[i][j] = nonDuplicate; in internStrings()
/libcore/luni/src/test/java/libcore/dalvik/system/
DJniTest.java108 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/
DMessageHeader.java162 int j = 0; in filterNTLMResponses() local
169 if (i != j) { in filterNTLMResponses()
170 keys[j] = keys[i]; in filterNTLMResponses()
171 values[j] = values[i]; in filterNTLMResponses()
173 j++; in filterNTLMResponses()
175 if (j != nkeys) { in filterNTLMResponses()
176 nkeys = j; in filterNTLMResponses()
252 for (int j = 0; j < excludeList.length; j++) { in filterAndAddHeaders()
253 if ((excludeList[j] != null) && in filterAndAddHeaders()
254 (excludeList[j].equalsIgnoreCase(keys[i]))) { in filterAndAddHeaders()
[all …]
/libcore/ojluni/src/main/java/java/util/
DTimer.java688 int j = k >> 1;
689 if (queue[j].nextExecutionTime <= queue[k].nextExecutionTime)
691 TimerTask tmp = queue[j]; queue[j] = queue[k]; queue[k] = tmp;
692 k = j;
707 int j;
708 while ((j = k << 1) <= size && j > 0) {
709 if (j < size &&
710 queue[j].nextExecutionTime > queue[j+1].nextExecutionTime)
711 j++; // j indexes smallest kid
712 if (queue[k].nextExecutionTime <= queue[j].nextExecutionTime)
[all …]
/libcore/tools/docs/crypto/
Dformat_supported_algorithm_table.py161 j = i + 1
162 while (j < len(tuples)
163 and tuples[j][4] == cur_deprecated
164 and tuples[j][5] == cur_note
165 and tuples[j][0] == cur_algorithm):
166 j += 1
167 rowspan = j - i
174 j = i + 1
175 while (j < len(tuples)
176 and tuples[j][4] == cur_deprecated
[all …]
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidZipStressTest.java87 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/
DAnnotationTest.java71 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/
DDESKeySpec.java229 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/ojluni/src/main/java/java/util/concurrent/
DHelpers.java84 int j = 1; in toString() local
87 chars[j++] = ','; in toString()
88 chars[j++] = ' '; in toString()
92 s.getChars(0, len, chars, j); in toString()
93 j += len; in toString()
95 chars[j] = ']'; in toString()

12345678910