Searched refs:length (Results 126 - 150 of 1415) sorted by relevance

1234567891011>>

/libcore/ojluni/src/main/java/java/text/
H A DBidi.java126 paragraph.length(), translateConstToIcu(flags));
174 * @param paragraphLength the length of the paragraph in the text and embeddings arrays.
185 throw new IllegalArgumentException("bad length: " + paragraphLength);
187 if (textStart < 0 || paragraphLength > text.length - textStart) {
189 " length: " + paragraphLength +
190 " for text of length: " + text.length);
192 if (embeddings != null && (embStart < 0 || paragraphLength > embeddings.length - embStart)) {
194 " length: " + paragraphLength +
195 " for embeddings of length
[all...]
/libcore/ojluni/src/main/java/sun/net/
H A DTelnetOutputStream.java128 * <i>length</i> bytes.
130 public void write(byte bytes[], int off, int length) throws IOException { argument
132 super.write(bytes, off, length);
136 while (--length >= 0) {
/libcore/luni/src/main/java/java/math/
H A DPrimality.java30 /** All prime numbers with bit length lesser than 10 bits. */
46 /** All {@code BigInteger} prime numbers with bit length lesser than 10 bits. */
47 private static final BigInteger BIprimes[] = new BigInteger[primes.length];
72 for (int i = 0; i < primes.length; i++) {
90 int[] modules = new int[primes.length];
96 if (l < primes[primes.length - 1]) {
115 for (i = 0; i < primes.length; i++) {
123 for (i = 0; i < primes.length; i++) {
/libcore/luni/src/test/java/libcore/java/util/
H A DWeakHashMapTest.java31 for(int i = 0; i < data.length; i++) {
36 for(int i = 0; i < data.length; i++) {
59 for(int i = 0; i < data.length; i++) {
65 for(int i = 0; i < data.length; i++) {
68 assertEquals(data.length, map.size());
72 for (int i = 0; i < data.length; i++) {
H A DOldListIteratorTest.java32 for (int i = 0; i < objArray.length; i++)
37 for (int i = 0; i < objArray.length; i++) {
45 for (int i = 0; i < objArray.length; i++) {
106 for (int i = 0; i < objArray.length; i++) {
130 for (int i = 0; i < objArray.length; i++) {
147 for (int i = objArray.length - 1; i > -1 ; i--) {
160 for (int i = 0; i < objArray.length; i++) {
167 for (int i = 0; i < objArray.length; i++) {
181 for (int i = 0; i < objArray.length; i++) {
183 l.set((Integer)objArray[objArray.length
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
H A DTCKValueRangeSerialization.java146 byte[] val = Arrays.copyOf(template, template.length);
147 System.arraycopy(bad1, 0, val, 114, bad1.length);
157 val = Arrays.copyOf(template, template.length);
158 System.arraycopy(bad1, 0, val, 114, bad2.length);
168 val = Arrays.copyOf(template, template.length);
169 System.arraycopy(bad1, 0, val, 114, bad3.length);
/libcore/ojluni/src/main/java/java/util/
H A DArrays.java75 * The minimum array length below which a parallel sorting
161 DualPivotQuicksort.sort(a, 0, a.length - 1, null, 0, 0);
182 * if {@code fromIndex < 0} or {@code toIndex > a.length}
185 rangeCheck(a.length, fromIndex, toIndex);
201 DualPivotQuicksort.sort(a, 0, a.length - 1, null, 0, 0);
222 * if {@code fromIndex < 0} or {@code toIndex > a.length}
225 rangeCheck(a.length, fromIndex, toIndex);
241 DualPivotQuicksort.sort(a, 0, a.length - 1, null, 0, 0);
262 * if {@code fromIndex < 0} or {@code toIndex > a.length}
265 rangeCheck(a.length, fromInde
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
H A DBigIntegerNotTest.java43 byte resBytes[] = new byte[rBytes.length];
45 for(int i = 0; i < resBytes.length; i++) {
63 byte resBytes[] = new byte[rBytes.length];
65 for(int i = 0; i < resBytes.length; i++) {
83 byte resBytes[] = new byte[rBytes.length];
85 for(int i = 0; i < resBytes.length; i++) {
103 byte resBytes[] = new byte[rBytes.length];
105 for(int i = 0; i < resBytes.length; i++) {
118 byte resBytes[] = new byte[rBytes.length];
120 for(int i = 0; i < resBytes.length;
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/callback/
H A DPasswordCallbackTest.java85 assertEquals(psw1.length, pc.getPassword().length);
90 assertEquals(psw2.length, res.length);
91 for (int i = 0; i < res.length; i++) {
101 assertEquals(psw1.length, res.length);
102 for (int i = 0; i < res.length; i++) {
/libcore/luni/src/test/java/libcore/java/io/
H A DOldBufferedWriterTest.java133 int idx = sw.toString().length();
134 bw.write(testCharArray, 0, testCharArray.length);
135 assertEquals(idx + testCharArray.length, sw.toString().length());
137 assertEquals(idx + testCharArray.length, sw.toString().length());
138 bw.write(testCharArray, testCharArray.length, 0);
139 assertEquals(idx + testCharArray.length, sw.toString().length());
172 bw.write(charArray, charArray.length
[all...]
H A DOldSequenceInputStreamTest.java34 assertEquals("Returned incorrect number of bytes!", s1.length(), si.available());
37 si.available() == s1.length());
187 assertEquals(s1.length(), sequenceInputStream1.read(buf, 0, s1.length()));
188 assertEquals(s1, new String(buf, 0, s1.length()));
189 assertEquals(s2.length(), sequenceInputStream1.read(buf, 0, s2.length()));
190 assertEquals(s2, new String(buf, 0, s2.length()));
191 assertEquals(-1, sequenceInputStream1.read(buf, 0, s1.length()));
196 for (int i=0;i < s1.length();
[all...]
/libcore/luni/src/test/java/tests/support/
H A DMockCallback.java26 for (int i = 0; i <= cols.length; i++) {
34 for (int i = 0; i <= cols.length; i++) {
/libcore/ojluni/src/main/java/java/lang/
H A DStringIndexOutOfBoundsException.java79 this(s.length(), index);
87 super("length=" + sourceLength + "; index=" + index);
95 this(s.length(), offset, count);
104 super("length=" + sourceLength + "; regionStart=" + offset
/libcore/ojluni/src/main/java/javax/crypto/spec/
H A DDESedeKeySpec.java40 * The constant which defines the length of a DESede key in bytes.
84 if (key.length - offset < 24) {
116 if (key.length - offset < 24) {
/libcore/ojluni/src/main/java/sun/misc/
H A DCharacterDecoder.java158 int length;
161 length = decodeLinePrefix(ps, bStream);
162 for (i = 0; (i+bytesPerAtom()) < length; i += bytesPerAtom()) {
166 if ((i + bytesPerAtom()) == length) {
170 decodeAtom(ps, bStream, length - i);
171 totalBytes += (length - i);
187 byte inputBuffer[] = new byte[inputString.length()];
191 inputString.getBytes(0, inputString.length(), inputBuffer, 0);
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DRandomImpl.java42 for (int i = 0; i < bytes.length; i++) {
50 for (int i = 0; i < b.length; i++) {
/libcore/ojluni/src/main/java/java/io/
H A DPipedInputStream.java213 if (in >= buffer.length) {
237 nextTransferAmount = buffer.length - in;
241 nextTransferAmount = buffer.length - in;
253 if (in >= buffer.length) {
339 if (out >= buffer.length) {
369 * <code>b.length - off</code>
377 } else if (off < 0 || len < 0 || len > b.length - off) {
395 available = Math.min((buffer.length - out), (in - out));
397 available = buffer.length - out;
409 if (out >= buffer.length) {
[all...]
/libcore/ojluni/src/main/java/java/sql/
H A DPreparedStatement.java312 * @param length the number of bytes in the stream
317 void setAsciiStream(int parameterIndex, java.io.InputStream x, int length) argument
340 * @param length the number of bytes in the stream
350 int length) throws SQLException;
366 * @param length the number of bytes in the stream
372 int length) throws SQLException;
516 * @param length the number of characters in the stream
524 int length) throws SQLException;
798 * @param length the number of characters in the parameter data.
807 void setNCharacterStream(int parameterIndex, Reader value, long length) throw argument
349 setUnicodeStream(int parameterIndex, java.io.InputStream x, int length) argument
371 setBinaryStream(int parameterIndex, java.io.InputStream x, int length) argument
522 setCharacterStream(int parameterIndex, java.io.Reader reader, int length) argument
843 setClob(int parameterIndex, Reader reader, long length) argument
870 setBlob(int parameterIndex, InputStream inputStream, long length) argument
894 setNClob(int parameterIndex, Reader reader, long length) argument
995 setAsciiStream(int parameterIndex, java.io.InputStream x, long length) argument
1017 setBinaryStream(int parameterIndex, java.io.InputStream x, long length) argument
1041 setCharacterStream(int parameterIndex, java.io.Reader reader, long length) argument
[all...]
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixPath.java77 int n = input.length();
103 StringBuilder sb = new StringBuilder(input.length());
132 byte[] ba = new byte[(int)(ca.length * (double)ce.maxBytesPerChar())];
151 // trim result to actual length if required
153 if (len != ba.length)
216 while (index < path.length) {
220 while (index < path.length && path[index] != '/')
230 while (index < path.length) {
236 while (index < path.length && path[index] != '/')
249 return path.length
[all...]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
H A DDoubleStreamTestDataProvider.java49 for (int i = 0; i < arr.length; i++) {
53 for (int i = 0; i < reversed.length; i++) {
54 reversed[i] = reversed.length - i;
56 for (int i = 0; i < ones.length; i++) {
59 System.arraycopy(to100, 0, twice, 0, to100.length);
60 System.arraycopy(to100, 0, twice, to100.length, to100.length);
61 pseudoRandom = new double[LambdaTestHelpers.LONG_STRING.length()];
62 for (int i = 0; i < LambdaTestHelpers.LONG_STRING.length(); i++) {
113 () -> Arrays.spliterator(doubles, 0, doubles.length /
[all...]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
H A DDoubleStreamTestDataProvider.java53 for (int i = 0; i < arr.length; i++) {
57 for (int i = 0; i < reversed.length; i++) {
58 reversed[i] = reversed.length - i;
60 for (int i = 0; i < ones.length; i++) {
63 System.arraycopy(to100, 0, twice, 0, to100.length);
64 System.arraycopy(to100, 0, twice, to100.length, to100.length);
65 pseudoRandom = new double[LambdaTestHelpers.LONG_STRING.length()];
66 for (int i = 0; i < LambdaTestHelpers.LONG_STRING.length(); i++) {
118 () -> Arrays.spliterator(doubles, 0, doubles.length /
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DLocaleTest.java134 assertTrue("Wrong number of locales: " + locales.length, locales.length > 10);
138 assertEquals(localesSet.size(), locales.length);
282 int length = isoCountries.length;
284 for (int i = 0; i < length; i++) {
285 if (isoCountries[i].length() != 2) {
293 assertTrue("ISOCountries missing.", familiarCount == 4 && length > 230);
304 int length = isoLang.length;
[all...]
/libcore/ojluni/src/main/java/sun/security/x509/
H A DRDN.java125 if (avaString.length() == 0) {
145 if (avaString.length() == 0) {
203 if (avaString.length() == 0) {
221 if (avaString.length() == 0) {
244 assertion = new AVA[avaset.length];
245 for (int i = 0; i < avaset.length; i++) {
267 for (int i = 0; i < assertion.length; i++) {
290 return assertion.length;
301 if (this.assertion.length != other.assertion.length) {
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DDnsBenchmark.java43 InetAddress.getByName(hosts[i % hosts.length]);
H A DXmlEntitiesBenchmark.java31 @Param({"10", "100", "1000"}) int length; field in class:XmlEntitiesBenchmark
47 for (int i = 0; i < (length * entityFraction); i++) {
50 while (xmlBuilder.length() < length) {

Completed in 1831 milliseconds

1234567891011>>