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

/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
H A Ddic_node_pool.h31 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 Ddic_node_priority_queue.h32 AK_FORCE_INLINE explicit DicNodePriorityQueue(const int capacity) argument
33 : mMaxSize(capacity), mDicNodesQueue(), mDicNodePool(capacity) {
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/
H A DManagedImageReader.java96 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 DAllocatingImageStream.java32 * 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/Gallery/src/com/android/camera/gallery/
H A DLruCache.java33 public LruCache(final int capacity) { argument
37 return size() > capacity;
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DLruCache.java37 public LruCache(final int capacity) { argument
41 return size() > capacity;
H A DFileCache.java89 public FileCache(Context context, File rootDir, String dbName, long capacity) { argument
91 mCapacity = capacity;
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DLruCache.java33 * 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/tests/src/com/android/inputmethod/latin/utils/
H A DByteArrayDictBuffer.java78 public int capacity() { method in class:ByteArrayDictBuffer
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DBytesBufferPool.java35 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;
H A DDownloadCache.java81 public DownloadCache(GalleryApp application, File root, long capacity) { argument
84 mCapacity = capacity;
/packages/apps/TV/usbtuner/src/com/android/usbtuner/util/
H A DByteArrayBuffer.java42 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/java/src/com/android/inputmethod/latin/utils/
H A DSuggestionResults.java39 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/ticketpool/
H A DFiniteTicketPool.java85 public FiniteTicketPool(int capacity) { argument
86 mMaxCapacity = capacity;
88 mTickets = capacity;
91 mAvailableTicketCount = new ConcurrentState<>(capacity);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DListSuggestionCursor.java55 public ListSuggestionCursor(String userQuery, int capacity) { argument
57 mSuggestions = new ArrayList<Entry>(capacity);
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
H A Dallocators.h131 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 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 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/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
H A DResizableIntArray.java31 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/util/
H A DConcurrentSharedRingBuffer.java48 * 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.
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DBinaryDictDecoderUtils.java56 public int capacity(); method in interface:BinaryDictDecoderUtils.DictBuffer
108 public int capacity() { method in class:BinaryDictDecoderUtils.ByteBufferDictBuffer
109 return mBuffer.capacity();
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DSlotView.java231 private static int[] expandIntArray(int array[], int capacity) { argument
232 while (array.length < capacity) {
/packages/apps/Messaging/build/gcheckstyle/
H A Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com/google/ com/google/ ...
/packages/apps/TV/usbtuner/libs/
H A Dexoplayer_1.5.6.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/android/ com/google/android/exoplayer/ ...
/packages/services/Telecomm/libs/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/util/ ...

Completed in 825 milliseconds