Searched refs:buffer (Results 176 - 200 of 223) sorted by relevance

123456789

/dalvik/libcore/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
H A DGZIPInputStreamTest.java191 // the size of the InflaterStream internal buffer
328 byte[] buffer = new byte[] {1,2,3,4,5,6,7,8,9,10};
335 gout.write(buffer);
342 buffer = new byte[100];
343 gis.read(buffer);
H A DZipInputStreamTest.java290 public int read(byte[] buffer, int offset, int count) throws IOException {
291 return super.read(buffer, offset, 1); // one byte at a time
295 public int read(byte[] buffer) throws IOException {
296 return super.read(buffer, 0, 1); // one byte at a time
/dalvik/libcore/text/src/main/java/java/text/
H A DDateFormat.java342 * format and appends the string to the specified string buffer.
353 * @param buffer
354 * the target string buffer to append the formatted date/time to.
358 * @return the string buffer.
364 public final StringBuffer format(Object object, StringBuffer buffer, argument
367 return format((Date) object, buffer, field);
370 return format(new Date(((Number) object).longValue()), buffer,
390 * format and appends the string to the specified string buffer.
399 * @param buffer
400 * the target string buffer t
406 format(Date date, StringBuffer buffer, FieldPosition field) argument
[all...]
H A DAttributedString.java395 StringBuilder buffer = new StringBuilder();
397 buffer.append(iterator.current());
400 text = buffer.toString();
436 StringBuilder buffer = new StringBuilder();
439 buffer.append(iterator.current());
442 text = buffer.toString();
H A DDecimalFormat.java711 public StringBuffer format(double value, StringBuffer buffer, FieldPosition position) { argument
712 return dform.format(value, buffer, position);
716 public StringBuffer format(long value, StringBuffer buffer, FieldPosition position) { argument
717 return dform.format(value, buffer, position);
/dalvik/libdex/
H A DDexProto.h35 size_t allocatedSize; /* size of the allocated buffer, if allocated */
36 char buffer[120]; /* buffer used to hold small-enough results */ member in struct:DexStringCache
64 * dexStringCacheRelease() if you want the buffer to survive past the
/dalvik/libcore/archive/src/main/native/
H A Dzipsup.h165 HyZipEntry * entry, U_8 * buffer, U_32 bufferSize));
183 HyZipEntry * entry, U_8 * buffer, U_32 bufferSize));
196 HyZipEntry * entry, U_8 * buffer, U_32 bufferSize));
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x509/
H A DExtensions.java400 public void dumpValue(StringBuffer buffer, String prefix) { argument
406 buffer.append('\n').append(prefix)
408 extension.dumpValue(buffer, prefix);
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/net/
H A DPlainSocketImpl.java557 int read(byte[] buffer, int offset, int count) throws IOException { argument
561 int read = netImpl.read(fd, buffer, offset, count, receiveTimeout);
573 int write(byte[] buffer, int offset, int count) throws IOException { argument
575 return netImpl.sendDatagram2(fd, buffer, offset, count, port,
578 return netImpl.write(fd, buffer, offset, count);
/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/
H A DExpatParser.java501 char[] buffer = new char[BUFFER_SIZE / 2];
503 while ((length = in.read(buffer)) != -1) {
505 append(this.pointer, buffer, 0, length);
517 byte[] buffer = new byte[BUFFER_SIZE];
519 while ((length = in.read(buffer)) != -1) {
521 append(this.pointer, buffer, 0, length);
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DFileInputStreamTest.java197 byte[] buffer = new byte[100];
210 fis.read(buffer, 0, 10);
213 equal &= (buffer[i] == stringBytes[i + offset]);
H A DObjectOutputStreamTest.java782 // If there is no buffer then the bytes have already been written.
997 "is written into a self-expanding buffer).",
1020 "is written into a self-expanding buffer).",
1066 "is written into a self-expanding buffer).",
1086 "is written into a self-expanding buffer).",
1110 "is written into a self-expanding buffer).",
1216 byte[] buffer;
1225 buffer = baos.toByteArray();
1227 buffer.length >= 4);
1230 s = buffer[
[all...]
/dalvik/libcore/nio_char/src/main/java/java/nio/charset/
H A DCharset.java680 * Encodes the content of the give character buffer and outputs to a byte
681 * buffer that is to be returned.
686 * @param buffer
687 * the character buffer containing the content to be encoded.
690 public final ByteBuffer encode(CharBuffer buffer) { argument
695 buffer);
703 * Encodes a string and outputs to a byte buffer that is to be returned.
717 * Decodes the content of the specified byte buffer and writes it to a
718 * character buffer that is to be returned.
723 * @param buffer
727 decode(ByteBuffer buffer) argument
[all...]
/dalvik/dx/src/junit/runner/
H A DBaseTestRunner.java268 StringBuffer buffer= stringWriter.getBuffer();
269 String trace= buffer.toString();
/dalvik/libcore/archive/src/main/java/java/util/zip/
H A DZipFile.java431 public int read(byte[] buffer, int off, int nbytes) throws IOException { argument
432 int i = super.read(buffer, off, nbytes);
/dalvik/libcore/luni/src/main/java/java/lang/
H A DStringBuffer.java74 * 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/test/java/junit/runner/
H A DBaseTestRunner.java268 StringBuffer buffer= stringWriter.getBuffer();
269 String trace= buffer.toString();
284 // Use a sensible default buffer size
/dalvik/libcore/luni/src/main/native/
H A Dorg_apache_harmony_luni_platform_OSFileSystem.cpp437 char buffer[80]; local
438 const char* reason = jniStrError(errno, &buffer[0], sizeof(buffer));
490 /* The fd is unwilling to opine about its read buffer. */
/dalvik/libcore/x-net/src/main/native/
H A Dorg_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp281 static void NativeCrypto_EVP_DigestUpdate(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jbyteArray buffer, jint offset, jint length) { argument
282 // LOGI("NativeCrypto_EVP_DigestUpdate %x, %x, %d, %d", ctx, buffer, offset, length);
284 if (ctx == NULL || buffer == NULL) {
289 jbyte* bufferBytes = env->GetByteArrayElements(buffer, NULL);
291 env->ReleaseByteArrayElements(buffer, bufferBytes, JNI_ABORT);
325 static void NativeCrypto_EVP_VerifyUpdate(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jbyteArray buffer, jint offset, jint length) { argument
326 // LOGI("NativeCrypto_EVP_VerifyUpdate %x, %x, %d, %d", ctx, buffer, offset, length);
328 if (ctx == NULL || buffer == NULL) {
333 jbyte* bufferBytes = env->GetByteArrayElements(buffer, NULL);
335 env->ReleaseByteArrayElements(buffer, bufferByte
343 NativeCrypto_EVP_VerifyFinal(JNIEnv* env, jclass clazz, EVP_MD_CTX* ctx, jbyteArray buffer, jint offset, jint length, EVP_PKEY* pkey) argument
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/dom/
H A DDOMConfigurationImpl.java397 checkTextValidity(cdata.buffer);
407 checkTextValidity(text.buffer);
420 checkTextValidity(comment.buffer);
/dalvik/vm/jdwp/
H A DJdwpAdb.c148 char buffer[CMSG_SPACE(sizeof(int))]; member in union:__anon89
159 msg.msg_control = cm_un.buffer;
160 msg.msg_controllen = sizeof(cm_un.buffer);
384 * Figure out if we have a full packet in the buffer.
401 * Consume bytes from the buffer.
403 * This would be more efficient with a circular buffer. However, we're
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/
H A DSSLSessionTest.java765 byte[] buffer = new byte[1024];
766 istream.read(buffer);
838 byte[] buffer = new byte[1024];
839 istream.read(buffer);
/dalvik/libcore/luni/src/main/java/java/io/
H A DObjectInputStream.java670 * in byte array {@code buffer} starting at offset {@code count}. Blocks
674 * @param buffer
677 * the initial position in {@code buffer} to store the bytes
680 * the maximum number of bytes to store in {@code buffer}.
686 * {@code buffer}.
690 * if {@code buffer} is {@code null}.
693 public int read(byte[] buffer, int offset, int length) throws IOException { argument
694 // Force buffer null check first!
695 if (offset > buffer.length || offset < 0) {
699 if (length < 0 || length > buffer
1367 readFully(byte[] buffer) argument
1389 readFully(byte[] buffer, int offset, int length) argument
[all...]
/dalvik/libcore/nio/src/main/java/java/nio/
H A DMappedByteBufferAdapter.java42 public MappedByteBufferAdapter(ByteBuffer buffer) { argument
43 super(buffer);
/dalvik/libcore/xml/src/test/java/org/apache/harmony/xml/
H A DExpatParserTest.java614 assertEquals("<b></b> <c></c>", handler.buffer.toString());
620 StringBuffer buffer = new StringBuffer(); field in class:ExpatParserTest.TestCdataHandler
624 buffer.append(ch, start, length);
746 byte[] buffer = new byte[1024];
747 while (in.read(buffer) > -1) { /* ignore */ }

Completed in 510 milliseconds

123456789