Home
last modified time | relevance | path

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

/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/media/libaaudio/examples/utils/
DAAudioArgsParser.h469 int32_t requestedSize = getNumberOfBursts() * framesPerBurst; in compareWithStream() local
471 requestedSize, in compareWithStream()
/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/base/core/jni/android/graphics/
DBitmapFactory.cpp111 const int requestedSize = bytesPerPixel * in allocPixelRef() local
114 if (requestedSize > mSize) { in allocPixelRef()
116 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);