Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 25 of 630) sorted by relevance

12345678910>>...26

/external/icu/icu4c/source/common/
Dutrace.c88 static void outputChar(char c, char *outBuf, int32_t *outIx, int32_t capacity, int32_t indent) { in outputChar() argument
100 (c!='\n' && c!=0 && *outIx < capacity && outBuf[(*outIx)-1]=='\n') || /* case 2. */ in outputChar()
101 (c=='\n' && *outIx>=capacity)) /* case 3 */ in outputChar()
105 if (*outIx < capacity) { in outputChar()
112 if (*outIx < capacity) { in outputChar()
124 char *outBuf, int32_t *outIx, int32_t capacity) { in outputHexBytes() argument
129 outputChar(c, outBuf, outIx, capacity, 0); in outputHexBytes()
134 static void outputPtrBytes(void *val, char *outBuf, int32_t *outIx, int32_t capacity) { in outputPtrBytes() argument
148 outputHexBytes(*p, 2, outBuf, outIx, capacity); in outputPtrBytes()
153 static void outputString(const char *s, char *outBuf, int32_t *outIx, int32_t capacity, int32_t ind… in outputString() argument
[all …]
Duscript.c28 UScriptCode *dest, int32_t capacity, UErrorCode *err) { in setCodes() argument
31 if(length > capacity) { in setCodes()
42 setOneCode(UScriptCode script, UScriptCode *scripts, int32_t capacity, UErrorCode *err) { in setOneCode() argument
44 if(1 > capacity) { in setOneCode()
54 UScriptCode *scripts, int32_t capacity, UErrorCode *err) { in getCodesFromLocale() argument
67 return setCodes(JAPANESE, UPRV_LENGTHOF(JAPANESE), scripts, capacity, err); in getCodesFromLocale()
70 return setCodes(KOREAN, UPRV_LENGTHOF(KOREAN), scripts, capacity, err); in getCodesFromLocale()
77 return setCodes(HAN_BOPO, UPRV_LENGTHOF(HAN_BOPO), scripts, capacity, err); in getCodesFromLocale()
86 return setOneCode(scriptCode, scripts, capacity, err); in getCodesFromLocale()
96 int32_t capacity, in uscript_getCode() argument
[all …]
Dcmemory.h310 MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(FALSE) {} in MaybeStackArray()
319 int32_t getCapacity() const { return capacity; } in getCapacity()
329 T *getArrayLimit() const { return getAlias()+capacity; } in getArrayLimit()
356 capacity=otherCapacity; in aliasInstead()
384 int32_t capacity; variable
423 if(length>capacity) { in resize()
424 length=capacity; in resize()
433 capacity=newCapacity; in resize()
450 if(length>capacity) { in orphanOrClone()
451 length=capacity; in orphanOrClone()
[all …]
Duvectr64.cpp26 capacity(0), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
35 capacity(0), in UVector64()
59 capacity = initialCapacity; in _init()
124 if (capacity >= minimumCapacity) { in expandCapacity()
131 if (capacity > (INT32_MAX - 1) / 2) { // integer overflow check in expandCapacity()
135 int32_t newCap = capacity * 2; in expandCapacity()
154 capacity = newCap; in expandCapacity()
168 if (capacity <= maxCapacity || maxCapacity == 0) { in setMaxCapacity()
182 capacity = maxCapacity; in setMaxCapacity()
183 if (count > capacity) { in setMaxCapacity()
[all …]
/external/icu/icu4c/source/layoutex/
DRunArrays.cpp50 void RunArray::init(le_int32 capacity) in init() argument
52 fLimits = LE_NEW_ARRAY(le_int32, capacity); in init()
92 void FontRuns::init(le_int32 capacity) in init() argument
94 RunArray::init(capacity); in init()
95 fFonts = LE_NEW_ARRAY(const LEFontInstance *, capacity); in init()
98 void FontRuns::grow(le_int32 capacity) in grow() argument
100 RunArray::grow(capacity); in grow()
101 fFonts = (const LEFontInstance **) LE_GROW_ARRAY(fFonts, capacity); in grow()
144 void LocaleRuns::init(le_int32 capacity) in init() argument
146 RunArray::init(capacity); in init()
[all …]
/external/emma/core/java12/com/vladium/util/
DByteArrayOStream.java52 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/
DElementFactory.java21 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/libcxx/test/std/containers/sequences/vector/vector.capacity/
Dreserve.pass.cpp25 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()
41 assert(v.capacity() == 100); in main()
44 assert(v.capacity() == 100); in main()
47 assert(v.capacity() == 150); in main()
54 assert(v.capacity() >= 10); in main()
59 assert(v.capacity() == 100); in main()
62 assert(v.capacity() == 100); in main()
[all …]
Dresize_size.pass.cpp28 assert(v.capacity() == 100); in main()
32 assert(v.capacity() >= 200); in main()
39 assert(v.capacity() == 100); in main()
43 assert(v.capacity() >= 200); in main()
51 assert(v.capacity() == 100); in main()
55 assert(v.capacity() >= 200); in main()
62 assert(v.capacity() == 100); in main()
66 assert(v.capacity() >= 200); in main()
75 assert(v.capacity() == 100); in main()
79 assert(v.capacity() >= 200); in main()
Dresize_size_value.pass.cpp26 assert(v.capacity() == 100); in main()
30 assert(v.capacity() >= 200); in main()
41 assert(v.capacity() == 100); in main()
44 assert(v.capacity() >= 200); in main()
52 assert(v.capacity() == 100); in main()
57 assert(v.capacity() >= 200); in main()
68 assert(v.capacity() == 100); in main()
72 assert(v.capacity() >= 200); in main()
Dcapacity.pass.cpp24 assert(v.capacity() == 0); in main()
29 assert(v.capacity() == 100); in main()
31 assert(v.capacity() > 101); in main()
37 assert(v.capacity() == 0); in main()
42 assert(v.capacity() == 100); in main()
44 assert(v.capacity() > 101); in main()
/external/webrtc/webrtc/base/
Dbuffer_unittest.cc26 void TestBuf(const Buffer& b1, size_t size, size_t capacity) { in TestBuf() argument
28 EXPECT_EQ(b1.capacity(), capacity); in TestBuf()
49 EXPECT_EQ(buf.capacity(), 7u); in TEST()
56 EXPECT_EQ(buf.capacity(), 14u); in TEST()
63 EXPECT_EQ(buf.capacity(), 16u); in TEST()
70 EXPECT_EQ(buf2.capacity(), 16u); in TEST()
88 EXPECT_EQ(buf.capacity(), 9u); in TEST()
104 EXPECT_EQ(buf.capacity(), 15u); // Hasn't shrunk. in TEST()
112 EXPECT_EQ(buf.capacity(), 15u); in TEST()
115 EXPECT_EQ(buf.capacity(), 20u); // Has grown. in TEST()
[all …]
/external/libcxx/test/std/containers/sequences/vector.bool/
Dreserve.pass.cpp25 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()
Dswap.pass.cpp27 assert(v1.capacity() >= 200); in main()
29 assert(v2.capacity() >= 100); in main()
37 assert(v1.capacity() >= 200); in main()
39 assert(v2.capacity() >= 100); in main()
49 assert(v1.capacity() >= 200); in main()
51 assert(v2.capacity() >= 100); in main()
71 assert(v1.capacity() >= 200); in main()
73 assert(v2.capacity() >= 100); in main()
81 assert(v1.capacity() >= 200); in main()
83 assert(v2.capacity() >= 100); in main()
Dcapacity.pass.cpp24 assert(v.capacity() == 0); in main()
28 assert(v.capacity() >= 100); in main()
30 assert(v.capacity() >= 101); in main()
35 assert(v.capacity() == 0); in main()
39 assert(v.capacity() >= 100); in main()
41 assert(v.capacity() >= 101); in main()
Dresize_size.pass.cpp26 assert(v.capacity() >= 100); in main()
29 assert(v.capacity() >= 200); in main()
33 assert(v.capacity() >= 400); in main()
40 assert(v.capacity() >= 100); in main()
43 assert(v.capacity() >= 200); in main()
47 assert(v.capacity() >= 400); in main()
/external/opencv3/modules/flann/include/opencv2/flann/
Dresult_set.h89 int capacity; variable
94 KNNSimpleResultSet(int capacity_) : capacity(capacity_), count(0) in KNNSimpleResultSet()
104 dists[capacity-1] = worst_distance_; in init()
114 return count == capacity; in full()
129 if (i<capacity) { in addPoint()
136 if (count < capacity) ++count; in addPoint()
139 worst_distance_ = dists[capacity-1]; in addPoint()
156 int capacity; variable
161 KNNResultSet(int capacity_) : capacity(capacity_), count(0) in KNNResultSet()
171 dists[capacity-1] = worst_distance_; in init()
[all …]
/external/jetty/src/java/org/eclipse/jetty/io/
DSimpleBuffers.java55 … if (_buffer!=null && _header!=null && _header.capacity()==_buffer.capacity() && !_headerOut) in getBuffer()
62 return new ByteArrayBuffer(_buffer.capacity()); in getBuffer()
78 … if (_buffer!=null && _header!=null && _header.capacity()==_buffer.capacity() && !_bufferOut) in getHeader()
85 return new ByteArrayBuffer(_header.capacity()); in getHeader()
95 if (_header!=null && _header.capacity()==size) in getBuffer()
97 if (_buffer!=null && _buffer.capacity()==size) in getBuffer()
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DMonitorBenchmark.java33 @Param({"10", "100", "1000"}) int capacity; field in MonitorBenchmark
47 queue = (BlockingQueue<String>) constructor.newInstance(capacity); in setUp()
49 strings = new String[capacity]; in setUp()
50 for (int i = 0; i < capacity; i++) { in setUp()
56 int capacity = this.capacity; in addsAndRemoves() local
60 for (int j = 0; j < capacity; j++) { in addsAndRemoves()
63 for (int j = 0; j < capacity; j++) { in addsAndRemoves()
/external/mesa3d/src/gallium/auxiliary/util/
Du_dynarray.h43 unsigned capacity; member
67 if(newsize > buf->capacity) in util_dynarray_resize()
69 unsigned newcap = buf->capacity << 1; in util_dynarray_resize()
72 buf->data = REALLOC(buf->data, buf->capacity, newcap); in util_dynarray_resize()
73 buf->capacity = newcap; in util_dynarray_resize()
90 if (buf->size != buf->capacity) { in util_dynarray_trim()
92 buf->data = REALLOC(buf->data, buf->capacity, buf->size); in util_dynarray_trim()
93 buf->capacity = buf->size; in util_dynarray_trim()
98 buf->capacity = 0; in util_dynarray_trim()
/external/skia/tests/
DDynamicHashTest.cpp27 int capacity() const { return this->INHERITED::capacity(); } in capacity() function in __anon776810e40111::Hash
46 ASSERT(hash.capacity() == 0); in DEF_TEST()
49 ASSERT(hash.capacity() == 4); in DEF_TEST()
52 ASSERT(hash.capacity() == 4); in DEF_TEST()
55 ASSERT(hash.capacity() == 4); in DEF_TEST()
58 ASSERT(hash.capacity() == 8); in DEF_TEST()
61 ASSERT(hash.capacity() == 8); in DEF_TEST()
197 ASSERT(hash.capacity() == 0); in TestResetOrRewind()
201 ASSERT(hash.capacity() == 4); in TestResetOrRewind()
205 ASSERT(hash.capacity() == 0); in TestResetOrRewind()
[all …]
/external/compiler-rt/test/asan/TestCases/
Dcontiguous_container.cc11 void TestContainer(size_t capacity) { in TestContainer() argument
12 char *beg = new char[capacity]; in TestContainer()
13 char *end = beg + capacity; in TestContainer()
14 char *mid = beg + capacity; in TestContainer()
18 size_t size = rand() % (capacity + 1); in TestContainer()
19 assert(size <= capacity); in TestContainer()
26 for (size_t idx = size; idx < capacity; idx++) in TestContainer()
45 for (size_t idx = 0; idx < capacity; idx++) in TestContainer()
/external/jsilver/src/com/google/clearsilver/jsilver/adaptor/
DLoadPathToFileCache.java37 public LoadPathToFileCache(int capacity) { in LoadPathToFileCache() argument
38 cache = new LRUCache<String, String>(capacity); in LoadPathToFileCache()
116 private final int capacity; field in LoadPathToFileCache.LRUCache
118 LRUCache(int capacity) { in LRUCache() argument
119 super(capacity, 0.75f, true); in LRUCache()
120 this.capacity = capacity; in LRUCache()
145 return size() > capacity; in removeEldestEntry()
/external/valgrind/drd/
Ddrd_vc.c52 vc->capacity = 0; in DRD_()
192 if (new_size > result->capacity) in DRD_()
302 tl_assert(vc->size <= vc->capacity); in DRD_()
317 tl_assert(vc->capacity > VC_PREALLOCATED in DRD_()
321 if (new_capacity > vc->capacity) in DRD_()
323 if (vc->vc && vc->capacity > VC_PREALLOCATED) in DRD_()
327 && vc->capacity > VC_PREALLOCATED); in DRD_()
335 && vc->capacity <= VC_PREALLOCATED); in DRD_()
339 vc->capacity * sizeof(vc->vc[0])); in DRD_()
345 && vc->capacity <= VC_PREALLOCATED); in DRD_()
[all …]
/external/icu/icu4c/source/i18n/
Dcollationdatawriter.cpp54 RuleBasedCollator::cloneBinary(uint8_t *dest, int32_t capacity, UErrorCode &errorCode) const { in cloneBinary() argument
57 *tailoring, *settings, indexes, dest, capacity, in cloneBinary()
78 int32_t indexes[], uint8_t *dest, int32_t capacity, in writeBase() argument
83 indexes, dest, capacity, errorCode); in writeBase()
88 int32_t indexes[], uint8_t *dest, int32_t capacity, in writeTailoring() argument
93 indexes, dest, capacity, errorCode); in writeTailoring()
100 int32_t indexes[], uint8_t *dest, int32_t capacity, in write() argument
103 if(capacity < 0 || (capacity > 0 && dest == NULL)) { in write()
201 if(headerSize <= capacity) { in write()
206 capacity -= headerSize; in write()
[all …]

12345678910>>...26