Searched refs:buffer (Results 101 - 125 of 154) sorted by relevance

1234567

/libcore/support/src/test/java/tests/http/
H A DMockWebServer.java436 byte[] buffer = new byte[1024];
438 int count = in.read(buffer, 0, Math.min(buffer.length, length));
442 out.write(buffer, 0, count);
478 @Override public void write(byte[] buffer, int offset, int len) { argument
480 super.write(buffer, offset, Math.min(len, bodyLimit - count));
/libcore/ojluni/src/main/java/java/util/stream/
H A DStreamSpliterators.java88 * leading to the buffer. Used during partial traversal.
99 /** Next element to consume from the buffer, used during partial traversal */
103 T_BUFFER buffer; field in class:StreamSpliterators.AbstractWrappingSpliterator
107 * If doing a partial traversal, there may be still elements in buffer.
149 * setting up the buffer if needed
150 * @return whether there are elements to consume from the buffer
153 if (buffer == null) {
165 boolean hasNext = nextToConsume < buffer.count();
168 buffer.clear();
182 * Initializes buffer, sin
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DCalendar.java3338 StringBuilder buffer = new StringBuilder(800);
3339 buffer.append(getClass().getName()).append('[');
3340 appendValue(buffer, "time", isTimeSet, time);
3341 buffer.append(",areFieldsSet=").append(areFieldsSet);
3342 buffer.append(",areAllFieldsSet=").append(areAllFieldsSet);
3343 buffer.append(",lenient=").append(lenient);
3344 buffer.append(",zone=").append(zone);
3345 appendValue(buffer, ",firstDayOfWeek", true, (long) firstDayOfWeek);
3346 appendValue(buffer, ",minimalDaysInFirstWeek", true, (long) minimalDaysInFirstWeek);
3348 buffer
[all...]
H A DLocale.java2089 StringBuilder buffer = new StringBuilder();
2093 buffer.append(displayLanguage.isEmpty() ? languageCode : displayLanguage);
2099 buffer.append(" (");
2102 buffer.append(displayScript.isEmpty() ? scriptCode : displayScript);
2108 buffer.append(" (");
2110 buffer.append(",");
2113 buffer.append(displayCountry.isEmpty() ? countryCode : displayCountry);
2119 buffer.append(" (");
2121 buffer.append(",");
2124 buffer
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
H A DJarEntryTest.java164 byte[] buffer = new byte[1024];
168 in.read(buffer);
/libcore/luni/src/main/java/android/system/
H A DOs.java385 public static int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException { return Libcore.os.pread(fd, buffer, offset); } argument
395 public static int pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException { return Libcore.os.pwrite(fd, buffer, offset); } argument
405 public static int read(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException, InterruptedIOException { return Libcore.os.read(fd, buffer); } argument
425 public static int recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { return Libcore.os.recvfrom(fd, buffer, flags, srcAddress); } argument
455 public static int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return Libcore.os.sendto(fd, buffer, flag argument
614 write(FileDescriptor fd, ByteBuffer buffer) argument
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DForwardingOs.java140 public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException { return os.pread(fd, buffer, offset); } argument
142 public int pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException { return os.pwrite(fd, buffer, offset); } argument
144 public int read(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException, InterruptedIOException { return os.read(fd, buffer); } argument
149 public int recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { return os.recvfrom(fd, buffer, flags, srcAddress); } argument
155 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return os.sendto(fd, buffer, flag argument
192 write(FileDescriptor fd, ByteBuffer buffer) argument
[all...]
/libcore/luni/src/test/java/libcore/java/lang/
H A DClassTest.java71 byte[] buffer = new byte[8192];
73 while ((bytesRead = is.read(buffer)) >= 0) {
74 os.write(buffer, 0, bytesRead);
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DGZIPInputStreamTest.java168 // the second member is larger than the size of the input buffer.
245 byte[] buffer = new byte[1024];
247 while ((count = in.read(buffer)) != -1) {
248 out.write(buffer, 0, count);
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DPolicyNodeImpl.java181 StringBuilder buffer = new StringBuilder(this.asString());
184 buffer.append(node);
186 return buffer.toString();
H A DX509CertPath.java259 byte[] buffer = new byte[8192];
262 while ((n = is.read(buffer)) != -1) {
263 baos.write(buffer, 0, n);
/libcore/support/src/test/java/tests/support/resource/
H A DSupport_Resources.java139 byte[] buffer = new byte[8192];
141 while ((c = in.read(buffer)) != -1) {
143 out.write(buffer, 0, c);
/libcore/tzdata/update_test_app/src/libcore/tzdata/update_test_app/installupdatetestapp/
H A DMainActivity.java173 byte[] buffer = new byte[8192];
179 while ((count = in.read(buffer)) != -1) {
180 out.write(buffer, 0, count);
/libcore/luni/src/main/native/
H A Dorg_apache_harmony_xml_ExpatParser.cpp108 : env(NULL), object(object), buffer(NULL), bufferSize(-1) {
150 buffer = javaBuffer;
153 return buffer;
158 if (buffer != NULL) {
159 env->DeleteGlobalRef(buffer);
160 buffer = NULL;
176 jcharArray buffer; member in struct:ParsingContext
179 /** The size of our buffer in jchars. */
426 * Copies UTF-8 characters into the buffer. Returns the number of Java chars
434 // Grow buffer i
471 jcharArray buffer = parsingContext->buffer; local
1260 char* buffer = new char[totalSize]; local
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatParser.java493 char[] buffer = new char[BUFFER_SIZE / 2];
495 while ((length = in.read(buffer)) != -1) {
497 appendChars(this.pointer, buffer, 0, length);
509 byte[] buffer = new byte[BUFFER_SIZE];
511 while ((length = in.read(buffer)) != -1) {
513 appendBytes(this.pointer, buffer, 0, length);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
H A DPreferencesTest.java439 byte[] buffer = new byte[1024];
441 while ((length = inputData.read(buffer)) > 0) {
442 fos.write(buffer, 0, length);
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DLinuxWatchService.java182 // sizeof buffer for when polling inotify
194 // address of read buffer
269 NativeBuffer buffer =
272 wd = inotifyAddWatch(ifd, buffer.address(), mask);
274 buffer.release();
365 // iterate over buffer to decode events
/libcore/ojluni/src/main/java/java/net/
H A DPlainSocketImpl.java290 byte[] buffer = new byte[] { (byte) data };
291 Libcore.os.sendto(fd, buffer, 0, 1, MSG_OOB, null, 0);
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DOldFileChannelTest.java504 ByteBuffer[] buffer) throws IOException{
506 channel.read(buffer, -1, 0);
512 channel.read(buffer, 0, -1);
518 channel.read(buffer, 0, 3);
524 channel.read(buffer, 1, 2);
530 channel.read(buffer, 2, 1);
536 channel.read(buffer, 3, 0);
503 doTestForIOOBException(FileChannel channel, ByteBuffer[] buffer) argument
/libcore/ojluni/src/main/java/java/nio/
H A DDirectByteBuffer.java49 * A single MemoryRef instance is shared across all slices and duplicates of a given buffer.
52 byte[] buffer; field in class:DirectByteBuffer.MemoryRef
60 buffer = (byte[]) runtime.newNonMovableArray(byte.class, capacity + 7);
61 allocatedAddress = runtime.addressOf(buffer);
69 buffer = null;
76 buffer = null;
87 super(-1, 0, capacity, capacity, memoryRef.buffer, memoryRef.offset);
127 super(mark, pos, lim, cap, memoryRef.buffer, off);
147 throw new IllegalStateException("buffer is inaccessible");
161 throw new IllegalStateException("buffer ha
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DDOMConfigurationImpl.java399 checkTextValidity(cdata.buffer);
409 checkTextValidity(text.buffer);
422 checkTextValidity(comment.buffer);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DSignature2Test.java418 ByteBuffer buffer = ByteBuffer.allocate(10);
421 sig.update(buffer);
427 sig.update(buffer);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DSSLSessionTest.java541 byte[] buffer = new byte[1024];
542 istream.read(buffer);
614 byte[] buffer = new byte[1024];
615 istream.read(buffer);
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DCertificateFactoryTest.java321 public int read(byte[] buffer) throws IOException { argument
322 int count = mStream.read(buffer);
328 public int read(byte[] buffer, int offset, int length) throws IOException { argument
329 int count = mStream.read(buffer, offset, length);
/libcore/ojluni/src/main/java/java/util/jar/
H A DJarVerifier.java372 byte[] buffer = new byte[1024];
373 int n = buffer.length;
375 n = s.read(buffer, 0, buffer.length);

Completed in 516 milliseconds

1234567