/external/icu/icu4c/source/common/ |
D | utrace.cpp | 92 static void outputChar(char c, char *outBuf, int32_t *outIx, int32_t capacity, int32_t indent) { in outputChar() argument 104 (c!='\n' && c!=0 && *outIx < capacity && outBuf[(*outIx)-1]=='\n') || /* case 2. */ in outputChar() 105 (c=='\n' && *outIx>=capacity)) /* case 3 */ in outputChar() 109 if (*outIx < capacity) { in outputChar() 116 if (*outIx < capacity) { in outputChar() 128 char *outBuf, int32_t *outIx, int32_t capacity) { in outputHexBytes() argument 133 outputChar(c, outBuf, outIx, capacity, 0); in outputHexBytes() 138 static void outputPtrBytes(void *val, char *outBuf, int32_t *outIx, int32_t capacity) { in outputPtrBytes() argument 152 outputHexBytes(*p, 2, outBuf, outIx, capacity); in outputPtrBytes() 157 static void outputString(const char *s, char *outBuf, int32_t *outIx, int32_t capacity, int32_t ind… in outputString() argument [all …]
|
D | uscript.cpp | 33 UScriptCode *dest, int32_t capacity, UErrorCode *err) { in setCodes() argument 36 if(length > capacity) { in setCodes() 47 setOneCode(UScriptCode script, UScriptCode *scripts, int32_t capacity, UErrorCode *err) { in setOneCode() argument 49 if(1 > capacity) { in setOneCode() 59 UScriptCode *scripts, int32_t capacity, UErrorCode *err) { in getCodesFromLocale() argument 72 return setCodes(JAPANESE, UPRV_LENGTHOF(JAPANESE), scripts, capacity, err); in getCodesFromLocale() 75 return setCodes(KOREAN, UPRV_LENGTHOF(KOREAN), scripts, capacity, err); in getCodesFromLocale() 82 return setCodes(HAN_BOPO, UPRV_LENGTHOF(HAN_BOPO), scripts, capacity, err); in getCodesFromLocale() 91 return setOneCode(scriptCode, scripts, capacity, err); in getCodesFromLocale() 101 int32_t capacity, in uscript_getCode() argument [all …]
|
D | cmemory.h | 295 MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {} in MaybeStackArray() 305 if (capacity < newCapacity) { in MaybeStackArray() 327 int32_t getCapacity() const { return capacity; } in getCapacity() 337 T *getArrayLimit() const { return getAlias()+capacity; } in getArrayLimit() 364 capacity=otherCapacity; in aliasInstead() 397 if (this->resize(src.capacity, 0) == NULL) { in copyFrom() 401 uprv_memcpy(this->ptr, src.ptr, (size_t)capacity * sizeof(T)); in copyFrom() 406 int32_t capacity; variable 416 capacity=stackCapacity; in resetToStackArray() 430 : ptr(src.ptr), capacity(src.capacity), needToRelease(src.needToRelease) { in MaybeStackArray() [all …]
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/internal/ |
D | ChannelFlow.kt | 32 capacity: Int = Channel.OPTIONAL_CHANNEL, in <lambda>() 50 @JvmField public val capacity: Int, constant in kotlinx.coroutines.flow.internal.ChannelFlow 55 …assert { capacity != Channel.CONFLATED } // CONFLATED must be desugared to 0, DROP_OLDEST by calle… in <lambda>() 63 get() = if (capacity == Channel.OPTIONAL_CHANNEL) Channel.BUFFERED else capacity 73 …public override fun fuse(context: CoroutineContext, capacity: Int, onBufferOverflow: BufferOverflo… in dropChannelOperators() 74 …assert { capacity != Channel.CONFLATED } // CONFLATED must be desugared to (0, DROP_OLDEST) by cal… in dropChannelOperators() 81 newCapacity = capacity in dropChannelOperators() 86 this.capacity == Channel.OPTIONAL_CHANNEL -> capacity in dropChannelOperators() 87 capacity == Channel.OPTIONAL_CHANNEL -> this.capacity in dropChannelOperators() 88 this.capacity == Channel.BUFFERED -> capacity in dropChannelOperators() [all …]
|
D | Merge.kt | 17 capacity: Int = Channel.BUFFERED, in <lambda>() 19 ) : ChannelFlowOperator<T, R>(flow, context, capacity, onBufferOverflow) { in <lambda>() 20 …override fun create(context: CoroutineContext, capacity: Int, onBufferOverflow: BufferOverflow): C… in <lambda>() 21 ChannelFlowTransformLatest(transform, flow, context, capacity, onBufferOverflow) in <lambda>() 45 capacity: Int = Channel.BUFFERED, 47 ) : ChannelFlow<T>(context, capacity, onBufferOverflow) { 48 …override fun create(context: CoroutineContext, capacity: Int, onBufferOverflow: BufferOverflow): C… in create() 49 ChannelFlowMerge(flow, concurrency, context, capacity, onBufferOverflow) in create() 52 return scope.flowProduce(context, capacity, block = collectToFun) in create() 83 capacity: Int = Channel.BUFFERED, in additionalToStringProps() [all …]
|
/external/icu/icu4c/source/layoutex/ |
D | RunArrays.cpp | 52 void RunArray::init(le_int32 capacity) in init() argument 54 fLimits = LE_NEW_ARRAY(le_int32, capacity); in init() 94 void FontRuns::init(le_int32 capacity) in init() argument 96 RunArray::init(capacity); in init() 97 fFonts = LE_NEW_ARRAY(const LEFontInstance *, capacity); in init() 100 void FontRuns::grow(le_int32 capacity) in grow() argument 102 RunArray::grow(capacity); in grow() 103 fFonts = (const LEFontInstance **) LE_GROW_ARRAY(fFonts, capacity); in grow() 146 void LocaleRuns::init(le_int32 capacity) in init() argument 148 RunArray::init(capacity); in init() [all …]
|
/external/emma/core/java12/com/vladium/util/ |
D | ByteArrayOStream.java | 52 final int capacity = pos + 2; in write2() local 56 if (mbuflen < capacity) in write2() 58 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)]; in write2() 70 m_pos = capacity; in write2() 76 final int capacity = pos + 3; in write3() local 80 if (mbuflen < capacity) in write3() 82 final byte [] newbuf = new byte [Math.max (mbuflen << 1, capacity)]; in write3() 95 m_pos = capacity; in write3() 101 final int capacity = pos + 4; in write4() local 105 if (mbuflen < capacity) in write4() [all …]
|
/external/emma/core/java12/com/vladium/jcd/cls/ |
D | ElementFactory.java | 21 public static IAttributeCollection newAttributeCollection (final int capacity) in newAttributeCollection() argument 23 return new AttributeCollection (capacity); in newAttributeCollection() 26 public static IConstantCollection newConstantCollection (final int capacity) in newConstantCollection() argument 28 return new ConstantCollection (capacity); in newConstantCollection() 31 public static IFieldCollection newFieldCollection (final int capacity) in newFieldCollection() argument 33 return new FieldCollection (capacity); in newFieldCollection() 36 public static IInterfaceCollection newInterfaceCollection (final int capacity) in newInterfaceCollection() argument 38 return new InterfaceCollection (capacity); in newInterfaceCollection() 41 public static IMethodCollection newMethodCollection (final int capacity) in newMethodCollection() argument 43 return new MethodCollection (capacity); in newMethodCollection()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/operators/ |
D | Context.kt | 125 public fun <T> Flow<T>.buffer(capacity: Int = BUFFERED, onBufferOverflow: BufferOverflow = BufferOv… in <lambda>() 126 require(capacity >= 0 || capacity == BUFFERED || capacity == CONFLATED) { in <lambda>() 127 "Buffer size should be non-negative, BUFFERED, or CONFLATED, but was $capacity" in <lambda>() 129 require(capacity != CONFLATED || onBufferOverflow == BufferOverflow.SUSPEND) { in <lambda>() 133 var capacity = capacity in <lambda>() variable 135 if (capacity == CONFLATED) { in <lambda>() 136 capacity = 0 in <lambda>() 141 is FusibleFlow -> fuse(capacity = capacity, onBufferOverflow = onBufferOverflow) in <lambda>() 142 … else -> ChannelFlowOperatorImpl(this, capacity = capacity, onBufferOverflow = onBufferOverflow) in <lambda>() 147 public fun <T> Flow<T>.buffer(capacity: Int = BUFFERED): Flow<T> = buffer(capacity) in buffer()
|
/external/perfetto/include/perfetto/ext/base/ |
D | container_annotations.h | 26 #define ANNOTATE_NEW_BUFFER(buffer, capacity, new_size) \ argument 28 __sanitizer_annotate_contiguous_container(buffer, (buffer) + (capacity), \ 29 (buffer) + (capacity), \ 32 #define ANNOTATE_DELETE_BUFFER(buffer, capacity, old_size) \ argument 34 __sanitizer_annotate_contiguous_container(buffer, (buffer) + (capacity), \ 36 (buffer) + (capacity)); \ 38 #define ANNOTATE_CHANGE_SIZE(buffer, capacity, old_size, new_size) \ argument 40 __sanitizer_annotate_contiguous_container(buffer, (buffer) + (capacity), \ 50 #define ANNOTATE_NEW_BUFFER(buffer, capacity, new_size) argument 51 #define ANNOTATE_DELETE_BUFFER(buffer, capacity, old_size) argument [all …]
|
/external/libcxx/test/std/containers/sequences/vector/vector.capacity/ |
D | reserve.pass.cpp | 25 assert(v.capacity() >= 10); in main() 30 assert(v.capacity() == 100); in main() 33 assert(v.capacity() == 100); in main() 36 assert(v.capacity() == 150); in main() 42 assert(v.capacity() == 100); in main() 45 assert(v.capacity() == 100); in main() 48 assert(v.capacity() == 150); in main() 55 assert(v.capacity() >= 10); in main() 60 assert(v.capacity() == 100); in main() 63 assert(v.capacity() == 100); in main() [all …]
|
D | resize_size.pass.cpp | 29 assert(v.capacity() == 100); in main() 33 assert(v.capacity() >= 200); in main() 41 assert(v.capacity() == 100); in main() 45 assert(v.capacity() >= 200); in main() 53 assert(v.capacity() == 100); in main() 57 assert(v.capacity() >= 200); in main() 65 assert(v.capacity() == 100); in main() 69 assert(v.capacity() >= 200); in main() 76 assert(v.capacity() == 100); in main() 80 assert(v.capacity() >= 200); in main()
|
/external/llvm-project/libcxx/test/std/containers/sequences/vector/vector.capacity/ |
D | reserve.pass.cpp | 25 assert(v.capacity() >= 10); in main() 30 assert(v.capacity() == 100); in main() 33 assert(v.capacity() == 100); in main() 36 assert(v.capacity() == 150); in main() 42 assert(v.capacity() == 100); in main() 45 assert(v.capacity() == 100); in main() 48 assert(v.capacity() == 150); in main() 55 assert(v.capacity() >= 10); in main() 60 assert(v.capacity() == 100); in main() 63 assert(v.capacity() == 100); in main() [all …]
|
D | resize_size.pass.cpp | 28 assert(v.capacity() == 100); in main() 32 assert(v.capacity() >= 200); in main() 40 assert(v.capacity() == 100); in main() 44 assert(v.capacity() >= 200); in main() 52 assert(v.capacity() == 100); in main() 56 assert(v.capacity() >= 200); in main() 64 assert(v.capacity() == 100); in main() 68 assert(v.capacity() >= 200); in main() 75 assert(v.capacity() == 100); in main() 79 assert(v.capacity() >= 200); in main()
|
/external/webrtc/rtc_base/ |
D | buffer_unittest.cc | 32 void TestBuf(const Buffer& b1, size_t size, size_t capacity) { in TestBuf() argument 34 EXPECT_EQ(b1.capacity(), capacity); in TestBuf() 55 EXPECT_EQ(buf.capacity(), 7u); in TEST() 63 EXPECT_EQ(buf.capacity(), 14u); in TEST() 71 EXPECT_EQ(buf.capacity(), 16u); in TEST() 80 EXPECT_EQ(buf.capacity(), 7u * 3 / 2); in TEST() 86 EXPECT_EQ(buf.capacity(), 7u * 3 / 2); in TEST() 124 EXPECT_EQ(buf.capacity(), 15u); // Hasn't shrunk. in TEST() 133 EXPECT_EQ(buf.capacity(), 15u); in TEST() 137 EXPECT_EQ(buf.capacity(), 15u * 3 / 2); // Has grown. in TEST() [all …]
|
D | copy_on_write_buffer_unittest.cc | 32 EXPECT_EQ(buf1.capacity(), buf2.capacity()); in EnsureBuffersShareData() 50 EXPECT_EQ(buf.capacity(), 0u); in TEST() 57 size_t buf1_capacity = buf1.capacity(); in TEST() 62 EXPECT_EQ(buf1.capacity(), 0u); in TEST() 65 EXPECT_EQ(buf2.capacity(), buf1_capacity); in TEST() 72 size_t buf1_capacity = buf1.capacity(); in TEST() 78 EXPECT_EQ(buf1.capacity(), 0u); in TEST() 81 EXPECT_EQ(buf2.capacity(), buf1_capacity); in TEST() 88 size_t buf1_capacity = buf1.capacity(); in TEST() 93 size_t buf2_capacity = buf2.capacity(); in TEST() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | upluralrules.cpp | 83 UChar *keyword, int32_t capacity, in uplrules_select() argument 89 if (keyword == NULL ? capacity != 0 : capacity < 0) { in uplrules_select() 94 return result.extract(keyword, capacity, *status); in uplrules_select() 100 UChar *keyword, int32_t capacity, in uplrules_selectFormatted() argument 106 if (keyword == NULL ? capacity != 0 : capacity < 0) { in uplrules_selectFormatted() 116 return result.extract(keyword, capacity, *status); in uplrules_selectFormatted() 122 UChar *keyword, int32_t capacity, in uplrules_selectForRange() argument 128 if (keyword == NULL ? capacity != 0 : capacity < 0) { in uplrules_selectForRange() 135 return result.extract(keyword, capacity, *status); in uplrules_selectForRange() 142 UChar *keyword, int32_t capacity, in uplrules_selectWithFormat() argument [all …]
|
/external/google-fruit/include/fruit/impl/util/ |
D | hash_helpers.defn.h | 32 inline HashSet<T> createHashSet(size_t capacity) { in createHashSet() argument 33 return HashSet<T>(capacity, std::hash<T>()); in createHashSet() 37 inline HashSetWithArenaAllocator<T> createHashSetWithArenaAllocator(size_t capacity, MemoryPool& me… in createHashSetWithArenaAllocator() argument 38 …return HashSetWithArenaAllocator<T>(capacity, std::hash<T>(), std::equal_to<T>(), ArenaAllocator<T… in createHashSetWithArenaAllocator() 43 createHashSetWithArenaAllocatorAndCustomFunctors(size_t capacity, MemoryPool& memory_pool, Hasher h… in createHashSetWithArenaAllocatorAndCustomFunctors() argument 45 …return HashSetWithArenaAllocator<T, Hasher, EqualityComparator>(capacity, hasher, equality_compara… in createHashSetWithArenaAllocatorAndCustomFunctors() 55 inline HashMap<Key, Value> createHashMap(size_t capacity) { in createHashMap() argument 56 return HashMap<Key, Value>(capacity, std::hash<Key>()); in createHashMap() 60 inline HashMapWithArenaAllocator<Key, Value> createHashMapWithArenaAllocator(std::size_t capacity, in createHashMapWithArenaAllocator() argument 62 …return createHashMapWithArenaAllocatorAndCustomFunctors<Key, Value>(capacity, memory_pool, std::ha… in createHashMapWithArenaAllocator() [all …]
|
/external/tensorflow/tensorflow/lite/micro/kernels/arc_mli/ |
D | scratch_buf_mgr.cc | 98 in->capacity = grant_size_in; in get_arc_scratch_buffer_for_io_tensors() 103 out->capacity = grant_size_out; in get_arc_scratch_buffer_for_io_tensors() 124 weights->capacity = weights_size; in get_arc_scratch_buffer_for_conv_tensors() 128 weights->capacity = max_weights_size; in get_arc_scratch_buffer_for_conv_tensors() 138 bias->capacity = bias_mem_requirements; in get_arc_scratch_buffer_for_conv_tensors() 149 bias->capacity = max_bias_size; in get_arc_scratch_buffer_for_conv_tensors() 177 in->capacity = size_in; in get_arc_scratch_buffer_for_fully_connect_tensors() 179 in->capacity = 0; in get_arc_scratch_buffer_for_fully_connect_tensors() 189 weights->capacity = weights_size; in get_arc_scratch_buffer_for_fully_connect_tensors() 193 weights->capacity = max_weights_size; in get_arc_scratch_buffer_for_fully_connect_tensors() [all …]
|
/external/tensorflow/tensorflow/python/training/ |
D | input.py | 128 capacity=32, argument 191 q = data_flow_ops.FIFOQueue(capacity=capacity, 201 math_ops.cast(q.size(), dtypes.float32) * (1. / capacity)) 215 capacity=32, argument 273 capacity=capacity, 276 summary_name="fraction_of_%d_full" % capacity, 286 capacity=32, shared_name=None, name=None): argument 318 range_tensor, [], num_epochs, shuffle, seed, capacity, 319 shared_name, "fraction_of_%d_full" % capacity, name) 329 capacity=32, shared_name=None, name=None): argument [all …]
|
/external/icu/libicu/cts_headers/ |
D | cmemory.h | 295 MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {} in MaybeStackArray() 305 if (capacity < newCapacity) { in MaybeStackArray() 327 int32_t getCapacity() const { return capacity; } in getCapacity() 337 T *getArrayLimit() const { return getAlias()+capacity; } in getArrayLimit() 364 capacity=otherCapacity; in aliasInstead() 397 if (this->resize(src.capacity, 0) == NULL) { in copyFrom() 401 uprv_memcpy(this->ptr, src.ptr, (size_t)capacity * sizeof(T)); in copyFrom() 406 int32_t capacity; variable 416 capacity=stackCapacity; in resetToStackArray() 430 : ptr(src.ptr), capacity(src.capacity), needToRelease(src.needToRelease) { in MaybeStackArray() [all …]
|
/external/skqp/tests/ |
D | DynamicHashTest.cpp | 30 int capacity() const { return this->INHERITED::capacity(); } in capacity() function in __anon843b8fc20111::Hash 49 ASSERT(hash.capacity() == 0); in DEF_TEST() 52 ASSERT(hash.capacity() == 4); in DEF_TEST() 55 ASSERT(hash.capacity() == 4); in DEF_TEST() 58 ASSERT(hash.capacity() == 4); in DEF_TEST() 61 ASSERT(hash.capacity() == 8); in DEF_TEST() 64 ASSERT(hash.capacity() == 8); in DEF_TEST() 77 ASSERT(hash.capacity() == 0); in DEF_TEST() 80 ASSERT(hash.capacity() == 4); in DEF_TEST() 84 ASSERT(hash.capacity() == 4); in DEF_TEST() [all …]
|
/external/llvm-project/libcxx/test/std/containers/sequences/vector.bool/ |
D | reserve.pass.cpp | 25 assert(v.capacity() >= 10); in main() 29 assert(v.capacity() >= 100); in main() 32 assert(v.capacity() >= 100); in main() 35 assert(v.capacity() >= 150); in main() 41 assert(v.capacity() >= 10); in main() 45 assert(v.capacity() >= 100); in main() 48 assert(v.capacity() >= 100); in main() 51 assert(v.capacity() >= 150); in main()
|
/external/libcxx/test/std/containers/sequences/vector.bool/ |
D | reserve.pass.cpp | 25 assert(v.capacity() >= 10); in main() 29 assert(v.capacity() >= 100); in main() 32 assert(v.capacity() >= 100); in main() 35 assert(v.capacity() >= 150); in main() 41 assert(v.capacity() >= 10); in main() 45 assert(v.capacity() >= 100); in main() 48 assert(v.capacity() >= 100); in main() 51 assert(v.capacity() >= 150); in main()
|
/external/google-fruit/include/fruit/impl/normalized_component_storage/ |
D | normalized_component_storage.defn.h | 26 NormalizedComponentStorage::createLazyComponentWithNoArgsSet(size_t capacity, MemoryPool& memory_po… in createLazyComponentWithNoArgsSet() argument 28 capacity, memory_pool, NormalizedComponentStorage::HashLazyComponentWithNoArgs(), in createLazyComponentWithNoArgsSet() 33 NormalizedComponentStorage::createLazyComponentWithArgsSet(size_t capacity, MemoryPool& memory_pool… in createLazyComponentWithArgsSet() argument 35 capacity, memory_pool, NormalizedComponentStorage::HashLazyComponentWithArgs(), in createLazyComponentWithArgsSet() 40 NormalizedComponentStorage::createLazyComponentWithNoArgsReplacementMap(size_t capacity, MemoryPool… in createLazyComponentWithNoArgsReplacementMap() argument 42 capacity, memory_pool, NormalizedComponentStorage::HashLazyComponentWithNoArgs(), in createLazyComponentWithNoArgsReplacementMap() 47 NormalizedComponentStorage::createLazyComponentWithArgsReplacementMap(size_t capacity, MemoryPool& … in createLazyComponentWithArgsReplacementMap() argument 49 capacity, memory_pool, NormalizedComponentStorage::HashLazyComponentWithArgs(), in createLazyComponentWithArgsReplacementMap()
|