Home
last modified time | relevance | path

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

12

/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()
DDownloadCache.java81 public DownloadCache(GalleryApp application, File root, long capacity) { in DownloadCache() argument
84 mCapacity = capacity; in DownloadCache()
/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/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/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/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/UnifiedEmail/src/com/android/mail/utils/
DLruCache.java38 public LruCache(int capacity) { in LruCache() argument
39 this(capacity, capacity); in LruCache()
/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()
DJpegUtilNative.java159 cbPStride, cbRStride, crBuf, crPStride, crRStride, outBuf, outBuf.capacity(), in compressJpegFromYUV420p()
/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/Gallery/src/com/android/camera/gallery/
DLruCache.java33 public LruCache(final int capacity) { in LruCache() argument
37 return size() > capacity; in LruCache()
/packages/apps/UnifiedEmail/src/com/android/mail/print/
DHtmlPrintTemplates.java104 mBuilder.length() << 1, mBuilder.capacity() << 1); in endPrintConversation()
125 mBuilder.length() << 1, mBuilder.capacity() << 1); in endPrintConversationNoJavascript()
/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()
DFileCache.java89 public FileCache(Context context, File rootDir, String dbName, long capacity) { in FileCache() argument
91 mCapacity = capacity; in FileCache()
/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/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
DTimePicker.java158 int capacity = mIs24hFormat ? 2 : 3; in getColumns() local
159 for (int i = 0; i < capacity; i++) { in getColumns()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSlotView.java231 private static int[] expandIntArray(int array[], int capacity) { in expandIntArray() argument
232 while (array.length < capacity) { in expandIntArray()
/packages/apps/Camera2/src/com/android/camera/processing/memory/
DByteBufferDirectPool.java39 byteBuffer.limit(byteBuffer.capacity()); in recycle()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DByteArrayDictBuffer.java78 public int capacity() { in capacity() method in ByteArrayDictBuffer
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES11Canvas.java112 gl.glBufferData(GL11.GL_ARRAY_BUFFER, xyBuffer.capacity() * (Float.SIZE / Byte.SIZE), in GLES11Canvas()
978 mGL.glBufferData(GL11.GL_ARRAY_BUFFER, buf.capacity() * elementSize, buf, in uploadBuffer()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DHtmlConversationTemplates.java213 mBuilder.length() << 1, mBuilder.capacity() << 1); in endConversation()

12