Home
last modified time | relevance | path

Searched refs:INITIAL_CAPACITY (Results 1 – 25 of 26) sorted by relevance

12

/external/rust/crates/tokio-util/src/codec/
Dframed_impl.rs27 const INITIAL_CAPACITY: usize = 8 * 1024; constant
53 buffer: BytesMut::with_capacity(INITIAL_CAPACITY), in default()
62 buffer: BytesMut::with_capacity(INITIAL_CAPACITY), in default()
63 backpressure_boundary: INITIAL_CAPACITY, in default()
71 if size < INITIAL_CAPACITY { in from()
72 buffer.reserve(INITIAL_CAPACITY - size); in from()
87 if size < INITIAL_CAPACITY { in from()
88 buffer.reserve(INITIAL_CAPACITY - size); in from()
93 backpressure_boundary: INITIAL_CAPACITY, in from()
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/
DPatternCache.java20 private final static int INITIAL_CAPACITY = 30; field in PatternCache
48 …cache = CacheBuilder.newBuilder().initialCapacity(INITIAL_CAPACITY).maximumSize(MAX_CAPACITY).reco…
50 …cache = CacheBuilder.newBuilder().initialCapacity(INITIAL_CAPACITY).maximumSize(MAX_CAPACITY).buil…
/external/rust/crates/tokio-util/tests/
Dframed.rs12 const INITIAL_CAPACITY: usize = 8 * 1024; constant
140 assert_eq!(read_buf.capacity(), INITIAL_CAPACITY); in external_buf_grows_to_init()
146 parts.read_buf = BytesMut::from(&vec![0; INITIAL_CAPACITY * 2][..]); in external_buf_does_not_shrink()
151 assert_eq!(read_buf.capacity(), INITIAL_CAPACITY * 2); in external_buf_does_not_shrink()
Dcodecs.rs35 const INITIAL_CAPACITY: usize = 8 * 1024; in bytes_encoder() constant
37 let mut buf = BytesMut::with_capacity(INITIAL_CAPACITY); in bytes_encoder()
39 .encode(Bytes::from_static(&[0; INITIAL_CAPACITY + 1]), &mut buf) in bytes_encoder()
/external/icu/libicu/cts_headers/
Dcollationiterator.h57 static const int32_t INITIAL_CAPACITY = CEBUFFER_INITIAL_CAPACITY;
63 if(length < INITIAL_CAPACITY || ensureAppendCapacity(1, errorCode)) { in append()
77 if(length < INITIAL_CAPACITY || ensureAppendCapacity(1, errorCode)) { in incLength()
98 MaybeStackArray<int64_t, INITIAL_CAPACITY> buffer;
/external/icu/icu4c/source/i18n/
Dcollationiterator.h57 static const int32_t INITIAL_CAPACITY = CEBUFFER_INITIAL_CAPACITY;
63 if(length < INITIAL_CAPACITY || ensureAppendCapacity(1, errorCode)) { in append()
77 if(length < INITIAL_CAPACITY || ensureAppendCapacity(1, errorCode)) { in incLength()
98 MaybeStackArray<int64_t, INITIAL_CAPACITY> buffer;
/external/cronet/third_party/icu/source/i18n/
Dcollationiterator.h57 static const int32_t INITIAL_CAPACITY = CEBUFFER_INITIAL_CAPACITY;
63 if(length < INITIAL_CAPACITY || ensureAppendCapacity(1, errorCode)) { in append()
77 if(length < INITIAL_CAPACITY || ensureAppendCapacity(1, errorCode)) { in incLength()
98 MaybeStackArray<int64_t, INITIAL_CAPACITY> buffer;
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DDirectory.java178 private static final int INITIAL_CAPACITY = 16; field in Directory
179 private static final int INITIAL_RESIZE_THRESHOLD = (int) (INITIAL_CAPACITY * 0.75);
181 private DirectoryEntry[] table = new DirectoryEntry[INITIAL_CAPACITY];
/external/icu/libicu/cts_headers/unicode/
Duniset.h291 static constexpr int32_t INITIAL_CAPACITY = 25;
296 int32_t capacity = INITIAL_CAPACITY; // capacity of list
324 UChar32 stackList[INITIAL_CAPACITY];
/external/icu/icu4c/source/common/unicode/
Duniset.h291 static constexpr int32_t INITIAL_CAPACITY = 25;
296 int32_t capacity = INITIAL_CAPACITY; // capacity of list
324 UChar32 stackList[INITIAL_CAPACITY];
/external/cronet/third_party/icu/source/common/unicode/
Duniset.h291 static constexpr int32_t INITIAL_CAPACITY = 25;
296 int32_t capacity = INITIAL_CAPACITY; // capacity of list
324 UChar32 stackList[INITIAL_CAPACITY];
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DLockFreeTaskQueue.kt33 private val _cur = atomic(Core<E>(Core.INITIAL_CAPACITY, singleConsumer)) in <lambda>()
272 const val INITIAL_CAPACITY = 8 in isClosed() constant
/external/rust/crates/tokio/src/task/
Dlocal.rs352 const INITIAL_CAPACITY: usize = 64; constant
389 local_queue: UnsafeCell::new(VecDeque::with_capacity(INITIAL_CAPACITY)), in new()
391 queue: Mutex::new(Some(VecDeque::with_capacity(INITIAL_CAPACITY))), in new()
/external/rust/crates/tokio/src/runtime/scheduler/
Dcurrent_thread.rs99 const INITIAL_CAPACITY: usize = 64; constant
114 queue: Mutex::new(Some(VecDeque::with_capacity(INITIAL_CAPACITY))), in new()
127 tasks: VecDeque::with_capacity(INITIAL_CAPACITY), in new()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationIterator.java31 private static final int INITIAL_CAPACITY = 40; field in CollationIterator.CEBuffer
36 if(length >= INITIAL_CAPACITY) { in append()
64 if(length >= INITIAL_CAPACITY) { in incLength()
79 private long[] buffer = new long[INITIAL_CAPACITY];
DCollationKeys.java146 private static final int INITIAL_CAPACITY = 40; field in CollationKeys.SortKeyLevel
148 byte[] buffer = new byte[INITIAL_CAPACITY];
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationIterator.java33 private static final int INITIAL_CAPACITY = 40; field in CollationIterator.CEBuffer
38 if(length >= INITIAL_CAPACITY) { in append()
66 if(length >= INITIAL_CAPACITY) { in incLength()
81 private long[] buffer = new long[INITIAL_CAPACITY];
DCollationKeys.java156 private static final int INITIAL_CAPACITY = 40; field in CollationKeys.SortKeyLevel
158 byte[] buffer = new byte[INITIAL_CAPACITY];
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DEventLoop.common.kt314 … val newQueue = Queue<Runnable>(Queue.INITIAL_CAPACITY, singleConsumer = true) in enqueueImpl()
355 … val newQueue = Queue<Runnable>(Queue.INITIAL_CAPACITY, singleConsumer = true) in closeQueue()
/external/icu/icu4c/source/layoutex/
DRunArrays.cpp41 fCapacity = INITIAL_CAPACITY; in ensureCapacity()
/external/icu/icu4c/source/layoutex/layout/
DRunArrays.h32 #define INITIAL_CAPACITY 16 macro
/external/cronet/third_party/icu/source/common/
Duniset.cpp1429 } else if (len <= INITIAL_CAPACITY) { in compact()
1433 capacity = INITIAL_CAPACITY; in compact()
1628 if (minCapacity < INITIAL_CAPACITY) { in nextCapacity()
1629 return minCapacity + INITIAL_CAPACITY; in nextCapacity()
/external/icu/icu4c/source/common/
Duniset.cpp1429 } else if (len <= INITIAL_CAPACITY) { in compact()
1433 capacity = INITIAL_CAPACITY; in compact()
1628 if (minCapacity < INITIAL_CAPACITY) { in nextCapacity()
1629 return minCapacity + INITIAL_CAPACITY; in nextCapacity()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DUnicodeSet.java318 private static final int INITIAL_CAPACITY = 25; field in UnicodeSet
367 list = new int[INITIAL_CAPACITY]; in UnicodeSet()
2974 if (minCapacity < INITIAL_CAPACITY) { in nextCapacity()
2975 return minCapacity + INITIAL_CAPACITY; in nextCapacity()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUnicodeSet.java320 private static final int INITIAL_CAPACITY = 25; field in UnicodeSet
372 list = new int[INITIAL_CAPACITY]; in UnicodeSet()
3049 if (minCapacity < INITIAL_CAPACITY) { in nextCapacity()
3050 return minCapacity + INITIAL_CAPACITY; in nextCapacity()

12