/frameworks/base/core/java/android/ddm/ |
H A D | DdmHandleThread.java | 146 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 D | DdmHandleProfiling.java | 105 int bufferSize = in.getInt(); 111 + "', size=" + bufferSize + ", flags=" + flags); 114 Debug.startMethodTracing(fileName, bufferSize, flags); 147 int bufferSize = in.getInt(); 150 Log.v("ddm-heap", "Method prof stream start: size=" + bufferSize 155 Debug.startMethodTracingDdms(bufferSize, flags, false, 0); 202 int bufferSize = in.getInt(); 206 Log.v("ddm-heap", "Sample prof stream start: size=" + bufferSize 211 Debug.startMethodTracingDdms(bufferSize, flags, true, interval);
|
/frameworks/av/drm/common/ |
H A D | IDrmManagerService.cpp | 176 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/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/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_transport.h | 66 * Construct a Buffered stream of size @bufferSize, using @stream as 69 BufferedOutputStream(TCPStream *stream, size_t bufferSize);
|
H A D | gltrace_transport.cpp | 141 BufferedOutputStream::BufferedOutputStream(TCPStream *stream, size_t bufferSize) { argument 144 mBufferSize = bufferSize; 146 mStringBuffer.reserve(bufferSize);
|
/frameworks/av/media/libstagefright/ |
H A D | AudioSource.cpp | 315 size_t bufferSize = numLostBytes; local 318 bufferSize = kMaxBufferSize; 322 MediaBuffer *lostAudioBuffer = new MediaBuffer(bufferSize); 323 memset(lostAudioBuffer->data(), 0, bufferSize); 324 lostAudioBuffer->set_range(0, bufferSize); 333 const size_t bufferSize = audioBuffer.size; local 334 MediaBuffer *buffer = new MediaBuffer(bufferSize); 337 buffer->set_range(0, bufferSize); 343 const size_t bufferSize = buffer->range_length(); local 347 ((1000000LL * (bufferSize / frameSiz [all...] |
/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);
|
H A D | MtpPacket.h | 38 MtpPacket(int bufferSize);
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | IBluetoothInputDevice.aidl | 50 boolean getReport(in BluetoothDevice device, byte reportType, byte reportId, int bufferSize);
|
H A D | BluetoothInputDevice.java | 129 /* int reportType, int reportType, int bufferSize */ 574 * @param bufferSize Report receiving buffer size 579 public boolean getReport(BluetoothDevice device, byte reportType, byte reportId, int bufferSize) { argument 580 if (VDBG) log("getReport(" + device + "), reportType=" + reportType + " reportId=" + reportId + "bufferSize=" + bufferSize); 583 return mService.getReport(device, reportType, reportId, bufferSize);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | CreateJavaOutputStreamAdaptor.cpp | 136 size_t bufferSize = 4096; local 139 char* data = (char*)sk_malloc_throw(bufferSize); 142 bufferSize - streamLen)) != 0) { 144 if (streamLen == bufferSize) { 145 bufferSize *= 2; 146 data = (char*)sk_realloc_throw(data, 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...] |
H A D | bitstream_io.h | 30 BitstreamEncVideo *BitStreamCreateEnc(Int bufferSize);
|
/frameworks/native/libs/binder/ |
H A D | BufferedTextOutput.cpp | 41 , 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 D | ProcFileReader.java | 47 public ProcFileReader(InputStream stream, int bufferSize) throws IOException { argument 49 mBuffer = new byte[bufferSize];
|
/frameworks/base/core/java/android/os/ |
H A D | Debug.java | 611 * @param bufferSize The maximum amount of trace data we gather. If not given, it defaults to 8MB. 613 public static void startMethodTracing(String traceName, int bufferSize) { argument 614 startMethodTracing(traceName, bufferSize, 0); 638 * @param bufferSize The maximum amount of trace data we gather. If not given, it defaults to 8MB. 640 public static void startMethodTracing(String traceName, int bufferSize, argument 649 VMDebug.startMethodTracing(pathName, bufferSize, flags); 662 int bufferSize, int flags) { 663 VMDebug.startMethodTracing(traceName, fd, bufferSize, flags); 673 public static void startMethodTracingDdms(int bufferSize, int flags, argument 675 VMDebug.startMethodTracingDdms(bufferSize, flag 661 startMethodTracing(String traceName, FileDescriptor fd, int bufferSize, int flags) argument [all...] |
/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/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/cmds/stagefright/ |
H A D | muxer.cpp | 79 size_t bufferSize = 1 * 1024 * 1024; // default buffer size is 1MB. local 113 bufferSize = width * height * 4; // Assuming it is maximally 4BPP 143 sp<ABuffer> newBuffer = new ABuffer(bufferSize);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/ |
H A D | SoftMPEG4.cpp | 209 int32_t bufferSize = inHeader->nFilledLen; local 210 int32_t tmp = bufferSize; 234 inHeader->nOffset += bufferSize;
|
/frameworks/av/include/media/stagefright/ |
H A D | YUVImage.h | 68 static size_t bufferSize(YUVFormat yuvFormat, int32_t width, int32_t height);
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | CallbackProcessor.cpp | 367 size_t bufferSize = Camera2Client::calculateBufferSize( local 372 if (bufferSize != currentBufferSize) { 374 mCallbackHeap = new Camera2Heap(bufferSize, kCallbackHeapCount, 411 memcpy(data, imgBuffer.data, bufferSize);
|
/frameworks/native/libs/input/ |
H A D | InputTransport.cpp | 131 int bufferSize = SOCKET_BUFFER_SIZE; local 132 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &bufferSize, sizeof(bufferSize)); 133 setsockopt(sockets[0], SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize)); 134 setsockopt(sockets[1], SOL_SOCKET, SO_SNDBUF, &bufferSize, sizeof(bufferSize)); 135 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &bufferSize, sizeof(bufferSize));
|
/frameworks/base/graphics/java/android/renderscript/ |
H A D | ProgramVertexFixedFunction.java | 225 int bufferSize = constInputType.getElement().getBytesSize()* 227 mIOBuffer = new FieldPacker(bufferSize);
|