Searched refs:MemoryPipe (Results 1 – 3 of 3) sorted by relevance
23 import android.os.FileUtils.MemoryPipe;73 try (MemoryPipe in = MemoryPipe.createSource(mData); in timePipeSourceUserspace()82 try (MemoryPipe in = MemoryPipe.createSource(mData); in timePipeSourceSplice()92 MemoryPipe out = MemoryPipe.createSink(mData)) { in timePipeSinkUserspace()101 MemoryPipe out = MemoryPipe.createSink(mData)) { in timePipeSinkSplice()
30 import android.os.FileUtils.MemoryPipe;138 MemoryPipe out = MemoryPipe.createSink(actual)) { in testCopy_FileToPipe()156 try (MemoryPipe in = MemoryPipe.createSource(expected); in testCopy_PipeToFile()173 try (MemoryPipe in = MemoryPipe.createSource(expected); in testCopy_PipeToPipe()174 MemoryPipe out = MemoryPipe.createSink(actual)) { in testCopy_PipeToPipe()194 try (MemoryPipe in = MemoryPipe.createSource(source); in testCopy_ShortPipeToFile()
1054 public static class MemoryPipe extends Thread implements AutoCloseable { class in FileUtils1059 private MemoryPipe(byte[] data, boolean sink) throws IOException { in MemoryPipe() method in FileUtils.MemoryPipe1069 private MemoryPipe startInternal() { in startInternal()1074 public static MemoryPipe createSource(byte[] data) throws IOException { in createSource()1075 return new MemoryPipe(data, false).startInternal(); in createSource()1078 public static MemoryPipe createSink(byte[] data) throws IOException { in createSink()1079 return new MemoryPipe(data, true).startInternal(); in createSink()