Searched defs:bufferSize (Results 1 - 25 of 46) sorted by relevance

12

/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/base/core/tests/utiltests/src/com/android/internal/util/
H A DProcFileReaderTest.java173 private static ProcFileReader buildReader(String string, int bufferSize) throws IOException { argument
175 new ByteArrayInputStream(string.getBytes(StandardCharsets.US_ASCII)), bufferSize);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothHidDeviceCallback.java74 * @param bufferSize Requested buffer size, application shall respond with
77 public void onGetReport(BluetoothDevice device, byte type, byte id, int bufferSize) { argument
78 Log.d(TAG, "onGetReport: device=" + device + " type=" + type + " id=" + id + " bufferSize="
79 + bufferSize);
H A DBluetoothInputDevice.java142 /* int reportType, int reportType, int bufferSize */
593 * @param bufferSize Report receiving buffer size
598 public boolean getReport(BluetoothDevice device, byte reportType, byte reportId, int bufferSize) { argument
599 if (VDBG) log("getReport(" + device + "), reportType=" + reportType + " reportId=" + reportId + "bufferSize=" + bufferSize);
602 return mService.getReport(device, reportType, reportId, bufferSize);
H A DBluetoothInputHost.java141 public void onGetReport(BluetoothDevice device, byte type, byte id, int bufferSize) { argument
142 mCallback.onGetReport(device, type, id, bufferSize);
/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/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/
H A DCallbackDataSource.cpp62 const size_t bufferSize = mMemory->size(); local
65 size_t numToRead = std::min(numLeft, bufferSize);
79 CHECK(numRead >= 0 && (size_t)numRead <= bufferSize);
H A DAudioSource.cpp329 const size_t bufferSize = audioBuffer.size; local
334 int64_t receievedFrames = bufferSize / mRecord->frameSize();
366 size_t bufferSize = numLostBytes; local
369 bufferSize = kMaxBufferSize;
373 MediaBuffer *lostAudioBuffer = new MediaBuffer(bufferSize);
374 memset(lostAudioBuffer->data(), 0, bufferSize);
375 lostAudioBuffer->set_range(0, bufferSize);
376 mNumFramesLost += bufferSize / mRecord->frameSize();
385 MediaBuffer *buffer = new MediaBuffer(bufferSize);
388 buffer->set_range(0, bufferSize);
394 const size_t bufferSize = buffer->range_length(); local
[all...]
/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);
/frameworks/av/services/audioflinger/
H A DFastCapture.cpp136 size_t bufferSize = frameCount * Format_frameSize(mFormat); local
137 (void)posix_memalign(&mReadBuffer, 32, bufferSize);
138 memset(mReadBuffer, 0, bufferSize); // if posix_memalign fails, will segv here.
/frameworks/av/cmds/stagefright/
H A Dmuxer.cpp90 size_t bufferSize = 1 * 1024 * 1024; // default buffer size is 1MB. local
124 bufferSize = width * height * 4; // Assuming it is maximally 4BPP
159 sp<ABuffer> newBuffer = new ABuffer(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/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerDecoderPassThrough.cpp318 int32_t bufferSize = buffer->size(); local
319 mCachedBytes += bufferSize;
328 onBufferConsumed(bufferSize);
336 onBufferConsumed(bufferSize);
342 reply->setInt32("size", bufferSize);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/
H A DSoftMPEG4.cpp238 int32_t bufferSize = inHeader->nFilledLen; local
239 int32_t tmp = bufferSize;
297 inHeader->nOffset += 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...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DCallbackProcessor.cpp369 size_t bufferSize = Camera2Client::calculateBufferSize( local
374 if (bufferSize != currentBufferSize) {
376 mCallbackHeap = new Camera2Heap(bufferSize, kCallbackHeapCount,
413 memcpy(data, imgBuffer.data, bufferSize);
/frameworks/base/core/jni/android/graphics/
H A DCreateJavaOutputStreamAdaptor.cpp147 size_t bufferSize = 4096; local
150 char* data = (char*)sk_malloc_throw(bufferSize);
153 bufferSize - streamLen)) != 0) {
155 if (streamLen == bufferSize) {
156 bufferSize *= 2;
157 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/av/media/libstagefright/filters/
H A DMediaFilter.cpp213 const size_t bufferSize = isInput ? mMaxInputSize : mMaxOutputSize; local
219 kBufferCountActual, bufferSize,
222 size_t totalSize = kBufferCountActual * bufferSize;
227 sp<IMemory> mem = mDealer[portIndex]->allocate(bufferSize);
/frameworks/av/camera/
H A DCameraMetadata.cpp307 size_t bufferSize = get_camera_metadata_size(mBuffer); local
310 if (dataAddr > bufAddr && dataAddr < (bufAddr + 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/include/media/nbaio/
H A DNBLog.h325 Snapshot(size_t bufferSize) : mData(new uint8_t[bufferSize]) {} argument

Completed in 575 milliseconds

12