Home
last modified time | relevance | path

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

123

/external/icu/icu4c/source/layoutex/
DRunArrays.cpp19 RunArray::RunArray(le_int32 initialCapacity) in RunArray() argument
20 : fClientArrays(FALSE), fLimits(NULL), fCount(0), fCapacity(initialCapacity) in RunArray()
22 if (initialCapacity > 0) { in RunArray()
76 FontRuns::FontRuns(le_int32 initialCapacity) in FontRuns() argument
77 : RunArray(initialCapacity), fFonts(NULL) in FontRuns()
79 if (initialCapacity > 0) { in FontRuns()
80 fFonts = LE_NEW_ARRAY(const LEFontInstance *, initialCapacity); in FontRuns()
128 LocaleRuns::LocaleRuns(le_int32 initialCapacity) in LocaleRuns() argument
129 : RunArray(initialCapacity), fLocales(NULL) in LocaleRuns()
131 if (initialCapacity > 0) { in LocaleRuns()
[all …]
Dplruns.cpp27 pl_openEmptyFontRuns(le_int32 initialCapacity) in pl_openEmptyFontRuns() argument
29 return (pl_fontRuns *) new FontRuns(initialCapacity); in pl_openEmptyFontRuns()
123 pl_openEmptyValueRuns(le_int32 initialCapacity) in pl_openEmptyValueRuns() argument
125 return (pl_valueRuns *) new ValueRuns(initialCapacity); in pl_openEmptyValueRuns()
242 ULocRuns(le_int32 initialCapacity);
345 ULocRuns::ULocRuns(le_int32 initialCapacity) in ULocRuns() argument
346 : LocaleRuns(initialCapacity), fLocaleNames(NULL) in ULocRuns()
348 if(initialCapacity > 0) { in ULocRuns()
349 fLocaleNames = LE_NEW_ARRAY(const char *, initialCapacity); in ULocRuns()
416 pl_openEmptyLocaleRuns(le_int32 initialCapacity) in pl_openEmptyLocaleRuns() argument
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DMapMaker.java45 ExpiringComputingMap(long expirationMillis, int maximumSize, int initialCapacity, in ExpiringComputingMap() argument
47 this(expirationMillis, null, maximumSize, initialCapacity, loadFactor); in ExpiringComputingMap()
51 int maximumSize, int initialCapacity, float loadFactor) { in ExpiringComputingMap() argument
52 super(initialCapacity, loadFactor, (maximumSize != -1)); in ExpiringComputingMap()
161 private int initialCapacity = 16; field in MapMaker
170 public MapMaker initialCapacity(int initialCapacity) { in initialCapacity() method in MapMaker
171 if (initialCapacity < 0) { in initialCapacity()
174 this.initialCapacity = initialCapacity; in initialCapacity()
242 ? new ExpiringComputingMap<K, V>(expirationMillis, null, maximumSize, initialCapacity, in makeMap()
244 : new ConcurrentHashMap<K, V>(initialCapacity, loadFactor); in makeMap()
[all …]
/external/chromium_org/third_party/icu/source/common/
Duvectr64.cpp33 UVector64::UVector64(int32_t initialCapacity, UErrorCode &status) : in UVector64() argument
39 _init(initialCapacity, status); in UVector64()
44 void UVector64::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
46 if (initialCapacity < 1) { in _init()
47 initialCapacity = DEFAULT_CAPACITY; in _init()
49 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
50 initialCapacity = maxCapacity; in _init()
52 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int64_t))) { in _init()
53 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
55 elements = (int64_t *)uprv_malloc(sizeof(int64_t)*initialCapacity); in _init()
[all …]
Duvectr32.cpp36 UVector32::UVector32(int32_t initialCapacity, UErrorCode &status) : in UVector32() argument
42 _init(initialCapacity, status); in UVector32()
47 void UVector32::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
49 if (initialCapacity < 1) { in _init()
50 initialCapacity = DEFAULT_CAPACITY; in _init()
52 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
53 initialCapacity = maxCapacity; in _init()
55 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int32_t))) { in _init()
56 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
58 elements = (int32_t *)uprv_malloc(sizeof(int32_t)*initialCapacity); in _init()
[all …]
Dustack.cpp19 UStack::UStack(int32_t initialCapacity, UErrorCode &status) : in UStack() argument
20 UVector(initialCapacity, status) in UStack()
29 UStack::UStack(UObjectDeleter *d, UKeyComparator *c, int32_t initialCapacity, UErrorCode &status) : in UStack() argument
30 UVector(d, c, initialCapacity, status) in UStack()
Duvector.cpp39 UVector::UVector(int32_t initialCapacity, UErrorCode &status) : in UVector() argument
46 _init(initialCapacity, status); in UVector()
59 UVector::UVector(UObjectDeleter *d, UKeyComparator *c, int32_t initialCapacity, UErrorCode &status)… in UVector() argument
66 _init(initialCapacity, status); in UVector()
69 void UVector::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
74 if ((initialCapacity < 1) || (initialCapacity > (int32_t)(INT32_MAX / sizeof(UHashTok)))) { in _init()
75 initialCapacity = DEFAULT_CAPACITY; in _init()
77 elements = (UHashTok *)uprv_malloc(sizeof(UHashTok)*initialCapacity); in _init()
81 capacity = initialCapacity; in _init()
Duvector.h112 UVector(int32_t initialCapacity, UErrorCode &status);
116 UVector(UObjectDeleter *d, UKeyComparator *c, int32_t initialCapacity, UErrorCode &status);
273 void _init(int32_t initialCapacity, UErrorCode &status);
308 UStack(int32_t initialCapacity, UErrorCode &status);
312 UStack(UObjectDeleter *d, UKeyComparator *c, int32_t initialCapacity, UErrorCode &status);
/external/icu/icu4c/source/common/
Duvectr64.cpp33 UVector64::UVector64(int32_t initialCapacity, UErrorCode &status) : in UVector64() argument
39 _init(initialCapacity, status); in UVector64()
44 void UVector64::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
46 if (initialCapacity < 1) { in _init()
47 initialCapacity = DEFAULT_CAPACITY; in _init()
49 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
50 initialCapacity = maxCapacity; in _init()
52 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int64_t))) { in _init()
53 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
55 elements = (int64_t *)uprv_malloc(sizeof(int64_t)*initialCapacity); in _init()
[all …]
Duvectr32.cpp36 UVector32::UVector32(int32_t initialCapacity, UErrorCode &status) : in UVector32() argument
42 _init(initialCapacity, status); in UVector32()
47 void UVector32::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
49 if (initialCapacity < 1) { in _init()
50 initialCapacity = DEFAULT_CAPACITY; in _init()
52 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
53 initialCapacity = maxCapacity; in _init()
55 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int32_t))) { in _init()
56 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
58 elements = (int32_t *)uprv_malloc(sizeof(int32_t)*initialCapacity); in _init()
[all …]
Dustack.cpp19 UStack::UStack(int32_t initialCapacity, UErrorCode &status) : in UStack() argument
20 UVector(initialCapacity, status) in UStack()
29 UStack::UStack(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status… in UStack() argument
30 UVector(d, c, initialCapacity, status) in UStack()
Duvector.cpp40 UVector::UVector(int32_t initialCapacity, UErrorCode &status) : in UVector() argument
47 _init(initialCapacity, status); in UVector()
60 UVector::UVector(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &stat… in UVector() argument
67 _init(initialCapacity, status); in UVector()
70 void UVector::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
75 if ((initialCapacity < 1) || (initialCapacity > (int32_t)(INT32_MAX / sizeof(UElement)))) { in _init()
76 initialCapacity = DEFAULT_CAPACITY; in _init()
78 elements = (UElement *)uprv_malloc(sizeof(UElement)*initialCapacity); in _init()
82 capacity = initialCapacity; in _init()
/external/emma/core/java12/com/vladium/util/
DIntSet.java38 public IntSet (final int initialCapacity) in IntSet() argument
40 this (initialCapacity, 0.75F); in IntSet()
49 public IntSet (int initialCapacity, final float loadFactor) in IntSet() argument
51 …if (initialCapacity < 0) throw new IllegalArgumentException ("negative input: initialCapacity [" +… in IntSet()
55 if (initialCapacity == 0) initialCapacity = 1; in IntSet()
58 m_sizeThreshold = (int) (initialCapacity * loadFactor); in IntSet()
59 m_buckets = new Entry [initialCapacity]; in IntSet()
DIntObjectMap.java40 public IntObjectMap (final int initialCapacity) in IntObjectMap() argument
42 this (initialCapacity, 0.75F); in IntObjectMap()
51 public IntObjectMap (int initialCapacity, final float loadFactor) in IntObjectMap() argument
53 …if (initialCapacity < 0) throw new IllegalArgumentException ("negative input: initialCapacity [" +… in IntObjectMap()
57 if (initialCapacity == 0) initialCapacity = 1; in IntObjectMap()
60 m_sizeThreshold = (int) (initialCapacity * loadFactor); in IntObjectMap()
61 m_buckets = new Entry [initialCapacity]; in IntObjectMap()
DIntIntMap.java40 public IntIntMap (final int initialCapacity) in IntIntMap() argument
42 this (initialCapacity, 0.75F); in IntIntMap()
51 public IntIntMap (int initialCapacity, final float loadFactor) in IntIntMap() argument
53 …if (initialCapacity < 0) throw new IllegalArgumentException ("negative input: initialCapacity [" +… in IntIntMap()
57 if (initialCapacity == 0) initialCapacity = 1; in IntIntMap()
60 m_sizeThreshold = (int) (initialCapacity * loadFactor); in IntIntMap()
61 m_buckets = new Entry [initialCapacity]; in IntIntMap()
DObjectIntMap.java42 public ObjectIntMap (final int initialCapacity) in ObjectIntMap() argument
44 this (initialCapacity, 0.75F); in ObjectIntMap()
53 public ObjectIntMap (int initialCapacity, final float loadFactor) in ObjectIntMap() argument
55 …if (initialCapacity < 0) throw new IllegalArgumentException ("negative input: initialCapacity [" +… in ObjectIntMap()
59 if (initialCapacity == 0) initialCapacity = 1; in ObjectIntMap()
62 m_sizeThreshold = (int) (initialCapacity * loadFactor); in ObjectIntMap()
63 m_buckets = new Entry [initialCapacity]; in ObjectIntMap()
DSoftValueMap.java72 …public SoftValueMap (int initialCapacity, final float loadFactor, final int readClearCheckFrequenc… in SoftValueMap() argument
74 if (initialCapacity < 0) in SoftValueMap()
75 … throw new IllegalArgumentException ("negative input: initialCapacity [" + initialCapacity + "]"); in SoftValueMap()
83 if (initialCapacity == 0) initialCapacity = 1; in SoftValueMap()
88 m_sizeThreshold = (int) (initialCapacity * loadFactor); in SoftValueMap()
93 m_buckets = new SoftEntry [initialCapacity]; in SoftValueMap()
/external/chromium_org/third_party/WebKit/Source/wtf/
DHashSetTest.cpp36 template<int initialCapacity>
38 static const int minimumTableSize = initialCapacity;
44 const unsigned initialCapacity = WTF::HashTableCapacityForSize<size>::value; in testInitialCapacity() local
45 HashSet<int, DefaultHash<int>::Hash, InitialCapacityTestHashTraits<initialCapacity> > testSet; in testInitialCapacity()
53 EXPECT_EQ(initialCapacity, testSet.capacity()); in testInitialCapacity()
57 unsigned capacityLimit = initialCapacity / 2 - 1; in testInitialCapacity()
60 EXPECT_EQ(initialCapacity, testSet.capacity()); in testInitialCapacity()
64 testSet.add(initialCapacity); in testInitialCapacity()
65 EXPECT_GT(testSet.capacity(), initialCapacity); in testInitialCapacity()
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DCacheBuilder.java50 private int initialCapacity = -1; field in CacheBuilder
61 public CacheBuilder<K, V> initialCapacity(int initialCapacity) { in initialCapacity() method in CacheBuilder
62 checkState(this.initialCapacity == UNSET_INT, "initial capacity was already set to %s", in initialCapacity()
63 this.initialCapacity); in initialCapacity()
64 checkArgument(initialCapacity >= 0); in initialCapacity()
65 this.initialCapacity = initialCapacity; in initialCapacity()
70 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity; in getInitialCapacity()
/external/guava/guava/src/com/google/common/cache/
DCacheBuilder.java203 int initialCapacity = UNSET_INT; field in CacheBuilder
287 public CacheBuilder<K, V> initialCapacity(int initialCapacity) { in initialCapacity() method in CacheBuilder
288 checkState(this.initialCapacity == UNSET_INT, "initial capacity was already set to %s", in initialCapacity()
289 this.initialCapacity); in initialCapacity()
290 checkArgument(initialCapacity >= 0); in initialCapacity()
291 this.initialCapacity = initialCapacity; in initialCapacity()
296 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity; in getInitialCapacity()
785 if (initialCapacity != UNSET_INT) { in toString()
786 s.add("initialCapacity", initialCapacity); in toString()
/external/guava/guava/src/com/google/common/collect/
DMapMaker.java124 int initialCapacity = UNSET_INT; field in MapMaker
203 public MapMaker initialCapacity(int initialCapacity) { in initialCapacity() method in MapMaker
204 checkState(this.initialCapacity == UNSET_INT, "initial capacity was already set to %s", in initialCapacity()
205 this.initialCapacity); in initialCapacity()
206 checkArgument(initialCapacity >= 0); in initialCapacity()
207 this.initialCapacity = initialCapacity; in initialCapacity()
212 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity; in getInitialCapacity()
681 if (initialCapacity != UNSET_INT) { in toString()
682 s.add("initialCapacity", initialCapacity); in toString()
/external/chromium_org/third_party/protobuf/java/src/main/java/com/google/protobuf/
DByteString.java684 public static Output newOutput(int initialCapacity) { in newOutput() argument
685 return new Output(initialCapacity); in newOutput()
715 private final int initialCapacity; field in ByteString.Output
731 Output(int initialCapacity) { in Output() argument
732 if (initialCapacity < 0) { in Output()
735 this.initialCapacity = initialCapacity; in Output()
737 this.buffer = new byte[initialCapacity]; in Output()
851 int newSize = Math.max(initialCapacity, in flushFullBuffer()
/external/javassist/src/main/javassist/scopedpool/
DSoftValueHashMap.java96 public SoftValueHashMap(int initialCapacity, float loadFactor) { in SoftValueHashMap() argument
97 hash = new HashMap(initialCapacity, loadFactor); in SoftValueHashMap()
110 public SoftValueHashMap(int initialCapacity) { in SoftValueHashMap() argument
111 hash = new HashMap(initialCapacity); in SoftValueHashMap()
/external/protobuf/java/src/main/java/com/google/protobuf/nano/
DFieldArray.java60 public FieldArray(int initialCapacity) { in FieldArray() argument
61 initialCapacity = idealIntArraySize(initialCapacity); in FieldArray()
62 mFieldNumbers = new int[initialCapacity]; in FieldArray()
63 mData = new FieldData[initialCapacity]; in FieldArray()
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/
DConcurrentHashMap.java44 public ConcurrentHashMap(int initialCapacity) { in ConcurrentHashMap() argument
45 this.backingMap = new HashMap<K, V>(initialCapacity); in ConcurrentHashMap()
48 public ConcurrentHashMap(int initialCapacity, float loadFactor) { in ConcurrentHashMap() argument
49 this.backingMap = new HashMap<K, V>(initialCapacity, loadFactor); in ConcurrentHashMap()

123