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

12

/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.java97 int bufferSize = in.getInt();
103 + "', size=" + bufferSize + ", flags=" + flags);
106 Debug.startMethodTracing(fileName, bufferSize, flags);
139 int bufferSize = in.getInt();
142 Log.v("ddm-heap", "Method prof stream start: size=" + bufferSize
147 Debug.startMethodTracingDdms(bufferSize, flags);
/frameworks/av/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) {
328 const int bufferSize = reply.readInt32(); local
532 const int bufferSize = reply.readInt32(); local
564 const int bufferSize = reply.readInt32(); local
889 int bufferSize = 0; local
919 int bufferSize = 0; local
957 const int bufferSize = data.readInt32(); local
982 const int bufferSize = drmBuffer->length; local
1029 const int bufferSize = drmBuffer.length; local
1059 const int bufferSize = data.readInt32(); local
1230 const int 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 int bufferSize = data.readInt32(); local
[all...]
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_transport.h66 * Construct a Buffered stream of size @bufferSize, using @stream as
69 BufferedOutputStream(TCPStream *stream, size_t bufferSize);
H A Dgltrace_transport.cpp141 BufferedOutputStream::BufferedOutputStream(TCPStream *stream, size_t bufferSize) { argument
144 mBufferSize = bufferSize;
146 mStringBuffer.reserve(bufferSize);
/frameworks/av/media/libstagefright/
H A DAudioSource.cpp320 size_t bufferSize = numLostBytes; local
323 bufferSize = kMaxBufferSize;
327 MediaBuffer *lostAudioBuffer = new MediaBuffer(bufferSize);
328 memset(lostAudioBuffer->data(), 0, bufferSize);
329 lostAudioBuffer->set_range(0, bufferSize);
338 const size_t bufferSize = audioBuffer.size; local
339 MediaBuffer *buffer = new MediaBuffer(bufferSize);
342 buffer->set_range(0, bufferSize);
348 const size_t bufferSize = buffer->range_length(); local
352 ((1000000LL * (bufferSize / frameSiz
[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);
H A DMtpPacket.h38 MtpPacket(int bufferSize);
/frameworks/base/core/java/android/bluetooth/
H A DIBluetoothInputDevice.aidl50 boolean getReport(in BluetoothDevice device, byte reportType, byte reportId, int bufferSize);
H A DBluetoothInputDevice.java129 /* int reportType, int reportType, int bufferSize */
568 * @param bufferSize Report receiving buffer size
573 public boolean getReport(BluetoothDevice device, byte reportType, byte reportId, int bufferSize) { argument
574 if (VDBG) log("getReport(" + device + "), reportType=" + reportType + " reportId=" + reportId + "bufferSize=" + bufferSize);
577 return mService.getReport(device, reportType, reportId, bufferSize);
/frameworks/base/core/jni/android/graphics/
H A DBitmapRegionDecoder.cpp53 size_t bufferSize = 4096; local
56 char* data = (char*)sk_malloc_throw(bufferSize);
59 bufferSize - streamLen)) != 0) {
61 if (streamLen == bufferSize) {
62 bufferSize *= 2;
63 data = (char*)sk_realloc_throw(data, 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/native/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/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/av/services/camera/libcameraservice/camera2/
H A DCallbackProcessor.cpp235 size_t bufferSize = Camera2Client::calculateBufferSize( local
240 if (bufferSize != currentBufferSize) {
242 mCallbackHeap = new Camera2Heap(bufferSize, kCallbackHeapCount,
276 memcpy(data, imgBuffer.data, bufferSize);
/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/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/av/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/av/include/media/stagefright/
H A DYUVImage.h68 static size_t bufferSize(YUVFormat yuvFormat, int32_t width, int32_t height);
/frameworks/base/libs/androidfw/
H A DInputTransport.cpp130 int bufferSize = SOCKET_BUFFER_SIZE; local
131 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &bufferSize, sizeof(bufferSize));
132 setsockopt(sockets[0], SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize));
133 setsockopt(sockets[1], SOL_SOCKET, SO_SNDBUF, &bufferSize, sizeof(bufferSize));
134 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize));
/frameworks/base/graphics/java/android/renderscript/
H A DProgramVertexFixedFunction.java224 int bufferSize = constInputType.getElement().getBytesSize()*
226 mIOBuffer = new FieldPacker(bufferSize);
/frameworks/base/libs/hwui/
H A DCaches.h292 static void getLabelNull(GLenum type, uint object, GLsizei bufferSize, argument
/frameworks/base/services/input/
H A DEventHub.h199 virtual size_t getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSize) = 0;
277 virtual size_t getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSize);
/frameworks/base/services/java/com/android/server/
H A DDropBoxManagerService.java207 int bufferSize = mBlockSize;
208 if (bufferSize > 4096) bufferSize = 4096;
209 if (bufferSize < 512) bufferSize = 512;
211 output = new BufferedOutputStream(foutput, bufferSize);

Completed in 2448 milliseconds

12