Searched refs:buffer (Results 26 - 50 of 223) sorted by relevance

123456789

/dalvik/libcore/luni/src/main/java/java/io/
H A DFilterInputStream.java117 * {@code buffer}. Returns the number of bytes actually read or -1 if no
121 * @param buffer
129 public int read(byte[] buffer) throws IOException { argument
130 return read(buffer, 0, buffer.length);
135 * byte array {@code buffer} starting at {@code offset}. Returns the number
140 * @param buffer
143 * the initial position in {@code buffer} to store the bytes
146 * the maximum number of bytes to store in {@code buffer}.
153 public int read(byte[] buffer, in argument
[all...]
H A DPipedInputStream.java20 // - delayed buffer creation until pipe connection
45 * The circular buffer through which data is passed. Data is read from the
47 * Data in the buffer is either sequential: <pre>
52 * ...or wrapped around the buffer's end: <pre>
57 * When the buffer is empty, {@code in == -1}. Reading when the buffer is
58 * empty will block until data is available. When the buffer is full,
59 * {@code in == out}. Writing when the buffer is full will block until free
62 protected byte buffer[]; field in class:PipedInputStream
65 * The index in {@code buffer} wher
[all...]
H A DFilterOutputStream.java92 * Writes the entire contents of the byte array {@code buffer} to this
93 * stream. This implementation writes the {@code buffer} to the target
96 * @param buffer
97 * the buffer to be written.
102 public void write(byte[] buffer) throws IOException { argument
106 write(buffer, 0, buffer.length);
110 * Writes {@code count} bytes from the byte array {@code buffer} starting at
113 * @param buffer
114 * the buffer t
127 write(byte[] buffer, int offset, int length) argument
[all...]
H A DPipedReader.java45 * The circular buffer through which data is passed. Data is read from the
47 * Data in the buffer is either sequential: <pre>
52 * ...or wrapped around the buffer's end: <pre>
57 * When the buffer is empty, {@code in == -1}. Reading when the buffer is
58 * empty will block until data is available. When the buffer is full,
59 * {@code in == out}. Writing when the buffer is full will block until free
62 private char[] buffer; field in class:PipedReader
65 * The index in {@code buffer} where the next character will be written.
70 * The index in {@code buffer} wher
200 read(char[] buffer, int offset, int count) argument
[all...]
H A DDataOutputStream.java77 * Writes {@code count} bytes from the byte array {@code buffer} starting at
80 * @param buffer
81 * the buffer to write to the target stream.
83 * the index of the first byte in {@code buffer} to write.
85 * the number of bytes from the {@code buffer} to write.
89 * if {@code buffer} is {@code null}.
94 public void write(byte[] buffer, int offset, int count) throws IOException { argument
98 if (buffer == null) {
101 out.write(buffer, offset, count);
284 byte[] buffer, in
283 writeLongToBuffer(long val, byte[] buffer, int offset) argument
315 writeShortToBuffer(int val, byte[] buffer, int offset) argument
365 writeUTFBytesToBuffer(String str, byte[] buffer, int offset) argument
[all...]
H A DDataInput.java110 * Reads bytes into the byte array {@code buffer}. This method will block
111 * until {@code buffer.length} number of bytes have been read.
113 * @param buffer
114 * the buffer to read bytes into.
122 public abstract void readFully(byte[] buffer) throws IOException; argument
125 * Reads bytes and stores them in the byte array {@code buffer} starting at
129 * @param buffer
132 * the initial position in {@code buffer} to store the bytes
135 * the maximum number of bytes to store in {@code buffer}.
143 public abstract void readFully(byte[] buffer, in argument
[all...]
/dalvik/libcore/nio_char/src/test/java/tests/api/java/nio/charset/
H A DASCCharsetDecoderTest.java52 // ByteBuffer buffer = ByteBuffer.allocate(8);
53 // buffer.put((byte)-1);
54 // buffer.put(unibytes);
55 // buffer.flip();
56 // return buffer;
62 ByteBuffer buffer = ByteBuffer.allocate(8);
63 buffer.put((byte) -1);
64 buffer.put(unibytes);
65 buffer.flip();
66 return buffer;
[all...]
H A DGBCharsetDecoderTest.java56 ByteBuffer buffer = ByteBuffer.allocate(20);
57 buffer.put(new byte[] { (byte) 0xd8, 0 });
58 buffer.put(unibytes);
59 buffer.flip();
60 return buffer;
H A DUTFCharsetDecoderTest.java57 ByteBuffer buffer = ByteBuffer.allocate(20);
58 buffer.put((byte) 0xd8);
59 buffer.put(unibytes);
60 buffer.flip();
61 return buffer;
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x509/
H A DExtendedKeyUsage.java88 public void dumpValue(StringBuffer buffer, String prefix) { argument
89 buffer.append(prefix).append("Extended Key Usage: "); //$NON-NLS-1$
95 super.dumpValue(buffer);
99 buffer.append('[');
101 buffer.append(" \"").append(it.next()).append('"'); //$NON-NLS-1$
103 buffer.append(',');
106 buffer.append(" ]\n"); //$NON-NLS-1$
H A DDistributionPointName.java90 public void dumpValue(StringBuffer buffer, String prefix) { argument
91 buffer.append(prefix);
92 buffer.append("Distribution Point Name: [\n"); //$NON-NLS-1$
94 fullName.dumpValue(buffer, prefix + " "); //$NON-NLS-1$
96 buffer.append(prefix);
97 buffer.append(" "); //$NON-NLS-1$
98 buffer.append(nameRelativeToCRLIssuer.getName(
101 buffer.append(prefix);
102 buffer.append("]\n"); //$NON-NLS-1$
H A DDistributionPoint.java97 public void dumpValue(StringBuffer buffer, String prefix) { argument
98 buffer.append(prefix);
99 buffer.append("Distribution Point: [\n"); //$NON-NLS-1$
101 distributionPoint.dumpValue(buffer, prefix + " "); //$NON-NLS-1$
104 reasons.dumpValue(buffer, prefix + " "); //$NON-NLS-1$
107 buffer.append(prefix);
108 buffer.append(" CRL Issuer: [\n"); //$NON-NLS-1$
109 cRLIssuer.dumpValue(buffer, prefix + " "); //$NON-NLS-1$
110 buffer.append(prefix);
111 buffer
[all...]
H A DAlternativeName.java88 public void dumpValue(StringBuffer buffer, String prefix) { argument
89 buffer.append(prefix).append((which) ? "Subject" : "Issuer") //$NON-NLS-1$ //$NON-NLS-2$
91 alternativeNames.dumpValue(buffer, prefix + " "); //$NON-NLS-1$
92 buffer.append(prefix).append("]\n"); //$NON-NLS-1$
H A DKeyUsage.java100 public void dumpValue(StringBuffer buffer, String prefix) { argument
101 buffer.append(prefix).append("KeyUsage [\n"); //$NON-NLS-1$
104 buffer.append(prefix).append(" ") //$NON-NLS-1$
108 buffer.append(prefix).append("]\n"); //$NON-NLS-1$
H A DSubjectKeyIdentifier.java77 public void dumpValue(StringBuffer buffer, String prefix) { argument
78 buffer.append(prefix).append("SubjectKeyIdentifier: [\n"); //$NON-NLS-1$
79 buffer.append(Array.toString(keyIdentifier, prefix));
80 buffer.append(prefix).append("]\n"); //$NON-NLS-1$
H A DTBSCertificate.java258 public void dumpValue(StringBuffer buffer) { argument
259 buffer.append('[');
260 buffer.append("\n Version: V").append(version+1); //$NON-NLS-1$
261 buffer.append("\n Subject: ") //$NON-NLS-1$
263 buffer.append("\n Signature Algorithm: "); //$NON-NLS-1$
264 signature.dumpValue(buffer);
265 buffer.append("\n Key: "); //$NON-NLS-1$
266 buffer.append(subjectPublicKeyInfo.getPublicKey().toString());
267 buffer.append("\n Validity: [From: "); //$NON-NLS-1$
268 buffer
[all...]
H A DReasonFlags.java84 public void dumpValue(StringBuffer buffer, String prefix) { argument
85 buffer.append(prefix);
86 buffer.append("ReasonFlags [\n"); //$NON-NLS-1$
89 buffer.append(prefix).append(" ") //$NON-NLS-1$
93 buffer.append(prefix);
94 buffer.append("]\n"); //$NON-NLS-1$
/dalvik/vm/native/
H A DSystemThread.c69 char buffer[256]; local
70 int size = read(thread->statFile, buffer, sizeof(buffer) - 1);
75 char* endOfName = (char*) memchr(buffer, ')', size);
81 if ((state - buffer) + 1 > size) {
85 thread->stateOffset = state - buffer;
94 char buffer[3]; local
101 int size = read(thread->statFile, buffer, sizeof(buffer));
102 if (size < (int) sizeof(buffer)) {
[all...]
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/internal/
H A DFileChannelImpl.java201 MappedByteBuffer buffer = null;
203 buffer = MappedByteBufferFactory.getBuffer(address, mapMode, size,
208 return buffer;
235 public int read(ByteBuffer buffer, long position) throws IOException { argument
236 if (null == buffer) {
243 if (!buffer.hasRemaining()) {
251 bytesRead = read(buffer);
259 public int read(ByteBuffer buffer) throws IOException { argument
261 if (!buffer.hasRemaining()) {
267 if (buffer
513 write(ByteBuffer buffer, long position) argument
537 write(ByteBuffer buffer) argument
542 writeImpl(ByteBuffer buffer) argument
[all...]
/dalvik/libcore/nio/src/main/java/java/nio/channels/
H A DReadableByteChannel.java34 * Reads bytes from the channel into the given buffer.
38 * buffer when the method is invoked. The bytes will be read into the buffer
39 * starting at the buffer's current
45 * Upon completion, the buffer's {@code position} is updated to the end of
46 * the bytes that were read. The buffer's
49 * @param buffer
50 * the byte buffer to receive the bytes.
65 public int read(ByteBuffer buffer) throws IOException; argument
H A DWritableByteChannel.java34 * Writes bytes from the given buffer to the channel.
37 * <code>remaining()</code> number of bytes in the buffer when the method
38 * invoked. The bytes will be written from the buffer starting at the
39 * buffer's <code>position</code>.
44 * Upon completion, the buffer's <code>position()</code> is updated to the
45 * end of the bytes that were written. The buffer's <code>limit()</code>
48 * @param buffer
49 * the byte buffer containing the bytes to be written.
63 public int write(ByteBuffer buffer) throws IOException; argument
/dalvik/libdex/
H A Dsha1.h10 unsigned char buffer[64]; member in struct:__anon27
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
H A DClassTest2.java60 byte[] buffer = new byte[20];
61 int length = stream.read(buffer);
62 String s = new String(buffer, 0, length);
83 byte[] buffer = new byte[20];
84 int length = stream.read(buffer);
85 String s = new String(buffer, 0, length);
/dalvik/libcore/archive/src/main/java/java/util/zip/
H A DGZIPInputStream.java29 * its buffer.
71 * underlying stream. Set the internal buffer size to {@code size}.
76 * the internal read buffer size.
135 private long getLong(byte[] buffer, int off) { argument
137 l |= (buffer[off] & 0xFF);
138 l |= (buffer[off + 1] & 0xFF) << 8;
139 l |= (buffer[off + 2] & 0xFF) << 16;
140 l |= ((long) (buffer[off + 3] & 0xFF)) << 24;
144 private int getShort(byte[] buffer, int off) { argument
145 return (buffer[of
160 read(byte[] buffer, int off, int nbytes) argument
209 readFully(byte[] buffer, int offset, int length) argument
[all...]
/dalvik/libcore/logging/src/main/java/java/util/logging/
H A DMemoryHandler.java27 * buffer.
30 * the internal buffer and doesn't perform any formatting or any other process.
31 * When the buffer is full, the earliest buffered records will be discarded.
36 * buffer will be cleared.
53 * <li>java.util.logging.MemoryHandler.size specifies the buffer size in number
68 // buffer size
77 // buffer
78 private LogRecord[] buffer; field in class:MemoryHandler
80 // current position in buffer
137 buffer
[all...]

Completed in 1344 milliseconds

123456789