Home
last modified time | relevance | path

Searched refs:fCapacity (Results 1 – 14 of 14) sorted by relevance

/external/skia/src/core/
DSkTDynamicHash.h25 SkTDynamicHash() : fCount(0), fDeleted(0), fCapacity(0), fArray(NULL) { in SkTDynamicHash()
40 SkASSERT(fCurrentIndex <= fHash->fCapacity); in done()
41 return fCurrentIndex == fHash->fCapacity; in done()
67 SkASSERT(fCurrentIndex <= fHash->fCapacity); in done()
68 return fCurrentIndex == fHash->fCapacity; in done()
92 for (int round = 0; round < fCapacity; round++) { in find()
93 SkASSERT(index >= 0 && index < fCapacity); in find()
103 SkASSERT(fCapacity == 0); in find()
124 sk_bzero(fArray, sizeof(T*)* fCapacity); in rewind()
133 fCapacity = 0; in reset()
[all …]
DSkTHash.h27 SkTHashTable() : fCount(0), fRemoved(0), fCapacity(0) {} in SkTHashTable()
51 if (4 * (fCount+fRemoved) >= 3 * fCapacity) { in set()
52 this->resize(fCapacity > 0 ? fCapacity * 2 : 4); in set()
60 int index = hash & (fCapacity-1); in find()
61 for (int n = 0; n < fCapacity; n++) { in find()
71 SkASSERT(fCapacity == 0); in find()
80 int index = hash & (fCapacity-1); in remove()
81 for (int n = 0; n < fCapacity; n++) { in remove()
92 SkASSERT(fCapacity == 0); in remove()
98 for (int i = 0; i < fCapacity; i++) { in foreach()
[all …]
DSkWriter32.cpp69 fCapacity = 4096 + SkTMax(size, fCapacity + (fCapacity / 2)); in growToAtLeast()
70 fInternal.realloc(fCapacity); in growToAtLeast()
DSkRWBuffer.cpp17 size_t fCapacity; member
21 size_t avail() const { return fCapacity - fUsed; } in avail()
29 block->fCapacity = capacity; in Alloc()
45 SkASSERT(fCapacity > 0); in validate()
46 SkASSERT(fUsed <= fCapacity); in validate()
73 head->fBlock.fCapacity = capacity; in Alloc()
/external/icu/icu4c/source/tools/genrb/
Dustr.c35 s->fLength = s->fCapacity = 0; in ustr_init()
44 s->fLength = s->fCapacity = 0; in ustr_initChars()
48 if(s->fCapacity < length) { in ustr_initChars()
75 s->fLength = s->fCapacity = 0; in ustr_deinit()
87 if(dst->fCapacity < src->fLength) { in ustr_cpy()
108 if(s->fCapacity < (len + 1)) { in ustr_setlen()
135 if(dst->fCapacity < (dst->fLength + n)) { in ustr_ncat()
155 if(dst->fCapacity < (dst->fLength + 1)) { in ustr_ucat()
187 if(dst->fCapacity < (dst->fLength + len)) { in ustr_uscat()
212 s->fLength = s->fCapacity = 0; in ustr_resize()
[all …]
Dustr.h55 int32_t fCapacity; member
/external/icu/icu4c/source/layoutex/
DRunArrays.cpp20 : fClientArrays(FALSE), fLimits(NULL), fCount(0), fCapacity(initialCapacity) in RunArray()
23 fLimits = LE_NEW_ARRAY(le_int32, fCapacity); in RunArray()
37 if (fCount >= fCapacity) { in ensureCapacity()
38 if (fCapacity == 0) { in ensureCapacity()
39 fCapacity = INITIAL_CAPACITY; in ensureCapacity()
40 init(fCapacity); in ensureCapacity()
42 fCapacity += (fCapacity < CAPACITY_GROW_LIMIT ? fCapacity : CAPACITY_GROW_LIMIT); in ensureCapacity()
43 grow(fCapacity); in ensureCapacity()
/external/icu/icu4c/source/i18n/
Dnfrlist.h37 uint32_t fCapacity; variable
42 , fCapacity(capacity) {}
64 if (fCount == fCapacity) { in add()
65 fCapacity += 10; in add()
66 fStuff = (NFRule**)uprv_realloc(fStuff, fCapacity * sizeof(NFRule*)); // assume success in add()
71 fCapacity = 0; in add()
82 fCapacity = 0; in release()
Dsortkey.cpp107 fUnion.fFields.fCapacity = newCapacity; in reallocate()
/external/icu/icu4c/source/layoutex/layout/
DRunArrays.h219 le_int32 fCapacity; variable
223 : UObject(), fClientArrays(FALSE), fLimits(NULL), fCount(0), fCapacity(0) in RunArray()
229 : UObject(), fClientArrays(FALSE), fLimits(NULL), fCount(0), fCapacity(0) in RunArray()
235 : UObject(), fClientArrays(TRUE), fLimits(limits), fCount(count), fCapacity(count) in RunArray()
/external/icu/icu4c/source/i18n/unicode/
Dsortkey.h263 return (fFlagAndLength >= 0) ? (int32_t)sizeof(fUnion) : fUnion.fFields.fCapacity; in getCapacity()
310 int32_t fCapacity; member
/external/skia/include/core/
DSkWriter32.h49 fCapacity = externalBytes;
65 if (totalRequired > fCapacity) { in reserve()
242 size_t fCapacity; // Number of bytes we can write to fData. variable
/external/icu/icu4c/source/common/
Dunistr.cpp355 fUnion.fFields.fCapacity = (int32_t)((words - 1) * (sizeof(int32_t) / U_SIZEOF_UCHAR)); in allocate()
360 fUnion.fFields.fCapacity = 0; in allocate()
467 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFrom()
477 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFrom()
500 fUnion.fFields.fCapacity = 0; in copyFrom()
1091 fUnion.fFields.fCapacity = 0; in setToBogus()
1319 fUnion.fFields.fCapacity -= length; in doReplace()
1327 fUnion.fFields.fCapacity = start; // not NUL-terminated any more in doReplace()
/external/icu/icu4c/source/common/unicode/
Dunistr.h3562 int32_t fCapacity; // capacity of fArray (in UChars) member
3660 US_STACKBUF_SIZE : fUnion.fFields.fCapacity; in getCapacity()
4327 fUnion.fFields.fCapacity = capacity; in setArray()