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

12

/frameworks/base/core/tests/coretests/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/com/android/internal/util/
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/mtp/
H A DMtpPacket.cpp31 MtpPacket::MtpPacket(int bufferSize) argument
33 mBufferSize(bufferSize),
34 mAllocationIncrement(bufferSize),
37 mBuffer = (uint8_t *)malloc(bufferSize);
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_transport.cpp141 BufferedOutputStream::BufferedOutputStream(TCPStream *stream, size_t bufferSize) { argument
144 mBufferSize = bufferSize;
146 mStringBuffer.reserve(bufferSize);
/frameworks/av/cmds/stagefright/
H A Dmuxer.cpp81 size_t bufferSize = 1 * 1024 * 1024; // default buffer size is 1MB. local
115 bufferSize = width * height * 4; // Assuming it is maximally 4BPP
145 sp<ABuffer> newBuffer = new ABuffer(bufferSize);
/frameworks/av/media/libstagefright/
H A DAudioSource.cpp319 size_t bufferSize = numLostBytes; local
322 bufferSize = kMaxBufferSize;
326 MediaBuffer *lostAudioBuffer = new MediaBuffer(bufferSize);
327 memset(lostAudioBuffer->data(), 0, bufferSize);
328 lostAudioBuffer->set_range(0, bufferSize);
337 const size_t bufferSize = audioBuffer.size; local
338 MediaBuffer *buffer = new MediaBuffer(bufferSize);
341 buffer->set_range(0, bufferSize);
347 const size_t bufferSize = buffer->range_length(); local
351 ((1000000LL * (bufferSize / frameSiz
[all...]
H A DFLACExtractor.cpp686 size_t bufferSize = blocksize * getChannels() * sizeof(short); local
687 CHECK(bufferSize <= mMaxBufferSize);
689 buffer->set_range(0, bufferSize);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/
H A DSoftMPEG4.cpp221 int32_t bufferSize = inHeader->nFilledLen; local
222 int32_t tmp = bufferSize;
248 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);
H A DStreamingProcessor.cpp720 const size_t bufferSize = 4 + sizeof(buffer_handle_t); local
723 mRecordingHeapCount, bufferSize);
725 mRecordingHeap = new Camera2Heap(bufferSize, mRecordingHeapCount,
/frameworks/base/cmds/bootanimation/
H A DAudioPlayer.cpp211 int bufferSize; local
290 bufferSize = pcm_frames_to_bytes(pcm, pcm_get_buffer_size(pcm));
294 size_t count = bufferSize;
/frameworks/base/core/jni/android/graphics/
H A DCreateJavaOutputStreamAdaptor.cpp146 size_t bufferSize = 4096; local
149 char* data = (char*)sk_malloc_throw(bufferSize);
152 bufferSize - streamLen)) != 0) {
154 if (streamLen == bufferSize) {
155 bufferSize *= 2;
156 data = (char*)sk_realloc_throw(data, bufferSize);
/frameworks/native/libs/binder/
H A DBufferedTextOutput.cpp41 , bufferSize(0)
51 if ((len+bufferPos) > bufferSize) {
64 if (bufferSize > 256) {
68 bufferSize = 256;
76 size_t bufferSize; member in struct:android::BufferedTextOutput::BufferState
/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/bluetooth/
H A DBluetoothInputDevice.java141 /* int reportType, int reportType, int bufferSize */
592 * @param bufferSize Report receiving buffer size
597 public boolean getReport(BluetoothDevice device, byte reportType, byte reportId, int bufferSize) { argument
598 if (VDBG) log("getReport(" + device + "), reportType=" + reportType + " reportId=" + reportId + "bufferSize=" + bufferSize);
601 return mService.getReport(device, reportType, reportId, bufferSize);
/frameworks/av/drm/common/
H A DIDrmManagerService.cpp176 const int bufferSize = reply.readInt32(); local
178 if (0 < bufferSize) {
179 data = new char[bufferSize];
180 reply.read(data, bufferSize);
206 const int bufferSize = reply.readInt32(); local
208 if (0 < bufferSize) {
209 data = new char[bufferSize];
210 reply.read(data, bufferSize);
272 const int bufferSize = reply.readInt32(); local
274 if (0 < bufferSize) {
318 const int bufferSize = reply.readInt32(); local
522 const int bufferSize = reply.readInt32(); local
554 const int bufferSize = reply.readInt32(); local
866 int bufferSize = 0; local
898 int bufferSize = 0; local
936 const int bufferSize = data.readInt32(); local
961 const int bufferSize = drmBuffer->length; local
1008 const int bufferSize = drmBuffer.length; local
1038 const int bufferSize = data.readInt32(); local
1209 const int bufferSize = data.readInt32(); local
1221 const int bufferSize = convertedData->length; local
1252 const int bufferSize = convertedData->length; local
1350 const int bufferSize = data.readInt32(); local
1396 const int bufferSize = data.readInt32(); local
[all...]
/frameworks/av/media/libstagefright/codecs/hevcdec/
H A DSoftHEVC.cpp403 uint32_t bufferSize = displaySizeY * 3 / 2; local
404 mFlushOutBuffer = (uint8_t *)ivd_aligned_malloc(128, bufferSize);
406 ALOGE("Could not allocate flushOutputBuffer of size %zu", bufferSize);
/frameworks/av/media/libstagefright/yuv/
H A DYUVImage.cpp31 size_t numberOfBytes = bufferSize(yuvFormat, width, height);
50 size_t YUVImage::bufferSize(YUVFormat yuvFormat, int32_t width, int32_t height) { function in class:android::YUVImage
/frameworks/base/libs/hwui/
H A DCaches.h394 static void getLabelNull(GLenum type, uint object, GLsizei bufferSize, argument
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.h81 virtual ssize_t bufferSize() const;
195 virtual ssize_t bufferSize() const { return frameSize() * mFrameCount; } function in class:android::MediaPlayerService::AudioCache
/frameworks/base/core/jni/
H A Dandroid_hardware_Camera.cpp84 jbyteArray getCallbackBuffer(JNIEnv *env, Vector<jbyteArray> *buffers, size_t bufferSize);
203 JNIEnv* env, Vector<jbyteArray>* buffers, size_t bufferSize)
218 if ((int)bufferLength < (int)bufferSize) {
220 bufferSize, bufferLength);
202 getCallbackBuffer( JNIEnv* env, Vector<jbyteArray>* buffers, size_t bufferSize) argument
/frameworks/native/libs/input/
H A DInputTransport.cpp132 int bufferSize = SOCKET_BUFFER_SIZE; local
133 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &bufferSize, sizeof(bufferSize));
134 setsockopt(sockets[0], SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize));
135 setsockopt(sockets[1], SOL_SOCKET, SO_SNDBUF, &bufferSize, sizeof(bufferSize));
136 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize));

Completed in 2937 milliseconds

12