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

123456

/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.java389 public static int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException { return Libcore.os.pread(fd, buffer, offset); } argument
399 public static int pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException { return Libcore.os.pwrite(fd, buffer, offset); } argument
409 public static int read(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException, InterruptedIOException { return Libcore.os.read(fd, buffer); } argument
434 public static int recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { return Libcore.os.recvfrom(fd, buffer, flags, srcAddress); } argument
466 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
634 write(FileDescriptor fd, ByteBuffer buffer) argument
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DForwardingOs.java142 public int pread(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException { return os.pread(fd, buffer, offset); } argument
144 public int pwrite(FileDescriptor fd, ByteBuffer buffer, long offset) throws ErrnoException, InterruptedIOException { return os.pwrite(fd, buffer, offset); } argument
146 public int read(FileDescriptor fd, ByteBuffer buffer) throws ErrnoException, InterruptedIOException { return os.read(fd, buffer); } argument
151 public int recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress) throws ErrnoException, SocketException { return os.recvfrom(fd, buffer, flags, srcAddress); } argument
157 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return os.sendto(fd, buffer, flag argument
194 write(FileDescriptor fd, ByteBuffer buffer) argument
[all...]
H A DIoBridge.java73 // The fd is unwilling to opine about its read buffer.
549 public static int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws IOException { argument
551 if (!isDatagram && buffer.remaining() == 0) {
556 result = Libcore.os.sendto(fd, buffer, flags, inetAddress, port);
591 public static int recvfrom(boolean isRead, FileDescriptor fd, ByteBuffer buffer, int flags, DatagramPacket packet, boolean isConnected) throws IOException { argument
595 result = Libcore.os.recvfrom(fd, buffer, flags, srcAddress);
/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/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.java497 char[] buffer = new char[BUFFER_SIZE / 2];
499 while ((length = in.read(buffer)) != -1) {
501 appendChars(this.pointer, buffer, 0, length);
513 byte[] buffer = new byte[BUFFER_SIZE];
515 while ((length = in.read(buffer)) != -1) {
517 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/luni/src/test/java/libcore/java/lang/
H A DClassTest.java74 byte[] buffer = new byte[8192];
76 while ((bytesRead = is.read(buffer)) >= 0) {
77 os.write(buffer, 0, bytesRead);
H A DOldClassTest.java1001 byte[] buffer = new byte[20];
1002 int length = stream.read(buffer);
1003 String s = new String(buffer, 0, length);
1015 byte[] buffer = new byte[20];
1016 int length = stream.read(buffer);
1017 String s = new String(buffer, 0, length);
/libcore/ojluni/src/main/java/java/util/
H A DLocale.java2093 StringBuilder buffer = new StringBuilder();
2097 buffer.append(displayLanguage.isEmpty() ? languageCode : displayLanguage);
2103 buffer.append(" (");
2106 buffer.append(displayScript.isEmpty() ? scriptCode : displayScript);
2112 buffer.append(" (");
2114 buffer.append(",");
2117 buffer.append(displayCountry.isEmpty() ? countryCode : displayCountry);
2123 buffer.append(" (");
2125 buffer.append(",");
2128 buffer
[all...]
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DLinuxWatchService.java183 // sizeof buffer for when polling inotify
195 // address of read buffer
271 NativeBuffer buffer =
274 wd = inotifyAddWatch(ifd, buffer.address(), mask);
276 buffer.release();
368 // iterate over buffer to decode events
/libcore/ojluni/src/main/java/java/net/
H A DPlainSocketImpl.java298 byte[] buffer = new byte[] { (byte) data };
299 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
71 buffer = (byte[]) runtime.newNonMovableArray(byte.class, capacity + 7);
72 allocatedAddress = runtime.addressOf(buffer);
81 buffer = null;
89 buffer = null;
100 super(-1, 0, capacity, capacity, memoryRef.buffer, memoryRef.offset);
140 super(mark, pos, lim, cap, memoryRef.buffer, off);
160 throw new IllegalStateException("buffer is inaccessible");
174 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.java525 byte[] buffer = new byte[1024];
526 istream.read(buffer);
598 byte[] buffer = new byte[1024];
599 istream.read(buffer);
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DCertificateFactoryTest.java340 public int read(byte[] buffer) throws IOException { argument
341 int count = mStream.read(buffer);
347 public int read(byte[] buffer, int offset, int length) throws IOException { argument
348 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);
/libcore/ojluni/src/main/java/java/lang/
H A DString.java514 * currently contained in the string buffer argument. The contents of the
515 * string buffer are copied; subsequent modification of the string buffer
518 * @param buffer
521 public String(StringBuffer buffer) { argument
822 native void getCharsNoCheck(int start, int end, char[] buffer, int index); argument
955 ByteBuffer buffer = charset.encode(this);
956 byte[] bytes = new byte[buffer.limit()];
957 buffer.get(bytes);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSocketChannelTest.java2190 ByteBuffer buffer = ByteBuffer.allocateDirect(128);
2204 buffer.limit(5);
2205 int bytesRead = workerChannel.read(buffer);
2207 assertEquals(5, buffer.position());
2209 buffer.limit(request.length);
2210 bytesRead = workerChannel.read(buffer);
2213 buffer.flip();
2214 assertEquals(request.length, buffer.limit());
2216 assertEquals(ByteBuffer.wrap(request), buffer);
2949 // A variety of buffer type
[all...]

Completed in 425 milliseconds

123456