/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
H A D | hc_namednodemapchildnoderange.java | 33 * list from index 0 thru length -1. All indices should 69 int length; 74 length = (int) attributes.getLength(); 77 assertEquals("htmlLength", 2, length); 79 assertEquals("length", 3, length);
|
H A D | noderemovechildnode.java | 68 int length; 80 length = (int) childList.getLength(); 82 if (equals(5, length)) { 88 assertEquals("length", 12, length);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | ScannerParseLargeFileBenchmarkTest.java | 53 public int read(char[] buffer, int offset, int length) { argument 58 final int charsToRead = Math.min(FILE_LENGTH - count, length); 60 int contentIndex = count % CONTENT.length; 64 if (contentIndex == CONTENT.length) {
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | StringBufferTest.java | 27 int[] expected = new int[s.length()]; 28 for (int i = 0; i < s.length(); ++i) { 41 int[] expected = new int[s.length()]; 42 for (int i = 0; i < s.length(); ++i) {
|
/libcore/luni/src/test/java/libcore/javax/crypto/spec/ |
H A D | KeyFactoryTestRSA.java | 46 byte[] longBuffer = new byte[encoded.length + 147]; 47 System.arraycopy(encoded, 0, longBuffer, 0, encoded.length); 54 byte[] longBuffer = new byte[encoded.length + 147]; 55 System.arraycopy(encoded, 0, longBuffer, 0, encoded.length);
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | GatheringByteChannel.java | 39 * or more fixed-length headers followed by a variable-length body. Similar 64 * + ... + srcs[offset+length-1].remaining()</pre></blockquote> 68 * <p> Suppose that a byte sequence of length <i>n</i> is written, where 95 * larger than <tt>srcs.length</tt> 97 * @param length 100 * <tt>srcs.length</tt> - <tt>offset</tt> 105 * If the preconditions on the <tt>offset</tt> and <tt>length</tt> 127 public long write(ByteBuffer[] srcs, int offset, int length) argument 138 * c.write(srcs, 0, srcs.length);</pr [all...] |
H A D | ScatteringByteChannel.java | 39 * or more fixed-length headers followed by a variable-length body. Similar 64 * + ... + dsts[offset+length-1].remaining()</pre></blockquote> 68 * <p> Suppose that a byte sequence of length <i>n</i> is read, where 90 * larger than <tt>dsts.length</tt> 92 * @param length 95 * <tt>dsts.length</tt> - <tt>offset</tt> 101 * If the preconditions on the <tt>offset</tt> and <tt>length</tt> 123 public long read(ByteBuffer[] dsts, int offset, int length) argument 133 * c.read(dsts, 0, dsts.length);</pr [all...] |
/libcore/ojluni/src/main/java/java/security/cert/ |
H A D | X509CRLEntry.java | 89 if (thisCRLEntry.length != otherCRLEntry.length) 91 for (int i = 0; i < thisCRLEntry.length; i++) 110 for (int i = 1; i < entryData.length; i++)
|
/libcore/ojluni/src/main/java/javax/security/cert/ |
H A D | Certificate.java | 85 if (thisCert.length != otherCert.length) 87 for (int i = 0; i < thisCert.length; i++) 106 for (int i = 1; i < certData.length; i++) {
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | NativeThreadSet.java | 52 if (used >= elts.length) { 53 int on = elts.length; 60 for (int i = start; i < elts.length; i++) { 89 int n = elts.length;
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | UniqueIdentity.java | 58 this.id = new BitArray(id.length*8, id); 99 int excessBits = bytes.length*8 - id.length(); 102 out.putLength(bytes.length + 1);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | CharArrayReaderTest.java | 147 char[] data = new char[str.length()]; 148 str.getChars(0, str.length(), data, 0); 150 int length = data.length - offsetLength; 152 CharArrayReader reader = new CharArrayReader(data, offsetLength, length); 154 for (int i = 0; i < length; i++) { 176 assertEquals(hw.length - 1, cr.skip(Long.MAX_VALUE));
|
H A D | ByteArrayOutputStreamTest.java | 117 bos.write(fileString.getBytes(), 0, fileString.length()); 119 for (int i = 0; i < fileString.length(); i++) { 130 bos.write(fileString.getBytes("UTF-8"), 0, fileString.length()); 135 bos.write(fileString.getBytes("UTF-8"), 0, fileString.length()); 145 bos.write(fileString.getBytes(), 0, fileString.length()); 156 bos.write(fileString.getBytes(), 0, fileString.length()); 158 bos.toString(5).length() == fileString.length()); 169 result.length, "UTF-8")); 180 new String(result, 0, result.length) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | MessageFormatTest.java | 135 assertEquals(correctFormats.length, formats.length); 136 for (int i = 0; i < correctFormats.length; i++) { 147 f1.setFormat(f1.getFormats().length, DateFormat.getDateInstance()); 164 assertTrue("parse operation return array with incorrect length", 1 == res.length); 171 cur[cur.length / 2] = 'Z'; 176 assertTrue("ParseErrorIndex is incorrect", pp.getErrorIndex() == cur.length / 2); 195 assertTrue("No result: " + result.length, result.length [all...] |
/libcore/ojluni/src/main/java/java/io/ |
H A D | PushbackReader.java | 87 if (pos < buf.length) 113 } else if ((off < 0) || (off > cbuf.length)) { 118 int avail = buf.length - pos; 196 unread(cbuf, 0, cbuf.length); 207 return (pos < buf.length) || super.ready(); 268 int avail = buf.length - pos; 274 pos = buf.length;
|
H A D | Console.java | 248 if (fmt.length() != 0) 319 if (fmt.length() != 0) 377 int len = reader.read(rcb, 0, rcb.length); 399 char[] t = new char[rcb.length * 2]; 400 System.arraycopy(rcb, 0, t, 0, rcb.length); 422 public int read(char cbuf[], int offset, int length) argument 426 int end = offset + length; 427 if (offset < 0 || offset > cbuf.length || length < 0 || 428 end < 0 || end > cbuf.length) { [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
H A D | TCKWeekFieldsSerialization.java | 111 byte[] val = Arrays.copyOf(template, template.length); 112 System.arraycopy(good1, 0, val, 105, good1.length); 122 val = Arrays.copyOf(template, template.length); 123 System.arraycopy(bad1, 0, val, 105, bad1.length); 133 val = Arrays.copyOf(template, template.length); 134 System.arraycopy(bad2, 0, val, 105, bad2.length); 145 System.arraycopy(bad3, 0, val, 105 + 4, bad3.length);
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | NullCipherTest.java | 103 assertEquals("different length", b.length, r.length); 113 assertEquals("different length", b.length, r.length); 117 assertEquals("different length", 3, r.length); 165 assertEquals("different length", b.length, [all...] |
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
H A D | ChunkHandler.java | 65 ByteBuffer out = ByteBuffer.allocate(8 + msg.length() * 2); 68 out.putInt(msg.length()); 80 in = ByteBuffer.wrap(request.data, request.offset, request.length); 103 int len = str.length(); 112 if (typeName.length() != 4) {
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
H A D | GCMParameterSpecTest.java | 49 new GCMParameterSpec(8, TEST_IV, 0, TEST_IV.length); 54 new GCMParameterSpec(8, null, 0, TEST_IV.length); 62 new GCMParameterSpec(8, TEST_IV, -1, TEST_IV.length); 70 new GCMParameterSpec(8, TEST_IV, 0, TEST_IV.length + 1); 83 for (int i = 0; i < actual.length; i++) {
|
/libcore/ojluni/src/main/java/java/security/spec/ |
H A D | ECFieldF2m.java | 100 for (int i = this.ks.length-1; i >= 0; i--) { 121 * have length 1 or 3. 128 * is not positive, or the length of {@code ks} 140 if ((this.ks.length != 1) && (this.ks.length != 3)) { 142 ("length of ks is neither 1 nor 3"); 144 for (int i = 0; i < this.ks.length; i++) { 157 for (int j = 0; j < this.ks.length; j++) {
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | Helpers.java | 54 final int size = a.length; 65 charLength += s.length(); 91 int len = s.length(); 96 // assert j == chars.length - 1; 105 new char[(klen = (k = objectToString(key)).length()) + 106 (vlen = (v = objectToString(val)).length()) + 1];
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
H A D | StringTokenIterator.java | 45 if (dlms.length() == 1) { 88 return (end < text.length()); 92 if (offset > text.length()) { 109 int textlen = this.text.length(); 117 int dlmslen = dlms.length();
|
/libcore/ojluni/src/main/java/java/sql/ |
H A D | Timestamp.java | 218 if ((firstDash > 0) && (secondDash > 0) && (secondDash < date_s.length() - 1)) { 222 if (yyyy.length() == YEAR_LENGTH && 223 (mm.length() >= 1 && mm.length() <= MONTH_LENGTH) && 224 (dd.length() >= 1 && dd.length() <= DAY_LENGTH)) { 240 (secondColon < time_s.length()-1)) { 244 if ((period > 0) & (period < time_s.length()-1)) { 248 if (nanos_s.length() > 9) 252 nanos_s = nanos_s + zeros.substring(0,9-nanos_s.length()); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
H A D | BigIntegerCompareTest.java | 40 byte resBytes[] = new byte[rBytes.length]; 42 for(int i = 0; i < resBytes.length; i++) { 57 byte resBytes[] = new byte[rBytes.length]; 59 for(int i = 0; i < resBytes.length; i++) { 306 byte resBytes[] = new byte[rBytes.length]; 308 for(int i = 0; i < resBytes.length; i++) { 327 byte resBytes[] = new byte[rBytes.length]; 329 for(int i = 0; i < resBytes.length; i++) { 348 byte resBytes[] = new byte[rBytes.length]; 350 for(int i = 0; i < resBytes.length; [all...] |