/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | ProcFileReaderTest.java | 173 private static ProcFileReader buildReader(String string, int bufferSize) throws IOException { argument 175 new ByteArrayInputStream(string.getBytes(StandardCharsets.US_ASCII)), bufferSize);
|
/frameworks/av/media/libstagefright/ |
H A D | CallbackDataSource.cpp | 59 const size_t bufferSize = mMemory->size(); local 62 size_t numToRead = std::min(numLeft, bufferSize); 76 CHECK(numRead >= 0 && (size_t)numRead <= bufferSize);
|
H A D | AudioSource.cpp | 337 size_t bufferSize = numLostBytes; local 340 bufferSize = kMaxBufferSize; 344 MediaBuffer *lostAudioBuffer = new MediaBuffer(bufferSize); 345 memset(lostAudioBuffer->data(), 0, bufferSize); 346 lostAudioBuffer->set_range(0, bufferSize); 355 const size_t bufferSize = audioBuffer.size; local 356 MediaBuffer *buffer = new MediaBuffer(bufferSize); 359 buffer->set_range(0, bufferSize); 365 const size_t bufferSize = buffer->range_length(); local 369 ((1000000LL * (bufferSize / frameSiz [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ProcFileReader.java | 47 public ProcFileReader(InputStream stream, int bufferSize) throws IOException { argument 49 mBuffer = new byte[bufferSize];
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | InputStreamBuffer.java | 35 * 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 D | InputStreamBuffer.java | 35 * 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 D | MtpPacket.cpp | 31 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 D | gltrace_transport.cpp | 141 BufferedOutputStream::BufferedOutputStream(TCPStream *stream, size_t bufferSize) { argument 144 mBufferSize = bufferSize; 146 mStringBuffer.reserve(bufferSize);
|
/frameworks/av/cmds/stagefright/ |
H A D | muxer.cpp | 90 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/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerDecoderPassThrough.cpp | 315 int32_t bufferSize = buffer->size(); local 316 mCachedBytes += bufferSize; 326 onBufferConsumed(bufferSize); 334 onBufferConsumed(bufferSize); 340 reply->setInt32("size", bufferSize);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/ |
H A D | SoftMPEG4.cpp | 229 int32_t bufferSize = inHeader->nFilledLen; local 230 int32_t tmp = bufferSize; 256 inHeader->nOffset += bufferSize;
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | bitstream_io.cpp | 43 /* 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 D | CallbackProcessor.cpp | 369 size_t bufferSize = Camera2Client::calculateBufferSize( local 374 if (bufferSize != currentBufferSize) { 376 mCallbackHeap = new Camera2Heap(bufferSize, kCallbackHeapCount, 413 memcpy(data, imgBuffer.data, bufferSize);
|
/frameworks/base/cmds/bootanimation/ |
H A D | AudioPlayer.cpp | 210 int bufferSize; local 289 bufferSize = pcm_frames_to_bytes(pcm, pcm_get_buffer_size(pcm)); 293 size_t count = bufferSize;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | CreateJavaOutputStreamAdaptor.cpp | 145 size_t bufferSize = 4096; local 148 char* data = (char*)sk_malloc_throw(bufferSize); 151 bufferSize - streamLen)) != 0) { 153 if (streamLen == bufferSize) { 154 bufferSize *= 2; 155 data = (char*)sk_realloc_throw(data, bufferSize);
|
/frameworks/native/libs/binder/ |
H A D | BufferedTextOutput.cpp | 41 , 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/camera/ |
H A D | CameraMetadata.cpp | 294 size_t bufferSize = get_camera_metadata_size(mBuffer); local 297 if (dataAddr > bufAddr && dataAddr < (bufAddr + bufferSize)) {
|
/frameworks/av/drm/libdrmframework/plugins/passthru/src/ |
H A D | DrmPassthruPlugIn.cpp | 95 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/libstagefright/filters/ |
H A D | MediaFilter.cpp | 231 const size_t bufferSize = isInput ? mMaxInputSize : mMaxOutputSize; local 237 kBufferCountActual, bufferSize, 240 size_t totalSize = kBufferCountActual * bufferSize; 245 sp<IMemory> mem = mDealer[portIndex]->allocate(bufferSize); 253 info.mData = new ABuffer(mem->pointer(), bufferSize);
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothInputDevice.java | 141 /* 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 D | IDrmManagerService.cpp | 177 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) { 319 const int bufferSize = reply.readInt32(); local 523 const int bufferSize = reply.readInt32(); local 555 const int bufferSize = reply.readInt32(); local 869 int bufferSize = 0; local 901 int bufferSize = 0; local 939 const uint32_t bufferSize = data.readInt32(); local 969 const int bufferSize = drmBuffer->length; local 1019 const int bufferSize = drmBuffer.length; local 1049 const uint32_t bufferSize = data.readInt32(); local 1225 const uint32_t bufferSize = data.readInt32(); local 1240 const int bufferSize = convertedData->length; local 1271 const int bufferSize = convertedData->length; local 1369 const int bufferSize = data.readInt32(); local 1415 const uint32_t bufferSize = data.readInt32(); local [all...] |
/frameworks/av/media/libstagefright/codecs/avcdec/ |
H A D | SoftAVCDec.cpp | 461 uint32_t bufferSize = displaySizeY * 3 / 2; local 462 mFlushOutBuffer = (uint8_t *)ivd_aligned_malloc(128, bufferSize); 464 ALOGE("Could not allocate flushOutputBuffer of size %u", bufferSize);
|
/frameworks/av/media/libstagefright/codecs/hevcdec/ |
H A D | SoftHEVC.cpp | 410 uint32_t bufferSize = displaySizeY * 3 / 2; local 411 mFlushOutBuffer = (uint8_t *)ivd_aligned_malloc(128, bufferSize); 413 ALOGE("Could not allocate flushOutputBuffer of size %u", bufferSize);
|
/frameworks/av/media/libstagefright/codecs/mpeg2dec/ |
H A D | SoftMPEG2.cpp | 395 uint32_t bufferSize = displaySizeY * 3 / 2; local 396 mFlushOutBuffer = (uint8_t *)ivd_aligned_malloc(128, bufferSize); 398 ALOGE("Could not allocate flushOutputBuffer of size %u", bufferSize);
|
/frameworks/av/media/libstagefright/yuv/ |
H A D | YUVImage.cpp | 31 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
|