Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 25 of 47) sorted by relevance

12

/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dallocators.h131 chunkHead_->capacity = size - sizeof(ChunkHeader);
159 size_t capacity = 0; in Capacity() local
161 capacity += c->capacity; in Capacity()
162 return capacity; in Capacity()
181 if (chunkHead_ == 0 || chunkHead_->size + size > chunkHead_->capacity) in Malloc()
205 if (chunkHead_->size + increment <= chunkHead_->capacity) { in Realloc()
231 void AddChunk(size_t capacity) { in AddChunk() argument
234 …erpret_cast<ChunkHeader*>(baseAllocator_->Malloc(RAPIDJSON_ALIGN(sizeof(ChunkHeader)) + capacity)); in AddChunk()
235 chunk->capacity = capacity; in AddChunk()
247 size_t capacity; //!< Capacity of the chunk in bytes (excluding the header itself). member
Ddocument.h998 if (o.size >= o.capacity) {
999 if (o.capacity == 0) {
1000 o.capacity = kDefaultObjectCapacity;
1001 … o.members = reinterpret_cast<Member*>(allocator.Malloc(o.capacity * sizeof(Member)));
1004 SizeType oldCapacity = o.capacity;
1005 o.capacity += (oldCapacity + 1) / 2; // grow by factor 1.5
1006 …t<Member*>(allocator.Realloc(o.members, oldCapacity * sizeof(Member), o.capacity * sizeof(Member))…
1281 SizeType Capacity() const { RAPIDJSON_ASSERT(IsArray()); return data_.a.capacity; }
1330 if (newCapacity > data_.a.capacity) {
1331 …data_.a.elements = (GenericValue*)allocator.Realloc(data_.a.elements, data_.a.capacity * sizeof(Ge…
[all …]
Dmemorybuffer.h40 …icMemoryBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocator, c… in stack_()
Dstringbuffer.h39 …icStringBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocator, c… in stack_() argument
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_node_pool.h31 explicit DicNodePool(const int capacity) : mDicNodes(), mPooledDicNodes() { in DicNodePool() argument
32 reset(capacity); in DicNodePool()
35 void reset(const int capacity) { in reset() argument
36 if (capacity == static_cast<int>(mDicNodes.size()) in reset()
37 && capacity == static_cast<int>(mPooledDicNodes.size())) { in reset()
41 mDicNodes.resize(capacity); in reset()
Ddic_node_priority_queue.h32 AK_FORCE_INLINE explicit DicNodePriorityQueue(const int capacity) in DicNodePriorityQueue() argument
33 : mMaxSize(capacity), mDicNodesQueue(), mDicNodePool(capacity) { in DicNodePriorityQueue()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DBytesBufferPool.java35 private BytesBuffer(int capacity) { in BytesBuffer() argument
36 this.data = new byte[capacity]; in BytesBuffer()
44 int capacity = data.length; in readFrom() local
46 int step = Math.min(READ_STEP, capacity - length); in readFrom()
51 if (length == capacity) { in readFrom()
55 capacity = data.length; in readFrom()
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/
DManagedImageReader.java96 private AllocatingImageStream createUnallocatedStream(int capacity) { in createUnallocatedStream() argument
108 AllocatingImageStream stream = new AllocatingImageStream(capacity, in createUnallocatedStream()
127 public ImageStream createStream(int capacity) { in createStream() argument
128 return createUnallocatedStream(capacity); in createStream()
148 public ImageStream createPreallocatedStream(int capacity) throws InterruptedException, in createPreallocatedStream() argument
150 AllocatingImageStream stream = createUnallocatedStream(capacity); in createPreallocatedStream()
DAllocatingImageStream.java55 int capacity, ReservableTicketPool ticketPool, in AllocatingImageStream() argument
60 mCapacity = capacity; in AllocatingImageStream()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DSamplePool.java40 if (sample.data.capacity() >= size in acquireSample()
42 || smallestSufficientSample.data.capacity() > sample.data.capacity())) { in acquireSample()
47 if (maxSample.data.capacity() < sample.data.capacity()) { in acquireSample()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DInputBufferPool.java42 if (sample.data.capacity() >= size in acquireSample()
44 || smallestSufficientSample.data.capacity() > sample.data.capacity())) { in acquireSample()
49 if (maxSample.data.capacity() < sample.data.capacity()) { in acquireSample()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSuggestionResults.java39 public SuggestionResults(final int capacity, final boolean isBeginningOfSentence, in SuggestionResults() argument
41 this(sSuggestedWordInfoComparator, capacity, isBeginningOfSentence, in SuggestionResults()
45 private SuggestionResults(final Comparator<SuggestedWordInfo> comparator, final int capacity, in SuggestionResults() argument
49 mCapacity = capacity; in SuggestionResults()
/packages/apps/TV/tuner/src/com/android/tv/tuner/util/
DByteArrayBuffer.java43 public ByteArrayBuffer(int capacity) { in ByteArrayBuffer() argument
45 if (capacity < 0) { in ByteArrayBuffer()
48 this.buffer = new byte[capacity]; in ByteArrayBuffer()
129 public int capacity() { in capacity() method in ByteArrayBuffer
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DTaskJpegEncode.java84 byte[] dataCopy = new byte[y_buffer.capacity() + u_buffer.capacity() + v_buffer.capacity()]; in convertYUV420ImageToPackedNV21()
110 final int y_size = y_buffer.capacity(); in convertYUV420ImageToPackedNV21()
111 final int u_size = u_buffer.capacity(); in convertYUV420ImageToPackedNV21()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DResizableIntArray.java31 public ResizableIntArray(final int capacity) { in ResizableIntArray() argument
32 reset(capacity); in ResizableIntArray()
91 public void reset(final int capacity) { in reset() argument
93 mArray = new int[capacity]; in reset()
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ticketpool/
DFiniteTicketPool.java85 public FiniteTicketPool(int capacity) { in FiniteTicketPool() argument
86 mMaxCapacity = capacity; in FiniteTicketPool()
88 mTickets = capacity; in FiniteTicketPool()
91 mAvailableTicketCount = new ConcurrentState<>(capacity); in FiniteTicketPool()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Ddocumenttest.cpp432 size_t capacity = a.GetStackCapacity();
433 EXPECT_GT(capacity, 0u);
437 EXPECT_EQ(b.GetStackCapacity(), capacity);
441 EXPECT_EQ(c.GetStackCapacity(), capacity);
529 size_t capacity = a.GetStackCapacity();
530 EXPECT_GT(capacity, 0u);
535 EXPECT_EQ(b.GetStackCapacity(), capacity);
540 EXPECT_EQ(c.GetStackCapacity(), capacity);
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DStubProvider.java710 root.capacity = rootSize; in setSize()
793 public long capacity; field in StubProvider.RootInfo
797 RootInfo(File file, long capacity) { in RootInfo() argument
799 this.capacity = 1024 * 1024; in RootInfo()
801 this.capacity = capacity; in RootInfo()
807 return capacity - size; in getRemainingCapacity()
/packages/apps/Gallery/src/com/android/camera/gallery/
DLruCache.java33 public LruCache(final int capacity) { in LruCache() argument
37 return size() > capacity; in LruCache()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderUtils.java56 public int capacity(); in capacity() method
108 public int capacity() { in capacity() method in BinaryDictDecoderUtils.ByteBufferDictBuffer
109 return mBuffer.capacity(); in capacity()
/packages/apps/Camera2/src/com/android/camera/util/
DConcurrentSharedRingBuffer.java184 public ConcurrentSharedRingBuffer(int capacity) { in ConcurrentSharedRingBuffer() argument
185 if (capacity <= 0) { in ConcurrentSharedRingBuffer()
191 mCapacitySemaphore = new Semaphore(capacity); in ConcurrentSharedRingBuffer()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DLruCache.java37 public LruCache(final int capacity) { in LruCache() argument
41 return size() > capacity; in LruCache()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DListSuggestionCursor.java55 public ListSuggestionCursor(String userQuery, int capacity) { in ListSuggestionCursor() argument
57 mSuggestions = new ArrayList<Entry>(capacity); in ListSuggestionCursor()
/packages/apps/TV/common/src/com/android/tv/common/recording/
DRecordingStorageStatusManager.java92 private MountedStorageStatus(boolean mounted, File mountedDir, long capacity) { in MountedStorageStatus() argument
95 mStorageMountedCapacity = capacity; in MountedStorageStatus()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DRuntimeDocumentClipper.java161 final int capacity = Math.min(uris.size(), Shared.MAX_DOCS_IN_INTENT); in createJumboClipData() local
162 final ArrayList<ClipData.Item> clipItems = new ArrayList<>(capacity); in createJumboClipData()

12