/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
H A D | StreamTestDataProvider.java | 60 for (int i = 0; i < arr.length; i++) { 64 for (int i = 0; i < reversed.length; i++) { 65 reversed[i] = reversed.length - i; 67 for (int i = 0; i < ones.length; i++) { 70 System.arraycopy(to100, 0, twice, 0, to100.length); 71 System.arraycopy(to100, 0, twice, to100.length, to100.length); 72 pseudoRandom = new Integer[LambdaTestHelpers.LONG_STRING.length()]; 73 for (int i = 0; i < LambdaTestHelpers.LONG_STRING.length(); i++) { 111 (ints.length) < [all...] |
/libcore/ojluni/src/main/java/java/time/zone/ |
H A D | ZoneRules.java | 153 * The zero-length long array. 157 * The zero-length lastrules array. 162 * The zero-length ldt array. 281 if (savingsInstantTransitions.length == 0) { 286 for (int i = 0; i < savingsInstantTransitions.length; i++) { 336 * out.writeInt(standardTransitions.length); 343 * out.writeInt(savingsInstantTransitions.length); 350 * out.writeByte(lastRules.length); 358 * length form to make the common cases put fewer bytes in the stream. 375 * ZoneOffset values are encoded in a variable length for [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | StringBuilderTest.java | 64 assertEquals("fixture".length() + 16, sb.capacity()); 68 assertEquals("fixture".length() + 16, sb.capacity()); 84 assertEquals("fixture".length() + 16, sb.capacity()); 174 fail("no IOOBE, negative length"); 181 fail("no IOOBE, offset and length overflow"); 398 for (int i = 0; i < fixture.length(); i++) { 410 sb.charAt(fixture.length()); 411 fail("no IOOBE, equal to length"); 416 sb.charAt(fixture.length() + 1); 417 fail("no IOOBE, greater than length"); [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | StringEqualsBenchmark.java | 24 * Each benchmarks makes 5 measurements, aiming at covering cases like strings of equal length 82 // Different constants, last character different, same length 97 // Different constants, last character different, same length 99 // Different constants, first character different, same length 106 // Different constants, last character different, same length 112 // Different constants, first character different, same length 123 // Different constants, last character different, same length 155 // Different non-word aligned medium length strings 157 // Different differently non-word aligned medium length strings 159 // Different non-word aligned long length string [all...] |
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DOMTestDocumentBuilderFactory.java | 94 List mergedSettings = new ArrayList(settings.length + newSettings.length); 98 for (int i = 0; i < newSettings.length; i++) { 104 for (int i = 0; i < settings.length; i++) { 107 for (int j = 0; j < newSettings.length; j++) { 179 List list = new ArrayList(allSettings.length / 2); 180 for (int i = 0; i < allSettings.length; i++) { 186 for (int i = 0; i < settings.length; i++) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | FileWriterTest.java | 72 char[] out = new char[first.length() + second.length() + 10]; 73 int length = fileReader.read(out); 75 assertEquals(first + second, new String(out, 0, length)); 88 out = new char[first.length() + second.length() + 10]; 89 length = fileReader.read(out); 91 assertEquals(second, new String(out, 0, length));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/ |
H A D | MethodLogger.java | 42 Object[] argsCopy = new Object[args.length]; 43 System.arraycopy(args, 0, argsCopy, 0, args.length);
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | Streams.java | 60 readFully(in, dst, 0, dst.length); 79 Arrays.checkOffsetAndCount(dst.length, offset, byteCount); 158 int toRead = (int) Math.min(byteCount - skipped, buffer.length); 211 int length = result.length(); 212 if (length > 0 && result.charAt(length - 1) == '\r') { 213 result.setLength(length - 1);
|
/libcore/luni/src/main/java/libcore/reflect/ |
H A D | Types.java | 47 if (types.length() == 0) { 80 if (types.length == 0) { 85 for (int i = 1; i < types.length; i++) { 115 if (types.length == 0) { 119 for (int i = 1; i < types.length; i++) { 138 int len = as.length-1; 139 if (as[len].length() > 1){ 140 out.append(as[len].substring(1, as[len].length() - 1));
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
H A D | CDATASectionImpl.java | 60 for (int p = 1; p < parts.length - 1; p++) { 63 setData(">" + parts[parts.length - 1]);
|
/libcore/luni/src/main/java/org/xml/sax/ |
H A D | ContentHandler.java | 325 * @param length the number of characters to read from the array 331 public void characters (char ch[], int start, int length) argument 355 * @param length the number of characters to read from the array 360 public void ignorableWhitespace (char ch[], int start, int length) argument
|
H A D | HandlerBase.java | 242 * @param length The number of characters to use from the 248 public void characters (char ch[], int start, int length) 265 * @param length The number of characters to use from the 271 public void ignorableWhitespace (char ch[], int start, int length) 245 characters(char ch[], int start, int length) argument 268 ignorableWhitespace(char ch[], int start, int length) argument
|
/libcore/luni/src/main/native/ |
H A D | cbigint.h | 89 uint64_t* result, int32_t length); 90 uint32_t simpleAppendDecimalDigitHighPrecision(uint64_t* arg1, int32_t length, uint64_t digit); 91 jdouble toDoubleHighPrecision(uint64_t* arg, int32_t length); 94 int32_t highestSetBitHighPrecision(uint64_t* arg, int32_t length); 99 int32_t timesTenToTheEHighPrecision(uint64_t* result, int32_t length, jint e); 101 int32_t lowestSetBitHighPrecision(uint64_t* arg, int32_t length); 102 void simpleShiftLeftHighPrecision(uint64_t* arg1, int32_t length, int32_t arg2); 104 int32_t simpleAddHighPrecision(uint64_t* arg1, int32_t length, uint64_t arg2);
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldInputStreamTest.java | 44 if (position < input.length) { 104 b = new byte[ref.length]; 107 bytesRead, ref.length - 10); 132 // Test 2: Invalid length. 140 // Test 3: Invalid offset and length combination (sum is larger 141 // than the length of b). 193 b = new byte[ref.length]; 194 bytesRead = is.read(b, 2, b.length - 2); 198 bytesRead, ref.length - 8); 253 is.skip(ref.length), re [all...] |
H A D | OldStringReaderTest.java | 39 char[] buf = new char[testString.length()]; 54 sr.read(buf, 1, testString.length());
|
/libcore/luni/src/test/java/libcore/java/security/ |
H A D | OldAlgorithmParameterGeneratorTest.java | 33 for (int i = 0; i < valid.length; i++) { 51 for (int i = 0; i < valid.length; i++) {
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
H A D | TimeZoneDataFilesTest.java | 31 assertEquals(2, paths.length); 47 assertEquals(2, paths.length);
|
/libcore/luni/src/test/java/tests/support/ |
H A D | MockFunction.java | 37 if (args.length > 0) { 44 for (int i = 0; i < args.length; i++) {
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | FilterOutputStream.java | 81 * Writes <code>b.length</code> bytes to this output stream. 86 * <code>b.length</code>. 97 write(b, 0, b.length); 121 if ((off | len | (b.length - (len + off)) | (off + len)) < 0)
|
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
H A D | AbstractSelectableChannel.java | 98 if ((keys != null) && (keyCount < keys.length)) { 100 for (i = 0; i < keys.length; i++) 107 int n = keys.length * 2; 109 for (i = 0; i < keys.length; i++) 122 for (int i = 0; i < keys.length; i++) 131 for (int i = 0; i < keys.length; i++) 144 for (int i = 0; i < keys.length; i++) { 236 int count = (keys == null) ? 0 : keys.length;
|
/libcore/ojluni/src/main/java/java/security/ |
H A D | PKCS12Attribute.java | 86 int length = value.length(); 88 if (value.charAt(0) == '[' && value.charAt(length - 1) == ']') { 89 values = value.substring(1, length - 1).split(", "); 238 bytes = Arrays.copyOfRange(bytes, 1, bytes.length); 259 String[] values = new String[attrValueSet.length]; 261 for (int i = 0; i < attrValueSet.length; i++) { 283 this.value = values.length == 1 ? values[0] : Arrays.toString(values);
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | AbstractCollection.java | 118 * The length of the returned array is equal to the number of elements 138 for (int i = 0; i < r.length; i++) { 154 * newly allocated array with length equal to the number of elements 177 T[] r = a.length >= size ? a : 182 for (int i = 0; i < r.length; i++) { 186 } else if (a.length < i) { 190 if (a.length > i) { 222 int i = r.length; 224 int cap = r.length; 235 return (i == r.length) [all...] |
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | CheckedInputStream.java | 78 * <code>buf.length - off</code> 100 len = read(buf, 0, len < buf.length ? (int)len : buf.length);
|
H A D | ZipCoder.java | 46 String toString(byte[] ba, int length) { argument 48 int len = (int)(length * cd.maxCharsPerByte()); 56 int clen = ((ArrayDecoder)cd).decode(ba, 0, length, ca); 61 ByteBuffer bb = ByteBuffer.wrap(ba, 0, length); 73 return toString(ba, ba.length); 79 int len = (int)(ca.length * ce.maxBytesPerChar()); 86 int blen = ((ArrayEncoder)ce).encode(ca, 0, ca.length, ba); 99 if (bb.position() == ba.length) // defensive copy?
|
/libcore/ojluni/src/main/java/javax/crypto/spec/ |
H A D | GCMParameterSpec.java | 39 * <li>{@code tLen}: length (in bits) of authentication tag T</li> 69 // Required Tag length (in bits). 74 * tag bit-length and IV buffer. 76 * @param tLen the authentication tag length (in bits) 88 init(tLen, src, 0, src.length); 93 * authentication tag bit-length and a subset of the specified 96 * @param tLen the authentication tag length (in bits) 105 * length of the {@code src} byte array. 123 || ((len + offset) > src.length)) { 132 * Returns the authentication tag length [all...] |