Home
last modified time | relevance | path

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

/external/skqp/src/core/
DSkTDynamicHash.h25 SkTDynamicHash() : fCount(0), fDeleted(0), fCapacity(0), fArray(nullptr) { 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 …]
DSkWriter32.cpp78 fCapacity = 4096 + SkTMax(size, fCapacity + (fCapacity / 2)); in growToAtLeast()
79 fInternal.realloc(fCapacity); in growToAtLeast()
DSkRWBuffer.cpp24 const size_t fCapacity; member
26 SkBufferBlock(size_t capacity) : fNext(nullptr), fUsed(0), fCapacity(capacity) {} in SkBufferBlock()
30 size_t avail() const { return fCapacity - fUsed; } in avail()
55 SkASSERT(fCapacity > 0); in validate()
56 SkASSERT(fUsed <= fCapacity); in validate()
175 return SkTMin(fBlock->fCapacity, fRemaining); in size()
DSkWriter32.h53 fCapacity = externalBytes;
63 if (totalRequired > fCapacity) { in reserve()
254 size_t fCapacity; // Number of bytes we can write to fData. variable
/external/skia/src/core/
DSkTDynamicHash.h25 SkTDynamicHash() : fCount(0), fDeleted(0), fCapacity(0), fArray(nullptr) { 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 …]
DSkWriter32.cpp78 fCapacity = 4096 + SkTMax(size, fCapacity + (fCapacity / 2)); in growToAtLeast()
79 fInternal.realloc(fCapacity); in growToAtLeast()
DSkRWBuffer.cpp24 const size_t fCapacity; member
26 SkBufferBlock(size_t capacity) : fNext(nullptr), fUsed(0), fCapacity(capacity) {} in SkBufferBlock()
30 size_t avail() const { return fCapacity - fUsed; } in avail()
55 SkASSERT(fCapacity > 0); in validate()
56 SkASSERT(fUsed <= fCapacity); in validate()
175 return SkTMin(fBlock->fCapacity, fRemaining); in size()
DSkWriter32.h53 fCapacity = externalBytes;
63 if (totalRequired > fCapacity) { in reserve()
254 size_t fCapacity; // Number of bytes we can write to fData. variable
/external/skqp/include/private/
DSkTHash.h28 SkTHashTable() : fCount(0), fCapacity(0) {} in SkTHashTable()
31 , fCapacity(other.fCapacity) in SkTHashTable()
32 , fSlots(std::move(other.fSlots)) { other.fCount = other.fCapacity = 0; } in SkTHashTable()
49 size_t approxBytesUsed() const { return fCapacity * sizeof(Slot); } in approxBytesUsed()
64 if (4 * fCount >= 3 * fCapacity) { in set()
65 this->resize(fCapacity > 0 ? fCapacity * 2 : 4); in set()
73 int index = hash & (fCapacity-1); in find()
74 for (int n = 0; n < fCapacity; n++) { in find()
84 SkASSERT(fCapacity == 0); in find()
102 int index = hash & (fCapacity-1); in remove()
[all …]
/external/skia/include/private/
DSkTHash.h28 SkTHashTable() : fCount(0), fCapacity(0) {} in SkTHashTable()
31 , fCapacity(other.fCapacity) in SkTHashTable()
32 , fSlots(std::move(other.fSlots)) { other.fCount = other.fCapacity = 0; } in SkTHashTable()
49 size_t approxBytesUsed() const { return fCapacity * sizeof(Slot); } in approxBytesUsed()
64 if (4 * fCount >= 3 * fCapacity) { in set()
65 this->resize(fCapacity > 0 ? fCapacity * 2 : 4); in set()
73 int index = hash & (fCapacity-1); in find()
74 for (int n = 0; n < fCapacity; n++) { in find()
84 SkASSERT(fCapacity == 0); in find()
102 int index = hash & (fCapacity-1); in remove()
[all …]
/external/icu/icu4c/source/tools/genrb/
Dustr.c37 s->fLength = s->fCapacity = 0; in ustr_init()
46 s->fLength = s->fCapacity = 0; in ustr_initChars()
50 if(s->fCapacity < length) { in ustr_initChars()
77 s->fLength = s->fCapacity = 0; in ustr_deinit()
89 if(dst->fCapacity < src->fLength) { in ustr_cpy()
110 if(s->fCapacity < (len + 1)) { in ustr_setlen()
137 if(dst->fCapacity < (dst->fLength + n)) { in ustr_ncat()
157 if(dst->fCapacity < (dst->fLength + 1)) { in ustr_ucat()
189 if(dst->fCapacity < (dst->fLength + len)) { in ustr_uscat()
214 s->fLength = s->fCapacity = 0; in ustr_resize()
[all …]
Dustr.h57 int32_t fCapacity; member
/external/icu/icu4c/source/layoutex/
DRunArrays.cpp22 : fClientArrays(FALSE), fLimits(NULL), fCount(0), fCapacity(initialCapacity) in RunArray()
25 fLimits = LE_NEW_ARRAY(le_int32, fCapacity); in RunArray()
39 if (fCount >= fCapacity) { in ensureCapacity()
40 if (fCapacity == 0) { in ensureCapacity()
41 fCapacity = INITIAL_CAPACITY; in ensureCapacity()
42 init(fCapacity); in ensureCapacity()
44 fCapacity += (fCapacity < CAPACITY_GROW_LIMIT ? fCapacity : CAPACITY_GROW_LIMIT); in ensureCapacity()
45 grow(fCapacity); in ensureCapacity()
/external/icu/icu4c/source/i18n/
Dnfrlist.h39 uint32_t fCapacity; variable
44 , fCapacity(capacity) {}
66 if (fCount == fCapacity) { in add()
67 fCapacity += 10; in add()
68 fStuff = (NFRule**)uprv_realloc(fStuff, fCapacity * sizeof(NFRule*)); // assume success in add()
73 fCapacity = 0; in add()
84 fCapacity = 0; in release()
Dsortkey.cpp109 fUnion.fFields.fCapacity = newCapacity; in reallocate()
/external/icu/icu4c/source/layoutex/layout/
DRunArrays.h221 le_int32 fCapacity; variable
225 : UObject(), fClientArrays(FALSE), fLimits(NULL), fCount(0), fCapacity(0) in RunArray()
231 : UObject(), fClientArrays(FALSE), fLimits(NULL), fCount(0), fCapacity(0) in RunArray()
237 : UObject(), fClientArrays(TRUE), fLimits(limits), fCount(count), fCapacity(count) in RunArray()
/external/skqp/platform_tools/android/apps/skottie/src/main/cpp/
DJavaInputStreamAdaptor.cpp56 , fCapacity(capacity) in JavaInputStreamAdaptor()
132 if (size > static_cast<size_t>(fCapacity)) { in doRead()
133 requested = fCapacity; in doRead()
202 const jint fCapacity; member in JavaInputStreamAdaptor
/external/skia/platform_tools/android/apps/skottie/src/main/cpp/
DJavaInputStreamAdaptor.cpp56 , fCapacity(capacity) in JavaInputStreamAdaptor()
132 if (size > static_cast<size_t>(fCapacity)) { in doRead()
133 requested = fCapacity; in doRead()
202 const jint fCapacity; member in JavaInputStreamAdaptor
/external/icu/icu4c/source/i18n/unicode/
Dsortkey.h265 return (fFlagAndLength >= 0) ? (int32_t)sizeof(fUnion) : fUnion.fFields.fCapacity; in getCapacity()
312 int32_t fCapacity; member
/external/icu/icu4c/source/common/
Dunistr.cpp390 fUnion.fFields.fCapacity = (int32_t)(numBytes / U_SIZEOF_UCHAR); in allocate()
397 fUnion.fFields.fCapacity = 0; in allocate()
533 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFrom()
543 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFrom()
568 fUnion.fFields.fCapacity = 0; in copyFrom()
597 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFieldsFrom()
605 src.fUnion.fFields.fCapacity = 0; in copyFieldsFrom()
1207 fUnion.fFields.fCapacity = 0; in setToBogus()
1431 fUnion.fFields.fCapacity -= length; in doReplace()
1439 fUnion.fFields.fCapacity = start; // not NUL-terminated any more in doReplace()
/external/skia/modules/particles/src/
DSkParticleEffect.cpp60 if (fParams->fMaxCount != fCapacity) { in update()
168 fCapacity = capacity; in setCapacity()
169 fCount = SkTMin(fCount, fCapacity); in setCapacity()
/external/skia/modules/particles/include/
DSkParticleEffect.h71 int fCapacity; variable
/external/icu/icu4c/source/common/unicode/
Dunistr.h3804 int32_t fCapacity; // capacity of fArray (in char16_ts) member
3916 US_STACKBUF_SIZE : fUnion.fFields.fCapacity; in getCapacity()
4583 fUnion.fFields.fCapacity = capacity; in setArray()