/frameworks/av/media/libaaudio/src/fifo/ |
H A D | FifoControllerBase.cpp | 26 FifoControllerBase::FifoControllerBase(fifo_frames_t capacity, fifo_frames_t threshold) argument 27 : mCapacity(capacity)
|
H A D | FifoControllerIndirect.h | 36 FifoControllerIndirect(fifo_frames_t capacity, argument 40 : FifoControllerBase(capacity, threshold)
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | ABuffer.cpp | 26 ABuffer::ABuffer(size_t capacity) argument 31 mData = malloc(capacity); 36 mCapacity = capacity; 37 mRangeLength = capacity; 41 ABuffer::ABuffer(void *data, size_t capacity) argument 44 mCapacity(capacity), 46 mRangeLength(capacity), 52 sp<ABuffer> ABuffer::CreateAsCopy(const void *data, size_t capacity) argument 54 sp<ABuffer> res = new ABuffer(capacity); 58 memcpy(res->data(), data, capacity); [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | RingBufferIndices.java | 31 * Create ring buffer of the given capacity. 33 public RingBufferIndices(int capacity) { argument 34 mCapacity = capacity;
|
H A D | TokenBucket.java | 27 * A TokenBucket starts with a fixed capacity of tokens, an initial amount of tokens, and 30 * For every filling period, the bucket gains one token, up to its maximum capacity from 50 * @param capacity the maximum token capacity. Must be strictly positive. 53 public TokenBucket(int deltaMs, int capacity, int tokens) { argument 55 mCapacity = checkArgumentPositive(capacity, "capacity must be strictly positive"); 64 * @param capacity the maximum token capacity. Must be strictly positive. 66 public TokenBucket(int deltaMs, int capacity) { argument 78 public int capacity() { method in class:TokenBucket [all...] |
H A D | LineBreakBufferedWriter.java | 64 * size. The initial capacity will be a default value. 74 * size and initial capacity. 77 * @param initialCapacity The initial capacity of the internal buffer. 259 * @param capacity The size to be ensured. 261 private void ensureCapacity(int capacity) { argument 263 if (newSize < capacity) { 264 newSize = capacity;
|
/frameworks/av/include/media/stagefright/foundation/ |
H A D | ABuffer.h | 33 explicit ABuffer(size_t capacity); 34 ABuffer(void *data, size_t capacity); 38 size_t capacity() const { return mCapacity; } function in struct:android::ABuffer 45 static sp<ABuffer> CreateAsCopy(const void *data, size_t capacity);
|
/frameworks/av/media/libmedia/ |
H A D | MediaCodecBuffer.cpp | 44 size_t MediaCodecBuffer::capacity() const { function in class:android::MediaCodecBuffer 45 return mBuffer->capacity();
|
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
H A D | ABuffer.h | 33 explicit ABuffer(size_t capacity); 34 ABuffer(void *data, size_t capacity); 38 size_t capacity() const { return mCapacity; } function in struct:android::ABuffer 45 static sp<ABuffer> CreateAsCopy(const void *data, size_t capacity);
|
/frameworks/av/media/libstagefright/include/media/stagefright/foundation/ |
H A D | ABuffer.h | 33 explicit ABuffer(size_t capacity); 34 ABuffer(void *data, size_t capacity); 38 size_t capacity() const { return mCapacity; } function in struct:android::ABuffer 45 static sp<ABuffer> CreateAsCopy(const void *data, size_t capacity);
|
/frameworks/base/libs/hwui/utils/ |
H A D | RingBuffer.h | 34 constexpr size_t capacity() const { return SIZE; } function in class:android::uirenderer::RingBuffer
|
H A D | FatVector.h | 96 explicit FatVector(size_t capacity) : FatVector() { argument 97 this->resize(capacity);
|
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
H A D | BufferPool.java | 68 int capacity = buffer.capacity(); 69 if (capacity < needed) { 71 capacity = chooseCapacity(capacity, needed); 72 buffer = ByteBuffer.allocate(capacity); 79 private int chooseCapacity(int capacity, int needed) { argument 80 while (capacity < needed) { 81 capacity *= 2; 83 if (capacity > mMaxBufferSiz [all...] |
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
H A D | thread_local_buffer.h | 29 // Initial capacity of thread local buffer, unless otherwise specified. 49 // Reserves |capacity| number of elements of capacity in the underlying 51 static void Reserve(std::size_t capacity) { argument 53 InitializeBuffer(capacity); 54 buffer_->reserve(capacity); 64 // Gets a reference to the underlying buffer after reserving |capacity| 67 static BufferType& GetBuffer(std::size_t capacity = Capacity) { 69 Reserve(capacity); 102 static void InitializeBuffer(std::size_t capacity) { argument [all...] |
H A D | array_wrapper.h | 32 ArrayWrapper(pointer buffer, size_type capacity, size_type size) argument 34 capacity_(capacity), 35 end_(capacity < size ? capacity : size) {} 81 size_type capacity() const { return capacity_; } function in class:android::pdx::rpc::ArrayWrapper 83 // Moves the end marker to |size|, clamping the end marker to the max capacity
|
H A D | buffer_wrapper.h | 32 BufferWrapper(pointer buffer, size_type capacity, size_type size) argument 34 capacity_(capacity), 35 end_(capacity < size ? capacity : size) {} 81 size_type capacity() const { return capacity_; } function in class:android::pdx::rpc::BufferWrapper 133 size_type max_size() const { return buffer_.capacity(); } 134 size_type capacity() const { return buffer_.capacity(); } function in class:android::pdx::rpc::BufferWrapper
|
H A D | string_wrapper.h | 34 StringWrapper(pointer buffer, size_type capacity, size_type size) argument 36 capacity_(capacity), 37 end_(capacity < size ? capacity : size) {} 87 size_type capacity() const { return capacity_; } function in class:android::pdx::rpc::StringWrapper
|
/frameworks/support/compat/java/android/support/v4/util/ |
H A D | ArrayMap.java | 46 * you have no control over this shrinking -- if you set a capacity and then remove an 47 * item, it may reduce the capacity to better match the current size. In the future an 48 * explicit call to set the capacity should turn off this aggressive shrinking behavior.</p> 58 * Create a new ArrayMap with a given initial capacity. 60 public ArrayMap(int capacity) { argument 61 super(capacity);
|
/frameworks/native/libs/vr/libdvr/ |
H A D | dvr_buffer_queue_internal.h | 38 size_t capacity() const { return producer_queue_->capacity(); } function in struct:DvrWriteBufferQueue 74 size_t capacity() const { return consumer_queue_->capacity(); } function in struct:DvrReadBufferQueue
|
H A D | dvr_surface.cpp | 157 size_t capacity, size_t metadata_size, 168 width, height, layer_count, format, usage, capacity, metadata_size); 154 dvrSurfaceCreateWriteBufferQueue(DvrSurface* surface, uint32_t width, uint32_t height, uint32_t format, uint32_t layer_count, uint64_t usage, size_t capacity, size_t metadata_size, DvrWriteBufferQueue** out_writer) argument
|
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
H A D | ring_buffer.h | 23 explicit RingBuffer(size_t capacity) { Reset(capacity); } argument 83 void Reset(size_t capacity) { argument 86 buffer_.resize(capacity);
|
/frameworks/base/core/java/android/os/ |
H A D | PersistableBundle.java | 70 * @param capacity the initial capacity of the PersistableBundle 72 public PersistableBundle(int capacity) { argument 73 super(capacity);
|
/frameworks/compile/mclinker/lib/LD/ |
H A D | NamePool.cpp | 125 NamePool::size_type NamePool::capacity() const { function in class:mcld::NamePool
|
/frameworks/native/libs/vr/libdisplay/ |
H A D | display_client.cpp | 134 uint64_t usage, size_t capacity, size_t metadata_size) { 137 "usage=%" PRIx64 " capacity=%zu", 138 width, height, layer_count, format, usage, capacity); 145 ALOGD_IF(TRACE, "Surface::CreateQueue: Allocating %zu buffers...", capacity); 147 width, height, layer_count, format, usage, capacity); 132 CreateQueue( uint32_t width, uint32_t height, uint32_t layer_count, uint32_t format, uint64_t usage, size_t capacity, size_t metadata_size) argument
|
/frameworks/base/core/java/android/util/ |
H A D | ArraySet.java | 42 * you have no control over this shrinking -- if you set a capacity and then remove an 43 * item, it may reduce the capacity to better match the current size. In the future an 44 * explicit call to set the capacity should turn off this aggressive shrinking behavior.</p> 51 * The minimum amount by which the capacity of a ArraySet will increase. 248 * Create a new empty ArraySet. The default capacity of an array map is 0, and 256 * Create a new ArraySet with a given initial capacity. 258 public ArraySet(int capacity) { argument 259 this(capacity, false); 263 public ArraySet(int capacity, boolean identityHashCode) { argument 265 if (capacity [all...] |