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

1234567891011>>

/openjdk7/jdk/test/java/util/Locale/
H A Dbug4122700.java34 if (systemLocales.length == 0)
36 System.out.println("Found " + systemLocales.length + " locales:");
37 Locale[] locales = new Locale[systemLocales.length];
38 for (int i = 0; i < locales.length; i++) {
40 for (int j = 0; j < systemLocales.length; j++) {
48 for (int i = 0; i < locales.length; i++) {
49 if (locales[i].getCountry().length() == 0)
52 if (locales[i].getVariant().length() == 0)
H A DHashCodeTest.java36 Map map = new HashMap(locales.length);
39 for (int i = 0; i < locales.length; i++) {
52 System.out.println(locales.length+" locales: conflicts="+conflicts
54 if (conflicts >= (locales.length / 10)) {
56 + " per " + locales.length + " locales");
/openjdk7/jdk/test/javax/security/auth/x500/X500Principal/
H A DDerIsConstructor.java48 byte[] all = new byte[encoded.length + encoded2.length];
49 System.arraycopy(encoded, 0, all, 0, encoded.length);
50 System.arraycopy(encoded2, 0, all, encoded.length, encoded2.length);
66 byte[] all2 = new byte[all.length];
67 System.arraycopy(all, 0, all2, 0, all.length);
68 all2[encoded.length + 2] = (byte)-1;
/openjdk7/jdk/test/sun/management/jmxremote/bootstrap/
H A DUtils.java36 if (fileSeparator.length() == 1 && fileSeparator.charAt(0) == '/') {
41 for (int i = 0; i < cs.length; i++) {
/openjdk7/langtools/test/tools/javac/generics/
H A DRelaxedArrays.java42 return tl.length == 0 ? null : tl[tl.length - 1];
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/sax/
H A DSAXDocumentSerializer.java165 public final void characters(char[] ch, int start, int length) throws SAXException { argument
166 if (length <= 0) {
171 isWhiteSpace(ch, start, length)) return;
177 encodeCharacters(ch, start, length);
179 encodeCIIBuiltInAlgorithmDataAsCDATA(ch, start, length);
188 public final void ignorableWhitespace(char[] ch, int start, int length) throws SAXException { argument
191 characters(ch, start, length);
198 if (target.length() == 0) {
220 public final void comment(char[] ch, int start, int length) throws SAXException { argument
226 encodeComment(ch, start, length);
265 octets(String URI, int id, byte[] b, int start, int length) argument
296 bytes(byte[] b, int start, int length) argument
310 shorts(short[] s, int start, int length) argument
326 ints(int[] i, int start, int length) argument
342 longs(long[] l, int start, int length) argument
358 booleans(boolean[] b, int start, int length) argument
374 floats(float[] f, int start, int length) argument
390 doubles(double[] d, int start, int length) argument
406 uuids(long[] msblsb, int start, int length) argument
425 numericCharacters(char ch[], int start, int length) argument
442 dateTimeCharacters(char ch[], int start, int length) argument
459 alphabetCharacters(String alphabet, char ch[], int start, int length) argument
478 characters(char[] ch, int start, int length, boolean index) argument
[all...]
/openjdk7/jdk/test/sun/security/util/BitArray/
H A DNamedBitList.java50 // length should be 5 since only {T,F,T} should be encoded
52 check(new DerValue(x1.getExtensionValue()).getUnalignedBitString().length(), 3);
55 check(new DerValue(x2.getExtensionValue()).getUnalignedBitString().length(), 3);
60 check(new DerValue(out.toByteArray()).getUnalignedBitString().length(), 3);
73 // length should be 5 since only {T,F,T} should be encoded
74 check(v2.getUnalignedBitString().length(), 3);
78 check(ba.length(), 3);
80 check(ba.length(), 1);
85 check(ba.length(), 10);
86 check(ba.toByteArray().length,
[all...]
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DDESedeWrapCipher.java124 * Returns the length in bytes that an output buffer would need to be
125 * given the input length <code>inputLen</code> (in bytes).
127 * <p>The actual output length of the next <code>update</code> or
128 * <code>doFinal</code> call may be smaller than the length returned
131 * @param inputLen the input length (in bytes).
302 * @param inLen the input length.
321 * @param inLen the input length.
345 * @param inLen the input length.
365 * @param inLen the input length.
425 if (encoded.length !
[all...]
H A DAESWrapCipher.java115 * Returns the length in bytes that an output buffer would need to be
116 * given the input length <code>inputLen</code> (in bytes).
118 * <p>The actual output length of the next <code>update</code> or
119 * <code>doFinal</code> call may be smaller than the length returned
122 * @param inputLen the input length (in bytes)
248 * @param inLen the input length.
267 * @param inLen the input length.
291 * @param inLen the input length.
312 * @param inLen the input length.
349 if (!AESCrypt.isKeySizeValid(encoded.length)) {
[all...]
/openjdk7/jdk/src/share/classes/javax/security/auth/callback/
H A DChoiceCallback.java89 * if <code>prompt</code> has a length of 0,
91 * if <code>choices</code> has a length of 0,
94 * has a length of 0 or if <code>defaultChoice</code>
101 if (prompt == null || prompt.length() == 0 ||
102 choices == null || choices.length == 0 ||
103 defaultChoice < 0 || defaultChoice >= choices.length)
106 for (int i = 0; i < choices.length; i++) {
107 if (choices[i] == null || choices[i].length() == 0)
/openjdk7/hotspot/test/compiler/7088020/
H A DTest7088020.java50 if (wmt.getStackTrace().length < 1) throw new InternalError("missing stack frames");
56 if (wmt.getStackTrace().length < 1) throw new InternalError("missing stack frames");
62 if (wmt.getStackTrace().length < 1) throw new InternalError("missing stack frames");
68 if (wmt.getStackTrace().length < 1) throw new InternalError("missing stack frames");
74 if (wmt.getStackTrace().length < 1) throw new InternalError("missing stack frames");
/openjdk7/hotspot/src/share/vm/utilities/
H A Dutf8.hpp35 // returns the unicode length of a 0-terminated uft8 string
38 // returns the unicode length of a non-0-terminated uft8 string
54 static const jbyte* strrchr(const jbyte* base, int length, jbyte c);
72 // returns the utf8 length of a unicode string
73 static int utf8_length(jchar* base, int length);
76 static void convert_to_utf8(const jchar* base, int length, char* utf8_buffer);
80 static char* as_utf8(jchar* base, int length);
81 static char* as_utf8(jchar* base, int length, char* buf, int buflen);
/openjdk7/hotspot/test/compiler/6636138/
H A DTest2.java36 for (int i = 0; i < src.length; i++)
42 for (int i = src.length-1; i > 0; i--){
50 for (int i = 0; i < src.length; i++){
51 int value = (i-1 + src.length)%src.length; // correct value after shifting
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/util/
H A DCharArrayString.java42 length = ch.length;
63 if (length == cha.length) {
64 int n = length;
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/util/
H A DByteArrayDataSource.java47 this(buf,0,buf.length,contentType);
49 public ByteArrayDataSource(byte[] buf, int length, String contentType) { argument
50 this(buf,0,length,contentType);
52 public ByteArrayDataSource(byte[] buf, int start, int length, String contentType) { argument
55 this.len = length;
/openjdk7/langtools/test/com/sun/javadoc/testTagInheritence/
H A DTestTagInheritence.java54 for (int i = 1; i < tests.length-2; i++) {
60 tests[tests.length - 2][0] =BUG_ID + FS + "firstSentence" + FS +
62 tests[tests.length - 2][1] = "<div class=\"block\">First sentence.</div>";
65 tests[tests.length - 1][0] =BUG_ID + FS + "firstSentence2" + FS +
67 tests[tests.length - 1][1] = "<div class=\"block\">First sentence.</div>";
/openjdk7/jdk/src/share/classes/java/math/
H A DBitSieve.java56 private int length; field in class:BitSieve
68 * constructor, BitSieve(BigInteger base, int searchLen). The length
72 * for primality. The length was chosen experimentally to yield good
76 length = 150 * 64;
77 bits = new long[(unitIndex(length - 1) + 1)];
86 sieveSingle(length, nextIndex + nextPrime, nextPrime);
87 nextIndex = sieveSearch(length, nextIndex + 1);
89 } while((nextIndex > 0) && (nextPrime < length));
106 length = searchLen;
109 int step = smallSieve.sieveSearch(smallSieve.length, star
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/parser/
H A DWhitespaceStripper.java63 public void characters(char[] ch, int start, int length) throws SAXException { argument
70 if( bufLen+length>buf.length ) {
72 char[] newBuf = new char[Math.max(bufLen+length,buf.length*2)];
76 System.arraycopy(ch,start,buf,bufLen,length);
77 bufLen += length;
81 int len = start+length;
84 super.characters(ch, start, length);
119 public void ignorableWhitespace(char[] ch, int start, int length) throw argument
[all...]
/openjdk7/jdk/test/java/lang/StringBuffer/
H A DSupplementary.java77 {'f', 0xDC00, 0xD800, 0xDC00, 0xDE02}, // codePointAt(length-1)
85 for (int i = 0; i < input.length; i++) {
93 testCodePoint(At, sb, sb.length()-1, golden1[2][i]);
99 testCodePoint(At, sb, sb.length());
114 {'f', 0xDC00, 0xD800, 0x10000, 0xE0202}, // codePointBefore(length)
122 for (int i = 0; i < input.length; i++) {
130 testCodePoint(Before, sb, sb.length(), golden2[2][i]);
136 testCodePoint(Before, sb, sb.length()+1);
175 for (int i = 0; i < input.length; i++) {
183 for (int i = 0; i < testdata1.length;
[all...]
/openjdk7/jdk/test/java/lang/StringBuilder/
H A DSupplementary.java77 {'f', 0xDC00, 0xD800, 0xDC00, 0xDE02}, // codePointAt(length-1)
85 for (int i = 0; i < input.length; i++) {
93 testCodePoint(At, sb, sb.length()-1, golden1[2][i]);
99 testCodePoint(At, sb, sb.length());
114 {'f', 0xDC00, 0xD800, 0x10000, 0xE0202}, // codePointBefore(length)
122 for (int i = 0; i < input.length; i++) {
130 testCodePoint(Before, sb, sb.length(), golden2[2][i]);
136 testCodePoint(Before, sb, sb.length()+1);
175 for (int i = 0; i < input.length; i++) {
183 for (int i = 0; i < testdata1.length;
[all...]
/openjdk7/jdk/src/share/native/sun/awt/libpng/
H A Dpngrio.c60 png_read_data(png_structp png_ptr, png_bytep data, png_size_t length) argument
62 png_debug1(4, "reading %d bytes", (int)length);
65 (*(png_ptr->read_data_fn))(png_ptr, data, length);
79 png_default_read_data(png_structp png_ptr, png_bytep data, png_size_t length) argument
89 check = fread(data, 1, length, (png_FILE_p)png_ptr->io_ptr);
91 if (check != length)
104 png_default_read_data(png_structp png_ptr, png_bytep data, png_size_t length) argument
119 check = fread(n_data, 1, length, io_ptr);
127 remaining = length;
147 if ((png_uint_32)check != (png_uint_32)length)
[all...]
/openjdk7/jdk/src/share/native/java/nio/
H A DBits.c39 * if (length > MBYTE)
42 * size = length;
46 * size = (length > MBYTE ? MBYTE : length);
72 jlong srcPos, jlong dstAddr, jlong length)
81 while (length > 0) {
83 if (length > MBYTE)
86 size = (size_t)length;
99 length -= size;
107 jobject dst, jlong dstPos, jlong length)
71 Java_java_nio_Bits_copyFromShortArray(JNIEnv *env, jobject this, jobject src, jlong srcPos, jlong dstAddr, jlong length) argument
106 Java_java_nio_Bits_copyToShortArray(JNIEnv *env, jobject this, jlong srcAddr, jobject dst, jlong dstPos, jlong length) argument
141 Java_java_nio_Bits_copyFromIntArray(JNIEnv *env, jobject this, jobject src, jlong srcPos, jlong dstAddr, jlong length) argument
176 Java_java_nio_Bits_copyToIntArray(JNIEnv *env, jobject this, jlong srcAddr, jobject dst, jlong dstPos, jlong length) argument
211 Java_java_nio_Bits_copyFromLongArray(JNIEnv *env, jobject this, jobject src, jlong srcPos, jlong dstAddr, jlong length) argument
246 Java_java_nio_Bits_copyToLongArray(JNIEnv *env, jobject this, jlong srcAddr, jobject dst, jlong dstPos, jlong length) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DP11Util.java102 if ((offset == 0) && (len == input.length)) {
118 byte[] b = new byte[b1.length + b2.length];
119 System.arraycopy(b1, 0, b, 0, b1.length);
120 System.arraycopy(b2, 0, b, b1.length, b2.length);
125 if (b1.length == 0) {
128 long[] b = new long[b1.length + b2.length];
129 System.arraycopy(b1, 0, b, 0, b1.length);
[all...]
/openjdk7/jdk/src/share/classes/com/sun/jmx/snmp/
H A DSnmpStringFixed.java36 * Represents an SNMP String defined with a fixed length.
75 * with the specified length.
76 * @param l The length of the fixed-string.
78 * @exception IllegalArgumentException Either the length or the <CODE>byte</CODE> array is not valid.
84 int length = Math.min(l, v.length);
86 for (int i = 0 ; i < length ; i++) {
89 for (int i = length ; i < l ; i++) {
96 * with the specified length.
97 * @param l The length o
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/serializer/
H A DToTextStream.java191 * @param length The number of characters to read from the array.
197 public void characters(char ch[], int start, int length) argument
217 m_writer.write(ch, start, length);
221 writeNormalizedChars(ch, start, length, m_lineSepUse);
225 super.fireCharEvent(ch, start, length);
239 * @param length The number of characters to read from the array.
244 public void charactersRaw(char ch[], int start, int length) argument
250 writeNormalizedChars(ch, start, length, m_lineSepUse);
265 * @param length The number of characters to read from the array.
275 final int length,
272 writeNormalizedChars( final char ch[], final int start, final int length, final boolean useLineSep) argument
379 cdata(char ch[], int start, int length) argument
420 ignorableWhitespace(char ch[], int start, int length) argument
495 comment(char ch[], int start, int length) argument
[all...]

Completed in 104 milliseconds

1234567891011>>