Home
last modified time | relevance | path

Searched refs:bufferSize (Results 1 – 11 of 11) sorted by relevance

/libcore/dalvik/src/main/java/dalvik/system/
DVMDebug.java192 …public static void startMethodTracing(String traceFileName, int bufferSize, int flags, boolean sam… in startMethodTracing() argument
193 …startMethodTracingFilename(traceFileName, checkBufferSize(bufferSize), flags, samplingEnabled, int… in startMethodTracing()
201 public static void startMethodTracing(String traceFileName, FileDescriptor fd, int bufferSize, in startMethodTracing() argument
203 startMethodTracing(traceFileName, fd, bufferSize, flags, samplingEnabled, intervalUs, in startMethodTracing()
214 public static void startMethodTracing(String traceFileName, FileDescriptor fd, int bufferSize, in startMethodTracing() argument
220 startMethodTracingFd(traceFileName, fd.getInt$(), checkBufferSize(bufferSize), flags, in startMethodTracing()
230 …public static void startMethodTracingDdms(int bufferSize, int flags, boolean samplingEnabled, int … in startMethodTracingDdms() argument
231 startMethodTracingDdmsImpl(checkBufferSize(bufferSize), flags, samplingEnabled, intervalUs); in startMethodTracingDdms()
234 private static int checkBufferSize(int bufferSize) { in checkBufferSize() argument
235 if (bufferSize == 0) { in checkBufferSize()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_ASimpleOutputStream.java34 public Support_ASimpleOutputStream(int bufferSize) { in Support_ASimpleOutputStream() argument
35 buf = new byte[bufferSize]; in Support_ASimpleOutputStream()
37 size = bufferSize; in Support_ASimpleOutputStream()
DSupport_ASimpleWriter.java34 public Support_ASimpleWriter(int bufferSize) { in Support_ASimpleWriter() argument
35 buf = new char[bufferSize]; in Support_ASimpleWriter()
37 size = bufferSize; in Support_ASimpleWriter()
DSupport_OutputStream.java34 public Support_OutputStream(int bufferSize) { in Support_OutputStream() argument
35 buffer = new byte[bufferSize]; in Support_OutputStream()
37 size = bufferSize; in Support_OutputStream()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DOutputStreamTesterTest.java158 private final int bufferSize; field in OutputStreamTesterTest.BufferedOutputStreamTester
160 private BufferedOutputStreamTester(int bufferSize) { in BufferedOutputStreamTester() argument
161 this.bufferSize = bufferSize; in BufferedOutputStreamTester()
165 return new BufferedOutputStream(delegate, bufferSize); in create()
DWriterTesterTest.java156 private final int bufferSize; field in WriterTesterTest.BufferedWriterCharSinkTester
158 private BufferedWriterCharSinkTester(int bufferSize) { in BufferedWriterCharSinkTester() argument
159 this.bufferSize = bufferSize; in BufferedWriterCharSinkTester()
164 return new BufferedWriter(delegate, bufferSize); in create()
DPipedInputStreamTest.java436 int bufferSize) throws IOException { in MockPipedInputStream() argument
437 super(src, bufferSize); in MockPipedInputStream()
440 public MockPipedInputStream(int bufferSize) { in MockPipedInputStream() argument
441 super(bufferSize); in MockPipedInputStream()
DBufferedInputStreamTest.java119 int bufferSize = INPUT.length() / 2; in test_ConstructorLjava_io_InputStreamI() local
120 is = new BufferedInputStream(isBytes, bufferSize); in test_ConstructorLjava_io_InputStreamI()
128 is.skip(bufferSize - 2); in test_ConstructorLjava_io_InputStreamI()
/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBulkBenchmark.java43 @Param({"4096", "1232896"}) private int bufferSize; field in ByteBufferBulkBenchmark
70 ByteBuffer src = ByteBufferBulkBenchmark.newBuffer(aligned, srcBufferType, bufferSize); in timeByteBuffer_putByteBuffer()
71 ByteBuffer data = ByteBufferBulkBenchmark.newBuffer(aligned, dataBufferType, bufferSize); in timeByteBuffer_putByteBuffer()
/libcore/luni/src/test/java/libcore/java/util/zip/
DAbstractZipFileTest.java571 int bufferSize = 128; in testReadWithOffset() local
572 byte[] readBuffer = new byte[bufferSize]; in testReadWithOffset()
579 int read = is.read(readBuffer, bufferSize - 32, 32); in testReadWithOffset()
583 for (int i = 0; i < bufferSize - 32; i++) { in testReadWithOffset()
597 int bufferSize = 128; in testReadWithOffsetInvalid() local
598 byte[] readBuffer = new byte[bufferSize]; in testReadWithOffsetInvalid()
605 is.read(readBuffer, bufferSize - 32, 33); in testReadWithOffsetInvalid()
617 is.read(readBuffer, bufferSize, 1); in testReadWithOffsetInvalid()
/libcore/luni/src/main/native/
Dorg_apache_harmony_xml_ExpatParser.cpp109 : env(NULL), object(object), buffer(NULL), bufferSize(-1) { in ParsingContext()
139 if (bufferSize < length) { in ensureCapacity()
152 bufferSize = length; in ensureCapacity()
162 bufferSize = -1; in freeBuffer()
181 int bufferSize; member