Home
last modified time | relevance | path

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

1234567891011

/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 fake += j; in timeForwards()
42 for (int j = max - 1; j >= 0; j--) { in timeBackwards()
43 fake += 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/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/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/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/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/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()
/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/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 …]
DConcurrentLinkedDequeTest.java645 for (int j = 0; j < i; ++j) { in testRemoveAll()
761 for (int j = 1; j <= max; ++j) in testIteratorRemove()
762 q.add(new Integer(j)); in testIteratorRemove()
764 for (int j = 1; j <= split; ++j) in testIteratorRemove()
765 assertEquals(it.next(), new Integer(j)); in testIteratorRemove()
768 for (int j = 1; j <= split; ++j) in testIteratorRemove()
769 q.remove(new Integer(j)); in testIteratorRemove()
771 for (int j = split + 1; j <= max; ++j) { in testIteratorRemove()
772 assertEquals(it.next(), new Integer(j)); in testIteratorRemove()
829 for (int j = max; j >= 1; --j) in testDescendingIteratorRemove()
[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/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/test/java/util/concurrent/tck/
DThreadLocalRandomTest.java233 int j;
235 (j = ThreadLocalRandom.current().nextInt(bound)) == f) {
236 assertTrue(0 <= j && j < bound);
253 int j;
255 (j = ThreadLocalRandom.current().nextInt(least, bound)) == f) {
256 assertTrue(least <= j && j < bound);
304 long j;
306 (j = ThreadLocalRandom.current().nextLong(bound)) == f) {
307 assertTrue(0 <= j && j < bound);
324 long j;
[all …]
DConcurrentLinkedDequeTest.java679 for (int j = 0; j < i; ++j) { in testRemoveAll()
795 for (int j = 1; j <= max; ++j) in testIteratorRemove()
796 q.add(new Integer(j)); in testIteratorRemove()
798 for (int j = 1; j <= split; ++j) in testIteratorRemove()
799 assertEquals(it.next(), new Integer(j)); in testIteratorRemove()
802 for (int j = 1; j <= split; ++j) in testIteratorRemove()
803 q.remove(new Integer(j)); in testIteratorRemove()
805 for (int j = split + 1; j <= max; ++j) { in testIteratorRemove()
806 assertEquals(it.next(), new Integer(j)); in testIteratorRemove()
863 for (int j = max; j >= 1; --j) in testDescendingIteratorRemove()
[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 …]
DSpliterators.java1318 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/luni/src/main/java/libcore/icu/
DTimeZoneNames.java80 for (int j = 1; j < NAME_COUNT; ++j) { in addOffsetStrings()
81 if (result[i][j] != null) { in addOffsetStrings()
88 if (j == LONG_NAME_DST || j == SHORT_NAME_DST) { in addOffsetStrings()
91 result[i][j] = TimeZone.createGmtOffsetString( in addOffsetStrings()
101 for (int j = 1; j < NAME_COUNT; ++j) { in internStrings()
102 String original = result[i][j]; in internStrings()
107 result[i][j] = nonDuplicate; in internStrings()
/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/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/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCurrencyTest.java247 int i, j, k; in test_getSymbolLjava_util_Locale() local
255 for (j = 0; j < euro.length; j++) { in test_getSymbolLjava_util_Locale()
256 if (currE.getSymbol(loc1[i]).equals(euro[j])) { in test_getSymbolLjava_util_Locale()
271 for (j = 0; j < yen.length; j++) { in test_getSymbolLjava_util_Locale()
272 if (currJ.getSymbol(loc1[i]).equals(yen[j])) { in test_getSymbolLjava_util_Locale()
287 for (j = 0; j < dollar.length; j++) { in test_getSymbolLjava_util_Locale()
288 if (currUS.getSymbol(loc1[i]).equals(dollar[j])) { in test_getSymbolLjava_util_Locale()
303 for (j = 0; j < cDollar.length; j++) { in test_getSymbolLjava_util_Locale()
304 if (currCA.getSymbol(loc1[i]).equals(cDollar[j])) { in test_getSymbolLjava_util_Locale()

1234567891011