Home
last modified time | relevance | path

Searched refs:threshold (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/main/java/sun/net/
DProgressSource.java55 private int threshold = 8192; field in ProgressSource
78 this.threshold = progressMonitor.getProgressUpdateThreshold(); in ProgressSource()
191 if (lastProgress / threshold != progress / threshold) { in updateProgress()
/libcore/ojluni/src/main/java/java/util/
DArrayPrefixHelpers.java81 final int lo, hi, origin, fence, threshold; field in ArrayPrefixHelpers.CumulateTask
91 this.threshold = in CumulateTask()
98 T[] array, int origin, int fence, int threshold, in CumulateTask() argument
103 this.threshold = threshold; in CumulateTask()
112 int th = threshold, org = origin, fnc = fence, l, h; in compute()
233 final int lo, hi, origin, fence, threshold; field in ArrayPrefixHelpers.LongCumulateTask
243 this.threshold = in LongCumulateTask()
250 long[] array, int origin, int fence, int threshold, in LongCumulateTask() argument
255 this.threshold = threshold; in LongCumulateTask()
264 int th = threshold, org = origin, fnc = fence, l, h; in compute()
[all …]
DHashMap.java172 int threshold; field in HashMap
220 threshold = initialCapacity; in HashMap()
255 inflateTable(threshold); in HashMap()
286 threshold = (int) thresholdFloat; in inflateTable()
419 inflateTable(threshold); in put()
507 threshold = Integer.MAX_VALUE; in resize()
514 threshold = (int)Math.min(newCapacity * loadFactor, MAXIMUM_CAPACITY + 1); in resize()
547 inflateTable((int) Math.max(numKeysToBeAdded * loadFactor, threshold)); in putAll()
559 if (numKeysToBeAdded > threshold) { in putAll()
807 if ((size >= threshold) && (null != table[bucketIndex])) { in addEntry()
[all …]
DWeakHashMap.java169 private int threshold; field in WeakHashMap
221 threshold = (int)(capacity * loadFactor); in WeakHashMap()
447 if (++size >= threshold) in put()
470 threshold = Integer.MAX_VALUE; in resize()
483 if (size >= threshold / 2) { in resize()
484 threshold = (int)(newCapacity * loadFactor); in resize()
536 if (numKeysToBeAdded > threshold) { in putAll()
DIdentityHashMap.java186 private transient int threshold; field in IdentityHashMap
265 threshold = (initCapacity * 2)/3; in init()
451 if (++size >= threshold) in put()
468 if (threshold == MAXIMUM_CAPACITY-1) in resize()
470 threshold = MAXIMUM_CAPACITY-1; // Gigantic map! in resize()
477 threshold = newLength / 3; in resize()
507 if (n > threshold) // conservatively pre-expand in putAll()
DHashtable.java150 private int threshold; field in Hashtable
195 threshold = (initialCapacity <= MAX_ARRAY_SIZE + 1) ? initialCapacity : MAX_ARRAY_SIZE + 1; in Hashtable()
406 threshold = (int)Math.min(newCapacity * loadFactor, MAX_ARRAY_SIZE + 1); in rehash()
458 if (count >= threshold) { in put()
1010 threshold = (int) Math.min(length * loadFactor, MAX_ARRAY_SIZE + 1); in readObject()
/libcore/ojluni/src/main/java/java/lang/
DThreadLocal.java300 private int threshold; // Default to 0 field in ThreadLocal.ThreadLocalMap
306 threshold = len * 2 / 3; in setThreshold()
445 if (!cleanSomeSlots(i, sz) && sz >= threshold) in set()
636 if (size >= threshold - threshold / 4) in rehash()
/libcore/ojluni/src/test/java/util/stream/
DTestDoubleSumAverage.java148 private static int compareUlpDifference(double expected, double computed, double threshold) { in compareUlpDifference() argument
162 if (ulpDifference > threshold) { in compareUlpDifference()
164 ulpDifference, threshold); in compareUlpDifference()
/libcore/ojluni/src/main/java/java/io/
DObjectOutputStream.java2319 private int threshold; field in ObjectOutputStream.HandleTable
2337 threshold = (int) (initialCapacity * loadFactor); in HandleTable()
2349 if (size >= threshold) { in assign()
2406 threshold = (int) (spine.length * loadFactor); in growSpine()