Home
last modified time | relevance | path

Searched refs:initialCapacity (Results 1 – 14 of 14) sorted by relevance

/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
DByteQueue.java27 private int initialCapacity = -1; field in ByteQueue
33 public ByteQueue(int initialCapacity) { in ByteQueue() argument
34 buf = new UnboundedFifoByteBuffer(initialCapacity); in ByteQueue()
35 this.initialCapacity = initialCapacity; in ByteQueue()
51 if (initialCapacity != -1) in clear()
52 buf = new UnboundedFifoByteBuffer(initialCapacity); in clear()
/packages/apps/Mms/src/com/android/mms/util/
DSimpleCache.java43 public SoftReferenceMap(int initialCapacity, int maxCapacity, float loadFactor) { in SoftReferenceMap() argument
44 super(initialCapacity, loadFactor, true); in SoftReferenceMap()
59 public HardReferenceMap(int initialCapacity, int maxCapacity, float loadFactor) { in HardReferenceMap() argument
60 super(initialCapacity, loadFactor, true); in HardReferenceMap()
88 public SimpleCache(int initialCapacity, int maxCapacity, float loadFactor, in SimpleCache() argument
92 mHardReferences = new HardReferenceMap(initialCapacity, maxCapacity, loadFactor); in SimpleCache()
94 mSoftReferences = new SoftReferenceMap(initialCapacity, maxCapacity, loadFactor); in SimpleCache()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DVer4DictEncoder.java73 public SparseTableContentWriter(final String name, final int initialCapacity, in SparseTableContentWriter() argument
82 mSparseTable = new SparseTable(initialCapacity, blockSize, mContentCount); in SparseTableContentWriter()
119 public BigramContentWriter(final String name, final int initialCapacity, in BigramContentWriter() argument
121 super(name + FormatSpec.BIGRAM_FILE_EXTENSION, initialCapacity, in BigramContentWriter()
203 public ShortcutContentWriter(final String name, final int initialCapacity, in ShortcutContentWriter() argument
205 super(name + FormatSpec.SHORTCUT_FILE_EXTENSION, initialCapacity, in ShortcutContentWriter()
DSparseTable.java54 public SparseTable(final int initialCapacity, final int blockSize, in SparseTable() argument
57 final int lookupTableSize = initialCapacity / mBlockSize in SparseTable()
58 + (initialCapacity % mBlockSize > 0 ? 1 : 0); in SparseTable()
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/
DSparseArray.java32 public SparseArray(final int initialCapacity) { in SparseArray() argument
33 mKeys = CollectionUtils.newArrayList(initialCapacity); in SparseArray()
34 mValues = CollectionUtils.newArrayList(initialCapacity); in SparseArray()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DSparseLongArray.java45 public SparseLongArray(int initialCapacity) { in SparseLongArray() argument
46 mKeys = new int[initialCapacity]; in SparseLongArray()
47 mValues = new long[initialCapacity]; in SparseLongArray()
DMatrixCursorWithExtra.java23 public MatrixCursorWithExtra(String[] columnNames, int initialCapacity, Bundle extras) { in MatrixCursorWithExtra() argument
24 super(columnNames, initialCapacity); in MatrixCursorWithExtra()
DMatrixCursorWithCachedColumns.java27 public MatrixCursorWithCachedColumns(final String[] columnNames, final int initialCapacity) { in MatrixCursorWithCachedColumns() argument
28 super(columnNames, initialCapacity); in MatrixCursorWithCachedColumns()
DLruCache.java48 private LruCache(int initialCapacity, int maxCapacity) { in LruCache() argument
49 super(initialCapacity, (float) 0.75, true); in LruCache()
DObservableSparseArrayCompat.java30 public ObservableSparseArrayCompat(final int initialCapacity) { in ObservableSparseArrayCompat() argument
31 super(initialCapacity); in ObservableSparseArrayCompat()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/
DMockRespondMatrixCursor.java36 public MockRespondMatrixCursor(final String[] columnNames, final int initialCapacity, in MockRespondMatrixCursor() argument
38 super(columnNames, initialCapacity); in MockRespondMatrixCursor()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCollectionUtils.java73 public static <E> ArrayList<E> newArrayList(final int initialCapacity) { in newArrayList() argument
74 return new ArrayList<E>(initialCapacity); in newArrayList()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DPinnedHeaderListAdapter.java39 public PinnedHeaderListAdapter(Context context, int initialCapacity) { in PinnedHeaderListAdapter() argument
40 super(context, initialCapacity); in PinnedHeaderListAdapter()
/packages/apps/Contacts/src/com/android/contacts/widget/
DCompositeListAdapter.java68 public CompositeListAdapter(int initialCapacity) { in CompositeListAdapter() argument