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.java292 final int BUFFER_LEN = mBufferLen; in appendLocked() local
293 if (length > BUFFER_LEN) { in appendLocked()
296 int next = i + BUFFER_LEN; in appendLocked()
297 appendLocked(str, i, next < end ? BUFFER_LEN : (end - i)); in appendLocked()
303 if ((pos+length) > BUFFER_LEN) { in appendLocked()
312 final int BUFFER_LEN = mBufferLen; in appendLocked() local
313 if (length > BUFFER_LEN) { in appendLocked()
316 int next = i + BUFFER_LEN; in appendLocked()
317 appendLocked(buf, i, next < end ? BUFFER_LEN : (end - i)); in appendLocked()
323 if ((pos+length) > BUFFER_LEN) { in appendLocked()