/openjdk7/jdk/src/share/classes/java/io/ |
H A D | CharArrayWriter.java | 81 if (newcount > buf.length) { 82 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount)); 96 if ((off < 0) || (off > c.length) || (len < 0) || 97 ((off + len) > c.length) || ((off + len) < 0)) { 104 if (newcount > buf.length) { 105 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount)); 121 if (newcount > buf.length) { 122 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount)); 167 write(s, 0, s.length()); 199 * <tt>csq.length()</t [all...] |
/openjdk7/jdk/src/share/classes/java/net/ |
H A D | SocketInputStream.java | 108 return read(b, 0, b.length); 113 * <i>length</i> bytes of data. 121 public int read(byte b[], int off, int length) throws IOException { argument 122 return read(b, off, length, impl.getTimeout()); 125 int read(byte b[], int off, int length, int timeout) throws IOException { argument 139 if (length <= 0 || off < 0 || off + length > b.length) { 140 if (length == 0) { 152 n = socketRead0(fd, b, off, length, timeou [all...] |
/openjdk7/jdk/src/share/classes/com/sun/beans/decoder/ |
H A D | NewElementHandler.java | 167 Class<?>[] types = new Class<?>[arguments.length]; 168 for (int i = 0; i < arguments.length; i++) { 184 int index = types.length - 1; 185 if (types.length == arguments.length) { 195 int length = arguments.length - index; 197 Object array = Array.newInstance(type, length); 198 System.arraycopy(arguments, index, array, 0, length); 200 Object[] args = new Object[types.length]; [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/internalizer/ |
H A D | WhitespaceStripper.java | 68 public void characters(char[] ch, int start, int length) throws SAXException { argument 75 if( bufLen+length>buf.length ) { 77 char[] newBuf = new char[Math.max(bufLen+length,buf.length*2)]; 81 System.arraycopy(ch,start,buf,bufLen,length); 82 bufLen += length; 86 int len = start+length; 89 super.characters(ch, start, length); 124 public void ignorableWhitespace(char[] ch, int start, int length) throw argument [all...] |
/openjdk7/jdk/test/javax/crypto/NullCipher/ |
H A D | TestNPE.java | 68 out = nc.update(BYTES, 0, BYTES.length); 72 if (nc.update(BYTES, 0, BYTES.length, out) != BYTES.length) { 75 if (nc.update(BYTES, 0, BYTES.length, out, 0) != BYTES.length) { 90 out = nc.doFinal(BYTES, 0, BYTES.length); 94 if (nc.doFinal(BYTES, 0, BYTES.length, out) != BYTES.length) { 98 if (nc.doFinal(BYTES, 0, BYTES.length, out, 0) != BYTES.length) { [all...] |
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftTuning/ |
H A D | Load4.java | 61 for (int i = 0; i < head.length; i++) 63 for (int i = 0; i < name.length; i++) 73 for (int i = 2; i < msg.length - 2; i++) 78 byte[] bmsg = new byte[msg.length]; 79 for (int i = 0; i < bmsg.length; i++) 85 for (int i = 0; i < tunings.length; i++) 89 msg[msg.length - 2] += 10; 90 for (int i = 0; i < bmsg.length; i++) 97 msg[msg.length - 2] += 10; 98 for (int i = 0; i < bmsg.length; [all...] |
H A D | Load5.java | 66 for (int i = 2; i < msg.length - 2; i++) 68 msg[msg.length-2] = (x & 127); 71 byte[] bmsg = new byte[msg.length]; 72 for (int i = 0; i < bmsg.length; i++) 76 for (int i = 0; i < tunings.length; i++) 80 msg[msg.length - 2] += 10; 81 for (int i = 0; i < bmsg.length; i++)
|
H A D | Load6.java | 67 for (int i = 2; i < msg.length - 2; i++) 69 msg[msg.length-2] = (x & 127); 72 byte[] bmsg = new byte[msg.length]; 73 for (int i = 0; i < bmsg.length; i++) 77 for (int i = 0; i < tunings.length; i++) 84 msg[msg.length - 2] += 10; 85 for (int i = 0; i < bmsg.length; i++)
|
/openjdk7/jdk/src/share/classes/com/sun/jmx/snmp/ |
H A D | BerDecoder.java | 263 final int length = fetchLength(); 264 if (length != 0) throw new BerException(); 291 if (contentLength > (bytes.length - next)) 292 throw new IndexOutOfBoundsException("Decoded length exceeds buffer"); 363 if (l > (bytes.length - next)) throw new BerException(); 428 final StringBuffer result = new StringBuffer(bytes.length * 2) ; 429 for (int i = 0 ; i < bytes.length ; i++) { 440 if (bytes.length == next) { 495 * Fetch a length and move the current position forward. 497 * @return The length [all...] |
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/CTS/ |
H A D | CTSMode.java | 41 byte[] t = new byte[c.length / 2]; 45 for (int i = 0; i < c.length; i++) { 61 if (n == t.length) { 127 StringBuffer sb = new StringBuffer(b.length * 3); 128 for (int i = 0; i < b.length; i++) { 149 for (int i = 0; i < PLAIN1.length; i++) { 152 if (KEY1.getEncoded().length > MAX_KEYSIZE) { 153 // skip tests using keys whose length exceeds 186 for (int i = 0; i < ALGORITHMS2.length; i++) { 192 // skip tests using keys whose length exceed [all...] |
/openjdk7/jdk/src/macosx/classes/sun/lwawt/macosx/ |
H A D | CDataTransferer.java | 59 Map<String, Long> nameMap = new HashMap<String, Long>(predefinedClipboardNames.length, 1.0f); 60 Map<Long, String> formatMap = new HashMap<Long, String>(predefinedClipboardNames.length, 1.0f); 61 for (int i = 1; i < predefinedClipboardNames.length; i++) { 209 if (format >= 0 && format < predefinedClipboardNames.length) { 284 bos.write(bytes, 0, bytes.length); 330 VERSION.length() + VERSION_NUM.length() + EOLN.length() + 331 START_HTML.length() + HTML_START_END.length() [all...] |
/openjdk7/jdk/src/share/classes/com/sun/beans/finder/ |
H A D | AbstractFinder.java | 118 if (newParams.length == this.args.length) { 144 int length = newParams.length - 1; 145 if (length <= this.args.length) { 146 Class<?>[] array = new Class<?>[this.args.length]; 147 System.arraycopy(newParams, 0, array, 0, length); 148 if (length < this.args.length) { [all...] |
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/crypto/dk/ |
H A D | DkCrypto.java | 79 * encryption function conf = random string of length c 81 * and plaintext to a length that's a 121 traceOutput("old_state.ivec", ivec, 0, ivec.length); 124 traceOutput("constant", constant, 0, constant.length); 125 traceOutput("baseKey", baseKey, 0, baseKey.length); 126 traceOutput("Ke", Ke, 0, Ke.length); 135 int plainSize = roundup(confounder.length + len, blockSize); 137 System.err.println("confounder = " + confounder.length + 139 (plainSize - confounder.length - len) + "; total = " + 141 traceOutput("confounder", confounder, 0, confounder.length); [all...] |
/openjdk7/jdk/src/share/classes/javax/accessibility/ |
H A D | AccessibleStateSet.java | 70 if (states.length != 0) { 71 this.states = new Vector(states.length); 72 for (int i = 0; i < states.length; i++) { 112 if (states.length != 0) { 114 this.states = new Vector(states.length); 116 for (int i = 0; i < states.length; i++) { 173 for (int i = 0; i < stateArray.length; i++) {
|
/openjdk7/jdk/src/share/classes/com/sun/jmx/snmp/IPAcl/ |
H A D | ParseException.java | 129 for (int i = 0; i < expectedTokenSequences.length; i++) { 130 if (maxSize < expectedTokenSequences[i].length) { 131 maxSize = expectedTokenSequences[i].length; 133 for (int j = 0; j < expectedTokenSequences[i].length; j++) { 136 if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) { 153 if (expectedTokenSequences.length == 1) { 175 for (int i = 0; i < str.length(); i++) { 207 retval.append("\\u" + s.substring(s.length() - 4, s.length()));
|
/openjdk7/hotspot/test/compiler/6942326/ |
H A D | Test.java | 237 System.out.print(a.length() + " " + b.length() + " "); 259 if (s >= strings.length) s = 0; 265 System.out.println("Start search variable size substring in string (" + b.length() + " chars)"); 267 int limit = 1; // last a.length() == 1 268 while (a.length() > limit) { 272 test_end(a, b, v, (b.length() - a.length()), start); 275 System.out.println("End search variable size substring in string (" + b.length() + " chars), time: " + (end_it - start_it)); 279 System.out.println("Start search substring (" + a.length() [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/xsom/impl/scd/ |
H A D | ParseException.java | 130 for (int i = 0; i < expectedTokenSequences.length; i++) { 131 if (maxSize < expectedTokenSequences[i].length) { 132 maxSize = expectedTokenSequences[i].length; 134 for (int j = 0; j < expectedTokenSequences[i].length; j++) { 137 if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) { 155 if (expectedTokenSequences.length == 1) { 177 for (int i = 0; i < str.length(); i++) { 209 retval.append("\\u" + s.substring(s.length() - 4, s.length()));
|
/openjdk7/jdk/test/java/io/BufferedReader/ |
H A D | ReadLine.java | 51 BoundedReader(strings[i][0]), strings[i][0].length()); 76 BoundedReader(strings[3][0]), strings[3][0].length()); 87 BoundedReader(strings[3][0]), strings[3][0].length()); 100 BoundedReader(inputStr), inputStr.length()); 123 this.limit = content.length(); 134 public int read(char[] buf, int offset, int length) argument 138 for (int i = offset; i < length; i++) {
|
/openjdk7/jdk/test/java/net/DatagramPacket/ |
H A D | ReuseBuf.java | 50 DatagramPacket dp = new DatagramPacket(b,b.length); 55 ds.send(new DatagramPacket(reply.getBytes(),reply.length(), 57 if (reply.equals(msgs[msgs.length-1])) { 73 DatagramPacket dp = new DatagramPacket(b,b.length); 74 for (int i = 0; i < msgs.length; i++) { 75 ds.send(new DatagramPacket(msgs[i].getBytes(),msgs[i].length(), 80 throw new RuntimeException("Msg expected: "+msgs[i] +msgs[i].length()+
|
/openjdk7/jdk/src/share/classes/sun/security/x509/ |
H A D | IPAddressName.java | 97 if (address.length == 4 || address.length == 8) { 99 } else if (address.length == 16 || address.length == 32) { 120 * this subnet. Internally, a mask value is created using the prefix length. 128 if (name == null || name.length() == 0) { 131 if (name.charAt(name.length() - 1) == '/') { 181 * @param name String IPv6 address with optional /<prefix length> 182 * If /<prefix length> is present, address[] array will 206 // set all most significant bits up to prefix length [all...] |
/openjdk7/jdk/test/java/util/zip/GZIP/ |
H A D | Accordion.java | 43 while ((n = s.read(buf, pos, buf.length-pos)) > 0) 45 if (pos != buf.length) 52 if (args.length > 1) 55 final long bytes = args.length == 0 ? 10001 : Long.parseLong(args[0]); 62 for (int i = 0; i < data.length; i++) 69 s.write(data, 0, data.length); 74 final byte[] maybeBytes = new byte[data.length];
|
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/ |
H A D | Native.java | 97 * Converts length bytes of data pointed by <code>data</code> into byte array 100 * @param length size in bytes of native memory 102 static byte[] toBytes(long data, int length) { argument 106 byte[] res = new byte[length]; 107 for (int i = 0; i < length; i++, data++) { 120 long res = XlibWrapper.unsafe.allocateMemory(bytes.length); 121 for (int i = 0; i < bytes.length; i++) { 147 * Converts length usnigned bytes of data pointed by <code>data</code> into 151 * @param length size in bytes of native memory 153 static short[] toUBytes(long data, int length) { argument 357 toLongs(long data, int length) argument 399 allocateLongArray(int length) argument 449 card32ToArray(long ptr, int length) argument [all...] |
/openjdk7/jdk/src/solaris/classes/sun/awt/motif/ |
H A D | X11FontMetrics.java | 176 return charsWidth(string.toCharArray(), 0, string.length()); 182 public int charsWidth(char chars[], int offset, int length) { argument 186 return getMFCharsWidth(chars, offset, length, font); 190 for (int i = offset; i < offset + length; i++) { 192 if (ch < 0 || ch >= widths.length) { 200 return maxAdvance * length; 205 private native int getMFCharsWidth(char chars[], int offset, int length, Font font); argument
|
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/xpath/regex/ |
H A D | BMPattern.java | 45 int length = pattern.length; 46 for (int i = 0; i < this.shiftTable.length; i ++) 47 this.shiftTable[i] = length; 49 for (int i = 0; i < length; i ++) { 51 int diff = length-i-1; 52 int index = ch % this.shiftTable.length; 57 index = ch % this.shiftTable.length; 61 index = ch % this.shiftTable.length; 74 int plength = this.pattern.length; [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/xs/ |
H A D | XSDeclarationPool.java | 186 if (chunk >= fElementDecl.length) { 187 fElementDecl = resize(fElementDecl, fElementDecl.length * 2); 198 System.arraycopy(array, 0, newarray, 0, array.length); 203 if (chunk >= fParticleDecl.length) { 204 fParticleDecl = resize(fParticleDecl, fParticleDecl.length * 2); 214 if (chunk >= fModelGroup.length) { 215 fModelGroup = resize(fModelGroup, fModelGroup.length * 2); 226 System.arraycopy(array, 0, newarray, 0, array.length); 232 System.arraycopy(array, 0, newarray, 0, array.length); 237 if (chunk >= fAttrDecl.length) { [all...] |