Home
last modified time | relevance | path

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

/external/guava/guava/src/com/google/common/collect/
DCollectSpliterators.java214 long estimatedSize;
217 Spliterator<T> prefix, Spliterator<F> from, int characteristics, long estimatedSize) {
221 this.estimatedSize = estimatedSize;
228 if (estimatedSize != Long.MAX_VALUE) {
229 estimatedSize--;
248 estimatedSize = 0;
259 this.estimatedSize -= estSplitSize;
278 estimatedSize = Math.max(estimatedSize, prefix.estimateSize());
280 return Math.max(estimatedSize, 0);
DStreams.java153 long estimatedSize = 0L; in concat() local
161 estimatedSize = LongMath.saturatedAdd(estimatedSize, splitr.estimateSize()); in concat()
168 estimatedSize), in concat()
DLists.java191 public static <E> ArrayList<E> newArrayListWithExpectedSize(int estimatedSize) { in newArrayListWithExpectedSize() argument
192 return new ArrayList<>(computeArrayListCapacity(estimatedSize)); in newArrayListWithExpectedSize()
/external/dagger2/java/dagger/internal/
DSetBuilder.java37 private SetBuilder(int estimatedSize) { in SetBuilder() argument
38 contributions = new ArrayList<>(estimatedSize); in SetBuilder()
46 public static <T> SetBuilder<T> newSetBuilder(int estimatedSize) { in newSetBuilder() argument
47 return new SetBuilder<T>(estimatedSize); in newSetBuilder()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DSpliteratorTester.java161 long estimatedSize = spliterator.estimateSize(); in expect() local
179 assertEquals(Ints.checkedCast(estimatedSize), resultsForStrategy.size()); in expect()
/external/guava/android/guava/src/com/google/common/collect/
DImmutableBiMap.java302 int estimatedSize = in copyOf() local
306 return new Builder<K, V>(estimatedSize).putAll(entries).build(); in copyOf()
DLists.java190 public static <E> ArrayList<E> newArrayListWithExpectedSize(int estimatedSize) { in newArrayListWithExpectedSize() argument
191 return new ArrayList<>(computeArrayListCapacity(estimatedSize)); in newArrayListWithExpectedSize()
/external/v8/src/inspector/
Dv8-console-message.cc548 m_estimatedSize -= m_messages.front()->estimatedSize(); in addMessage()
551 while (m_estimatedSize + message->estimatedSize() > maxConsoleMessageV8Size && in addMessage()
553 m_estimatedSize -= m_messages.front()->estimatedSize(); in addMessage()
558 m_estimatedSize += m_messages.back()->estimatedSize(); in addMessage()
622 m_estimatedSize += m_messages[i]->estimatedSize(); in contextDestroyed()
Dv8-console-message.h73 int estimatedSize() const { in estimatedSize() function