Home
last modified time | relevance | path

Searched refs:FastDataOutput (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
DFastDataOutput.java42 public class FastDataOutput implements DataOutput, Flushable, Closeable { class
47 private static AtomicReference<FastDataOutput> sOutCache = new AtomicReference<>();
63 public FastDataOutput(@NonNull OutputStream out, int bufferSize) { in FastDataOutput() method in FastDataOutput
79 public static FastDataOutput obtain(@NonNull OutputStream out) { in obtain()
80 FastDataOutput instance = sOutCache.getAndSet(null); in obtain()
85 return new FastDataOutput(out, BUFFER_SIZE); in obtain()
DBinaryXmlSerializer.java100 private FastDataOutput mOut;
127 mOut = FastDataOutput.obtain(os); in setOutput()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DFastDataTest.java91 try (FastDataOutput out = new FastDataOutput(new ByteArrayOutputStream(), BOUNCE_SIZE)) { in testUTF_Bounds()
123 final FastDataOutput out = new FastDataOutput(outStream, BOUNCE_SIZE); in testTranscode()
358 private static void doBounce(@NonNull ThrowingConsumer<FastDataOutput> out, in doBounce()
363 private static void doBounce(@NonNull ThrowingConsumer<FastDataOutput> out, in doBounce()
366 final FastDataOutput outData = new FastDataOutput(outStream, BOUNCE_SIZE); in doBounce()
/frameworks/base/apct-tests/perftests/core/src/com/android/internal/util/
DFastDataPerfTest.java67 final FastDataOutput out = FastDataOutput.obtain(os); in timeWrite_Local()