Searched refs:capacity (Results 1 - 25 of 481) sorted by relevance

1234567891011>>

/external/emma/core/java12/com/vladium/jcd/cls/
H A DElementFactory.java21 public static IAttributeCollection newAttributeCollection (final int capacity) argument
23 return new AttributeCollection (capacity);
26 public static IConstantCollection newConstantCollection (final int capacity) argument
28 return new ConstantCollection (capacity);
31 public static IFieldCollection newFieldCollection (final int capacity) argument
33 return new FieldCollection (capacity);
36 public static IInterfaceCollection newInterfaceCollection (final int capacity) argument
38 return new InterfaceCollection (capacity);
41 public static IMethodCollection newMethodCollection (final int capacity) argument
43 return new MethodCollection (capacity);
[all...]
/external/libcxx/test/std/containers/sequences/vector.bool/
H A Dcapacity.pass.cpp13 // size_type capacity() const;
24 assert(v.capacity() == 0);
28 assert(v.capacity() >= 100);
30 assert(v.capacity() >= 101);
35 assert(v.capacity() == 0);
39 assert(v.capacity() >= 100);
41 assert(v.capacity() >= 101);
H A Dreserve.pass.cpp25 assert(v.capacity() >= 10);
29 assert(v.capacity() >= 100);
32 assert(v.capacity() >= 100);
35 assert(v.capacity() >= 150);
41 assert(v.capacity() >= 10);
45 assert(v.capacity() >= 100);
48 assert(v.capacity() >= 100);
51 assert(v.capacity() >= 150);
H A Dresize_size.pass.cpp26 assert(v.capacity() >= 100);
29 assert(v.capacity() >= 200);
33 assert(v.capacity() >= 400);
40 assert(v.capacity() >= 100);
43 assert(v.capacity() >= 200);
47 assert(v.capacity() >= 400);
H A Dshrink_to_fit.pass.cpp26 assert(v.capacity() >= 101);
34 assert(v.capacity() >= 101);
H A Dresize_size_value.pass.cpp26 assert(v.capacity() >= 100);
30 assert(v.capacity() >= 200);
41 assert(v.capacity() >= 100);
45 assert(v.capacity() >= 200);
/external/emma/core/java12/com/vladium/jcd/cls/attribute/
H A DAttributeElementFactory.java20 public static IExceptionHandlerTable newExceptionHandlerTable (final int capacity) argument
22 return new ExceptionHandlerTable (capacity);
/external/libcxx/test/std/containers/sequences/vector/vector.capacity/
H A Dcapacity.pass.cpp12 // size_type capacity() const;
24 assert(v.capacity() == 0);
29 assert(v.capacity() == 100);
31 assert(v.capacity() > 101);
37 assert(v.capacity() == 0);
42 assert(v.capacity() == 100);
44 assert(v.capacity() > 101);
H A Dreserve.pass.cpp25 assert(v.capacity() >= 10);
30 assert(v.capacity() == 100);
33 assert(v.capacity() == 100);
36 assert(v.capacity() == 150);
41 assert(v.capacity() == 100);
44 assert(v.capacity() == 100);
47 assert(v.capacity() == 150);
54 assert(v.capacity() >= 10);
59 assert(v.capacity() == 100);
62 assert(v.capacity()
[all...]
H A Dresize_size.pass.cpp28 assert(v.capacity() == 100);
32 assert(v.capacity() >= 200);
39 assert(v.capacity() == 100);
43 assert(v.capacity() >= 200);
51 assert(v.capacity() == 100);
55 assert(v.capacity() >= 200);
62 assert(v.capacity() == 100);
66 assert(v.capacity() >= 200);
75 assert(v.capacity() == 100);
79 assert(v.capacity() >
[all...]
H A Dswap.pass.cpp29 assert(v1.capacity() == 200);
32 assert(v2.capacity() == 100);
43 assert(v1.capacity() == 200);
46 assert(v2.capacity() == 100);
/external/icu/icu4c/source/common/
H A Dutrace.c88 static void outputChar(char c, char *outBuf, int32_t *outIx, int32_t capacity, int32_t indent) { argument
93 * 3. When preflighting buffer len (buffer capacity is exceeded), when
100 (c!='\n' && c!=0 && *outIx < capacity && outBuf[(*outIx)-1]=='\n') || /* case 2. */
101 (c=='\n' && *outIx>=capacity)) /* case 3 */
105 if (*outIx < capacity) {
112 if (*outIx < capacity) {
124 char *outBuf, int32_t *outIx, int32_t capacity) {
129 outputChar(c, outBuf, outIx, capacity, 0);
134 static void outputPtrBytes(void *val, char *outBuf, int32_t *outIx, int32_t capacity) { argument
148 outputHexBytes(*p, 2, outBuf, outIx, capacity);
123 outputHexBytes(int64_t val, int32_t charsToOutput, char *outBuf, int32_t *outIx, int32_t capacity) argument
153 outputString(const char *s, char *outBuf, int32_t *outIx, int32_t capacity, int32_t indent) argument
167 outputUString(const UChar *s, int32_t len, char *outBuf, int32_t *outIx, int32_t capacity, int32_t indent) argument
187 utrace_vformat(char *outBuf, int32_t capacity, int32_t indent, const char *fmt, va_list args) argument
381 utrace_format(char *outBuf, int32_t capacity, int32_t indent, const char *fmt, ...) argument
[all...]
H A Duscript.c28 UScriptCode *dest, int32_t capacity, UErrorCode *err) {
31 if(length > capacity) {
42 setOneCode(UScriptCode script, UScriptCode *scripts, int32_t capacity, UErrorCode *err) { argument
44 if(1 > capacity) {
54 UScriptCode *scripts, int32_t capacity, UErrorCode *err) {
67 return setCodes(JAPANESE, UPRV_LENGTHOF(JAPANESE), scripts, capacity, err);
70 return setCodes(KOREAN, UPRV_LENGTHOF(KOREAN), scripts, capacity, err);
77 return setCodes(HAN_BOPO, UPRV_LENGTHOF(HAN_BOPO), scripts, capacity, err);
86 return setOneCode(scriptCode, scripts, capacity, err);
96 int32_t capacity,
27 setCodes(const UScriptCode *src, int32_t length, UScriptCode *dest, int32_t capacity, UErrorCode *err) argument
53 getCodesFromLocale(const char *locale, UScriptCode *scripts, int32_t capacity, UErrorCode *err) argument
94 uscript_getCode(const char* nameOrAbbrOrLocale, UScriptCode* fillIn, int32_t capacity, UErrorCode* err) argument
[all...]
H A Dustrfmt.h14 uprv_itou (UChar * buffer, int32_t capacity, uint32_t i, uint32_t radix, int32_t minwidth);
/external/guava/guava-tests/benchmark/com/google/common/util/concurrent/
H A DMonitorBenchmark.java33 @Param({"10", "100", "1000"}) int capacity; field in class:MonitorBenchmark
47 queue = (BlockingQueue<String>) constructor.newInstance(capacity);
49 strings = new String[capacity];
50 for (int i = 0; i < capacity; i++) {
56 int capacity = this.capacity;
60 for (int j = 0; j < capacity; j++) {
63 for (int j = 0; j < capacity; j++) {
/external/jetty/src/java/org/eclipse/jetty/io/
H A DSimpleBuffers.java55 if (_buffer!=null && _header!=null && _header.capacity()==_buffer.capacity() && !_headerOut)
62 return new ByteArrayBuffer(_buffer.capacity());
78 if (_buffer!=null && _header!=null && _header.capacity()==_buffer.capacity() && !_bufferOut)
85 return new ByteArrayBuffer(_header.capacity());
95 if (_header!=null && _header.capacity()==size)
97 if (_buffer!=null && _buffer.capacity()==size)
/external/icu/icu4c/source/layoutex/
H A DRunArrays.cpp50 void RunArray::init(le_int32 capacity) argument
52 fLimits = LE_NEW_ARRAY(le_int32, capacity);
92 void FontRuns::init(le_int32 capacity) argument
94 RunArray::init(capacity);
95 fFonts = LE_NEW_ARRAY(const LEFontInstance *, capacity);
98 void FontRuns::grow(le_int32 capacity) argument
100 RunArray::grow(capacity);
101 fFonts = (const LEFontInstance **) LE_GROW_ARRAY(fFonts, capacity);
144 void LocaleRuns::init(le_int32 capacity) argument
146 RunArray::init(capacity);
150 grow(le_int32 capacity) argument
196 init(le_int32 capacity) argument
202 grow(le_int32 capacity) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_dynarray.h36 * Also, size <= capacity and data != 0 if and only if capacity != 0
37 * capacity will always be the allocation size of data
43 unsigned capacity; member in struct:util_dynarray
67 if(newsize > buf->capacity)
69 unsigned newcap = buf->capacity << 1;
72 buf->data = REALLOC(buf->data, buf->capacity, newcap);
73 buf->capacity = newcap;
90 if (buf->size != buf->capacity) {
92 buf->data = REALLOC(buf->data, buf->capacity, bu
[all...]
/external/icu/icu4c/source/i18n/
H A Dupluralrules.cpp41 UChar *keyword, int32_t capacity,
47 if (keyword == NULL ? capacity != 0 : capacity < 0) {
52 return result.extract(keyword, capacity, *status);
39 uplrules_select(const UPluralRules *uplrules, double number, UChar *keyword, int32_t capacity, UErrorCode *status) argument
/external/icu/icu4c/source/tools/toolutil/
H A Ddenseranges.h23 * Does it make sense to write 1..capacity ranges?
30 * @param capacity Maximum number of ranges.
31 * @return Minimum number of ranges (at most capacity) that have the desired density,
37 int32_t ranges[][2], int32_t capacity);
/external/llvm/include/llvm/Support/
H A DCapacity.h10 // This file defines the capacity function that computes the amount of
24 // This default definition of capacity should work for things like std::vector
26 return x.capacity() * sizeof(typename T::value_type);
/external/compiler-rt/test/asan/TestCases/
H A Dcontiguous_container.cc11 void TestContainer(size_t capacity) { argument
12 char *beg = new char[capacity];
13 char *end = beg + capacity;
14 char *mid = beg + capacity;
18 size_t size = rand() % (capacity + 1);
19 assert(size <= capacity);
26 for (size_t idx = size; idx < capacity; idx++)
37 for (size_t idx = 0; idx < capacity; idx++)
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
H A DRawCollationKey.java56 * capacity. Size of the internal byte array will be set to 0.
57 * @param capacity length of internal byte array
60 public RawCollationKey(int capacity) argument
62 bytes = new byte[capacity];
/external/jetty/src/java/org/eclipse/jetty/util/
H A DUtf8StringBuffer.java44 public Utf8StringBuffer(int capacity) argument
46 super(new StringBuffer(capacity));
H A DUtf8StringBuilder.java45 public Utf8StringBuilder(int capacity) argument
47 super(new StringBuilder(capacity));

Completed in 639 milliseconds

1234567891011>>