/dalvik/libcore/archive/src/main/java/java/util/zip/ |
H A D | ZipInputStream.java | 290 /* Read 4 bytes from the buffer and store it as an int */ 293 * Reads up to the specified number of uncompressed bytes into the buffer 296 * @param buffer 299 * the starting offset into the buffer 305 public int read(byte[] buffer, int start, int length) throws IOException { argument 312 // avoid int overflow, check null buffer 313 if (start > buffer.length || length < 0 || start < 0 314 || buffer.length - start < length) { 335 System.arraycopy(buf, lastRead, buffer, start, toRead); 338 crc.update(buffer, star 408 getShort(byte[] buffer, int off) argument 412 getLong(byte[] buffer, int off) argument [all...] |
H A D | ZipFile.java | 431 public int read(byte[] buffer, int off, int nbytes) throws IOException { argument 432 int i = super.read(buffer, off, nbytes);
|
H A D | ZipOutputStream.java | 393 public void write(byte[] buffer, int off, int nbytes) argument 396 if ((off < 0 || (nbytes < 0) || off > buffer.length) 397 || (buffer.length - off < nbytes)) { 407 out.write(buffer, off, nbytes); 409 super.write(buffer, off, nbytes); 411 crc.update(buffer, off, nbytes);
|
/dalvik/libcore/icu/src/main/java/com/ibm/icu4jni/text/ |
H A D | RuleBasedNumberFormat.java | 142 public StringBuffer format(long value, StringBuffer buffer, FieldPosition field) { argument 144 if(buffer == null) { 157 buffer.append(result.toCharArray(), 0, result.length()); 159 return buffer; 163 FieldPosition field, String fieldType, StringBuffer buffer); 166 public StringBuffer format(double value, StringBuffer buffer, FieldPosition field) { argument 168 if(buffer == null) { 181 buffer.append(result.toCharArray(), 0, result.length()); 183 return buffer; 187 FieldPosition field, String fieldType, StringBuffer buffer); 162 formatRBNFImpl(int addr, long value, FieldPosition field, String fieldType, StringBuffer buffer) argument 186 formatRBNFImpl(int addr, double value, FieldPosition field, String fieldType, StringBuffer buffer) argument [all...] |
/dalvik/libcore/luni/src/main/java/java/io/ |
H A D | DataOutputStream.java | 77 * 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 D | PrintStream.java | 653 * Writes {@code count} bytes from {@code buffer} starting at {@code offset} 655 * writing the buffer. 660 * @param buffer 661 * the buffer to be written. 663 * the index of the first byte in {@code buffer} to write. 665 * the number of bytes in {@code buffer} to write. 668 * offset + count} is bigger than the length of {@code buffer}. 672 public void write(byte[] buffer, int offset, int length) { argument 673 // Force buffer null check first! 674 if (offset > buffer [all...] |
H A D | RandomAccessFile.java | 312 * byte array {@code buffer}. The maximum number of bytes read corresponds 313 * to the size of {@code buffer}. Blocks until at least one byte has been 316 * @param buffer 323 public int read(byte[] buffer) throws IOException { argument 324 return read(buffer, 0, buffer.length); 329 * and stores them in the byte array {@code buffer} starting at {@code 333 * @param buffer 336 * the initial position in {@code buffer} to store the bytes read 339 * the maximum number of bytes to store in {@code buffer} 348 read(byte[] buffer, int offset, int count) argument 477 readFully(byte[] buffer) argument 503 readFully(byte[] buffer, int offset, int count) argument 799 write(byte[] buffer) argument 822 write(byte[] buffer, int offset, int count) argument [all...] |
/dalvik/libcore/luni/src/test/java/tests/api/java/io/ |
H A D | FilterReaderTest.java | 63 public int read(char[] buffer, int offset, int count) throws IOException { argument 172 char[] buffer = new char[5]; 173 fr.read(buffer, 0, 5); 188 char[] buffer = new char[10]; 194 fr.read(buffer, 0, -1); 201 fr.read(buffer, -1, 1); 208 fr.read(buffer, 10, 1);
|
H A D | FilterWriterTest.java | 57 public void write(char[] buffer, int offset, int count) throws IOException { argument 150 char[] buffer = new char[5]; 151 fw.write(buffer, 0, 5); 165 char[] buffer = new char[10]; 171 fw.write(buffer, 0, -1); 178 fw.write(buffer, -1, 1); 185 fw.write(buffer, 10, 1);
|
/dalvik/libcore/nio/src/main/java/java/nio/channels/ |
H A D | FileChannel.java | 142 * mapped byte buffer may not be committed. 268 * @return the mapped byte buffer. 320 * Reads bytes from this file channel into the given buffer. 323 * bytes in the buffer when the method is invoked. The bytes will be copied 324 * into the buffer starting at the buffer's current position. 329 * Upon completion, the buffer's position is set to the end of the bytes 330 * that have been read. The buffer's limit is not changed. 332 * @param buffer 333 * the byte buffer t 348 read(ByteBuffer buffer) argument 385 read(ByteBuffer buffer, long position) argument 686 write(ByteBuffer buffer, long position) argument [all...] |
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/internal/ |
H A D | PipeImpl.java | 132 public int read(ByteBuffer buffer) throws IOException { argument 133 return sourceSocket.read(buffer); 177 public int write(ByteBuffer buffer) throws IOException { argument 178 return sinkSocket.write(buffer);
|
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x509/ |
H A D | Extensions.java | 400 public void dumpValue(StringBuffer buffer, String prefix) { argument 406 buffer.append('\n').append(prefix) 408 extension.dumpValue(buffer, prefix);
|
H A D | IssuingDistributionPoint.java | 162 public void dumpValue(StringBuffer buffer, String prefix) { argument 163 buffer.append(prefix).append("Issuing Distribution Point: [\n"); //$NON-NLS-1$ 165 distributionPoint.dumpValue(buffer, " " + prefix); //$NON-NLS-1$ 167 buffer.append(prefix).append(" onlyContainsUserCerts: ") //$NON-NLS-1$ 169 buffer.append(prefix).append(" onlyContainsCACerts: ") //$NON-NLS-1$ 172 onlySomeReasons.dumpValue(buffer, prefix + " "); //$NON-NLS-1$ 174 buffer.append(prefix).append(" indirectCRL: ") //$NON-NLS-1$ 176 buffer.append(prefix).append(" onlyContainsAttributeCerts: ") //$NON-NLS-1$
|
H A D | TBSCertList.java | 166 public void dumpValue(StringBuffer buffer, String prefix) { argument 167 buffer.append(prefix).append("Certificate Serial Number: ") //$NON-NLS-1$ 169 buffer.append(prefix).append("Revocation Date: ") //$NON-NLS-1$ 172 buffer.append('\n').append(prefix) 174 crlEntryExtensions.dumpValue(buffer, prefix + " "); //$NON-NLS-1$ 175 buffer.append(prefix).append(']'); 377 public void dumpValue(StringBuffer buffer) { argument 378 buffer.append("X.509 CRL v").append(version); //$NON-NLS-1$ 379 buffer.append("\nSignature Algorithm: ["); //$NON-NLS-1$ 380 signature.dumpValue(buffer); [all...] |
H A D | TBSCertificate.java | 258 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...] |
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/ |
H A D | JCEIESCipher.java | 39 private ByteArrayOutputStream buffer = new ByteArrayOutputStream(); field in class:JCEIESCipher 95 return buffer.size() + inputLen + 20; /* SHA1 MAC size */ 99 return buffer.size() + inputLen - 20; 205 buffer.reset(); 283 buffer.write(input, inputOffset, inputLen); 294 buffer.write(input, inputOffset, inputLen); 306 buffer.write(input, inputOffset, inputLen); 311 byte[] buf = buffer.toByteArray(); 313 buffer.reset(); 333 buffer [all...] |
/dalvik/libcore/text/src/main/java/java/text/ |
H A D | ChoiceFormat.java | 126 StringBuffer buffer = new StringBuffer(); 175 buffer.setLength(0); 177 upTo(template, position, buffer, '|'); 180 formats.add(buffer.toString()); 226 * double value fits to the specified string buffer. 230 * @param buffer 231 * the target string buffer to append the formatted value to. 234 * @return the string buffer. 237 public StringBuffer format(double value, StringBuffer buffer, argument 241 return buffer 261 format(long value, StringBuffer buffer, FieldPosition field) argument [all...] |
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | NativeCrypto.java | 51 public static native void EVP_DigestUpdate(int ctx, byte[] buffer, int offset, int length); argument 63 public static native void EVP_VerifyUpdate(int ctx, byte[] buffer, int offset, int length); argument
|
/dalvik/libcore/xml/src/main/java/org/apache/xml/dtm/ref/ |
H A D | ChunkedIntArray.java | 174 /** Disard the highest-numbered record. This is used in the string-buffer 238 * Retrieve the contents of a record into a user-supplied buffer array. 242 * @param buffer int[] Integer array provided by user, must be large enough 245 void readSlot(int position, int[] buffer) argument 250 System.arraycopy(fastArray, position*slotsize, buffer, 0, slotsize); 264 System.arraycopy(chunk,slotpos,buffer,0,slotsize);
|
/dalvik/libcore/archive/src/main/java/java/util/jar/ |
H A D | Manifest.java | 246 byte[] buffer = new byte[4096]; 247 int count = is.read(buffer); 253 System.arraycopy(buffer, 0, dest, 0, count); 258 if (!containsLine(buffer, count)) { 265 baos.write(buffer, 0, count); 268 count = is.read(buffer); 272 baos.write(buffer, 0, count); 277 * Check to see if the buffer contains a newline or carriage 281 private boolean containsLine(byte[] buffer, int length) { argument 283 if (buffer[ [all...] |
/dalvik/libcore/luni/src/main/java/java/lang/ |
H A D | StringBuffer.java | 74 * string. The capacity of the new buffer will be the length of the 88 * specified {@code CharSequence}. The capacity of the new buffer will be 118 * Adds the specified character to the end of this buffer. 205 * Adds the specified string to the end of this buffer. 220 * Adds the specified StringBuffer to the end of this buffer. 244 * Adds the character array to the end of this buffer. 258 * Adds the specified sequence of characters to the end of this buffer. 279 * Appends the specified CharSequence to this buffer. 300 * Appends the specified subsequence of the CharSequence to this buffer. 325 * the end of this buffer 414 getChars(int start, int end, char[] buffer, int idx) argument [all...] |
/dalvik/libcore/luni/src/main/java/java/net/ |
H A D | SocketImpl.java | 269 * from the {@code buffer}, from the {@code offset}. 271 * @param buffer 272 * the buffer to read into 274 * the offset into the buffer 281 int write(byte[] buffer, int offset, int count) throws IOException { argument 283 return this.netImpl.sendDatagram2(fd, buffer, offset, count, port, 286 return this.netImpl.write(fd, buffer, offset, count);
|
/dalvik/libcore/luni/src/main/java/java/util/ |
H A D | Properties.java | 106 private void dumpString(StringBuilder buffer, String string, boolean key) { argument 109 buffer.append("\\ "); //$NON-NLS-1$ 117 buffer.append("\\t"); //$NON-NLS-1$ 120 buffer.append("\\n"); //$NON-NLS-1$ 123 buffer.append("\\f"); //$NON-NLS-1$ 126 buffer.append("\\r"); //$NON-NLS-1$ 130 buffer.append('\\'); 133 buffer.append(ch); 136 buffer.append("\\u"); //$NON-NLS-1$ 138 buffer [all...] |
H A D | TimeZone.java | 292 StringBuffer buffer = new StringBuffer(9); 293 buffer.append("GMT"); 294 buffer.append(sign); 295 appendNumber(buffer, 2, offset / 60); 296 buffer.append(':'); 297 appendNumber(buffer, 2, offset % 60); 298 return buffer.toString(); 305 private void appendNumber(StringBuffer buffer, int count, int value) { argument 309 buffer.append('0'); 312 buffer [all...] |
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/lang/reflect/ |
H A D | GenericSignatureParser.java | 90 * and it's set only when a scan is issued at the end of the buffer. 94 char[] buffer; field in class:GenericSignatureParser 104 this.buffer = input.toCharArray(); 432 if (pos < buffer.length) { 433 symbol = buffer[pos]; 472 char ch = buffer[pos]; 475 identBuf.append(buffer[pos]); 482 } while (pos != buffer.length);
|