Home
last modified time | relevance | path

Searched refs:bufferSize (Results 1 – 25 of 140) sorted by relevance

123456

/frameworks/base/core/java/com/android/internal/util/
DLineBreakBufferedWriter.java48 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/native/services/surfaceflinger/tests/
DLayerCallback_test.cpp167 ui::Size bufferSize = getBufferSize(); in TEST_F() local
168 TransactionUtils::setFrame(transaction, layer, Rect(0, 0, bufferSize.width, bufferSize.height), in TEST_F()
190 ui::Size bufferSize = getBufferSize(); in TEST_F() local
191 TransactionUtils::setFrame(transaction, layer, Rect(0, 0, bufferSize.width, bufferSize.height), in TEST_F()
212 ui::Size bufferSize = getBufferSize(); in TEST_F() local
213 TransactionUtils::setFrame(transaction, layer, Rect(0, 0, bufferSize.width, bufferSize.height), in TEST_F()
250 ui::Size bufferSize = getBufferSize(); in TEST_F() local
251 TransactionUtils::setFrame(transaction, layer, Rect(0, 0, bufferSize.width, bufferSize.height), in TEST_F()
278 ui::Size bufferSize = getBufferSize(); in TEST_F() local
281 Rect(0, 0, bufferSize.width, bufferSize.height), Rect(0, 0, 32, 32)); in TEST_F()
[all …]
/frameworks/av/drm/common/
DIDrmManagerService.cpp177 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/
DDdmHandleProfiling.java107 int bufferSize = in.getInt(); in handleMPRS() local
113 + "', size=" + bufferSize + ", flags=" + flags); in handleMPRS()
116 Debug.startMethodTracing(fileName, bufferSize, flags); in handleMPRS()
149 int bufferSize = in.getInt(); in handleMPSS() local
152 Log.v("ddm-heap", "Method prof stream start: size=" + bufferSize in handleMPSS()
157 Debug.startMethodTracingDdms(bufferSize, flags, false, 0); in handleMPSS()
202 int bufferSize = in.getInt(); in handleSPSS() local
206 Log.v("ddm-heap", "Sample prof stream start: size=" + bufferSize in handleSPSS()
211 Debug.startMethodTracingDdms(bufferSize, flags, true, interval); in handleSPSS()
/frameworks/av/include/media/
DDataSource.h59 virtual bool getUri(char *uriString, size_t bufferSize) final { in getUri() argument
60 int ret = snprintf(uriString, bufferSize, "%s", getUri().c_str()); in getUri()
61 return ret >= 0 && static_cast<size_t>(ret) < bufferSize; in getUri()
84 mWrapper->getUri = [](void *handle, char *uriString, size_t bufferSize) -> bool { in wrap()
85 return ((DataSource*)handle)->getUri(uriString, bufferSize); in wrap()
/frameworks/base/media/jni/tuner/
DDemuxClient.cpp63 sp<FilterClient> DemuxClient::openFilter(DemuxFilterType type, int bufferSize, in openFilter() argument
70 bufferSize, callback, &tunerFilter); in openFilter()
79 sp<IFilter> hidlFilter = openHidlFilter(type, bufferSize, callback); in openFilter()
165 sp<DvrClient> DemuxClient::openDvr(DvrType dvbType, int bufferSize, sp<DvrClientCallback> cb) { in openDvr() argument
170 Status s = mTunerDemux->openDvr((int)dvbType, bufferSize, callback, &tunerDvr); in openDvr()
179 sp<IDvr> hidlDvr = openHidlDvr(dvbType, bufferSize, callback); in openDvr()
234 sp<IFilter> DemuxClient::openHidlFilter(DemuxFilterType type, int bufferSize, in openHidlFilter() argument
242 mDemux->openFilter(type, bufferSize, callback, in openHidlFilter()
274 sp<IDvr> DemuxClient::openHidlDvr(DvrType dvrType, int bufferSize, in openHidlDvr() argument
282 mDemux->openDvr(dvrType, bufferSize, callback, in openHidlDvr()
DDemuxClient.h66 sp<FilterClient> openFilter(DemuxFilterType type, int bufferSize, sp<FilterClientCallback> cb);
86 sp<DvrClient> openDvr(DvrType dvbType, int bufferSize, sp<DvrClientCallback> cb);
112 sp<IFilter> openHidlFilter(DemuxFilterType type, int bufferSize, sp<HidlFilterCallback> cb);
114 sp<IDvr> openHidlDvr(DvrType type, int bufferSize, sp<HidlDvrCallback> cb);
/frameworks/av/media/libmediatranscoding/transcoder/benchmark/
DMediaSampleReaderBenchmark.cpp96 size_t bufferSize = 0; in ReadMediaSamples() local
105 if (info.size > bufferSize) { in ReadMediaSamples()
106 bufferSize = info.size; in ReadMediaSamples()
107 buffer.reset(new uint8_t[bufferSize]); in ReadMediaSamples()
111 bufferSize); in ReadMediaSamples()
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
DGeometryTests.kt51 val bufferSize = Point(300, 200) in <lambda>() constant
53 activity.mSurfaceProxy.ANativeWindowSetBuffersGeometry(activity.surface!!, bufferSize, in <lambda>()
60 it.hasBufferSize(bufferSize) in <lambda>()
68 val bufferSize = Point(3000, 2000) in <lambda>() constant
70 activity.mSurfaceProxy.ANativeWindowSetBuffersGeometry(activity.surface!!, bufferSize, in <lambda>()
77 it.hasBufferSize(bufferSize) in <lambda>()
85 val bufferSize = Point(300, 200) in <lambda>() constant
89 activity.mSurfaceProxy.ANativeWindowSetBuffersGeometry(activity.surface!!, bufferSize, in <lambda>()
107 assertThat(trace).layer("SurfaceView", 3).hasBufferSize(bufferSize) in <lambda>()
DBufferRejectionTests.kt64 val bufferSize = Point(300, 200) in <lambda>() constant
68 activity.mSurfaceProxy.ANativeWindowSetBuffersGeometry(activity.surface!!, bufferSize, in <lambda>()
86 assertThat(trace).layer("SurfaceView", 3).hasBufferSize(bufferSize) in <lambda>()
120 val bufferSize = Point(300, 200) in <lambda>() constant
127 bufferSize, R8G8B8A8_UNORM) in <lambda>()
149 .hasBufferSize(bufferSize) in <lambda>()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/
DStreamUtils.java50 int bufferSize = Math.min(MAX_COPY_BUFFER_SIZE, limit); in copyStream() local
51 byte[] buffer = new byte[bufferSize]; in copyStream()
55 int maxReadSize = Math.min(bufferSize, limit - copied); in copyStream()
/frameworks/opt/bitmap/src/com/android/bitmap/util/
DInputStreamBuffer.java97 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/
DInputStreamBuffer.java97 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/av/media/codecs/m4v_h263/enc/src/
Dbitstream_io.cpp52 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/av/media/libstagefright/
DAudioSource.cpp392 const size_t bufferSize = audioBuffer.size; in dataCallback() local
397 int64_t receievedFrames = bufferSize / mRecord->frameSize(); in dataCallback()
438 uint64_t bufferSize = numLostBytes; in dataCallback() local
441 bufferSize = kMaxBufferSize; in dataCallback()
445 MediaBuffer *lostAudioBuffer = new MediaBuffer(bufferSize); in dataCallback()
446 memset(lostAudioBuffer->data(), 0, bufferSize); in dataCallback()
447 lostAudioBuffer->set_range(0, bufferSize); in dataCallback()
448 mNumFramesLost += bufferSize / mRecord->frameSize(); in dataCallback()
457 MediaBuffer *buffer = new MediaBuffer(bufferSize); in dataCallback()
460 buffer->set_range(0, bufferSize); in dataCallback()
[all …]
/frameworks/native/libs/binder/
DBufferedTextOutput.cpp41 , bufferSize(0) in BufferState()
52 if ((len+bufferPos) > bufferSize) { in append()
58 bufferSize = newSize; in append()
68 if (bufferSize > 256) { in restart()
72 bufferSize = 256; in restart()
80 size_t bufferSize; member
/frameworks/base/core/java/android/service/displayhash/
DDisplayHashParams.java121 @Nullable Size bufferSize, in DisplayHashParams()
123 this.mBufferSize = bufferSize; in DisplayHashParams()
186 Size bufferSize = (flg & 0x1) == 0 ? null : (Size) in.readSize(); in DisplayHashParams() local
188 this.mBufferSize = bufferSize; in DisplayHashParams()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
DFullRestoreToFileTask.java56 FullRestoreToFileTask(FullRestoreDownloader fullRestoreDownloader, int bufferSize) { in FullRestoreToFileTask() argument
57 checkArgument(bufferSize > 0, "Buffer must have positive size"); in FullRestoreToFileTask()
60 this.mBufferSize = bufferSize; in FullRestoreToFileTask()
/frameworks/av/media/mtp/
DMtpPacket.cpp31 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/base/core/tests/coretests/src/android/graphics/
DBitmapTest.java284 final int bufferSize = pad + width * height * bytesPerPixel / bytesPerElement + pad; in testCopyWithDirectByteBuffer() local
285 ByteBuffer directBuffer = ByteBuffer.allocateDirect(bufferSize); in testCopyWithDirectByteBuffer()
322 final int bufferSize = pad + width * height * bytesPerPixel / bytesPerElement + pad; in testCopyWithDirectShortBuffer() local
324 ByteBuffer.allocateDirect(bufferSize * bytesPerElement).asShortBuffer(); in testCopyWithDirectShortBuffer()
361 final int bufferSize = pad + width * height * bytesPerPixel / bytesPerElement + pad; in testCopyWithDirectIntBuffer() local
363 ByteBuffer.allocateDirect(bufferSize * bytesPerElement).asIntBuffer(); in testCopyWithDirectIntBuffer()
400 final int bufferSize = pad + width * height * bytesPerPixel / bytesPerElement + pad; in testCopyWithHeapByteBuffer() local
401 ByteBuffer heapBuffer = ByteBuffer.allocate(bufferSize); in testCopyWithHeapByteBuffer()
437 final int bufferSize = pad + width * height * bytesPerPixel / bytesPerElement + pad; in testCopyWithHeapShortBuffer() local
438 ShortBuffer heapBuffer = ShortBuffer.allocate(bufferSize); in testCopyWithHeapShortBuffer()
[all …]
/frameworks/base/libs/hwui/jni/
DCreateJavaOutputStreamAdaptor.cpp186 size_t bufferSize = 4096; in CopyJavaInputStream() local
189 char* data = (char*)sk_malloc_throw(bufferSize); in CopyJavaInputStream()
192 bufferSize - streamLen)) != 0) { in CopyJavaInputStream()
194 if (streamLen == bufferSize) { in CopyJavaInputStream()
195 bufferSize *= 2; in CopyJavaInputStream()
196 data = (char*)sk_realloc_throw(data, bufferSize); in CopyJavaInputStream()
/frameworks/av/media/libmediatranscoding/transcoder/tests/
DPassthroughTrackTranscoderTests.cpp125 ssize_t bufferSize = 1024; in TEST_F() local
126 auto buffer = std::make_unique<uint8_t[]>(bufferSize); in TEST_F()
137 if (bufferSize < sampleSize) { in TEST_F()
138 bufferSize = sampleSize; in TEST_F()
139 buffer = std::make_unique<uint8_t[]>(bufferSize); in TEST_F()
143 AMediaExtractor_readSampleData(mExtractor, buffer.get(), bufferSize); in TEST_F()
/frameworks/av/media/libaaudio/src/fifo/
DFifoController.h33 FifoController(fifo_frames_t bufferSize, fifo_frames_t threshold) in FifoController() argument
34 : FifoControllerBase(bufferSize, threshold) in FifoController()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DUtils.java33 public static void transferStreamedData(InputStream in, OutputStream out, int bufferSize) in transferStreamedData() argument
35 byte[] buffer = new byte[bufferSize]; in transferStreamedData()
/frameworks/av/services/tuner/aidl/android/media/tv/tuner/
DITunerDemux.aidl42 in int mainType, in int subtype, in int bufferSize, in ITunerFilterCallback cb); in openFilter() argument
62 ITunerDvr openDvr(in int dvbType, in int bufferSize, in ITunerDvrCallback cb); in openDvr() argument

123456