Home
last modified time | relevance | path

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

/libcore/dalvik/src/main/java/dalvik/system/
DVMDebug.java164 …public static void startMethodTracing(String traceFileName, int bufferSize, int flags, boolean sam… in startMethodTracing() argument
165 …startMethodTracingFilename(traceFileName, checkBufferSize(bufferSize), flags, samplingEnabled, int… in startMethodTracing()
173 …public static void startMethodTracing(String traceFileName, FileDescriptor fd, int bufferSize, int… in startMethodTracing() argument
177 …startMethodTracingFd(traceFileName, fd, checkBufferSize(bufferSize), flags, samplingEnabled, inter… in startMethodTracing()
185 …public static void startMethodTracingDdms(int bufferSize, int flags, boolean samplingEnabled, int … in startMethodTracingDdms() argument
186 startMethodTracingDdmsImpl(checkBufferSize(bufferSize), flags, samplingEnabled, intervalUs); in startMethodTracingDdms()
189 private static int checkBufferSize(int bufferSize) { in checkBufferSize() argument
190 if (bufferSize == 0) { in checkBufferSize()
192 bufferSize = 8 * 1024 * 1024; in checkBufferSize()
194 if (bufferSize < 1024) { in checkBufferSize()
[all …]
/libcore/luni/src/main/java/java/util/zip/
DDeflaterOutputStream.java67 public DeflaterOutputStream(OutputStream os, Deflater def, int bufferSize) { in DeflaterOutputStream() argument
68 this(os, def, bufferSize, false); in DeflaterOutputStream()
93 public DeflaterOutputStream(OutputStream os, Deflater def, int bufferSize, boolean syncFlush) { in DeflaterOutputStream() argument
100 if (bufferSize <= 0) { in DeflaterOutputStream()
101 throw new IllegalArgumentException("bufferSize <= 0: " + bufferSize); in DeflaterOutputStream()
105 buf = new byte[bufferSize]; in DeflaterOutputStream()
DGZIPOutputStream.java70 public GZIPOutputStream(OutputStream os, int bufferSize) throws IOException { in GZIPOutputStream() argument
71 this(os, bufferSize, false); in GZIPOutputStream()
80 public GZIPOutputStream(OutputStream os, int bufferSize, boolean syncFlush) throws IOException { in GZIPOutputStream() argument
81 super(os, new Deflater(Deflater.DEFAULT_COMPRESSION, true), bufferSize, syncFlush); in GZIPOutputStream()
DInflaterInputStream.java104 public InflaterInputStream(InputStream is, Inflater inflater, int bufferSize) { in InflaterInputStream() argument
111 if (bufferSize <= 0) { in InflaterInputStream()
112 throw new IllegalArgumentException("bufferSize <= 0: " + bufferSize); in InflaterInputStream()
116 nativeEndBufSize = bufferSize; in InflaterInputStream()
118 buf = new byte[bufferSize]; in InflaterInputStream()
DInflaterOutputStream.java71 public InflaterOutputStream(OutputStream out, Inflater inf, int bufferSize) { in InflaterOutputStream() argument
78 if (bufferSize <= 0) { in InflaterOutputStream()
79 throw new IllegalArgumentException("bufferSize <= 0: " + bufferSize); in InflaterOutputStream()
82 this.buf = new byte[bufferSize]; in InflaterOutputStream()
DDeflaterInputStream.java73 public DeflaterInputStream(InputStream in, Deflater deflater, int bufferSize) { in DeflaterInputStream() argument
80 if (bufferSize <= 0) { in DeflaterInputStream()
81 throw new IllegalArgumentException("bufferSize <= 0: " + bufferSize); in DeflaterInputStream()
84 this.buf = new byte[bufferSize]; in DeflaterInputStream()
/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/luni/src/main/java/javax/crypto/
DCipherInputStream.java62 int bufferSize = Math.max(blockSize, in CipherInputStream() local
64 inputBuffer = new byte[bufferSize]; in CipherInputStream()
65 outputBuffer = new byte[bufferSize + ((blockSize > 1) ? 2 * blockSize : 0)]; in CipherInputStream()
/libcore/luni/src/main/native/
Dorg_apache_harmony_xml_ExpatParser.cpp104 ParsingContext(jobject object) : env(NULL), object(object), buffer(NULL), bufferSize(-1) { in ParsingContext()
134 if (bufferSize < length) { in ensureCapacity()
147 bufferSize = length; in ensureCapacity()
157 bufferSize = -1; in freeBuffer()
176 int bufferSize; member
/libcore/libart/src/main/java/java/lang/
DString.java1801 int bufferSize = format.length() + (args == null ? 0 : args.length * 10); in format() local
1802 Formatter f = new Formatter(new StringBuilder(bufferSize), locale); in format()