/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | BytesBufferPool.java | 35 private BytesBuffer(int capacity) { argument 36 this.data = new byte[capacity]; 44 int capacity = data.length; 46 int step = Math.min(READ_STEP, capacity - length); 51 if (length == capacity) { 55 capacity = data.length;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/ |
H A D | dic_node_pool.h | 31 explicit DicNodePool(const int capacity) : mDicNodes(), mPooledDicNodes() { argument 32 reset(capacity); 35 void reset(const int capacity) { argument 36 if (capacity == static_cast<int>(mDicNodes.size()) 37 && capacity == static_cast<int>(mPooledDicNodes.size())) { 41 mDicNodes.resize(capacity);
|
H A D | dic_node_priority_queue.h | 32 AK_FORCE_INLINE explicit DicNodePriorityQueue(const int capacity) argument 33 : mMaxSize(capacity), mDicNodesQueue(), mDicNodePool(capacity) {
|
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/buffer/ |
H A D | SamplePool.java | 43 if (sample.data.capacity() >= size && (smallestSufficientSample == null 44 || smallestSufficientSample.data.capacity() > sample.data.capacity())) { 49 if (maxSample.data.capacity() < sample.data.capacity()) {
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
H A D | allocators.h | 131 chunkHead_->capacity = size - sizeof(ChunkHeader);
155 //! Computes the total capacity of allocated memory chunks.
156 /*! \return total capacity in bytes.
159 size_t capacity = 0;
local 161 capacity += c->capacity;
162 return capacity;
181 if (chunkHead_ == 0 || chunkHead_->size + size > chunkHead_->capacity)
205 if (chunkHead_->size + increment <= chunkHead_->capacity) {
229 /*! \param capacity Capacit 231 AddChunk(size_t capacity) argument 247 size_t capacity; //!< Capacity of the chunk in bytes (excluding the header itself). member in struct:MemoryPoolAllocator::ChunkHeader [all...] |
H A D | memorybuffer.h | 40 GenericMemoryBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocator, capacity) {}
|
H A D | stringbuffer.h | 39 explicit GenericStringBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocator, capacity) {}
|
H A D | document.h | 998 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 o.members = reinterpret_cast<Member*>(allocator.Realloc(o.members, oldCapacity * sizeof(Member), o.capacity * sizeof(Member)));
1140 /*! This function do not deallocate memory in the object, i.e. the capacity is unchanged.
1280 //! Get the capacity of array.
1281 SizeType Capacity() const { RAPIDJSON_ASSERT(IsArray()); return data_.a.capacity; }
1665 SizeType capacity; member in struct:GenericValue::Object 1671 SizeType capacity; member in struct:GenericValue::Array [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | LruCache.java | 33 * Creates an instance of LRUCache, with given capacity. 35 * @param capacity maximum number of elements in the cache. This is also 38 public LruCache(int capacity) { argument 39 this(capacity, capacity); 43 * Creates an instance of LRUCache, with given capacity. 45 * @param initialCapacity initial capacity of the cache. 86 * Necessary to override because HashMap increases the capacity of the 88 * checks if we can remove the eldest element before increasing the capacity.
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | SuggestionResults.java | 39 public SuggestionResults(final int capacity, final boolean isBeginningOfSentence, argument 41 this(sSuggestedWordInfoComparator, capacity, isBeginningOfSentence, 45 private SuggestionResults(final Comparator<SuggestedWordInfo> comparator, final int capacity, argument 49 mCapacity = capacity;
|
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ |
H A D | ManagedImageReader.java | 96 private AllocatingImageStream createUnallocatedStream(int capacity) { argument 108 AllocatingImageStream stream = new AllocatingImageStream(capacity, 116 * Creates a logical bounded stream of images with the specified capacity. 122 * given capacity. 124 * @param capacity The maximum number of images which can be simultaneously 127 public ImageStream createStream(int capacity) { argument 128 return createUnallocatedStream(capacity); 132 * Creates a logical bounded stream of images with the specified capacity, 133 * blocking until the required capacity can be reserved. 145 * @param capacity Th 148 createPreallocatedStream(int capacity) argument [all...] |
H A D | AllocatingImageStream.java | 32 * An ImageQueueCaptureStream with a fixed-capacity which can reserve space 39 * True if capacity for the stream has has been allocated. 45 * @param capacity The capacity to reserve on first bind. 46 * @param ticketPool The ticket pool to reserve capacity in. Note that this 55 int capacity, ReservableTicketPool ticketPool, 60 mCapacity = capacity; 54 AllocatingImageStream( int capacity, ReservableTicketPool ticketPool, BufferQueue<ImageProxy> imageStream, BufferQueueController<ImageProxy> imageStreamController, ImageDistributor imageDistributor, Surface surface) argument
|
/packages/apps/Camera2/src/com/android/camera/processing/memory/ |
H A D | ByteBufferDirectPool.java | 39 byteBuffer.limit(byteBuffer.capacity());
|
/packages/apps/TV/src/com/android/tv/tuner/util/ |
H A D | ByteArrayBuffer.java | 42 public ByteArrayBuffer(int capacity) { argument 44 if (capacity < 0) { 45 throw new IllegalArgumentException("Buffer capacity may not be negative"); 47 this.buffer = new byte[capacity]; 122 public int capacity() { method in class:ByteArrayBuffer
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
H A D | ResizableIntArray.java | 31 public ResizableIntArray(final int capacity) { argument 32 reset(capacity); 59 * Calculate the new capacity of {@code mArray}. 60 * @param minimumCapacity the minimum capacity that the {@code mArray} should have. 61 * @return the new capacity that the {@code mArray} should have. Returns zero when there is no 91 public void reset(final int capacity) { argument 93 mArray = new int[capacity];
|
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ticketpool/ |
H A D | FiniteTicketPool.java | 85 public FiniteTicketPool(int capacity) { argument 86 mMaxCapacity = capacity; 88 mTickets = capacity; 91 mAvailableTicketCount = new ConcurrentState<>(capacity);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
H A D | ByteArrayDictBuffer.java | 78 public int capacity() { method in class:ByteArrayDictBuffer
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
H A D | LruCache.java | 33 public LruCache(final int capacity) { argument 37 return size() > capacity;
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
H A D | TaskJpegEncode.java | 84 byte[] dataCopy = new byte[y_buffer.capacity() + u_buffer.capacity() + v_buffer.capacity()]; 110 final int y_size = y_buffer.capacity(); 111 final int u_size = u_buffer.capacity();
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | LruCache.java | 37 public LruCache(final int capacity) { argument 41 return size() > capacity;
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | ListSuggestionCursor.java | 55 public ListSuggestionCursor(String userQuery, int capacity) { argument 57 mSuggestions = new ArrayList<Entry>(capacity);
|
/packages/apps/UnifiedEmail/src/com/android/mail/print/ |
H A D | HtmlPrintTemplates.java | 103 LogUtils.d(TAG, "rendered conversation of %d bytes, buffer capacity=%d", 104 mBuilder.length() << 1, mBuilder.capacity() << 1); 124 LogUtils.d(TAG, "rendered conversation of %d bytes, buffer capacity=%d", 125 mBuilder.length() << 1, mBuilder.capacity() << 1);
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
H A D | BitmapUtility.java | 46 int len = buf0.capacity();
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
H A D | documenttest.cpp | 432 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/Camera2/src/com/android/camera/util/ |
H A D | ConcurrentSharedRingBuffer.java | 48 * Called if the buffer is under-capacity and a new element is being 180 * Constructs a new ring buffer with the specified capacity. 182 * @param capacity the maximum number of elements to store. 184 public ConcurrentSharedRingBuffer(int capacity) { argument 185 if (capacity <= 0) { 191 mCapacitySemaphore = new Semaphore(capacity); 215 * the buffer is under-capacity) is passed to {@code swapper.swap()} and the 246 // If we are under capacity, insert the new element and return. 511 // Release the capacity permits.
|