/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
D | ResizableDoubleArray.java | 113 protected int initialCapacity = 16; field in ResizableDoubleArray 144 internalArray = new double[initialCapacity]; in ResizableDoubleArray() 158 public ResizableDoubleArray(int initialCapacity) { in ResizableDoubleArray() argument 159 setInitialCapacity(initialCapacity); in ResizableDoubleArray() 160 internalArray = new double[this.initialCapacity]; in ResizableDoubleArray() 182 this.internalArray = new double[initialCapacity]; in ResizableDoubleArray() 186 initialCapacity = initialArray.length; in ResizableDoubleArray() 213 public ResizableDoubleArray(int initialCapacity, float expansionFactor) { in ResizableDoubleArray() argument 215 setInitialCapacity(initialCapacity); in ResizableDoubleArray() 216 internalArray = new double[initialCapacity]; in ResizableDoubleArray() [all …]
|
/external/icu/icu4c/source/layoutex/ |
D | RunArrays.cpp | 21 RunArray::RunArray(le_int32 initialCapacity) in RunArray() argument 22 : fClientArrays(FALSE), fLimits(NULL), fCount(0), fCapacity(initialCapacity) in RunArray() 24 if (initialCapacity > 0) { in RunArray() 78 FontRuns::FontRuns(le_int32 initialCapacity) in FontRuns() argument 79 : RunArray(initialCapacity), fFonts(NULL) in FontRuns() 81 if (initialCapacity > 0) { in FontRuns() 82 fFonts = LE_NEW_ARRAY(const LEFontInstance *, initialCapacity); in FontRuns() 130 LocaleRuns::LocaleRuns(le_int32 initialCapacity) in LocaleRuns() argument 131 : RunArray(initialCapacity), fLocales(NULL) in LocaleRuns() 133 if (initialCapacity > 0) { in LocaleRuns() [all …]
|
D | plruns.cpp | 29 pl_openEmptyFontRuns(le_int32 initialCapacity) in pl_openEmptyFontRuns() argument 31 return (pl_fontRuns *) new FontRuns(initialCapacity); in pl_openEmptyFontRuns() 125 pl_openEmptyValueRuns(le_int32 initialCapacity) in pl_openEmptyValueRuns() argument 127 return (pl_valueRuns *) new ValueRuns(initialCapacity); in pl_openEmptyValueRuns() 244 ULocRuns(le_int32 initialCapacity); 347 ULocRuns::ULocRuns(le_int32 initialCapacity) in ULocRuns() argument 348 : LocaleRuns(initialCapacity), fLocaleNames(NULL) in ULocRuns() 350 if(initialCapacity > 0) { in ULocRuns() 351 fLocaleNames = LE_NEW_ARRAY(const char *, initialCapacity); in ULocRuns() 418 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/ |
D | MapMaker.java | 46 long expirationMillis, int maximumSize, int initialCapacity) { in ExpiringComputingMap() argument 47 this(expirationMillis, null, maximumSize, initialCapacity); in ExpiringComputingMap() 51 int maximumSize, int initialCapacity) { in ExpiringComputingMap() argument 52 super(initialCapacity, /* ignored loadFactor */ 0.75f, (maximumSize != -1)); in ExpiringComputingMap() 161 private int initialCapacity = 16; field in MapMaker 169 public MapMaker initialCapacity(int initialCapacity) { in initialCapacity() argument 170 if (initialCapacity < 0) { in initialCapacity() 173 this.initialCapacity = initialCapacity; in initialCapacity() 217 ? new ExpiringComputingMap<K, V>(expirationMillis, null, maximumSize, initialCapacity) in makeMap() 218 : new ConcurrentHashMap<K, V>(initialCapacity); in makeMap() [all …]
|
/external/icu/icu4c/source/common/ |
D | uvectr64.cpp | 35 UVector64::UVector64(int32_t initialCapacity, UErrorCode &status) : in UVector64() argument 41 _init(initialCapacity, status); in UVector64() 46 void UVector64::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument 48 if (initialCapacity < 1) { in _init() 49 initialCapacity = DEFAULT_CAPACITY; in _init() 51 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init() 52 initialCapacity = maxCapacity; in _init() 54 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int64_t))) { in _init() 55 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init() 57 elements = (int64_t *)uprv_malloc(sizeof(int64_t)*initialCapacity); in _init() [all …]
|
D | uvectr32.cpp | 38 UVector32::UVector32(int32_t initialCapacity, UErrorCode &status) : in UVector32() argument 44 _init(initialCapacity, status); in UVector32() 49 void UVector32::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument 51 if (initialCapacity < 1) { in _init() 52 initialCapacity = DEFAULT_CAPACITY; in _init() 54 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init() 55 initialCapacity = maxCapacity; in _init() 57 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int32_t))) { in _init() 58 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init() 60 elements = (int32_t *)uprv_malloc(sizeof(int32_t)*initialCapacity); in _init() [all …]
|
D | ustack.cpp | 21 UStack::UStack(int32_t initialCapacity, UErrorCode &status) : in UStack() argument 22 UVector(initialCapacity, status) in UStack() 31 UStack::UStack(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status… in UStack() argument 32 UVector(d, c, initialCapacity, status) in UStack()
|
D | uvector.cpp | 42 UVector::UVector(int32_t initialCapacity, UErrorCode &status) : in UVector() argument 49 _init(initialCapacity, status); in UVector() 62 UVector::UVector(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &stat… in UVector() argument 69 _init(initialCapacity, status); in UVector() 72 void UVector::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument 77 if ((initialCapacity < 1) || (initialCapacity > (int32_t)(INT32_MAX / sizeof(UElement)))) { in _init() 78 initialCapacity = DEFAULT_CAPACITY; in _init() 80 elements = (UElement *)uprv_malloc(sizeof(UElement)*initialCapacity); in _init() 84 capacity = initialCapacity; in _init()
|
D | uvector.h | 97 UVector(int32_t initialCapacity, UErrorCode &status); 101 UVector(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status); 266 void _init(int32_t initialCapacity, UErrorCode &status); 301 UStack(int32_t initialCapacity, UErrorCode &status); 305 UStack(UObjectDeleter *d, UElementsAreEqual *c, int32_t initialCapacity, UErrorCode &status);
|
/external/emma/core/java12/com/vladium/util/ |
D | IntSet.java | 38 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()
|
D | IntObjectMap.java | 40 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()
|
D | IntIntMap.java | 40 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()
|
D | ObjectIntMap.java | 42 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()
|
D | SoftValueMap.java | 72 …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/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/ |
D | CacheBuilder.java | 213 int initialCapacity = UNSET_INT; field in CacheBuilder 263 public CacheBuilder<K, V> initialCapacity(int initialCapacity) { in initialCapacity() argument 264 checkState(this.initialCapacity == UNSET_INT, "initial capacity was already set to %s", in initialCapacity() 265 this.initialCapacity); in initialCapacity() 266 checkArgument(initialCapacity >= 0); in initialCapacity() 267 this.initialCapacity = initialCapacity; in initialCapacity() 272 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity; in getInitialCapacity() 590 if (initialCapacity != UNSET_INT) { in toString() 591 s.add("initialCapacity", initialCapacity); in toString()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderSpecTest.java | 39 assertNull(spec.initialCapacity); in testParse_empty() 52 assertEquals(10, spec.initialCapacity.intValue()); in testParse_initialCapacity() 61 CacheBuilder.newBuilder().initialCapacity(10), CacheBuilder.from(spec)); in testParse_initialCapacity() 75 assertNull(spec.initialCapacity); in testParse_maximumSize() 97 assertNull(spec.initialCapacity); in testParse_maximumWeight() 128 assertNull(spec.initialCapacity); in testParse_concurrencyLevel() 151 assertNull(spec.initialCapacity); in testParse_weakKeys() 183 assertNull(spec.initialCapacity); in testParse_softValues() 206 assertNull(spec.initialCapacity); in testParse_weakValues() 259 assertNull(spec.initialCapacity); in testParse_writeExpirationDays() [all …]
|
/external/guava/guava/src/com/google/common/cache/ |
D | CacheBuilder.java | 219 int initialCapacity = UNSET_INT; field in CacheBuilder 331 public CacheBuilder<K, V> initialCapacity(int initialCapacity) { in initialCapacity() method in CacheBuilder 332 checkState(this.initialCapacity == UNSET_INT, "initial capacity was already set to %s", in initialCapacity() 333 this.initialCapacity); in initialCapacity() 334 checkArgument(initialCapacity >= 0); in initialCapacity() 335 this.initialCapacity = initialCapacity; in initialCapacity() 340 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity; in getInitialCapacity() 835 if (initialCapacity != UNSET_INT) { in toString() 836 s.add("initialCapacity", initialCapacity); in toString()
|
D | CacheBuilderSpec.java | 112 @VisibleForTesting Integer initialCapacity; field in CacheBuilderSpec 172 if (initialCapacity != null) { in toCacheBuilder() 173 builder.initialCapacity(initialCapacity); in toCacheBuilder() 243 initialCapacity, in hashCode() 264 return Objects.equal(initialCapacity, that.initialCapacity) in equals() 323 checkArgument(spec.initialCapacity == null, in parseInteger() 324 "initial capacity was already set to ", spec.initialCapacity); in parseInteger() 325 spec.initialCapacity = value; in parseInteger()
|
/external/guava/guava/src/com/google/common/collect/ |
D | MapMaker.java | 116 int initialCapacity = UNSET_INT; field in MapMaker 169 public MapMaker initialCapacity(int initialCapacity) { in initialCapacity() argument 170 checkState(this.initialCapacity == UNSET_INT, "initial capacity was already set to %s", in initialCapacity() 171 this.initialCapacity); in initialCapacity() 172 checkArgument(initialCapacity >= 0); in initialCapacity() 173 this.initialCapacity = initialCapacity; in initialCapacity() 178 return (initialCapacity == UNSET_INT) ? DEFAULT_INITIAL_CAPACITY : initialCapacity; in getInitialCapacity() 597 if (initialCapacity != UNSET_INT) { in toString() 598 s.add("initialCapacity", initialCapacity); in toString()
|
/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/ |
D | FieldArray.java | 63 FieldArray(int initialCapacity) { in FieldArray() argument 64 initialCapacity = idealIntArraySize(initialCapacity); in FieldArray() 65 mFieldNumbers = new int[initialCapacity]; in FieldArray() 66 mData = new FieldData[initialCapacity]; in FieldArray()
|
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/ |
D | ConcurrentHashMap.java | 44 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()
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | MapMakerTest.java | 48 maker.initialCapacity(-1); in testInitialCapacity_negative() 56 MapMaker maker = new MapMaker().initialCapacity(16); in xtestInitialCapacity_setTwice() 59 maker.initialCapacity(16); in xtestInitialCapacity_setTwice() 88 .initialCapacity(5) in testReturnsPlainConcurrentHashMapWhenPossible()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | SimpleCache.java | 33 public SimpleCache(int cacheType, int initialCapacity) { in SimpleCache() argument 37 if (initialCapacity > 0) { in SimpleCache() 38 capacity = initialCapacity; in SimpleCache()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | SimpleCache.java | 37 public SimpleCache(int cacheType, int initialCapacity) { in SimpleCache() argument 41 if (initialCapacity > 0) { in SimpleCache() 42 capacity = initialCapacity; in SimpleCache()
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/ |
D | SimpleCache.java | 33 public SimpleCache(int cacheType, int initialCapacity) { in SimpleCache() argument 37 if (initialCapacity > 0) { in SimpleCache() 38 capacity = initialCapacity; in SimpleCache()
|