/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | DeflaterOutputStreamTest.java | 106 public int deflate(byte[] buf, int offset, int byteCount) { argument 107 return super.deflate(buf, offset, byteCount, Deflater.SYNC_FLUSH);
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | ObjectStreamClass.java | 1217 * marshals them into byte array buf starting at offset 0. It is the 1221 void getPrimFieldValues(Object obj, byte[] buf) { argument 1222 fieldRefl.getPrimFieldValues(obj, buf); 1227 * unmarshalled from byte array buf starting at offset 0. It is the 1231 void setPrimFieldValues(Object obj, byte[] buf) { argument 1232 fieldRefl.setPrimFieldValues(obj, buf); 1925 * marshals them into byte array buf starting at offset 0. The caller 1928 void getPrimFieldValues(Object obj, byte[] buf) { argument 1941 Bits.putBoolean(buf, off, unsafe.getBoolean(obj, key)); 1945 buf[of 1983 setPrimFieldValues(Object obj, byte[] buf) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
H A D | DeflaterOutputStreamTest.java | 50 return buf; 133 int buf = 5; 144 dos = new MyDeflaterOutputStream(fos, defl, buf); 150 // Test for a negative buf. 157 // Test for a zero buf. 166 dos = new MyDeflaterOutputStream(fos, defl, buf);
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldObjectOutputStreamTest.java | 289 byte[] buf = new byte[10]; 292 ois.read(buf, 0, -1); 298 ois.read(buf, -1, 1); 304 ois.read(buf, 10, 1);
|
H A D | OldOutputStreamWriterTest.java | 248 char[] buf = new char[testString.length()]; 252 isr.read(buf, 0, buf.length); 254 new String(buf, 0, buf.length).equals(testString));
|
/libcore/ojluni/src/main/native/ |
H A D | java_util_zip_Deflater.c | 58 bufID = (*env)->GetFieldID(env, cls, "buf", "[B"); 100 Bytef *buf = (*env)->GetPrimitiveArrayCritical(env, b, 0); local 102 if (buf == 0) {/* out of memory */ 105 res = deflateSetDictionary((z_stream *)jlong_to_ptr(addr), buf + off, len); 106 (*env)->ReleasePrimitiveArrayCritical(env, b, buf, 0);
|
H A D | net_util_md.c | 143 char buf [64]; local 151 strncpy (buf, param, sizeof(buf)); 154 stri.ic_dp = buf; 155 stri.ic_len = sizeof(buf); 159 value = atoi(buf); 377 char buf[255]; 384 bufP = fgets(buf, sizeof(buf), fP); 484 char *buf; local [all...] |
H A D | UNIXProcess_md.c | 366 restartableWrite(int fd, const void *buf, size_t count) argument 369 RESTARTABLE(write(fd, buf, count), result); 651 * Reads nbyte bytes from file descriptor fd into buf, 658 readFully(int fd, void *buf, size_t nbyte) argument 662 ssize_t n = read(fd, buf, remaining); 671 buf = (void *) (((char *)buf) + n);
|
H A D | jvm.h | 412 JVM_DefineClass(JNIEnv *env, const char *name, jobject loader, const jbyte *buf, 418 const jbyte *buf, jsize len, jobject pd, 1112 JVM_GetLastErrorString(char *buf, int len); 1148 * buf the buffer where to put the read data. 1154 JVM_Read(jint fd, char *buf, jint nbytes); 1160 * buf the buffer from which to fetch the data. 1166 JVM_Write(jint fd, char *buf, jint nbytes); 1215 JVM_Recv(jint fd, char *buf, jint nBytes, jint flags); 1218 JVM_Send(jint fd, char *buf, jint nBytes, jint flags); 1236 JVM_RecvFrom(jint fd, char *buf, in [all...] |
/libcore/xml/src/main/java/org/xmlpull/v1/ |
H A D | XmlSerializer.java | 296 XmlSerializer text (char [] buf, int start, int len) argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | ObjectOutputStreamTest.java | 731 byte[] buf = new byte[10]; 735 ois.read(buf, 0, 10); 737 assertEquals("Read incorrect bytes", "HelloWorld", new String(buf, 0, 747 byte[] buf = new byte[10]; 751 ois.read(buf, 0, 10); 753 assertEquals("Read incorrect bytes", "HelloWorld", new String(buf, 0, 797 byte[] buf = new byte[10]; 801 ois.readFully(buf); 804 buf, 0, 10, "UTF-8")); 825 char[] buf [all...] |
H A D | PushbackReaderTest.java | 41 char buf[] = new char[5]; 42 pbr.read(buf, 0, 5); 43 pbr.unread(buf);
|
H A D | BufferedWriterTest.java | 57 public void write(char[] buf, int off, int len) throws IOException { argument 59 sb.append(buf[i]);
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
H A D | URLJarFile.java | 209 final byte[] buf = new byte[4096]; 211 while ((len = in.read(buf)) > 0) { 212 out.write(buf, 0, len);
|
/libcore/support/src/test/java/tests/support/resource/ |
H A D | Support_Resources.java | 200 byte[] buf = new byte[4096]; 201 while ((result = in.read(buf)) != -1) { 202 out.write(buf, 0, result);
|
/libcore/ojluni/src/main/java/sun/net/ftp/impl/ |
H A D | FtpClient.java | 1233 byte[] buf = new byte[mtu * 10]; 1235 while ((l = remote.read(buf)) >= 0) { 1237 local.write(buf, 0, l); 1245 byte[] buf = new byte[mtu * 10]; 1247 while ((l = remote.read(buf)) >= 0) { 1249 local.write(buf, 0, l); 1353 byte[] buf = new byte[mtu * 10]; 1355 while ((l = local.read(buf)) >= 0) { 1357 remote.write(buf, 0, l); 1381 byte[] buf 1902 sendSecurityData(byte[] buf) argument [all...] |
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
H A D | URLConnectionTest.java | 353 String buf = null; 357 buf = (String) obj; 358 assertTrue("Incorrect content returned from fileURL: "+buf, 359 testString.equals(buf.trim())); 363 buf = r.readLine(); 364 assertTrue("Incorrect content returned from fileURL: "+buf, 365 testString.equals(buf.trim())); 1183 BufferedReader buf = new BufferedReader(new InputStreamReader( 1187 while ((nextline = buf.readLine()) != null) { 1191 buf [all...] |
/libcore/ojluni/src/main/java/java/awt/font/ |
H A D | NumericShaper.java | 1391 StringBuilder buf = new StringBuilder(super.toString()); 1393 buf.append("[contextual:").append(isContextual()); 1397 buf.append(", context:"); 1398 buf.append(shapingRange == null ? Range.values()[key] : shapingRange); 1402 buf.append(", range(s): "); 1409 buf.append(", "); 1411 buf.append(Range.values()[i]); 1415 buf.append(", range set: ").append(rangeSet); 1417 buf.append(']'); 1419 return buf [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | SocketChannelImpl.java | 292 public int read(ByteBuffer buf) throws IOException { argument 294 if (buf == null) 382 n = IOUtil.read(fd, buf, -1, nd); 473 public int write(ByteBuffer buf) throws IOException { argument 474 if (buf == null) 490 n = IOUtil.write(fd, buf, -1, nd);
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
H A D | LanguageTag.java | 476 StringBuilder buf = new StringBuilder(); 483 if (buf.length() > 0) { 484 buf.append(SEP); 486 buf.append(prvv); 489 if (buf.length() > 0) { 490 privuseVar = buf.toString();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | JarURLConnectionTest.java | 254 byte[] buf = new byte[80]; 255 while (is.read(buf) > 0) ; 262 while (is.read(buf) > 0) ;
|
/libcore/luni/src/test/java/libcore/net/ |
H A D | NetworkSecurityPolicyTest.java | 266 byte[] buf = new byte[64 * 1024]; 267 int chunkSize = client.getInputStream().read(buf); 273 return Arrays.copyOf(buf, chunkSize);
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/gopher/ |
H A D | GopherClient.java | 264 byte buf[] = new byte[2048]; 267 while ((n = serverInput.read(buf)) >= 0) 268 os.write(buf, 0, n);
|
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | ZipFile.java | 432 len = in.read(buf, 0, buf.length); 434 buf[0] = 0; 438 inf.setInput(buf, 0, len);
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Arrays.java | 4632 StringBuilder buf = new StringBuilder(bufLen); 4633 deepToString(a, buf, new HashSet<Object[]>()); 4634 return buf.toString(); 4637 private static void deepToString(Object[] a, StringBuilder buf, argument 4640 buf.append("null"); 4645 buf.append("[]"); 4650 buf.append('['); 4655 buf.append("null"); 4661 buf.append(toString((byte[]) element)); 4663 buf [all...] |