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

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DProcFileReaderTest.java159 private static ProcFileReader buildReader(String string, int bufferSize) throws IOException { argument
161 new ByteArrayInputStream(string.getBytes(Charsets.US_ASCII)), bufferSize);
/frameworks/base/core/java/com/android/internal/util/
H A DProcFileReader.java46 public ProcFileReader(InputStream stream, int bufferSize) throws IOException { argument
48 mBuffer = new byte[bufferSize];
/frameworks/base/media/mtp/
H A DMtpPacket.cpp31 MtpPacket::MtpPacket(int bufferSize) argument
33 mBufferSize(bufferSize),
34 mAllocationIncrement(bufferSize),
37 mBuffer = (uint8_t *)malloc(bufferSize);
/frameworks/base/core/jni/android/graphics/
H A DBitmapRegionDecoder.cpp52 size_t bufferSize = 4096; local
55 char* data = (char*)sk_malloc_throw(bufferSize);
58 bufferSize - streamLen)) != 0) {
60 if (streamLen == bufferSize) {
61 bufferSize *= 2;
62 data = (char*)sk_realloc_throw(data, bufferSize);
/frameworks/base/libs/utils/
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/base/media/libstagefright/
H A DAudioSource.cpp296 size_t bufferSize = numLostBytes + audioBuffer.size; local
297 MediaBuffer *buffer = new MediaBuffer(bufferSize);
312 buffer->set_range(0, bufferSize);
313 timestampUs += ((1000000LL * (bufferSize >> 1)) +
H A DFLACExtractor.cpp638 size_t bufferSize = blocksize * getChannels() * sizeof(short); local
639 CHECK(bufferSize <= mMaxBufferSize);
641 buffer->set_range(0, bufferSize);
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/
H A DSoftMPEG4.cpp422 int32_t bufferSize = inHeader->nFilledLen; local
427 int32_t tmp = bufferSize;
447 CHECK_LE(bufferSize, inHeader->nFilledLen);
448 inHeader->nOffset += inHeader->nFilledLen - bufferSize;
449 inHeader->nFilledLen = bufferSize;
/frameworks/base/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 Dmp4lib_int.h31 Int bufferSize; /*total bitstream buffer size in bytes */ member in struct:tagBitstream
/frameworks/base/opengl/libs/GLES2_dbg/src/
H A Dserver.cpp122 static unsigned bufferSize = 0; local
123 if (bufferSize < len) {
126 bufferSize = len;
/frameworks/base/opengl/libs/GLES2_dbg/test/
H A Dtest_main.cpp61 const unsigned int bufferSize = 512; local
63 void * const buffer0 = dbg.GetReadPixelsBuffer(bufferSize);
65 for (unsigned int i = 0; i < bufferSize / sizeof(unsigned int); i++) {
71 void * const buffer1 = dbg.GetReadPixelsBuffer(bufferSize);
74 for (unsigned int i = 0; i < bufferSize / sizeof(unsigned int); i++) {
80 void * const buffer2 = dbg.GetReadPixelsBuffer(bufferSize);
82 for (unsigned int i = 0; i < bufferSize / sizeof(unsigned int); i++)
86 void * const buffer3 = dbg.GetReadPixelsBuffer(bufferSize);
88 for (unsigned int i = 0; i < bufferSize / sizeof(unsigned int); i++)
92 void * const buffer4 = dbg.GetReadPixelsBuffer(bufferSize);
109 const unsigned int bufferSize = dbg.LZF_CHUNK_SIZE * 4 + 33; local
[all...]
H A Dtest_socket.cpp38 unsigned int bufferSize; member in class:SocketContextTest
57 bufferSize = 128;
89 if (len > bufferSize) {
90 bufferSize = len;
91 buffer = new char[bufferSize];
/frameworks/base/drm/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp94 const int bufferSize = licenseString.size(); local
96 data = new char[bufferSize];
97 memcpy(data, licenseString.string(), bufferSize);
98 const DrmBuffer* buffer = new DrmBuffer(data, bufferSize);
/frameworks/media/libvideoeditor/osal/src/
H A DLVOSA_FileReader_optim.c225 M4OSA_UInt32 bufferSize; local
246 bufferSize = M4OSA_READBUFFER_SIZE;
247 tempPos = (M4OSA_FilePosition) (pos / bufferSize);
/frameworks/base/drm/common/
H A DIDrmManagerService.cpp188 const int bufferSize = reply.readInt32(); local
190 if (0 < bufferSize) {
191 data = new char[bufferSize];
192 reply.read(data, bufferSize);
217 const int bufferSize = reply.readInt32(); local
219 if (0 < bufferSize) {
220 data = new char[bufferSize];
221 reply.read(data, bufferSize);
282 const int bufferSize = reply.readInt32(); local
284 if (0 < bufferSize) {
322 const int bufferSize = reply.readInt32(); local
521 const int bufferSize = reply.readInt32(); local
553 const int bufferSize = reply.readInt32(); local
839 int bufferSize = 0; local
869 int bufferSize = 0; local
907 const int bufferSize = data.readInt32(); local
932 const int bufferSize = drmBuffer->length; local
972 const int bufferSize = drmBuffer.length; local
1002 const int bufferSize = data.readInt32(); local
1168 const int bufferSize = data.readInt32(); local
1180 const int bufferSize = convertedData->length; local
1211 const int bufferSize = convertedData->length; local
1328 const int bufferSize = data.readInt32(); local
[all...]
/frameworks/base/media/libmediaplayerservice/
H A DMediaPlayerService.h75 virtual ssize_t bufferSize() const;
132 virtual ssize_t bufferSize() const { return frameSize() * mFrameCount; } function in class:android::MediaPlayerService::AudioCache
H A DMediaPlayerService.cpp1301 ssize_t MediaPlayerService::AudioOutput::bufferSize() const function in class:android::MediaPlayerService::AudioOutput
1597 mBufferSize = sink->bufferSize();
/frameworks/base/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/core/java/android/os/
H A DDebug.java458 * @param bufferSize The maximum amount of trace data we gather. If not given, it defaults to 8MB.
460 public static void startMethodTracing(String traceName, int bufferSize) { argument
461 startMethodTracing(traceName, bufferSize, 0);
485 * @param bufferSize The maximum amount of trace data we gather. If not given, it defaults to 8MB.
487 public static void startMethodTracing(String traceName, int bufferSize, argument
496 VMDebug.startMethodTracing(pathName, bufferSize, flags);
509 int bufferSize, int flags) {
510 VMDebug.startMethodTracing(traceName, fd, bufferSize, flags);
520 public static void startMethodTracingDdms(int bufferSize, int flags) { argument
521 VMDebug.startMethodTracingDdms(bufferSize, flag
508 startMethodTracing(String traceName, FileDescriptor fd, int bufferSize, int flags) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_Camera.cpp76 jbyteArray getCallbackBuffer(JNIEnv *env, Vector<jbyteArray> *buffers, size_t bufferSize);
195 JNIEnv* env, Vector<jbyteArray>* buffers, size_t bufferSize)
210 if ((int)bufferLength < (int)bufferSize) {
212 bufferSize, bufferLength);
194 getCallbackBuffer( JNIEnv* env, Vector<jbyteArray>* buffers, size_t bufferSize) argument
/frameworks/media/libvideoeditor/lvpp/
H A DVideoEditorPlayer.cpp341 ssize_t VideoEditorPlayer::VeAudioOutput::bufferSize() const { function in class:android::VideoEditorPlayer::VeAudioOutput
/frameworks/base/services/java/com/android/server/location/
H A DGpsLocationProvider.java1657 private native int native_read_nmea(byte[] buffer, int bufferSize); argument
/frameworks/base/services/input/tests/
H A DInputReader_test.cpp500 virtual size_t getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSize) { argument
/frameworks/base/services/audioflinger/
H A DAudioFlinger.cpp3196 // LOGD("Creating track with %d buffers @ %d bytes", bufferCount, bufferSize);
3199 size_t bufferSize = frameCount*channelCount*sizeof(int16_t); local
3201 size += bufferSize;
3224 mBufferEnd = (uint8_t *)mBuffer + bufferSize;
3245 mBufferEnd = (uint8_t *)mBuffer + bufferSize;

Completed in 700 milliseconds