/frameworks/base/core/java/com/android/internal/util/ |
H A D | LineBreakBufferedWriter.java | 48 private final int bufferSize; field in class:LineBreakBufferedWriter 66 * @param bufferSize The maximum buffer size. 68 public LineBreakBufferedWriter(Writer out, int bufferSize) { argument 69 this(out, bufferSize, 16); // 16 is the default size of a StringBuilder buffer. 76 * @param bufferSize The maximum buffer size. 79 public LineBreakBufferedWriter(Writer out, int bufferSize, int initialCapacity) { argument 81 this.buffer = new char[Math.min(initialCapacity, bufferSize)]; 83 this.bufferSize = bufferSize; 119 while (bufferIndex + len > bufferSize) { [all...] |
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/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); 200 int bufferSize = in.getInt(); 204 Log.v("ddm-heap", "Sample prof stream start: size=" + bufferSize 209 Debug.startMethodTracingDdms(bufferSize, flags, true, interval);
|
/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) { 321 const int bufferSize = reply.readInt32(); local 525 const int bufferSize = reply.readInt32(); local 557 const int bufferSize = reply.readInt32(); local 871 int bufferSize = 0; local 903 int bufferSize = 0; local 941 const uint32_t bufferSize = data.readInt32(); local 971 const int bufferSize = drmBuffer->length; local 1021 const int bufferSize = drmBuffer.length; local 1051 const uint32_t bufferSize = data.readInt32(); local 1227 const uint32_t 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 uint32_t bufferSize = data.readInt32(); local [all...] |
/frameworks/av/media/libstagefright/ |
H A D | AudioSource.cpp | 352 size_t bufferSize = numLostBytes; local 355 bufferSize = kMaxBufferSize; 359 MediaBuffer *lostAudioBuffer = new MediaBuffer(bufferSize); 360 memset(lostAudioBuffer->data(), 0, bufferSize); 361 lostAudioBuffer->set_range(0, bufferSize); 370 const size_t bufferSize = audioBuffer.size; local 371 MediaBuffer *buffer = new MediaBuffer(bufferSize); 374 buffer->set_range(0, bufferSize); 380 const size_t bufferSize = buffer->range_length(); local 384 ((1000000LL * (bufferSize / frameSiz [all...] |
H A D | CallbackDataSource.cpp | 62 const size_t bufferSize = mMemory->size(); local 65 size_t numToRead = std::min(numLeft, bufferSize); 79 CHECK(numRead >= 0 && (size_t)numRead <= 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);
|
H A D | MtpPacket.h | 39 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);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | CreateJavaOutputStreamAdaptor.cpp | 147 size_t bufferSize = 4096; local 150 char* data = (char*)sk_malloc_throw(bufferSize); 153 bufferSize - streamLen)) != 0) { 155 if (streamLen == bufferSize) { 156 bufferSize *= 2; 157 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/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/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/base/core/java/android/util/ |
H A D | Log.java | 391 int bufferSize = NoPreloadHolder.LOGGER_ENTRY_MAX_PAYLOAD // Base. 396 bufferSize = Math.max(bufferSize, 100); 398 LineBreakBufferedWriter lbbw = new LineBreakBufferedWriter(logWriter, bufferSize);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerDecoderPassThrough.cpp | 319 int32_t bufferSize = buffer->size(); local 320 mCachedBytes += bufferSize; 330 onBufferConsumed(bufferSize); 338 onBufferConsumed(bufferSize); 344 reply->setInt32("size", bufferSize);
|
/frameworks/base/core/tests/utiltests/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 | 91 size_t bufferSize = 1 * 1024 * 1024; // default buffer size is 1MB. local 125 bufferSize = width * height * 4; // Assuming it is maximally 4BPP 160 sp<ABuffer> newBuffer = new ABuffer(bufferSize);
|
/frameworks/av/services/audioflinger/ |
H A D | FastCapture.cpp | 136 size_t bufferSize = frameCount * Format_frameSize(mFormat); local 137 (void)posix_memalign(&mReadBuffer, 32, bufferSize); 138 memset(mReadBuffer, 0, bufferSize); // if posix_memalign fails, will segv here.
|
/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/java/android/os/ |
H A D | Debug.java | 1022 * @param bufferSize The maximum amount of trace data we gather. If not 1025 public static void startMethodTracing(String tracePath, int bufferSize) { argument 1026 startMethodTracing(tracePath, bufferSize, 0); 1054 * @param bufferSize The maximum amount of trace data we gather. If not 1059 public static void startMethodTracing(String tracePath, int bufferSize, int flags) { argument 1060 VMDebug.startMethodTracing(fixTracePath(tracePath), bufferSize, flags, false, 0); 1078 * @param bufferSize The maximum amount of trace data we gather. If not 1082 public static void startMethodTracingSampling(String tracePath, int bufferSize, argument 1084 VMDebug.startMethodTracing(fixTracePath(tracePath), bufferSize, 0, true, intervalUs); 1122 int bufferSize, in 1121 startMethodTracing(String traceName, FileDescriptor fd, int bufferSize, int flags) argument 1133 startMethodTracingDdms(int bufferSize, int flags, boolean samplingEnabled, int intervalUs) argument [all...] |
/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; 264 inHeader->nOffset += bufferSize;
|