Searched refs:buf (Results 201 - 225 of 337) sorted by relevance

1234567891011>>

/dalvik/libcore/xml/src/main/java/org/apache/xalan/templates/
H A DAVTPart.java52 * @param buf Buffer to write into.
59 XPathContext xctxt, FastStringBuffer buf, int context,
58 evaluate( XPathContext xctxt, FastStringBuffer buf, int context, org.apache.xml.utils.PrefixResolver nsNode) argument
H A DAVTPartXPath.java124 * @param buf Buffer to write into.
131 XPathContext xctxt, FastStringBuffer buf, int context, org.apache.xml.utils.PrefixResolver nsNode)
139 xobj.appendToFsb(buf);
130 evaluate( XPathContext xctxt, FastStringBuffer buf, int context, org.apache.xml.utils.PrefixResolver nsNode) argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/x509/
H A DX509Name.java1016 StringBuffer buf,
1025 buf.append(sym);
1029 buf.append(oid.getId());
1032 buf.append('=');
1034 int index = buf.length();
1036 buf.append(value);
1038 int end = buf.length();
1042 if ((buf.charAt(index) == ',')
1043 || (buf.charAt(index) == '"')
1044 || (buf
1015 appendValue( StringBuffer buf, Hashtable oidSymbols, DERObjectIdentifier oid, String value) argument
[all...]
/dalvik/libcore/auth/src/main/java/javax/security/auth/
H A DSubject.java433 StringBuffer buf = new StringBuffer("Subject:\n"); //$NON-NLS-1$
437 buf.append("\tPrincipal: "); //$NON-NLS-1$
438 buf.append(it.next());
439 buf.append('\n');
444 buf.append("\tPublic Credential: "); //$NON-NLS-1$
445 buf.append(it.next());
446 buf.append('\n');
449 int offset = buf.length() - 1;
453 buf.append("\tPrivate Credential: "); //$NON-NLS-1$
454 buf
[all...]
/dalvik/libcore/luni/src/test/java/tests/api/java/net/
H A DDatagramPacketTest.java435 byte buf[] = new byte[1];
437 DatagramPacket thePacket = new DatagramPacket(buf, 1,
447 DatagramPacket thePacket = new DatagramPacket(buf, 1, null);
455 DatagramPacket thePacket = new DatagramPacket(buf, 1, theAddress);
485 byte buf[] = new byte[2];
487 DatagramPacket thePacket = new DatagramPacket(buf, 1, 1,
497 DatagramPacket thePacket = new DatagramPacket(buf, 1, 1, null);
505 DatagramPacket thePacket = new DatagramPacket(buf, 1, 1, theAddress);
528 byte buf[] = new byte[1];
529 DatagramPacket thePacket = new DatagramPacket(buf,
[all...]
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/ftp/
H A DFtpURLInputStream.java45 public int read(byte[] buf, int off, int nbytes) throws IOException { argument
46 return is.read(buf, off, nbytes);
/dalvik/libcore/archive/src/main/java/java/util/zip/
H A DGZIPInputStream.java99 int max = length > buf.length ? buf.length : length;
100 int result = in.read(buf, 0, max);
105 crc.update(buf, 0, result);
198 System.arraycopy(buf, len - size, b, 0, copySize);
/dalvik/libcore/luni/src/test/java/java/net/
H A DURLConnectionTest.java117 byte[] buf = new byte[writeKind == WriteKind.SMALL_BUFFERS ? 256 : 64*1024];
118 Arrays.fill(buf, (byte) 'x');
119 for (int i = 0; i < n; i += buf.length) {
120 out.write(buf, 0, Math.min(buf.length, n - i));
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/
H A DMappedByteBufferTest.java65 int len = buf.capacity();
70 byte b = buf.get();
75 IntBuffer ibuffer = buf.asIntBuffer();
174 buf = fc.map(FileChannel.MapMode.READ_WRITE, 0, capacity);
175 baseBuf = buf;
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DFileInputStreamTest.java338 byte[] buf = null;
341 is.read(buf, 0, 0);
349 buf = new byte[1000];
352 is.read(buf, -1, 0);
362 is.read(buf, 0, -1);
372 is.read(buf, -1, -1);
382 is.read(buf, 0, 1001);
392 is.read(buf, 1001, 0);
402 is.read(buf, 500, 501);
413 is.read(buf,
[all...]
H A DFilterInputStreamTest.java274 byte[] buf = null;
276 is.read(buf, -1, 0);
282 buf = new byte[1000];
284 is.read(buf, -1, 0);
291 is.read(buf, 0, -1);
298 is.read(buf, -1, -1);
305 is.read(buf, 0, 1001);
312 is.read(buf, 1001, 0);
319 is.read(buf, 500, 501);
327 is.read(buf,
[all...]
H A DObjectInputStreamTest.java339 byte[] buf = new byte[testLength];
343 ois.read(buf, 0, testLength);
345 assertEquals("Read incorrect bytes", testString, new String(buf));
358 byte[] buf = new byte[testLength];
364 ois.read(buf, 0, -1);
370 ois.read(buf, -1,1);
376 ois.read(buf, testLength, 1);
388 ois.read(buf, 0, testLength);
447 byte[] buf = new byte[testLength];
451 ois.readFully(buf);
[all...]
H A DFilterOutputStreamTest.java201 byte[] buf = new byte[10];
204 os.write(buf, -1, 1);
211 os.write(buf, 0, -1);
218 os.write(buf, 10, 1);
/dalvik/libcore/nio/src/main/java/java/nio/
H A DMappedByteBufferAdapter.java78 MappedByteBufferAdapter buf = new MappedByteBufferAdapter(this.wrapped
80 buf.limit = this.limit;
81 buf.position = this.position;
82 buf.mark = this.mark;
83 return buf;
108 MappedByteBufferAdapter buf = new MappedByteBufferAdapter(this.wrapped
110 buf.limit = this.limit;
111 buf.position = this.position;
112 buf.mark = this.mark;
113 return buf;
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/xpath/objects/
H A DXString.java1031 char[] buf = new char[len];
1033 this.getChars(0, len, buf, 0);
1040 if (isSpace(buf[s]))
1052 char c = buf[s];
1063 buf[d++] = ' ';
1067 char prevChar = buf[s - 1];
1088 buf[d++] = c;
1093 if (trimTail && 1 <= d && ' ' == buf[d - 1])
1102 if (trimHead && 0 < d && ' ' == buf[0])
1111 return edit ? xsf.newstr(new String(buf, star
[all...]
H A DXNumber.java361 char[] buf = new char[n];
365 buf[i] = '0';
368 return new String(buf);
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x501/
H A DAttributeTypeAndValue.java301 * @param buf - string buffer to be used
303 public void appendName(String attrFormat, StringBuffer buf) { argument
308 buf.append(oid.getName());
310 buf.append(oid.toOIDString());
313 buf.append('=');
316 buf.append(Util.toUpperCase(value.getHexString()));
319 value.appendQEString(buf);
321 buf.append(value.escapedString);
327 buf.append(oid.getName());
344 buf
[all...]
/dalvik/vm/jdwp/
H A DJdwpSocket.c64 /* pending data from the network; would be more efficient as circular buf */
541 const unsigned char* buf = packetBuf; local
550 length = read4BE(&buf);
551 id = read4BE(&buf);
552 flags = read1(&buf);
555 error = read2BE(&buf);
558 cmdSet = read1(&buf);
559 cmd = read1(&buf);
562 dataLen = length - (buf - packetBuf);
568 dvmPrintHexDumpDbg(buf, dataLe
577 const unsigned char* buf = netState->inputBuffer; local
[all...]
/dalvik/libcore/luni/src/main/java/java/io/
H A DInputStreamReader.java201 char buf[] = new char[1];
202 return read(buf, 0, 1) != -1 ? buf[0] : -1;
208 * at position {@code offset} in the character array {@code buf}. Returns
214 * @param buf
217 * the initial position in {@code buf} to store the characters
226 * {@code buf}.
231 public int read(char[] buf, int offset, int length) throws IOException { argument
242 if (buf == null) {
245 if ((offset | length) < 0 || offset > buf
[all...]
H A DPrintWriter.java647 * Writes the character buffer {@code buf} to the target.
649 * @param buf
653 public void write(char[] buf) { argument
657 write(buf, 0, buf.length);
667 * @param buf
675 * offset + count} is greater than the length of {@code buf}.
678 public void write(char[] buf, int offset, int count) { argument
682 doWrite(buf, offset, count);
700 private final void doWrite(char[] buf, in argument
[all...]
H A DOutputStreamWriter.java204 * Writes {@code count} characters starting at {@code offset} in {@code buf}
209 * @param buf
212 * the index of the first character in {@code buf} to write.
218 * {@code buf}.
224 public void write(char[] buf, int offset, int count) throws IOException { argument
233 if (buf == null) {
236 if ((offset | count) < 0 || offset > buf.length - count) {
240 CharBuffer chars = CharBuffer.wrap(buf, offset, count);
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/internal/
H A DIOUtil.java70 public static int readInputStreamReader(char[] buf, int offset, int length, argument
78 Util.assertArrayIndex(buf, offset, length);
88 System.arraycopy(chars.array(), position, buf, offset,
103 System.arraycopy(chars.array(), position, buf, offset,
170 public static void writeOutputStreamWriter(char[] buf, int offset, argument
173 Util.assertArrayIndex(buf, offset, count);
174 CharBuffer chars = CharBuffer.wrap(buf, offset, count);
/dalvik/dx/src/com/android/dx/util/
H A DTwoColumnOutput.java229 * @param buf {@code non-null;} the buffer in question
232 private static void appendNewlineIfNecessary(StringBuffer buf, argument
235 int len = buf.length();
237 if ((len != 0) && (buf.charAt(len - 1) != '\n')) {
/dalvik/libcore/luni/src/main/java/java/net/
H A DURLDecoder.java131 byte buf[] = new byte[s.length() / 3];
157 buf[len++] = (byte) ((d1 << 4) + d2);
161 CharBuffer cb = charset.decode(ByteBuffer.wrap(buf, 0, len));
/dalvik/libcore/luni/src/main/native/
H A Djava_net_NetworkInterface.cpp62 char buf[BUFSIZ]; local
64 jniStrError(errno, buf, sizeof(buf)));

Completed in 3433 milliseconds

1234567891011>>