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

/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.java40 public SuggestionResults(final Locale locale, final int capacity, argument
42 this(locale, sSuggestedWordInfoComparator, capacity, isBeginningOfSentence);
46 final int capacity, final boolean isBeginningOfSentence) {
49 mCapacity = capacity;
45 SuggestionResults(final Locale locale, final Comparator<SuggestedWordInfo> comparator, final int capacity, final boolean isBeginningOfSentence) argument
H A DResizableIntArray.java26 public ResizableIntArray(final int capacity) { argument
27 reset(capacity);
54 * Calculate the new capacity of {@code mArray}.
55 * @param minimumCapacity the minimum capacity that the {@code mArray} should have.
56 * @return the new capacity that the {@code mArray} should have. Returns zero when there is no
86 public void reset(final int capacity) { argument
88 mArray = new int[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/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/Camera2/src/com/android/camera/util/
H A DJpegUtilNative.java67 cbPStride, cbRStride, crBuf, crPStride, crRStride, outBuf, outBuf.capacity(), quality);
H A DConcurrentSharedRingBuffer.java48 * Called if the buffer is under-capacity and a new element is being
147 * Constructs a new ring buffer with the specified capacity.
149 * @param capacity the maximum number of elements to store.
151 public ConcurrentSharedRingBuffer(int capacity) { argument
152 if (capacity <= 0) {
158 mCapacitySemaphore = new Semaphore(capacity);
182 * the buffer is under-capacity) is passed to {@code swapper.swap()} and the
213 // If we are under capacity, insert the new element and return.
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DBinaryDictDecoderUtils.java51 public int capacity(); method in interface:BinaryDictDecoderUtils.DictBuffer
103 public int capacity() { method in class:BinaryDictDecoderUtils.ByteBufferDictBuffer
104 return mBuffer.capacity();
H A DVer2DictDecoderTests.java86 assertEquals(testFile.length(), dictDecoder.getDictBuffer().capacity());
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DHtmlConversationTemplates.java211 LogUtils.d(TAG, "rendered conversation of %d bytes, buffer capacity=%d",
212 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,
H A DGLES20Canvas.java957 GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, buffer.capacity() * elementSize, buffer,
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
H A DGLES20Canvas.java957 GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, buffer.capacity() * elementSize, buffer,
/packages/apps/Browser/src/com/android/browser/
H A DTab.java1938 + buffer.capacity() + " blob: " + blob.length
/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 2131 milliseconds