/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/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...] |
/frameworks/base/core/java/com/google/android/collect/ |
H A D | Lists.java | 59 int capacity = (elements.length * 110) / 100 + 5; 60 ArrayList<E> list = new ArrayList<E>(capacity);
|
H A D | Sets.java | 67 int capacity = elements.length * 4 / 3 + 1; 68 HashSet<E> set = new HashSet<E>(capacity); 106 int capacity = elements.length * 4 / 3 + 1; 107 ArraySet<E> set = new ArraySet<E>(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/libstagefright/foundation/include/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/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/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/base/libs/hwui/tests/unit/ |
H A D | FatVectorTests.cpp | 27 // allocation array (from &v[0] to &v[0] + v.capacity) is 30 && (char*)(&v + 1) >= (char*)(&v[0] + v.capacity()); 44 EXPECT_EQ(4u, v.capacity()); 62 EXPECT_EQ(32u, v.capacity()); 68 EXPECT_EQ(4u, v.capacity()); 74 EXPECT_EQ(4u, v.capacity());
|
/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)
|
H A D | FifoControllerBase.h | 41 * @param capacity Total size of the circular buffer in frames. 42 * @param threshold Number of frames to fill. Must be less than capacity. 44 FifoControllerBase(fifo_frames_t capacity, fifo_frames_t threshold);
|
/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/av/media/libstagefright/codec2/include/ |
H A D | C2Buffer.h | 246 * Common aspect for all objects that have a linear capacity. 249 /// \name Linear capacity interface 252 inline uint32_t capacity() const { return mCapacity; } function in class:android::_C2LinearCapacityAspect 261 inline explicit _C2LinearCapacityAspect(size_t capacity) = delete; member in class:android::_C2LinearCapacityAspect 264 inline explicit _C2LinearCapacityAspect(uint32_t capacity) argument 265 : mCapacity(capacity) { } 268 : mCapacity(parent == nullptr ? 0 : parent->capacity()) { } 291 mSize(capacity()) { } 295 mOffset(c2_min(offset, capacity())), 296 mSize(c2_min(size, capacity() [all...] |
/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/base/libs/hwui/utils/ |
H A D | FatVector.h | 96 explicit FatVector(size_t capacity) : FatVector() { argument 97 this->resize(capacity);
|
H A D | RingBuffer.h | 34 constexpr size_t capacity() const { return SIZE; } function in class:android::uirenderer::RingBuffer
|
/frameworks/av/include/media/ |
H A D | MediaCodecBuffer.h | 48 size_t capacity() const;
|
/frameworks/av/media/libmedia/include/media/ |
H A D | MediaCodecBuffer.h | 48 size_t capacity() const;
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | NativeFrame.java | 38 int capacity = format.getSize(); 39 nativeAllocate(capacity); 40 setReusable(capacity != 0); 232 private native boolean nativeAllocate(int capacity); argument
|