Home
last modified time | relevance | path

Searched refs:BUFFER_LEN (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
DFastXmlSerializer.java52 private static final int BUFFER_LEN = 8192; field in FastXmlSerializer
56 private final char[] mText = new char[BUFFER_LEN];
63 private ByteBuffer mBytes = ByteBuffer.allocate(BUFFER_LEN);
73 if (pos >= (BUFFER_LEN-1)) { in append()
82 if (length > BUFFER_LEN) { in append()
85 int next = i + BUFFER_LEN; in append()
86 append(str, i, next<end ? BUFFER_LEN : (end-i)); in append()
92 if ((pos+length) > BUFFER_LEN) { in append()
101 if (length > BUFFER_LEN) { in append()
104 int next = i + BUFFER_LEN; in append()
[all …]
DFastPrintWriter.java308 final int BUFFER_LEN = mBufferLen; in appendLocked() local
309 if (length > BUFFER_LEN) { in appendLocked()
312 int next = i + BUFFER_LEN; in appendLocked()
313 appendLocked(str, i, next < end ? BUFFER_LEN : (end - i)); in appendLocked()
319 if ((pos+length) > BUFFER_LEN) { in appendLocked()
328 final int BUFFER_LEN = mBufferLen; in appendLocked() local
329 if (length > BUFFER_LEN) { in appendLocked()
332 int next = i + BUFFER_LEN; in appendLocked()
333 appendLocked(buf, i, next < end ? BUFFER_LEN : (end - i)); in appendLocked()
339 if ((pos+length) > BUFFER_LEN) { in appendLocked()