Searched refs:bufferSize (Results 1 - 25 of 95) sorted by relevance

1234

/frameworks/base/core/java/com/android/internal/util/
H A DLineBreakBufferedWriter.java48 private final int bufferSize; field in class:LineBreakBufferedWriter
66 * @param bufferSize The maximum buffer size.
68 public LineBreakBufferedWriter(Writer out, int bufferSize) { argument
69 this(out, bufferSize, 16); // 16 is the default size of a StringBuilder buffer.
76 * @param bufferSize The maximum buffer size.
79 public LineBreakBufferedWriter(Writer out, int bufferSize, int initialCapacity) { argument
81 this.buffer = new char[Math.min(initialCapacity, bufferSize)];
83 this.bufferSize = bufferSize;
119 while (bufferIndex + len > bufferSize) {
[all...]
H A DProcFileReader.java47 public ProcFileReader(InputStream stream, int bufferSize) throws IOException { argument
49 mBuffer = new byte[bufferSize];
/frameworks/base/core/java/android/ddm/
H A DDdmHandleThread.java146 int bufferSize = 0;
148 bufferSize += 4; // version, flags, whatever
149 bufferSize += 4; // thread ID
150 bufferSize += 4; // frame count
152 bufferSize += 4 + elem.getClassName().length() * 2;
153 bufferSize += 4 + elem.getMethodName().length() * 2;
154 bufferSize += 4;
156 bufferSize += elem.getFileName().length() * 2;
157 bufferSize += 4; // line number
160 ByteBuffer out = ByteBuffer.allocate(bufferSize);
[all...]
H A DDdmHandleProfiling.java105 int bufferSize = in.getInt();
111 + "', size=" + bufferSize + ", flags=" + flags);
114 Debug.startMethodTracing(fileName, bufferSize, flags);
147 int bufferSize = in.getInt();
150 Log.v("ddm-heap", "Method prof stream start: size=" + bufferSize
155 Debug.startMethodTracingDdms(bufferSize, flags, false, 0);
200 int bufferSize = in.getInt();
204 Log.v("ddm-heap", "Sample prof stream start: size=" + bufferSize
209 Debug.startMethodTracingDdms(bufferSize, flags, true, interval);
/frameworks/av/media/libaaudio/src/fifo/
H A DFifoController.h33 FifoController(fifo_counter_t bufferSize, fifo_counter_t threshold) argument
34 : FifoControllerBase(bufferSize, threshold)
/frameworks/av/include/media/
H A DDataSource.h63 virtual bool getUri(char *uriString, size_t bufferSize) final {
64 int ret = snprintf(uriString, bufferSize, "%s", getUri().c_str());
65 return ret >= 0 && static_cast<size_t>(ret) < bufferSize;
H A DDataSourceBase.h61 virtual bool getUri(char *uriString, size_t bufferSize);
/frameworks/av/media/libmediaextractor/include/media/
H A DDataSource.h63 virtual bool getUri(char *uriString, size_t bufferSize) final {
64 int ret = snprintf(uriString, bufferSize, "%s", getUri().c_str());
65 return ret >= 0 && static_cast<size_t>(ret) < bufferSize;
H A DDataSourceBase.h61 virtual bool getUri(char *uriString, size_t bufferSize);
/frameworks/av/drm/common/
H A DIDrmManagerService.cpp177 const int bufferSize = reply.readInt32(); local
179 if (0 < bufferSize) {
180 data = new char[bufferSize];
181 reply.read(data, bufferSize);
207 const int bufferSize = reply.readInt32(); local
209 if (0 < bufferSize) {
210 data = new char[bufferSize];
211 reply.read(data, bufferSize);
273 const int bufferSize = reply.readInt32(); local
275 if (0 < bufferSize) {
321 const int bufferSize = reply.readInt32(); local
525 const int bufferSize = reply.readInt32(); local
557 const int bufferSize = reply.readInt32(); local
871 int bufferSize = 0; local
903 int bufferSize = 0; local
941 const uint32_t bufferSize = data.readInt32(); local
971 const int bufferSize = drmBuffer->length; local
1021 const int bufferSize = drmBuffer.length; local
1051 const uint32_t bufferSize = data.readInt32(); local
1227 const uint32_t bufferSize = data.readInt32(); local
1242 const int bufferSize = convertedData->length; local
1273 const int bufferSize = convertedData->length; local
1371 const int bufferSize = data.readInt32(); local
1417 const uint32_t bufferSize = data.readInt32(); local
[all...]
/frameworks/av/media/libstagefright/
H A DAudioSource.cpp354 const size_t bufferSize = audioBuffer.size; local
359 int64_t receievedFrames = bufferSize / mRecord->frameSize();
400 size_t bufferSize = numLostBytes; local
403 bufferSize = kMaxBufferSize;
407 MediaBuffer *lostAudioBuffer = new MediaBuffer(bufferSize);
408 memset(lostAudioBuffer->data(), 0, bufferSize);
409 lostAudioBuffer->set_range(0, bufferSize);
410 mNumFramesLost += bufferSize / mRecord->frameSize();
419 MediaBuffer *buffer = new MediaBuffer(bufferSize);
422 buffer->set_range(0, bufferSize);
428 const size_t bufferSize = buffer->range_length(); local
[all...]
H A DCallbackDataSource.cpp66 const size_t bufferSize = mMemory->size(); local
69 size_t numToRead = std::min(numLeft, bufferSize);
83 CHECK(numRead >= 0 && (size_t)numRead <= bufferSize);
/frameworks/av/media/mtp/
H A DMtpPacket.cpp31 MtpPacket::MtpPacket(int bufferSize) argument
33 mBufferSize(bufferSize),
34 mAllocationIncrement(bufferSize),
37 mBuffer = (uint8_t *)malloc(bufferSize);
H A DMtpPacket.h42 explicit MtpPacket(int bufferSize);
/frameworks/base/cmds/statsd/src/metrics/
H A DEventMetricProducer.cpp87 size_t bufferSize = protoOutput.size(); local
89 std::unique_ptr<std::vector<uint8_t>> buffer(new std::vector<uint8_t>(bufferSize));
116 size_t bufferSize = mProto->size(); local
118 (long long)mMetricId, bufferSize);
/frameworks/base/core/jni/android/graphics/
H A DCreateJavaOutputStreamAdaptor.cpp181 size_t bufferSize = 4096; local
184 char* data = (char*)sk_malloc_throw(bufferSize);
187 bufferSize - streamLen)) != 0) {
189 if (streamLen == bufferSize) {
190 bufferSize *= 2;
191 data = (char*)sk_realloc_throw(data, bufferSize);
/frameworks/native/libs/binder/
H A DBufferedTextOutput.cpp41 , bufferSize(0)
51 if ((len+bufferPos) > bufferSize) {
57 bufferSize = newSize;
67 if (bufferSize > 256) {
71 bufferSize = 256;
79 size_t bufferSize; member in struct:android::BufferedTextOutput::BufferState
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DInputStreamBuffer.java35 * and you should set the <code>bufferSize</code> parameter to <code>10</code> in the constructor.
87 * @param bufferSize The initial size for the internal buffer. The buffer size should be
97 public InputStreamBuffer(final InputStream inputStream, int bufferSize, argument
100 if (bufferSize <= 0) {
102 String.format("Buffer size %d must be positive.", bufferSize));
104 bufferSize = leastPowerOf2(bufferSize);
105 mBuffer = new byte[bufferSize];
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DInputStreamBuffer.java35 * and you should set the <code>bufferSize</code> parameter to <code>10</code> in the constructor.
87 * @param bufferSize The initial size for the internal buffer. The buffer size should be
97 public InputStreamBuffer(final InputStream inputStream, int bufferSize, argument
100 if (bufferSize <= 0) {
102 String.format("Buffer size %d must be positive.", bufferSize));
104 bufferSize = leastPowerOf2(bufferSize);
105 mBuffer = new byte[bufferSize];
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dbitstream_io.cpp43 /* Function : BitStreamCreateEnc(Int bufferSize ) */
47 /* bufferSize : size of the bitstream buffer in bytes */
52 BitstreamEncVideo *BitStreamCreateEnc(Int bufferSize) argument
60 stream->bufferSize = bufferSize;
61 stream->bitstreamBuffer = (UChar *) M4VENC_MALLOC(stream->bufferSize * sizeof(UChar));
68 M4VENC_MEMSET(stream->bitstreamBuffer, 0, stream->bufferSize*sizeof(UChar));
213 if (stream->byteCount + WORD_SIZE > stream->bufferSize)
267 if (stream->byteCount + numbyte > stream->bufferSize)
446 if (bitstream1->byteCount + bitstream2->byteCount + offset > bitstream1->bufferSize)
[all...]
H A Dbitstream_io.h30 BitstreamEncVideo *BitStreamCreateEnc(Int bufferSize);
/frameworks/base/libs/androidfw/include/androidfw/
H A DCursorWindow.h171 inline void* offsetToPtr(uint32_t offset, uint32_t bufferSize = 0) {
176 if (offset + bufferSize > mSize) {
178 offset + bufferSize, mSize);
/frameworks/av/services/audioflinger/
H A DRecordTracks.h33 size_t bufferSize,
114 size_t bufferSize,
/frameworks/av/drm/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp95 const int bufferSize = licenseString.size(); local
97 data = new char[bufferSize];
98 memcpy(data, licenseString.string(), bufferSize);
99 const DrmBuffer* buffer = new DrmBuffer(data, bufferSize);
/frameworks/base/core/java/android/util/
H A DLog.java395 int bufferSize = PreloadHolder.LOGGER_ENTRY_MAX_PAYLOAD // Base.
400 bufferSize = Math.max(bufferSize, 100);
402 LineBreakBufferedWriter lbbw = new LineBreakBufferedWriter(logWriter, bufferSize);

Completed in 494 milliseconds

1234