/frameworks/base/core/java/com/android/internal/util/ |
D | LineBreakBufferedWriter.java | 48 private final int bufferSize; field in LineBreakBufferedWriter 68 public LineBreakBufferedWriter(Writer out, int bufferSize) { in LineBreakBufferedWriter() argument 69 this(out, bufferSize, 16); // 16 is the default size of a StringBuilder buffer. in LineBreakBufferedWriter() 79 public LineBreakBufferedWriter(Writer out, int bufferSize, int initialCapacity) { in LineBreakBufferedWriter() argument 81 this.buffer = new char[Math.min(initialCapacity, bufferSize)]; in LineBreakBufferedWriter() 83 this.bufferSize = bufferSize; in LineBreakBufferedWriter() 119 while (bufferIndex + len > bufferSize) { in write() 123 int maxLength = bufferSize - bufferIndex; in write() 126 if (bufferIndex + i < bufferSize) { in write() 149 int rest = bufferSize - bufferIndex; in write() [all …]
|
/frameworks/av/drm/common/ |
D | IDrmManagerService.cpp | 177 const int bufferSize = reply.readInt32(); in getConstraints() local 179 if (0 < bufferSize) { in getConstraints() 180 data = new char[bufferSize]; in getConstraints() 181 reply.read(data, bufferSize); in getConstraints() 207 const int bufferSize = reply.readInt32(); in getMetadata() local 209 if (0 < bufferSize) { in getMetadata() 210 data = new char[bufferSize]; in getMetadata() 211 reply.read(data, bufferSize); in getMetadata() 273 const int bufferSize = reply.readInt32(); in processDrmInfo() local 275 if (0 < bufferSize) { in processDrmInfo() [all …]
|
/frameworks/base/core/java/android/ddm/ |
D | DdmHandleThread.java | 146 int bufferSize = 0; in createStackChunk() local 148 bufferSize += 4; // version, flags, whatever in createStackChunk() 149 bufferSize += 4; // thread ID in createStackChunk() 150 bufferSize += 4; // frame count in createStackChunk() 152 bufferSize += 4 + elem.getClassName().length() * 2; in createStackChunk() 153 bufferSize += 4 + elem.getMethodName().length() * 2; in createStackChunk() 154 bufferSize += 4; in createStackChunk() 156 bufferSize += elem.getFileName().length() * 2; in createStackChunk() 157 bufferSize += 4; // line number in createStackChunk() 160 ByteBuffer out = ByteBuffer.allocate(bufferSize); in createStackChunk()
|
D | DdmHandleProfiling.java | 105 int bufferSize = in.getInt(); in handleMPRS() local 111 + "', size=" + bufferSize + ", flags=" + flags); in handleMPRS() 114 Debug.startMethodTracing(fileName, bufferSize, flags); in handleMPRS() 147 int bufferSize = in.getInt(); in handleMPSS() local 150 Log.v("ddm-heap", "Method prof stream start: size=" + bufferSize in handleMPSS() 155 Debug.startMethodTracingDdms(bufferSize, flags, false, 0); in handleMPSS() 200 int bufferSize = in.getInt(); in handleSPSS() local 204 Log.v("ddm-heap", "Sample prof stream start: size=" + bufferSize in handleSPSS() 209 Debug.startMethodTracingDdms(bufferSize, flags, true, interval); in handleSPSS()
|
/frameworks/av/media/libstagefright/ |
D | AudioSource.cpp | 352 const size_t bufferSize = audioBuffer.size; in dataCallback() local 357 int64_t receievedFrames = bufferSize / mRecord->frameSize(); in dataCallback() 398 size_t bufferSize = numLostBytes; in dataCallback() local 401 bufferSize = kMaxBufferSize; in dataCallback() 405 MediaBuffer *lostAudioBuffer = new MediaBuffer(bufferSize); in dataCallback() 406 memset(lostAudioBuffer->data(), 0, bufferSize); in dataCallback() 407 lostAudioBuffer->set_range(0, bufferSize); in dataCallback() 408 mNumFramesLost += bufferSize / mRecord->frameSize(); in dataCallback() 417 MediaBuffer *buffer = new MediaBuffer(bufferSize); in dataCallback() 420 buffer->set_range(0, bufferSize); in dataCallback() [all …]
|
D | CallbackDataSource.cpp | 62 const size_t bufferSize = mMemory->size(); in readAt() local 65 size_t numToRead = std::min(numLeft, bufferSize); in readAt() 79 CHECK(numRead >= 0 && (size_t)numRead <= bufferSize); in readAt()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | bitstream_io.cpp | 52 BitstreamEncVideo *BitStreamCreateEnc(Int bufferSize) in BitStreamCreateEnc() argument 60 stream->bufferSize = bufferSize; in BitStreamCreateEnc() 61 stream->bitstreamBuffer = (UChar *) M4VENC_MALLOC(stream->bufferSize * sizeof(UChar)); in BitStreamCreateEnc() 68 M4VENC_MEMSET(stream->bitstreamBuffer, 0, stream->bufferSize*sizeof(UChar)); in BitStreamCreateEnc() 213 if (stream->byteCount + WORD_SIZE > stream->bufferSize) in BitstreamSaveWord() 267 if (stream->byteCount + numbyte > stream->bufferSize) in BitstreamSavePartial() 446 if (bitstream1->byteCount + bitstream2->byteCount + offset > bitstream1->bufferSize) in BitstreamAppendEnc() 498 if (bitstream1->byteCount + bitstream2->byteCount > bitstream1->bufferSize) in BitstreamAppendPacket() 541 if (bitstream1->byteCount + bitstream2->byteCount > bitstream1->bufferSize) in BitstreamAppendPacketNoOffset() 543 numbyte2 = bitstream1->bufferSize - bitstream1->byteCount; in BitstreamAppendPacketNoOffset() [all …]
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
D | InputStreamBuffer.java | 97 public InputStreamBuffer(final InputStream inputStream, int bufferSize, in InputStreamBuffer() argument 100 if (bufferSize <= 0) { in InputStreamBuffer() 102 String.format("Buffer size %d must be positive.", bufferSize)); in InputStreamBuffer() 104 bufferSize = leastPowerOf2(bufferSize); in InputStreamBuffer() 105 mBuffer = new byte[bufferSize]; in InputStreamBuffer()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
D | InputStreamBuffer.java | 97 public InputStreamBuffer(final InputStream inputStream, int bufferSize, in InputStreamBuffer() argument 100 if (bufferSize <= 0) { in InputStreamBuffer() 102 String.format("Buffer size %d must be positive.", bufferSize)); in InputStreamBuffer() 104 bufferSize = leastPowerOf2(bufferSize); in InputStreamBuffer() 105 mBuffer = new byte[bufferSize]; in InputStreamBuffer()
|
/frameworks/native/libs/binder/ |
D | BufferedTextOutput.cpp | 41 , bufferSize(0) in BufferState() 51 if ((len+bufferPos) > bufferSize) { in append() 57 bufferSize = newSize; in append() 67 if (bufferSize > 256) { in restart() 71 bufferSize = 256; in restart() 79 size_t bufferSize; member
|
/frameworks/base/core/jni/android/graphics/ |
D | CreateJavaOutputStreamAdaptor.cpp | 147 size_t bufferSize = 4096; in adaptor_to_mem_stream() local 150 char* data = (char*)sk_malloc_throw(bufferSize); in adaptor_to_mem_stream() 153 bufferSize - streamLen)) != 0) { in adaptor_to_mem_stream() 155 if (streamLen == bufferSize) { in adaptor_to_mem_stream() 156 bufferSize *= 2; in adaptor_to_mem_stream() 157 data = (char*)sk_realloc_throw(data, bufferSize); in adaptor_to_mem_stream()
|
/frameworks/av/media/mtp/ |
D | MtpPacket.cpp | 31 MtpPacket::MtpPacket(int bufferSize) in MtpPacket() argument 33 mBufferSize(bufferSize), in MtpPacket() 34 mAllocationIncrement(bufferSize), in MtpPacket() 37 mBuffer = (uint8_t *)malloc(bufferSize); in MtpPacket()
|
/frameworks/av/media/libaaudio/src/fifo/ |
D | FifoController.h | 33 FifoController(fifo_counter_t bufferSize, fifo_counter_t threshold) in FifoController() argument 34 : FifoControllerBase(bufferSize, threshold) in FifoController()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothHidDeviceCallback.java | 77 public void onGetReport(BluetoothDevice device, byte type, byte id, int bufferSize) { in onGetReport() argument 79 + bufferSize); in onGetReport()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDecoderPassThrough.cpp | 318 int32_t bufferSize = buffer->size(); in onInputBufferFetched() local 319 mCachedBytes += bufferSize; in onInputBufferFetched() 328 onBufferConsumed(bufferSize); in onInputBufferFetched() 336 onBufferConsumed(bufferSize); in onInputBufferFetched() 342 reply->setInt32("size", bufferSize); in onInputBufferFetched()
|
/frameworks/av/services/audioflinger/ |
D | Tracks.cpp | 70 size_t bufferSize, in TrackBase() argument 124 bufferSize = minBufferSize; // allocated here. in TrackBase() 125 } else if (minBufferSize > bufferSize) { in TrackBase() 133 if (size > SIZE_MAX - bufferSize) { in TrackBase() 137 size += bufferSize; in TrackBase() 164 (mBufferMemory = roHeap->allocate(bufferSize)) == 0 || in TrackBase() 166 ALOGE("not enough memory for read-only buffer size=%zu", bufferSize); in TrackBase() 174 memset(mBuffer, 0, bufferSize); in TrackBase() 184 bufferSize = 0; in TrackBase() 190 memset(mBuffer, 0, bufferSize); in TrackBase() [all …]
|
D | FastCapture.cpp | 136 size_t bufferSize = frameCount * Format_frameSize(mFormat); in onStateChange() local 137 (void)posix_memalign(&mReadBuffer, 32, bufferSize); in onStateChange() 138 memset(mReadBuffer, 0, bufferSize); // if posix_memalign fails, will segv here. in onStateChange()
|
D | RecordTracks.h | 32 size_t bufferSize, 106 size_t bufferSize,
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | CursorWindow.h | 171 inline void* offsetToPtr(uint32_t offset, uint32_t bufferSize = 0) { 176 if (offset + bufferSize > mSize) { 178 offset + bufferSize, mSize);
|
/frameworks/base/core/java/android/util/ |
D | Log.java | 395 int bufferSize = PreloadHolder.LOGGER_ENTRY_MAX_PAYLOAD // Base. in printlns() local 400 bufferSize = Math.max(bufferSize, 100); in printlns() 402 LineBreakBufferedWriter lbbw = new LineBreakBufferedWriter(logWriter, bufferSize); in printlns()
|
/frameworks/av/drm/libdrmframework/plugins/passthru/src/ |
D | DrmPassthruPlugIn.cpp | 95 const int bufferSize = licenseString.size(); in onProcessDrmInfo() local 97 data = new char[bufferSize]; in onProcessDrmInfo() 98 memcpy(data, licenseString.string(), bufferSize); in onProcessDrmInfo() 99 const DrmBuffer* buffer = new DrmBuffer(data, bufferSize); in onProcessDrmInfo()
|
/frameworks/av/media/libstagefright/flac/dec/ |
D | FLACDecoder.cpp | 477 size_t bufferSize = blocksize * getChannels() * sizeof(short); in decodeOneFrame() local 478 if (bufferSize > *outBufferLen) { in decodeOneFrame() 480 *outBufferLen, bufferSize); in decodeOneFrame() 482 bufferSize = blocksize * getChannels() * sizeof(short); in decodeOneFrame() 492 *outBufferLen = bufferSize; in decodeOneFrame()
|
/frameworks/base/core/java/android/os/ |
D | Debug.java | 1078 public static void startMethodTracing(String tracePath, int bufferSize) { in startMethodTracing() argument 1079 startMethodTracing(tracePath, bufferSize, 0); in startMethodTracing() 1112 public static void startMethodTracing(String tracePath, int bufferSize, int flags) { in startMethodTracing() argument 1113 VMDebug.startMethodTracing(fixTracePath(tracePath), bufferSize, flags, false, 0); in startMethodTracing() local 1135 public static void startMethodTracingSampling(String tracePath, int bufferSize, in startMethodTracingSampling() argument 1137 VMDebug.startMethodTracing(fixTracePath(tracePath), bufferSize, 0, true, intervalUs); in startMethodTracingSampling() local 1175 int bufferSize, int flags, boolean streamOutput) { in startMethodTracing() argument 1176 VMDebug.startMethodTracing(traceName, fd, bufferSize, flags, false, 0, streamOutput); in startMethodTracing() 1186 public static void startMethodTracingDdms(int bufferSize, int flags, in startMethodTracingDdms() argument 1188 VMDebug.startMethodTracingDdms(bufferSize, flags, samplingEnabled, intervalUs); in startMethodTracingDdms()
|
/frameworks/av/media/libaudiohal/ |
D | StreamHalHidl.cpp | 341 size_t bufferSize; in write() local 342 if ((status = getCachedBufferSize(&bufferSize)) != OK) { in write() 345 if (bytes > bufferSize) bufferSize = bytes; in write() 346 if ((status = prepareForWriting(bufferSize)) != OK) { in write() 409 status_t StreamOutHalHidl::prepareForWriting(size_t bufferSize) { in prepareForWriting() argument 416 1, bufferSize, in prepareForWriting() 671 status_t StreamInHalHidl::prepareForReading(size_t bufferSize) { in prepareForReading() argument 678 1, bufferSize, in prepareForReading()
|
/frameworks/av/cmds/stagefright/ |
D | muxer.cpp | 90 size_t bufferSize = 1 * 1024 * 1024; // default buffer size is 1MB. in muxing() local 124 bufferSize = width * height * 4; // Assuming it is maximally 4BPP in muxing() 159 sp<ABuffer> newBuffer = new ABuffer(bufferSize); in muxing()
|