/libcore/luni/src/main/native/ |
H A D | readlink.cpp | 28 LocalArray<512> buf(bufSize); 29 ssize_t len = readlink(path, &buf[0], buf.size()); 34 if (static_cast<size_t>(len) < buf.size()) { 36 result.assign(&buf[0], len);
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DOMTestIncompatibleException.java | 52 StringBuffer buf = new StringBuffer( 54 buf.append(feature); 55 buf.append("\" version=\""); 56 buf.append(version); 57 buf.append("\"."); 58 return new DOMTestIncompatibleException(buf.toString()); 63 StringBuffer buf = new StringBuffer( 65 buf.append(href); 66 buf.append("\" not available for =\""); 67 buf [all...] |
/libcore/luni/src/main/java/java/util/zip/ |
H A D | Adler32.java | 59 * Update this {@code Adler32} checksum using the contents of {@code buf}. 61 * @param buf 64 public void update(byte[] buf) { argument 65 update(buf, 0, buf.length); 69 * Update this {@code Adler32} checksum with the contents of {@code buf}, 72 public void update(byte[] buf, int offset, int byteCount) { argument 73 Arrays.checkOffsetAndCount(buf.length, offset, byteCount); 74 adler = updateImpl(buf, offset, byteCount, adler); 77 private native long updateImpl(byte[] buf, in argument [all...] |
H A D | CRC32.java | 60 * Updates this checksum with the bytes contained in buffer {@code buf}. 62 * @param buf 65 public void update(byte[] buf) { argument 66 update(buf, 0, buf.length); 70 * Update this {@code CRC32} checksum with the contents of {@code buf}, 73 public void update(byte[] buf, int offset, int byteCount) { argument 74 Arrays.checkOffsetAndCount(buf.length, offset, byteCount); 76 crc = updateImpl(buf, offset, byteCount, crc); 79 private native long updateImpl(byte[] buf, in argument [all...] |
H A D | Checksum.java | 41 * @param buf 44 * the initial position in {@code buf} to read the bytes from. 46 * the number of bytes to read from {@code buf}. 48 public void update(byte[] buf, int off, int nbytes); argument
|
H A D | Deflater.java | 39 * byte[] buf = new byte[8192]; 41 * int byteCount = deflater.deflate(buf); 42 * baos.write(buf, 0, byteCount); 199 * @return number of bytes of compressed data written to {@code buf}. 201 public int deflate(byte[] buf) { argument 202 return deflate(buf, 0, buf.length); 209 * @return the number of bytes of compressed data written to {@code buf}. 211 public synchronized int deflate(byte[] buf, int offset, int byteCount) { argument 212 return deflateImpl(buf, offse 228 deflate(byte[] buf, int offset, int byteCount, int flush) argument 235 deflateImpl(byte[] buf, int offset, int byteCount, int flush) argument 244 deflateImpl(byte[] buf, int offset, int byteCount, long handle, int flushParm) argument 380 setDictionary(byte[] buf, int offset, int byteCount) argument 386 setDictionaryImpl(byte[] buf, int offset, int byteCount, long handle) argument 392 setInput(byte[] buf) argument 400 setInput(byte[] buf, int offset, int byteCount) argument 414 setInputImpl(byte[] buf, int offset, int byteCount, long handle) argument [all...] |
/libcore/support/src/test/java/tests/support/ |
H A D | Support_StringWriter.java | 24 private StringBuffer buf; field in class:Support_StringWriter 33 buf = new StringBuffer(16); 34 lock = buf; 44 buf = new StringBuffer(initialSize); 45 lock = buf; 80 return buf; 94 return buf.toString(); 100 * in <code>buf</code> to this StringWriter. 102 * @param buf 105 * offset in buf t 113 write(char[] buf, int offset, int count) argument [all...] |
H A D | Support_ASimpleInputStream.java | 16 public byte[] buf; field in class:Support_ASimpleInputStream 35 buf = input.getBytes(); 37 len = buf.length; 43 buf = new byte[len]; 44 System.arraycopy(input, 0, buf, 0, len); 68 int res = buf[pos];
|
/libcore/luni/src/main/java/java/io/ |
H A D | ByteArrayOutputStream.java | 34 protected byte[] buf; field in class:ByteArrayOutputStream 47 buf = new byte[32]; 63 buf = new byte[size]; 87 if (count + i <= buf.length) { 92 System.arraycopy(buf, 0, newbuf, 0, count); 93 buf = newbuf; 123 System.arraycopy(buf, 0, newArray, 0, count); 137 return new String(buf, 0, count); 158 newBuf[i] = (char) (((hibyte & 0xff) << 8) | (buf[i] & 0xff)); 175 return new String(buf, [all...] |
H A D | ByteArrayInputStream.java | 31 protected byte[] buf; field in class:ByteArrayInputStream 46 * {@code buf}. 52 * {@code buf}. 54 * @param buf 57 public ByteArrayInputStream(byte[] buf) { argument 59 this.buf = buf; 60 this.count = buf.length; 65 * {@code buf} with the initial position set to {@code offset} and the 68 * @param buf 75 ByteArrayInputStream(byte[] buf, int offset, int length) argument [all...] |
H A D | PushbackInputStream.java | 33 protected byte[] buf; field in class:PushbackInputStream 36 * The current position within {@code buf}. A value equal to 37 * {@code buf.length} indicates that no bytes are available. A value of 0 56 buf = (in == null) ? null : new byte[1]; 80 buf = (in == null) ? null : new byte[size]; 86 if (buf == null) { 89 return buf.length - pos + in.available(); 104 buf = null; 137 if (buf == null) { 141 if (pos < buf [all...] |
H A D | CharArrayReader.java | 31 protected char[] buf; field in class:CharArrayReader 49 * Constructs a CharArrayReader on the char array {@code buf}. The size of 51 * from is set to {@code buf}. 53 * @param buf 56 public CharArrayReader(char[] buf) { argument 57 this.buf = buf; 58 this.count = buf.length; 62 * Constructs a CharArrayReader on the char array {@code buf}. The size of 66 * @param buf 76 CharArrayReader(char[] buf, int offset, int length) argument [all...] |
H A D | StringWriter.java | 32 private StringBuffer buf; field in class:StringWriter 41 buf = new StringBuffer(16); 42 lock = buf; 58 buf = new StringBuffer(initialSize); 59 lock = buf; 90 return buf; 100 return buf.toString(); 104 * Writes {@code count} characters starting at {@code offset} in {@code buf} 115 * offset + count} is greater than the size of {@code buf}. 123 buf [all...] |
H A D | BufferedOutputStream.java | 33 * BufferedOutputStream buf = new BufferedOutputStream(new FileOutputStream("file.java")); 42 protected byte[] buf; field in class:BufferedOutputStream 45 * The total number of bytes inside the byte array {@code buf}. 72 buf = new byte[size]; 90 if (buf == null) { 128 byte[] internalBuffer = buf; 147 if (buf == null) { 154 buf = null; 173 if (count == buf.length) { 174 out.write(buf, [all...] |
H A D | BufferedWriter.java | 34 * BufferedWriter buf = new BufferedWriter(new FileWriter("file.java")); 43 private char[] buf; field in class:BufferedWriter 71 this.buf = new char[size]; 95 buf = null; 139 out.write(buf, 0, pos); 191 if (pos == 0 && count >= this.buf.length) { 195 int available = this.buf.length - pos; 200 System.arraycopy(buffer, offset, this.buf, pos, available); 203 if (pos == this.buf.length) { 204 out.write(this.buf, [all...] |
H A D | CharArrayWriter.java | 35 protected char[] buf; field in class:CharArrayWriter 48 buf = new char[32]; 49 lock = buf; 66 buf = new char[initialSize]; 67 lock = buf; 80 if (count + i <= buf.length) { 84 int newLen = Math.max(2 * buf.length, count + i); 86 System.arraycopy(buf, 0, newbuf, 0, count); 87 buf = newbuf; 132 System.arraycopy(buf, [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldStringBufferInputStreamTest.java | 29 byte[] buf = new byte[10]; 31 sbis.read(buf, 0, -1); 37 sbis.read(buf, -1, 1); 43 sbis.read(buf, 10, 1);
|
H A D | OldReaderTest.java | 36 CharBuffer buf = CharBuffer.allocate(4); 37 assertEquals("Wrong return value!", 4, simple.read(buf)); 38 buf.rewind(); 39 assertEquals("Wrong stuff read!", "Bla ", String.valueOf(buf)); 40 simple.read(buf); 41 buf.rewind(); 42 assertEquals("Wrong stuff read!", "bla,", String.valueOf(buf)); 45 simple.read(buf); 54 char[] buf = new char[4]; 55 assertEquals("Wrong return value!", 4, simple.read(buf)); 116 read(char[] buf, int offset, int count) argument [all...] |
H A D | OldPushbackInputStreamTest.java | 126 byte[] buf = ("01234567890123456789").getBytes(); 129 tobj.read(buf, 6, 5); 130 assertEquals("Wrong value read!", "BEGIN", new String(buf, 6, 5)); 131 assertEquals("Too much read!", "012345BEGIN123456789", new String(buf)); 134 tobj.read(buf, 6, 5); 143 byte[] buf = new byte[10]; 147 tobj.read(buf, -1, 1); 153 tobj.read(buf, 0, -1); 159 tobj.read(buf, 10, 1); 168 byte[] buf [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | IntegralToString.java | 146 char[] buf = new char[bufLen]; 151 buf[--cursor] = DIGITS[radix * q - i]; 156 buf[--cursor] = '-'; 159 return new String(cursor, bufLen - cursor, buf); 216 char[] buf = (sb != null) ? BUFFER.get() : new char[bufLen]; 224 buf[--cursor] = ONES[r]; 225 buf[--cursor] = TENS[r]; 234 buf[--cursor] = DIGITS[r]; 239 buf[--cursor] = '-'; 243 sb.append0(buf, curso 400 intIntoCharArray(char[] buf, int cursor, int n) argument [all...] |
H A D | StackTraceElement.java | 206 StringBuilder buf = new StringBuilder(80); 208 buf.append(getClassName()); 209 buf.append('.'); 210 buf.append(getMethodName()); 213 buf.append("(Native Method)"); 218 buf.append("(Unknown Source)"); 222 buf.append('('); 223 buf.append(fName); 225 buf.append(':'); 226 buf [all...] |
/libcore/luni/src/main/java/java/lang/reflect/ |
H A D | Modifier.java | 326 StringBuilder buf = new StringBuilder(); 329 buf.append("public "); 332 buf.append("protected "); 335 buf.append("private "); 338 buf.append("abstract "); 341 buf.append("static "); 344 buf.append("final "); 347 buf.append("transient "); 350 buf.append("volatile "); 353 buf [all...] |
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
H A D | Chunk.java | 56 public Chunk(int type, ByteBuffer buf) { argument 59 this.data = buf.array(); 60 this.offset = buf.arrayOffset(); 61 this.length = buf.position();
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
H A D | X509PublicKey.java | 47 StringBuilder buf = new StringBuilder("algorithm = "); 48 buf.append(algorithm); 49 buf.append(", params unparsed, unparsed keybits = \n"); 51 // buf.append(Arrays.toString(keyBytes)); 52 return buf.toString();
|
/libcore/luni/src/test/java/libcore/java/nio/ |
H A D | NoArrayTest.java | 31 private void assertNoArray(ByteBuffer buf) { argument 32 assertFalse(buf.hasArray()); 34 buf.array(); 40 buf.arrayOffset();
|