Searched refs:length (Results 151 - 175 of 6515) sorted by relevance

1234567891011>>

/openjdk7/jdk/test/java/lang/String/
H A DSupplementary.java93 {'f', 0xDC00, 0xD800, 0xDC00, 0xDE02, 0xDC10}, // codePointAt(length-1)
102 for (int i = 0; i < input.length; i++) {
110 testCodePoint(At, s, s.length()-1, golden1[2][i]);
117 testCodePoint(At, s, s.length());
132 {'f', 0xDC00, 0xD800, 0x10000, 0xE0202, 0x10010},// codePointBefore(length)
141 for (int i = 0; i < input.length; i++) {
149 testCodePoint(Before, s, s.length(), golden2[2][i]);
156 testCodePoint(Before, s, s.length()+1);
198 for (int i = 0; i < input.length; i++) {
223 for (int i = 0; i < input.length;
[all...]
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/encoding/
H A DCDRInputStream.java182 public final void read_boolean_array(boolean[] value, int offset, int length) { argument
183 impl.read_boolean_array(value, offset, length);
186 public final void read_char_array(char[] value, int offset, int length) { argument
187 impl.read_char_array(value, offset, length);
190 public final void read_wchar_array(char[] value, int offset, int length) { argument
191 impl.read_wchar_array(value, offset, length);
194 public final void read_octet_array(byte[] value, int offset, int length) { argument
195 impl.read_octet_array(value, offset, length);
198 public final void read_short_array(short[] value, int offset, int length) { argument
199 impl.read_short_array(value, offset, length);
202 read_ushort_array(short[] value, int offset, int length) argument
206 read_long_array(int[] value, int offset, int length) argument
210 read_ulong_array(int[] value, int offset, int length) argument
214 read_longlong_array(long[] value, int offset, int length) argument
218 read_ulonglong_array(long[] value, int offset, int length) argument
222 read_float_array(float[] value, int offset, int length) argument
226 read_double_array(double[] value, int offset, int length) argument
313 read_any_array(org.omg.CORBA.AnySeqHolder seq, int offset, int length) argument
317 read_boolean_array(org.omg.CORBA.BooleanSeqHolder seq, int offset, int length) argument
321 read_char_array(org.omg.CORBA.CharSeqHolder seq, int offset, int length) argument
325 read_wchar_array(org.omg.CORBA.WCharSeqHolder seq, int offset, int length) argument
329 read_octet_array(org.omg.CORBA.OctetSeqHolder seq, int offset, int length) argument
333 read_short_array(org.omg.CORBA.ShortSeqHolder seq, int offset, int length) argument
337 read_ushort_array(org.omg.CORBA.UShortSeqHolder seq, int offset, int length) argument
341 read_long_array(org.omg.CORBA.LongSeqHolder seq, int offset, int length) argument
345 read_ulong_array(org.omg.CORBA.ULongSeqHolder seq, int offset, int length) argument
349 read_ulonglong_array(org.omg.CORBA.ULongLongSeqHolder seq, int offset, int length) argument
353 read_longlong_array(org.omg.CORBA.LongLongSeqHolder seq, int offset, int length) argument
357 read_float_array(org.omg.CORBA.FloatSeqHolder seq, int offset, int length) argument
361 read_double_array(org.omg.CORBA.DoubleSeqHolder seq, int offset, int length) argument
[all...]
/openjdk7/jdk/test/java/text/BreakIterator/
H A DExceptionTest.java52 int length = text.length();
57 for (int i = 0; i <= length; i++) {
58 if (i == length) {
64 for (int i = -length; i < 0; i++) {
69 for (int i = 1; i < length; i++) {
70 checkFollowingException(bi, length + i);
71 checkFollowingException(mirror, length + i);
78 for (int i = length; i >= 0; i--) {
85 for (int i = -length;
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/xs/
H A DSchemaNamespaceSupport.java45 if (fNamespace.length < fNamespaceSize)
49 if (fContext.length <= fCurrentContext)
66 if(namespaceDecls == null || namespaceDecls.length == 0) return;
68 int newSize = fNamespaceSize + namespaceDecls.length;
69 if (fNamespace.length < newSize) {
72 System.arraycopy(fNamespace, 0, tempNSArray, 0, fNamespace.length);
76 namespaceDecls.length);
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/ior/
H A DByteBuffer.java32 * stored. The capacity of the ByteBuffer is the length of this array buffer,
107 int oldCapacity = elementData.length;
124 int oldCapacity = elementData.length;
140 * @return the current capacity (the length of its internal
145 return elementData.length;
193 ensureCapacityHelper( elementCount + data.length + 4 ) ;
194 doAppend( data.length ) ;
195 System.arraycopy( data, 0, elementData, elementCount, data.length ) ;
196 elementCount += data.length ;
/openjdk7/jdk/src/share/classes/javax/smartcardio/
H A DResponseAPDU.java63 * @throws IllegalArgumentException if apdu.length is less than 2
72 if (apdu.length < 2) {
80 * <code>getData().length</code>.
86 return apdu.length - 2;
91 * no body, this method returns a byte array with a length of zero.
97 byte[] data = new byte[apdu.length - 2];
98 System.arraycopy(apdu, 0, data, 0, data.length);
108 return apdu[apdu.length - 2] & 0xff;
117 return apdu[apdu.length - 1] & 0xff;
147 return "ResponseAPDU: " + apdu.length
[all...]
/openjdk7/jdk/src/share/classes/java/security/
H A DMessageDigestSpi.java37 * fixed-length hash value.
57 * Returns the digest length in bytes.
65 * length.
67 * @return the digest length in bytes.
119 if ((tempArray == null) || (n > tempArray.length)) {
123 int chunk = Math.min(len, tempArray.length);
163 * than the actual digest length, the method will throw a DigestException.
165 * the actual digest length.
167 * @return the length of the digest stored in the output buffer.
177 if (len < digest.length)
[all...]
/openjdk7/jdk/src/share/classes/javax/imageio/plugins/jpeg/
H A DJPEGQTable.java133 qTable = (copy) ? Arrays.copyOf(table, table.length) : table;
142 * <code>null</code> or <code>table.length</code> is not equal to 64.
148 if (table.length != 64) {
149 throw new IllegalArgumentException("table.length != 64");
151 qTable = Arrays.copyOf(table, table.length);
160 return Arrays.copyOf(qTable, qTable.length);
180 int[] scaledTable = new int[qTable.length];
181 for (int i=0; i<qTable.length; i++) {
201 for (int i=0; i < qTable.length; i++) {
/openjdk7/jdk/src/share/classes/javax/naming/
H A DBinaryRefAddr.java81 this(addrType, src, 0, src.length);
92 * 0 <= offset <= src.length.
94 * 0 <= count <= src.length-offset.
130 buf.length != target.buf.length)
132 for (int i = 0; i < buf.length; i++)
152 for (int i = 0; i < buf.length; i++) {
171 for (int i = 0; i<buf.length && i < 32; i++) {
174 if (buf.length >= 32)
/openjdk7/hotspot/src/share/vm/gc_implementation/g1/
H A DheapRegionSeq.hpp47 // * _length (returned by length()) is the number of currently
87 // Find a contiguous set of empty regions of length num, starting
95 void increment_length(uint* length) { argument
96 assert(*length < _max_length, "pre-condition");
97 *length += 1;
100 void decrement_length(uint* length) {
101 assert(*length > 0, "pre-condition");
102 *length -= 1;
124 uint length() const { return _length; } function in class:HeapRegionSeq
142 // Find a contiguous set of empty regions of length nu
[all...]
/openjdk7/hotspot/src/share/vm/oops/
H A DobjArrayOop.hpp47 static int array_size(int length) { argument
55 // oop->length() * HeapWordsPerOop;
61 old_res = length * HeapWordsPerOop;
63 old_res = align_size_up(length, OopsPerHeapWord)/OopsPerHeapWord;
66 int res = ((uint)length + OopsPerHeapWord - 1)/OopsPerHeapWord;
100 int object_size() { return object_size(length()); }
102 static int object_size(int length) { argument
104 uint asz = array_size(length);
/openjdk7/jdk/src/share/classes/java/awt/font/
H A DCharArrayIterator.java66 if (chars.length > 0) {
67 pos = chars.length-1;
83 if (pos >= 0 && pos < chars.length) {
101 if (pos < chars.length-1) {
106 pos = chars.length;
141 if (position < 0 || position > chars.length) {
162 return begin+chars.length;
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DSessionId.java60 /** Returns the length of the ID, in bytes */
61 int length () method in class:SessionId
62 { return sessionId.length; }
73 int len = sessionId.length;
92 for (int i = 0; i < sessionId.length; i++)
106 if (b.length != sessionId.length)
108 for (int i = 0; i < sessionId.length; i++) {
/openjdk7/jdk/src/share/classes/sun/tools/tree/
H A DVset.java102 if (x.length > 0) {
103 vs.growX(x.length); // recopy the extension vector
108 private void growX(int length) { argument
109 long newX[] = new long[length];
111 for (int i = 0; i < oldX.length; i++) {
168 if (i >= x.length) {
187 if (i >= x.length) {
210 if (i >= x.length) {
214 if (i+1 < x.length) {
239 if (i >= x.length) {
[all...]
/openjdk7/jdk/test/java/util/Locale/
H A Dbug4123285.java32 System.out.println("Found " + systemLocales.length + " locales:");
33 Locale[] locales = new Locale[systemLocales.length];
34 for (int i = 0; i < locales.length; i++) {
36 for (int j = 0; j < systemLocales.length; j++) {
44 for (int i = 0; i < locales.length; i++) {
45 if (locales[i].getCountry().length() == 0)
48 if (locales[i].getVariant().length() == 0)
/openjdk7/jdk/src/share/classes/sun/io/
H A DByteToCharConverter.java150 * to determine the length of the invalid input.
162 char[] output = new char[ getMaxCharsPerByte() * input.length ];
165 int outputLength = convert( input, 0, input.length,
166 output, 0, output.length );
167 outputLength += flush( output, outputLength, output.length );
222 * Returns the length, in bytes, of the input which caused a
280 if( c.length > getMaxCharsPerByte() ) {
284 subChars = new char[ c.length ];
285 System.arraycopy( c, 0, subChars, 0, c.length );
/openjdk7/jdk/src/share/sample/nio/server/
H A DFileContent.java81 private long length = -1; field in class:FileContent
84 public long length() { method in class:FileContent
85 return length;
91 length = fc.size();
104 if (position >= length) {
108 position += cio.transferTo(fc, position, length - position);
109 return (position < length);
/openjdk7/jdk/src/share/classes/java/io/
H A DCharArrayReader.java58 this.count = buf.length;
66 * read from this reader will be either <tt>length</tt> or
67 * <tt>buf.length-offset</tt>, whichever is smaller.
71 * <tt>buf.length</tt>, or if <tt>length</tt> is negative, or if
76 * @param length Number of chars to read
78 public CharArrayReader(char buf[], int offset, int length) { argument
79 if ((offset < 0) || (offset > buf.length) || (length < 0) ||
80 ((offset + length) <
[all...]
H A DOutputStream.java65 * Writes <code>b.length</code> bytes from the specified byte array
68 * <code>write(b, 0, b.length)</code>.
75 write(b, 0, b.length);
96 * <code>off+len</code> is greater than the length of the array
109 } else if ((off < 0) || (off > b.length) || (len < 0) ||
110 ((off + len) > b.length) || ((off + len) < 0)) {
/openjdk7/jdk/src/share/classes/java/nio/
H A DMappedByteBuffer.java138 long length = mappingLength(offset);
139 return isLoaded0(mappingAddress(offset), length, Bits.pageCount(length));
160 long length = mappingLength(offset);
161 load0(mappingAddress(offset), length);
168 int count = Bits.pageCount(length);
208 private native boolean isLoaded0(long address, long length, int pageCount); argument
209 private native void load0(long address, long length); argument
210 private native void force0(FileDescriptor fd, long address, long length); argument
/openjdk7/jdk/src/share/classes/javax/management/remote/rmi/
H A DNoCallStackClassLoader.java97 if (classNames == null || classNames.length == 0
98 || byteCodes == null || classNames.length != byteCodes.length
101 for (int i = 0; i < classNames.length; i++) {
105 for (int i = 0; i < referencedClassNames.length; i++) {
123 for (int i = 0; i < classNames.length; i++) {
126 byteCodes[i].length, protectionDomain);
135 for (int i = 0; i < referencedClassNames.length; i++) {
160 * contain two bytes. The resultant output length is much the
167 * file length i
[all...]
/openjdk7/jdk/src/share/classes/com/sun/security/sasl/
H A DPlainClient.java108 byte[] answer = new byte[pw.length + auth.length + 2 +
109 (authz == null ? 0 : authz.length)];
113 System.arraycopy(authz, 0, answer, 0, authz.length);
114 pos = authz.length;
117 System.arraycopy(auth, 0, answer, pos, auth.length);
119 pos += auth.length;
122 System.arraycopy(pw, 0, answer, pos, pw.length);
195 for (int i = 0; i < pw.length; i++) {
/openjdk7/corba/src/share/classes/com/sun/tools/corba/se/logutil/
H A DStringUtil.java35 StringBuffer sbuf = new StringBuffer( str.length() ) ;
37 for (int ctr=0; ctr<str.length(); ctr++) {
56 for( int ctr = 0; ctr<str.length(); ctr++ )
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/
H A DHistoryComboBox.java61 int length = getModel().getSize();
62 while (length > HISTORY_LENGTH) {
63 removeItemAt(--length);
/openjdk7/jdk/src/share/classes/sun/awt/image/
H A DByteArrayImageSource.java38 this(data, 0, data.length);
41 public ByteArrayImageSource(byte[] data, int offset, int length) { argument
44 imagelength = length;

Completed in 503 milliseconds

1234567891011>>