Searched defs:capacity (Results 1 - 25 of 54) sorted by relevance

123

/frameworks/av/media/libaaudio/src/fifo/
H A DFifoControllerBase.cpp26 FifoControllerBase::FifoControllerBase(fifo_frames_t capacity, fifo_frames_t threshold) argument
27 : mCapacity(capacity)
H A DFifoControllerIndirect.h36 FifoControllerIndirect(fifo_frames_t capacity, argument
40 : FifoControllerBase(capacity, threshold)
/frameworks/av/media/libstagefright/foundation/
H A DABuffer.cpp26 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 DRingBufferIndices.java31 * Create ring buffer of the given capacity.
33 public RingBufferIndices(int capacity) { argument
34 mCapacity = capacity;
H A DTokenBucket.java27 * 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 DLineBreakBufferedWriter.java64 * 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 DABuffer.h33 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 DMediaCodecBuffer.cpp44 size_t MediaCodecBuffer::capacity() const { function in class:android::MediaCodecBuffer
45 return mBuffer->capacity();
/frameworks/av/media/libstagefright/foundation/include/foundation/
H A DABuffer.h33 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/foundation/
H A DABuffer.h33 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 DRingBuffer.h34 constexpr size_t capacity() const { return SIZE; } function in class:android::uirenderer::RingBuffer
H A DFatVector.h96 explicit FatVector(size_t capacity) : FatVector() { argument
97 this->resize(capacity);
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
H A DBufferPool.java68 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 Dthread_local_buffer.h29 // 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 Darray_wrapper.h32 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 Dbuffer_wrapper.h32 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 Dstring_wrapper.h34 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 DArrayMap.java46 * 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 Ddvr_surface.cpp137 size_t capacity,
148 format, usage, capacity);
134 dvrSurfaceCreateWriteBufferQueue(DvrSurface* surface, uint32_t width, uint32_t height, uint32_t format, uint32_t layer_count, uint64_t usage, size_t capacity, DvrWriteBufferQueue** out_writer) argument
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
H A Dring_buffer.h23 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 DPersistableBundle.java70 * @param capacity the initial capacity of the PersistableBundle
72 public PersistableBundle(int capacity) { argument
73 super(capacity);
/frameworks/compile/mclinker/lib/LD/
H A DNamePool.cpp125 NamePool::size_type NamePool::capacity() const { function in class:mcld::NamePool
/frameworks/native/libs/vr/libdisplay/
H A Ddisplay_client.cpp127 uint64_t usage, size_t capacity) {
130 "usage=%" PRIx64 " capacity=%zu",
131 width, height, layer_count, format, usage, capacity);
138 ALOGD_IF(TRACE, "Surface::CreateQueue: Allocating %zu buffers...", capacity);
139 for (size_t i = 0; i < capacity; i++) {
151 "Surface::CreateQueue: Allocated buffer at slot=%zu of capacity=%zu",
152 slot, capacity);
125 CreateQueue( uint32_t width, uint32_t height, uint32_t layer_count, uint32_t format, uint64_t usage, size_t capacity) argument
/frameworks/native/libs/vr/libdvr/tests/
H A Ddvr_buffer_queue-test.cpp60 size_t capacity = dvrWriteBufferQueueGetCapacity(write_queue_); local
62 ALOGD_IF(TRACE, "TestWrite_QueueGetCapacity, capacity=%zu", capacity);
63 ASSERT_EQ(kQueueCapacity, capacity);
181 size_t capacity = dvrReadBufferQueueGetCapacity(read_queue); local
183 ALOGD_IF(TRACE, "TestDequeuePostDequeueRelease, capacity=%zu", capacity);
184 ASSERT_EQ(kQueueCapacity, capacity);
/frameworks/native/services/vr/bufferhubd/
H A Dbuffer_hub.h59 size_t capacity = 0; member in struct:android::dvr::BufferHubChannel::BufferInfo
74 BufferInfo(int id, size_t consumer_count, size_t capacity, argument
79 capacity(capacity),

Completed in 406 milliseconds

123