/libcore/ojluni/src/main/native/ |
H A D | zip_util.c | 145 ZFILE_read(ZFILE zfd, char *buf, jint nbytes, jlong offset) { argument 147 return (int) IO_Read(zfd, buf, nbytes); 157 return pread(zfd, buf, nbytes, offset); 186 * Reads len bytes of data from the specified offset into buf. 190 readFullyAt(ZFILE zfd, void *buf, jlong len, jlong offset) { argument 191 char *bp = (char *) buf; 278 char buf[4]; local 281 readFullyAt(zip->zfd, buf, sizeof(buf), cenpos) != -1 && 282 GETSIG(buf) 296 char buf[READBLOCKSZ]; local 798 char buf[PATH_MAX]; local 1353 ZIP_Read(jzfile *zip, jzentry *entry, jlong pos, void *buf, jint len) argument 1417 InflateFully(jzfile *zip, jzentry *entry, void *buf, char **msg) argument 1498 ZIP_ReadEntry(jzfile *zip, jzentry *entry, unsigned char *buf, char *entryname) argument [all...] |
H A D | java_props_md.c | 336 char buf[MAXPATHLEN]; local 343 realpath((char *)dlinfo.dli_fname, buf); 344 len = strlen(buf); 345 p = strrchr(buf, '/'); 349 if (stat(buf, &statbuf) == -1 && errno == ENOENT) { 546 char buf[MAXPATHLEN]; local 548 if (getcwd(buf, sizeof(buf)) == NULL) 552 sprops.user_dir = strdup(buf);
|
H A D | DatagramDispatcher.c | 55 void *buf = (void *)jlong_to_ptr(address); local 56 int result = recv(fd, buf, len, 0); 102 void *buf = (void *)jlong_to_ptr(address); local 103 int result = send(fd, buf, len, 0);
|
H A D | IOUtil.c | 114 char buf[128]; local 118 int n = read(fd, buf, sizeof(buf)); 122 if (n == (int)sizeof(buf))
|
H A D | linux_close.cpp | 124 int NET_Read(int s, void* buf, size_t len) { argument 125 BLOCKING_IO_RETURN_INT( s, recv(s, buf, len, 0) ); 132 int NET_RecvFrom(int s, void *buf, int len, unsigned int flags, argument 135 BLOCKING_IO_RETURN_INT( s, recvfrom(s, buf, len, flags, from, &socklen) );
|
H A D | FileDispatcherImpl.c | 68 void *buf = (void *)jlong_to_ptr(address); local 70 return convertReturnVal(env, read(fd, buf, len), JNI_TRUE); 78 void *buf = (void *)jlong_to_ptr(address); local 80 return convertReturnVal(env, pread64(fd, buf, len, offset), JNI_TRUE); 97 void *buf = (void *)jlong_to_ptr(address); local 99 return convertReturnVal(env, write(fd, buf, len), JNI_FALSE); 107 void *buf = (void *)jlong_to_ptr(address); local 109 return convertReturnVal(env, pwrite64(fd, buf, len, offset), JNI_FALSE);
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | ObjectInputStream.java | 853 * @param buf the buffer into which the data is read 861 public int read(byte[] buf, int off, int len) throws IOException { argument 862 if (buf == null) { 866 if (off < 0 || len < 0 || endoff > buf.length || endoff < 0) { 869 return bin.read(buf, off, len, false); 1014 * @param buf the buffer into which the data is read 1018 public void readFully(byte[] buf) throws IOException { argument 1019 bin.readFully(buf, 0, buf.length, false); 1025 * @param buf th 1031 readFully(byte[] buf, int off, int len) argument 2391 private final byte[] buf = new byte[MAX_BLOCK_SIZE]; field in class:ObjectInputStream.BlockDataInputStream [all...] |
H A D | ObjectOutputStream.java | 701 * @param buf the data to be written 704 public void write(byte[] buf) throws IOException { argument 705 bout.write(buf, 0, buf.length, false); 711 * @param buf the data to be written 716 public void write(byte[] buf, int off, int len) throws IOException { argument 717 if (buf == null) { 721 if (off < 0 || len < 0 || endoff > buf.length || endoff < 0) { 724 bout.write(buf, off, len, false); 1799 private final byte[] buf field in class:ObjectOutputStream.BlockDataOutputStream [all...] |
H A D | BufferedInputStream.java | 70 protected volatile byte buf[]; field in class:BufferedInputStream 73 * Atomic updater to provide compareAndSet for buf. This is 75 * of buf[] as primary indicator that this stream is closed. (The 81 (BufferedInputStream.class, byte[].class, "buf"); 87 * in the range <code>0</code> through <code>buf.length</code>; 88 * elements <code>buf[0]</code> through <code>buf[count-1] 96 * character to be read from the <code>buf</code> array. 100 * than <code>count</code>, then <code>buf[pos]</code> 107 * @see java.io.BufferedInputStream#buf [all...] |
/libcore/ojluni/src/main/java/java/time/ |
H A D | Duration.java | 1267 StringBuilder buf = new StringBuilder(24); 1268 buf.append("PT"); 1270 buf.append(hours).append('H'); 1273 buf.append(minutes).append('M'); 1275 if (secs == 0 && nanos == 0 && buf.length() > 2) { 1276 return buf.toString(); 1280 buf.append("-0"); 1282 buf.append(secs + 1); 1285 buf.append(secs); 1288 int pos = buf [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | StringBuffer2Test.java | 69 char buf[] = new char[4]; 70 "char".getChars(0, 4, buf, 0); 71 testBuffer.append(buf); 304 char[] buf = new char[10]; 305 testBuffer.getChars(4, 8, buf, 2); 306 assertTrue("Returned incorrect chars", new String(buf, 2, 4) 325 char buf[] = new char[4]; 326 "char".getChars(0, 4, buf, 0); 327 testBuffer.insert(15, buf);
|
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | OldAttributedStringTest.java | 32 StringBuffer buf = new StringBuffer(); 33 buf.append(it.first()); 36 buf.append(ch); 37 assertEquals(msg, expected, buf.toString()); 172 StringBuffer buf = new StringBuffer(); 173 buf.append(it.first()); 176 buf.append(ch); 177 assertTrue("Wrong string: " + buf, buf.toString().equals(test));
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | OldAndroidZipStreamTest.java | 146 byte[] buf = new byte[4096]; 149 while ((len = in.read(buf)) > 0) { 150 contents.write(buf, 0, len);
|
/libcore/luni/src/main/native/ |
H A D | ZipUtilities.h | 37 void setInput(JNIEnv* env, jbyteArray buf, jint off, jint len);
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldFilterOutputStreamTest.java | 147 byte[] buf = new byte[10]; 150 os.write(buf, -1, 1); 157 os.write(buf, 0, -1); 164 os.write(buf, 10, 1);
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/ |
H A D | FileURLConnection.java | 194 StringBuffer buf = new StringBuffer(); 204 buf.append(fileName); 205 buf.append("\n"); 208 is = new ByteArrayInputStream(buf.toString().getBytes());
|
/libcore/support/src/test/java/org/apache/harmony/testframework/ |
H A D | CharWrapperTester.java | 207 public void write(char[] buf, int offset, int count) throws IOException { argument 211 buffer.append(buf, offset, count); 220 public void write(char[] buf, int offset, int count) throws IOException { argument 249 public void write(char[] buf, int offset, int count) throws IOException { argument
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | TestCertUtils.java | 213 StringBuffer buf = new StringBuffer(200); 214 buf.append("TestCertPath. certs count="); 216 buf.append("0\n"); 219 buf.append(certs.length).append("\n"); 221 buf.append("\t").append(i).append(" "); 222 buf.append(certs[i]).append("\n"); 225 return buf.toString(); 783 StringBuffer buf = new StringBuffer(); 788 buf.append(name).append('=').append(val).append(","); 792 buf [all...] |
/libcore/ojluni/src/main/java/java/nio/ |
H A D | MappedByteBuffer.java | 87 MappedByteBuffer(int mark, int pos, int lim, int cap, byte[] buf, int offset) { argument 88 super(mark, pos, lim, cap, buf, offset);
|
/libcore/ojluni/src/main/java/java/time/zone/ |
H A D | ZoneOffsetTransitionRule.java | 552 StringBuilder buf = new StringBuilder(); 553 buf.append("TransitionRule[") 558 buf.append(dow.name()).append(" on or before last day of ").append(month.name()); 560 buf.append(dow.name()).append(" on or before last day minus ").append(-dom - 1).append(" of ").append(month.name()); 562 buf.append(dow.name()).append(" on or after ").append(month.name()).append(' ').append(dom); 565 buf.append(month.name()).append(' ').append(dom); 567 buf.append(" at ").append(timeEndOfDay ? "24:00" : time.toString()) 571 return buf.toString();
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DOMTest.java | 187 java.lang.StringBuffer buf = new StringBuffer(httpBase); 189 buf.append("/"); 191 buf.append("tmp"); 192 buf.append( (new java.util.Random()).nextInt(Integer.MAX_VALUE)); 193 buf.append(".xml"); 194 return buf.toString();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | PipedInputStreamTest.java | 200 byte[] buf = new byte[400]; 206 pis.read(buf, 0, 400); 208 assertEquals("read returned incorrect byte[]", pw.bytes[i], buf[i]); 358 byte[] buf = new byte[1]; 359 assertEquals("Write end is closed, should return -1", -1, in.read(buf, 0, 1)); 360 assertEquals("Buf len 0 should return first", 0, in.read(buf, 0, 0));
|
/libcore/luni/src/test/java/libcore/java/security/ |
H A D | MessageDigestTest.java | 242 StringBuffer buf = new StringBuffer(); 243 buf.append("new byte[] { "); 245 buf.append(b); 246 buf.append(", "); 248 buf.append(" }"); 249 return buf.toString();
|
/libcore/ojluni/src/main/java/java/security/ |
H A D | MessageDigest.java | 409 * @param buf output buffer for the computed digest 413 * @param len number of bytes within buf allotted for the digest 415 * @return the number of bytes placed into {@code buf} 419 public int digest(byte[] buf, int offset, int len) throws DigestException { argument 420 if (buf == null) { 423 if (buf.length - offset < len) { 427 int numBytes = engineDigest(buf, offset, len); 633 protected int engineDigest(byte[] buf, int offset, int len) argument 635 return digestSpi.engineDigest(buf, offset, len);
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
H A D | PKCS9Attributes.java | 326 StringBuffer buf = new StringBuffer(200); 327 buf.append("PKCS9 Attributes: [\n\t"); 342 buf.append(";\n\t"); 344 buf.append(value.toString()); 347 buf.append("\n\t] (end PKCS9 Attributes)"); 349 return buf.toString();
|