Searched refs:capacity (Results 1 - 25 of 30) sorted by relevance

12

/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/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/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/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/
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/Camera2/src/com/android/camera/processing/memory/
H A DByteBufferDirectPool.java39 byteBuffer.limit(byteBuffer.capacity());
/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/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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
H A DByteArrayDictBuffer.java78 public int capacity() { method in class:ByteArrayDictBuffer
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DLruCache.java33 public LruCache(final int capacity) { argument
37 return size() > capacity;
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
H A DTaskJpegEncode.java84 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 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/QuickSearchBox/src/com/android/quicksearchbox/
H A DListSuggestionCursor.java55 public ListSuggestionCursor(String userQuery, int capacity) { argument
57 mSuggestions = new ArrayList<Entry>(capacity);
/packages/apps/UnifiedEmail/src/com/android/mail/print/
H A DHtmlPrintTemplates.java103 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/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
H A DTimePicker.java158 int capacity = mIs24hFormat ? 2 : 3;
159 for (int i = 0; i < capacity; i++) {
/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.
H A DJpegUtilNative.java81 * This must have enough capacity to store the result, or an
83 * @param outBufCapacity the capacity of outBuf
159 cbPStride, cbRStride, crBuf, crPStride, crRStride, outBuf, outBuf.capacity(),
/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/UnifiedEmail/src/com/android/mail/ui/
H A DHtmlConversationTemplates.java212 LogUtils.d(TAG, "rendered conversation of %d bytes, buffer capacity=%d",
213 mBuilder.length() << 1, mBuilder.capacity() << 1);
/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/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLES11Canvas.java112 gl.glBufferData(GL11.GL_ARRAY_BUFFER, xyBuffer.capacity() * (Float.SIZE / Byte.SIZE),
978 mGL.glBufferData(GL11.GL_ARRAY_BUFFER, buf.capacity() * elementSize, buf,

Completed in 597 milliseconds

12