Home
last modified time | relevance | path

Searched refs:requestedSize (Results 1 – 11 of 11) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DByteBufferWriter.java115 private static byte[] getOrCreateBuffer(int requestedSize) { in getOrCreateBuffer() argument
116 requestedSize = max(requestedSize, MIN_CACHED_BUFFER_SIZE); in getOrCreateBuffer()
120 if (buffer == null || needToReallocate(requestedSize, buffer.length)) { in getOrCreateBuffer()
121 buffer = new byte[requestedSize]; in getOrCreateBuffer()
124 if (requestedSize <= MAX_CACHED_BUFFER_SIZE) { in getOrCreateBuffer()
131 private static boolean needToReallocate(int requestedSize, int bufferLength) { in needToReallocate() argument
133 return bufferLength < requestedSize in needToReallocate()
134 && bufferLength < requestedSize * BUFFER_REALLOCATION_THRESHOLD; in needToReallocate()
/frameworks/base/core/java/android/text/
DAutoGrowArray.java98 final int requestedSize = mSize + count; in ensureCapacity() local
99 if (requestedSize >= mValues.length) { in ensureCapacity()
100 final int newCapacity = computeNewCapacity(mSize, requestedSize); in ensureCapacity()
207 final int requestedSize = mSize + count; in ensureCapacity() local
208 if (requestedSize >= mValues.length) { in ensureCapacity()
209 final int newCapacity = computeNewCapacity(mSize, requestedSize); in ensureCapacity()
316 final int requestedSize = mSize + count; in ensureCapacity() local
317 if (requestedSize >= mValues.length) { in ensureCapacity()
318 final int newCapacity = computeNewCapacity(mSize, requestedSize); in ensureCapacity()
/frameworks/av/media/libstagefright/foundation/
DMediaBufferGroup.cpp165 MediaBufferBase **out, bool nonBlocking, size_t requestedSize) { in acquire_buffer() argument
168 size_t smallest = requestedSize; in acquire_buffer()
169 size_t biggest = requestedSize; in acquire_buffer()
178 if (size >= requestedSize) { in acquire_buffer()
192 const size_t allocateSize = requestedSize == 0 ? biggest : in acquire_buffer()
193 requestedSize < SIZE_MAX / 3 * 2 /* NB: ordering */ ? in acquire_buffer()
194 requestedSize * 3 / 2 : requestedSize; in acquire_buffer()
204 requestedSize, (*free)->size()); in acquire_buffer()
209 ALOGV("allocate buffer, requested size %zu", requestedSize); in acquire_buffer()
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java174 public static int calculateSampleSize(Size currentSize, Size requestedSize) { in calculateSampleSize() argument
177 if (currentSize.getHeight() > requestedSize.getHeight() in calculateSampleSize()
178 || currentSize.getWidth() > requestedSize.getWidth()) { in calculateSampleSize()
184 while ((halfHeight / inSampleSize) >= requestedSize.getHeight() in calculateSampleSize()
185 && (halfWidth / inSampleSize) >= requestedSize.getWidth()) { in calculateSampleSize()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaBufferGroup.h55 MediaBufferBase **buffer, bool nonBlocking = false, size_t requestedSize = 0);
83 CMediaBuffer **buf, bool nonBlocking, size_t requestedSize) -> media_status_t { in wrap()
86 &acquiredBuf, nonBlocking, requestedSize); in wrap()
/frameworks/av/include/media/
DMediaExtractorPluginApi.h70 CMediaBuffer **buffer, bool nonBlocking, size_t requestedSize);
DMediaExtractorPluginHelper.h101 MediaBufferHelper **buffer, bool nonBlocking = false, size_t requestedSize = 0) {
104 mGroup->acquire_buffer(mGroup->handle, &buf, nonBlocking, requestedSize);
/frameworks/av/media/libaaudio/examples/utils/
DAAudioArgsParser.h469 int32_t requestedSize = getNumberOfBursts() * framesPerBurst; in compareWithStream() local
471 requestedSize, in compareWithStream()
/frameworks/base/core/jni/android/graphics/
DBitmapFactory.cpp109 const int requestedSize = bytesPerPixel * in allocPixelRef() local
112 if (requestedSize > mSize) { in allocPixelRef()
114 mSize, requestedSize); in allocPixelRef()
DBitmap.cpp491 size_t requestedSize = width * height * SkColorTypeBytesPerPixel(colorType); in Bitmap_reconfigure() local
492 if (requestedSize > bitmap->getAllocationByteCount()) { in Bitmap_reconfigure()
/frameworks/av/include/private/media/
DAudioTrackShared.h325 uint32_t setBufferSizeInFrames(uint32_t requestedSize);